/* Drewnianysklep v3 — Modal callback "Oddzwonimy" */

.ds-cb-overlay[hidden] { display: none !important; }
body.ds-cb-open { overflow: hidden; }

.ds-cb-overlay {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .22s ease;
}
.ds-cb-overlay.is-open { opacity: 1; }

.ds-cb-backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 18, 15, .58);
  backdrop-filter: blur(2px);
}

.ds-cb-panel {
  position: relative;
  width: 92%; max-width: 460px;
  background: var(--ds-paper, #f7f3e8);
  border-radius: 18px;
  box-shadow: 0 24px 60px -8px rgba(0, 0, 0, .35);
  padding: 28px 28px 22px;
  transform: translateY(20px) scale(.98);
  transition: transform .26s cubic-bezier(.2,.7,.3,1);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
}
.ds-cb-overlay.is-open .ds-cb-panel { transform: translateY(0) scale(1); }

.ds-cb-mobile-handle { display: none; }

.ds-cb-close {
  position: absolute; top: 12px; right: 12px;
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  color: var(--ds-ink-2, #5b5b48);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.ds-cb-close:hover { background: rgba(0, 0, 0, .06); color: var(--ds-ink, #2a2a23); }
.ds-cb-close:focus-visible { outline: 2px solid var(--ds-olive, #6e6e43); outline-offset: 2px; }

.ds-cb-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ds-olive, #6e6e43);
  margin-bottom: 8px;
}
.ds-cb-eyebrow-line {
  width: 24px; height: 2px;
  background: var(--ds-olive, #6e6e43);
}

.ds-cb-title {
  font-size: 24px; font-weight: 700;
  color: var(--ds-ink, #2a2a23);
  margin: 0 0 8px;
  line-height: 1.2;
}
.ds-cb-lead {
  font-size: 14.5px; color: var(--ds-ink-2, #5b5b48);
  margin: 0 0 20px;
  line-height: 1.5;
}

.ds-cb-form { display: flex; flex-direction: column; gap: 12px; }
.ds-cb-row { display: flex; flex-direction: column; gap: 4px; }
.ds-cb-row label {
  font-size: 12.5px; font-weight: 600;
  color: var(--ds-ink, #2a2a23);
}
.ds-cb-req { color: #b0392f; }
.ds-cb-row input,
.ds-cb-row textarea {
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid var(--ds-line, #d9d3c0);
  border-radius: 10px;
  background: #fff;
  color: var(--ds-ink, #2a2a23);
  transition: border-color .15s, box-shadow .15s;
}
.ds-cb-row input:focus,
.ds-cb-row textarea:focus {
  outline: 0;
  border-color: var(--ds-olive, #6e6e43);
  box-shadow: 0 0 0 3px rgba(110, 110, 67, .15);
}
.ds-cb-row textarea { resize: vertical; min-height: 56px; max-height: 160px; }

.ds-cb-consent {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px; color: var(--ds-ink-2, #5b5b48);
  line-height: 1.45;
  margin: 6px 0 4px;
}
.ds-cb-consent input[type="checkbox"] {
  flex-shrink: 0; margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--ds-olive, #6e6e43);
}
.ds-cb-consent a { color: var(--ds-olive, #6e6e43); text-decoration: underline; }

.ds-cb-submit {
  position: relative;
  margin-top: 4px;
  padding: 14px 20px;
  font-size: 15px; font-weight: 600;
}
.ds-cb-submit.is-loading .ds-cb-submit-label { opacity: .35; }
.ds-cb-submit-spinner { display: none; }
.ds-cb-submit.is-loading .ds-cb-submit-spinner {
  display: inline-block;
  position: absolute; left: 50%; top: 50%;
  margin-left: -9px; margin-top: -9px;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: ds-cb-spin .7s linear infinite;
}
@keyframes ds-cb-spin { to { transform: rotate(360deg); } }

.ds-cb-error {
  margin-top: -2px;
  padding: 10px 14px;
  background: #fde2e2;
  color: #8a2929;
  border-radius: 8px;
  font-size: 13px;
  border-left: 3px solid #b0392f;
}

.ds-cb-trust {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 18px;
  margin: 18px 0 8px;
  padding: 0;
  font-size: 11.5px;
  color: var(--ds-ink-2, #5b5b48);
}
.ds-cb-trust li {
  display: inline-flex; align-items: center; gap: 5px;
}
.ds-cb-trust svg { color: var(--ds-olive, #6e6e43); }

.ds-cb-alt-call {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ds-line, #d9d3c0);
  font-size: 13px;
  color: var(--ds-ink-2, #5b5b48);
  text-align: center;
}
.ds-cb-alt-call a {
  color: var(--ds-olive, #6e6e43);
  text-decoration: none;
  margin-left: 4px;
}
.ds-cb-alt-call a:hover { text-decoration: underline; }

/* Success state */
.ds-cb-success { text-align: center; padding: 12px 0; }
.ds-cb-success-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ds-olive, #6e6e43) 0%, var(--ds-olive-deep, #4a4a2c) 100%);
  color: var(--ds-paper, #f7f3e8);
  box-shadow: 0 6px 20px rgba(110, 110, 67, .3);
}
.ds-cb-success .ds-cb-title { margin-bottom: 12px; }
.ds-cb-success .ds-btn { margin-top: 10px; min-width: 140px; }

/* Mobile bottom-sheet */
@media (max-width: 767px) {
  .ds-cb-overlay { align-items: flex-end; }
  .ds-cb-panel {
    width: 100%; max-width: none;
    border-radius: 18px 18px 0 0;
    padding: 14px 20px 22px;
    max-height: 88vh;
    transform: translateY(100%);
  }
  .ds-cb-overlay.is-open .ds-cb-panel { transform: translateY(0); }
  .ds-cb-mobile-handle {
    display: block;
    width: 40px; height: 4px;
    margin: 0 auto 8px;
    background: rgba(20, 18, 15, .15);
    border-radius: 99px;
  }
  .ds-cb-close {
    top: 8px; right: 8px;
    width: 38px; height: 38px;
  }
  .ds-cb-title { font-size: 21px; }
  .ds-cb-trust { font-size: 11px; gap: 8px 14px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .ds-cb-overlay, .ds-cb-panel { transition: none; }
}
