/* CHECKOUT PAGE — BYISTRIA */

[hidden] { display: none !important; }

.checkout-page {
  min-height: 100svh;
  background:
    radial-gradient(circle at top left, rgba(184,98,42,0.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(58,74,44,0.08), transparent 24%),
    linear-gradient(180deg, #efebe4 0%, #e8e2d8 100%);
  padding-top: var(--nav-h, 72px);
  padding-bottom: 32px;
}

.checkout-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  min-height: calc(100svh - var(--nav-h, 72px) - 32px);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.checkout-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 380px);
  gap: 22px;
  flex: 1;
}

.checkout-titlebar {
  display: flex;
  align-items: end;
  justify-content: flex-start;
  gap: 24px;
  padding: 28px 0 18px;
  border-bottom: 1px solid rgba(26,22,20,0.08);
}

.checkout-titlebar__left {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.checkout-titlebar__heading {
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  color: var(--ink, #1a1614);
  font-weight: 800;
}

.checkout-progress {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.checkout-progress__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 16px;
  border: 1px solid rgba(26,22,20,0.08);
  background: #fff;
  color: rgba(26,22,20,0.62);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
  cursor: pointer;
}

.checkout-progress__step:hover {
  border-color: rgba(26,22,20,0.14);
}

.checkout-progress__step.is-active {
  background: #f8f3eb;
  border-color: rgba(184,98,42,0.28);
  box-shadow: 0 8px 18px rgba(184,98,42,0.06);
  color: var(--ink, #1a1614);
}

.checkout-progress__step.is-complete {
  background: rgba(244,237,216,0.72);
  border-color: rgba(122,140,66,0.24);
  color: var(--ink, #1a1614);
}

.checkout-progress__index {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(26,22,20,0.12);
  background: rgba(255,255,255,0.86);
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 14px;
  font-weight: 800;
}

.checkout-progress__step.is-active .checkout-progress__index {
  border-color: rgba(184,98,42,0.28);
  color: #b8622a;
}

.checkout-progress__step.is-complete .checkout-progress__index {
  border-color: rgba(122,140,66,0.25);
  color: #7a8c42;
}

.checkout-progress__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.checkout-progress__label {
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: currentColor;
}

.checkout-progress__desc {
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 12px;
  color: rgba(26,22,20,0.46);
}

.checkout-form-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-step {
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(26,22,20,0.08);
  box-shadow: none;
}

.checkout-step--primary {
  padding: 22px;
}

.checkout-step--compact {
  padding: 18px 20px;
}

.checkout-step__head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.checkout-step__title {
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 16px;
  color: var(--ink, #1a1614);
  line-height: 1;
}

.checkout-step__lede {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(26,22,20,0.54);
  font-family: var(--f-body, Manrope, sans-serif);
}

.checkout-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 12px;
}

.checkout-field { display: flex; flex-direction: column; gap: 6px; }
.checkout-field--full { grid-column: 1 / -1; }

.checkout-label {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: rgba(26,22,20,0.82);
  font-family: var(--f-body, Manrope, sans-serif);
  font-weight: 700;
}

.checkout-label__opt { opacity: 0.7; text-transform: none; letter-spacing: 0; }

.checkout-input {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(26,22,20,0.1);
  font-size: 16px;
  font-family: var(--f-body, Manrope, sans-serif);
  color: var(--ink, #1a1a1a);
  background: #fff;
  transition: border-color .15s, background-color .15s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.checkout-input::placeholder {
  color: rgba(26,22,20,0.38);
}

.checkout-input:focus {
  border-color: rgba(184,98,42,0.55);
  background: #fff;
}

.checkout-input--select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.checkout-input--textarea {
  resize: vertical;
  min-height: 92px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.checkout-subsection {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(26,22,20,0.08);
}

.checkout-subsection__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-subsection__title {
  margin: 0;
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink, #1a1614);
}

.shipping-options { display: flex; flex-direction: column; gap: 8px; }

.shipping-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(26,22,20,0.1);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}

.shipping-option:hover {
  border-color: rgba(184,98,42,0.32);
}

.shipping-option.is-selected {
  border-color: rgba(26,22,20,0.22);
  background: rgba(244,237,216,0.72);
}

.shipping-option input[type="radio"] { accent-color: var(--ink, #1a1a1a); flex-shrink: 0; }

.shipping-option__content {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shipping-option__name {
  font-size: 16px;
  font-family: var(--f-body, Manrope, sans-serif);
  color: var(--ink, #1a1a1a);
  font-weight: 700;
  line-height: 1.2;
}

.shipping-option__desc {
  font-size: 13px;
  color: rgba(26,22,20,0.48);
  display: block;
  margin-top: 0;
  letter-spacing: 0;
  line-height: 1.4;
}

.shipping-option__price {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  justify-self: end;
  text-align: right;
  line-height: 1;
}

.checkout-discount-row {
  display: flex;
  gap: 8px;
}

.checkout-discount-row--summary {
  margin-top: 10px;
}

.checkout-discount-row .checkout-input { flex: 1; }

.checkout-discount-btn {
  min-height: 46px;
  padding: 0 18px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
  font-family: var(--f-body, Manrope, sans-serif);
  white-space: nowrap;
  transition: background .18s, color .18s, opacity .18s;
}

.checkout-discount-btn:hover { background: transparent; color: var(--ink, #1a1a1a); }
.checkout-discount-btn:disabled { opacity: .5; cursor: not-allowed; }

.checkout-discount-msg {
  margin: 10px 0 0 0;
  font-size: 13px;
  font-family: var(--f-body, Manrope, sans-serif);
}

.checkout-discount-msg--ok { color: #2e7d32; }
.checkout-discount-msg--err { color: #c62828; }

#stripePaymentElement { margin-bottom: 18px; }

.checkout-error {
  padding: 12px 14px;
  background: #fff3f3;
  border: 1px solid #f0c8c8;
  font-size: 16px;
  color: #c62828;
  margin-bottom: 16px;
  font-family: var(--f-body, Manrope, sans-serif);
}

.checkout-submit {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--f-body, Manrope, sans-serif);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, opacity .15s, filter .18s;
  margin-top: 18px;
}

.checkout-submit:hover {
  background: #000;
  border-color: #000;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.checkout-submit:disabled { opacity: .5; cursor: not-allowed; }

.checkout-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.checkout-perks {
  list-style: none;
  margin: 16px 0 0 0;
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid rgba(26,22,20,0.08);
}

.checkout-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: rgba(26,22,20,0.54);
  font-family: var(--f-body, Manrope, sans-serif);
  line-height: 1.45;
}

.checkout-field-error {
  font-size: 16px;
  color: #c62828;
  font-family: var(--f-body, Manrope, sans-serif);
  margin: 0;
}

.checkout-loading-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  font-size: 16px;
  color: rgba(26,22,20,0.48);
  font-family: var(--f-body, Manrope, sans-serif);
}

.checkout-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(26,22,20,0.12);
  border-top-color: var(--ink, #1a1a1a);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}

.checkout-summary-col { position: relative; }

.checkout-summary {
  position: sticky;
  top: calc(var(--nav-h, 72px) + 24px);
  background: #fff;
  border: 1px solid rgba(26,22,20,0.08);
  padding: 24px;
  color: var(--ink, #1a1614);
  box-shadow: none;
  height: fit-content;
  align-self: start;
}

.checkout-summary__title {
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 20px 0;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink, #1a1614);
}

.checkout-summary__items {
  list-style: none;
  margin: 0 0 18px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkout-summary__item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.checkout-summary__item-media {
  position: relative;
  width: 54px;
}

.checkout-summary__item img {
  width: 54px;
  height: 68px;
  object-fit: contain;
  flex-shrink: 0;
  background: #f6f1e9;
  border: 1px solid rgba(26,22,20,0.06);
  padding: 6px;
}

.checkout-summary__item-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}

.checkout-summary__item-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.checkout-summary__item-name {
  font-size: 14px;
  font-family: var(--f-body, Manrope, sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--ink, #1a1614);
  font-weight: 600;
}

.checkout-summary__item-pricing {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.checkout-summary__item-old-price {
  font-size: 12px;
  font-weight: 700;
  color: rgba(26,22,20,0.45);
  text-decoration: line-through;
}

.checkout-summary__item-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 6px;
  background: #b8622a;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.checkout-summary__item-qty {
  font-size: 12px;
  color: rgba(26,22,20,0.54);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
}

.checkout-summary__item-price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  font-family: var(--f-body, Manrope, sans-serif);
  color: var(--ink, #1a1614);
}

.checkout-summary__loading {
  display: flex;
  justify-content: center;
  padding: 12px;
}

.checkout-summary__sep {
  border-bottom: 1px solid rgba(26,22,20,0.08);
  margin: 0 0 16px 0;
}

.checkout-summary__discount {
  padding: 14px 0 18px;
}

.checkout-summary__discount-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-summary__discount-title {
  margin: 0;
  font-family: var(--f-body, Manrope, sans-serif);
  font-size: 14px;
  font-weight: 800;
  color: var(--ink, #1a1614);
}

.checkout-summary__rows {
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
  font-family: var(--f-body, Manrope, sans-serif);
  color: rgba(26,22,20,0.62);
}
.checkout-summary__row[hidden] {
  display: none !important;
}

.checkout-summary__row dd {
  font-weight: 700;
  color: var(--ink, #1a1614);
}

.checkout-summary__discount-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.checkout-summary__discount-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(26,22,20,0.54);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.checkout-summary__discount-remove:hover {
  color: #b83232;
}

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--f-body, Manrope, sans-serif);
  border-top: 1px solid rgba(26,22,20,0.08);
  padding-top: 16px;
  margin-bottom: 8px;
  color: rgba(26,22,20,0.54);
}

.checkout-summary__total span {
  font-weight: 400 !important;
}

.checkout-summary__total strong {
  font-size: 1.72rem;
  font-weight: 800;
  color: var(--ink, #1a1614);
  letter-spacing: -0.02em;
}

.checkout-summary__vat {
  font-size: 12px;
  color: rgba(26,22,20,0.46);
  font-family: var(--f-body, Manrope, sans-serif);
  margin: 0;
}

@media (max-width: 900px) {
  .checkout-shell {
    width: min(100%, calc(100% - 16px));
    min-height: auto;
    padding: 10px 0 28px;
    gap: 18px;
  }

  .checkout-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .checkout-titlebar {
    align-items: flex-start;
    gap: 16px;
  }

  .checkout-progress {
    grid-template-columns: 1fr;
  }

  .checkout-summary {
    position: static;
    top: auto;
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .checkout-page {
    padding-bottom: 108px;
  }

  .checkout-shell {
    width: min(100%, calc(100% - 32px));
    padding-top: 0;
    gap: 10px;
  }

  .checkout-titlebar {
    padding: 4px 0 6px;
  }

  .checkout-titlebar__heading {
    font-size: 1.85rem;
  }

  .checkout-progress {
    gap: 8px;
  }

  .checkout-progress__step {
    min-height: 58px;
    padding: 10px 12px;
  }

  .checkout-fields {
    grid-template-columns: 1fr;
  }

  .checkout-step {
    padding: 16px;
  }

  .checkout-step--primary {
    padding: 16px;
  }

  .checkout-discount-row {
    flex-direction: column;
  }

  .checkout-summary {
    padding: 20px;
  }
}

.checkout-mobilebar {
  display: none;
}

@media (max-width: 680px) {
  .checkout-mobilebar {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 950;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(26,22,20,0.08);
  }

  .checkout-mobilebar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    width: min(100%, 680px);
    margin: 0 auto;
  }

  .checkout-mobilebar__total {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }

  .checkout-mobilebar__total span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(26,22,20,0.48);
  }

  .checkout-mobilebar__total strong {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink, #1a1614);
  }

  .checkout-mobilebar__submit {
    min-width: 190px;
    min-height: 50px;
    padding: 0 18px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--f-body, Manrope, sans-serif);
  }

  .checkout-mobilebar__submit:disabled {
    opacity: .5;
    cursor: not-allowed;
  }
}
