* {
  box-sizing: border-box;
}

:root {
  --checkout-bg: #fbf4e8;
  --checkout-panel: rgba(255, 253, 248, .96);
  --checkout-ink: #20160f;
  --checkout-muted: #74665b;
  --checkout-line: rgba(72, 48, 28, .14);
  --checkout-gold: #c98c2e;
  --checkout-gold-dark: #9a651d;
  --checkout-gold-soft: #f7ead0;
  --checkout-danger: #a72413;
  --checkout-ok: #167847;
  --checkout-shadow: 0 22px 70px rgba(40, 28, 15, .10);
  --checkout-serif: Georgia, "Times New Roman", serif;
  --checkout-sans: Arial, Helvetica, sans-serif;
}

[hidden] {
  display: none !important;
}

body.checkout-body {
  min-height: 100vh;
  margin: 0;
  color: var(--checkout-ink);
  font-family: var(--checkout-sans);
  background: linear-gradient(90deg, #fffaf4 0%, #fffaf4 67%, #f2dfbf 67%, #f2dfbf 100%);
}

.checkout-body a {
  color: inherit;
  text-decoration: none;
}

.checkout-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--checkout-line);
  background: rgba(255, 253, 248, .94);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-logo {
  font-family: var(--checkout-serif);
  font-size: clamp(32px, 3vw, 46px);
  line-height: 1;
  letter-spacing: -.06em;
  font-weight: 700;
}

.brand-logo span {
  color: var(--checkout-gold);
  font-style: italic;
}

.checkout-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.active-brand-badge {
  display: none;
}

.checkout-whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 800;
}

.checkout-whatsapp-link::before {
  content: "";
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
  display: inline-block;
}

.checkout-shell {
  width: min(1620px, calc(100% - 36px));
  margin: 0 auto;
  padding: 26px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
}

.checkout-form-panel {
  min-width: 0;
}

.checkout-progress {
  max-width: 880px;
  margin: 0 0 24px 56px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
}

.checkout-progress li {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--checkout-muted);
  white-space: nowrap;
}

.checkout-progress li:not(:last-child)::after {
  content: "";
  height: 1px;
  flex: 1;
  min-width: 36px;
  margin-left: 10px;
  background: #e0c8a5;
}

.checkout-progress span {
  width: 32px;
  height: 32px;
  border: 1px solid #e0c8a5;
  border-radius: 50%;
  background: #fff;
  color: var(--checkout-gold-dark);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
}

.checkout-progress strong {
  font-size: 14px;
}

.checkout-progress .is-active {
  color: var(--checkout-ink);
}

.checkout-progress .is-active span {
  color: #fff;
  background: var(--checkout-gold);
  border-color: var(--checkout-gold);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

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

.checkout-step-card {
  padding: 26px;
  border: 1px solid var(--checkout-line);
  border-radius: 20px;
  background: var(--checkout-panel);
  box-shadow: 0 12px 40px rgba(32, 22, 15, .055);
}

.checkout-step-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin: 0 0 16px;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dba64b, #b97719);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-weight: 900;
}

.checkout-step-title h2 {
  margin: 0 0 4px;
  font-family: var(--checkout-serif);
  font-size: 26px;
  line-height: 1.05;
  letter-spacing: -.02em;
}

.checkout-step-title p {
  margin: 0;
  color: var(--checkout-muted);
  font-size: 14px;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(201, 140, 46, .2);
  border-radius: 999px;
  background: var(--checkout-gold-soft);
  color: var(--checkout-gold-dark);
  font-family: var(--checkout-sans);
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.compact-row {
  grid-template-columns: .75fr 1fr .8fr .9fr;
}

.checkout-field {
  min-height: 58px;
  position: relative;
  display: block;
}

.checkout-field span {
  position: absolute;
  top: 9px;
  left: 15px;
  z-index: 1;
  color: #6d5d50;
  font-size: 11px;
  font-weight: 800;
}

.checkout-field input,
.checkout-field textarea,
.discount-row input {
  width: 100%;
  min-height: 58px;
  border: 1px solid #e4d6c4;
  border-radius: 9px;
  padding: 24px 14px 8px;
  color: var(--checkout-ink);
  background: #fff;
  font: inherit;
  outline: none;
}

.checkout-field input:focus,
.checkout-field textarea:focus,
.discount-row input:focus {
  border-color: var(--checkout-gold);
  box-shadow: 0 0 0 3px rgba(201, 140, 46, .13);
}

.checkout-field.has-valid-mark:has(input:valid)::after {
  content: "";
  width: 8px;
  height: 14px;
  position: absolute;
  right: 17px;
  top: 22px;
  border-right: 3px solid #0b9b42;
  border-bottom: 3px solid #0b9b42;
  transform: rotate(40deg);
}

.checkout-newsletter {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d4d42;
  font-size: 14px;
  font-weight: 650;
}

.checkout-newsletter input {
  width: 16px;
  height: 16px;
  accent-color: var(--checkout-gold);
}

.shipping-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.shipping-option {
  min-height: 96px;
  padding: 16px;
  border: 1px solid #e4d6c4;
  border-radius: 12px;
  background: #fff;
  display: grid;
  grid-template-columns: 24px 34px 1fr auto;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.shipping-option.is-selected {
  border-color: var(--checkout-gold);
  background: #fffdf7;
  box-shadow: 0 0 0 1px rgba(201, 140, 46, .22);
}

.shipping-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-dot {
  width: 17px;
  height: 17px;
  border: 2px solid #c9bba8;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.shipping-option.is-selected .radio-dot {
  border-color: var(--checkout-gold-dark);
}

.shipping-option.is-selected .radio-dot::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--checkout-gold-dark);
}

.ship-icon {
  width: 34px;
  height: 34px;
  border: 1px solid var(--checkout-gold);
  border-radius: 8px;
  display: block;
}

.ship-copy strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.ship-copy small {
  display: block;
  color: var(--checkout-muted);
  font-size: 12px;
  line-height: 1.35;
}

.ship-price {
  align-self: end;
  font-weight: 900;
  white-space: nowrap;
}

.stripe-payment-overview {
  padding: 0;
  border: 0;
  background: transparent;
}

.stripe-payment-heading {
  display: none;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin: 18px 0 14px;
}

.payment-badge {
  min-width: 86px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #e4d6c4;
  border-radius: 8px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: inset 0 -1px 0 rgba(32, 22, 15, .04);
}

.payment-badge.visa {
  color: #1434cb;
  font-size: .98rem;
  font-style: italic;
  text-transform: uppercase;
}

.payment-badge.mastercard,
.payment-badge.maestro {
  color: #2b2520;
  font-size: .68rem;
}

.payment-badge .card-circles {
  width: 28px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.payment-badge .card-circles::before,
.payment-badge .card-circles::after {
  content: "";
  width: 16px;
  height: 16px;
  position: absolute;
  top: 1px;
  border-radius: 50%;
}

.payment-badge.mastercard .card-circles::before {
  left: 0;
  background: #eb001b;
}

.payment-badge.mastercard .card-circles::after {
  right: 0;
  background: rgba(247, 158, 27, .9);
}

.payment-badge.maestro .card-circles::before {
  left: 0;
  background: #009ddd;
}

.payment-badge.maestro .card-circles::after {
  right: 0;
  background: rgba(237, 0, 6, .9);
}

.payment-badge.amex {
  color: #fff;
  background: #2f86c7;
  border-color: #2f86c7;
  text-transform: uppercase;
}

.payment-badge.apple,
.payment-badge.google {
  color: #111;
}

.payment-badge.link {
  color: #00a65a;
  font-size: .95rem;
  text-transform: lowercase;
}

.payment-badge.klarna {
  color: #101010;
  background: #ffd5e4;
  border-color: #ffc0d5;
}

.checkout-info-box {
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid #e9dccb;
  border-radius: 10px;
  background: #fffaf2;
}

.checkout-info-box strong {
  display: block;
  margin-bottom: 5px;
}

.checkout-info-box p {
  margin: 0;
  color: var(--checkout-muted);
  font-size: 14px;
}

.stripe-element-box {
  background: #fff;
}

#payment-element {
  margin-top: 14px;
}

.checkout-pay-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #d59a34, #ad6e16);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 15px 30px rgba(177, 112, 22, .22);
}

.checkout-pay-button:disabled {
  opacity: .62;
  cursor: wait;
}

.form-message {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--checkout-muted);
  font-size: 14px;
  font-weight: 700;
}

.form-message.error {
  color: var(--checkout-danger);
}

.form-message.notice {
  color: var(--checkout-ok);
}

.order-summary {
  position: sticky;
  top: 98px;
}

.summary-card {
  padding: 28px;
  border: 1px solid var(--checkout-line);
  border-radius: 18px;
  background: rgba(255, 253, 248, .95);
  box-shadow: var(--checkout-shadow);
}

.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.summary-eyebrow {
  margin: 0;
  font-family: var(--checkout-serif);
  font-size: 28px;
  font-weight: 900;
}

.summary-head a {
  color: var(--checkout-gold-dark);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
}

.summary-product {
  display: grid;
  grid-template-columns: 94px 1fr auto;
  gap: 14px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--checkout-line);
}

.summary-image {
  width: 94px;
  height: 94px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1e8dc;
  position: relative;
}

.summary-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.placeholder-art {
  display: none;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 10px;
  text-align: center;
  color: var(--checkout-gold-dark);
  font-size: 11px;
  font-weight: 900;
}

.summary-image.image-missing img {
  display: none;
}

.summary-image.image-missing .placeholder-art {
  display: grid;
}

.quantity-badge {
  width: 24px;
  height: 24px;
  position: absolute;
  right: -5px;
  top: -6px;
  border-radius: 50%;
  background: #2a221c;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  z-index: 2;
}

.summary-info h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 1.25;
  text-transform: uppercase;
}

.summary-info small,
.summary-info p,
.summary-info em {
  display: block;
  margin: 0 0 4px;
  color: var(--checkout-muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.35;
}

.summary-product > strong {
  font-weight: 900;
  white-space: nowrap;
}

.summary-divider {
  height: 1px;
  margin: 20px 0;
  background: var(--checkout-line);
}

.summary-brand-line,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 14px;
  font-size: 15px;
}

.summary-brand-line {
  color: var(--checkout-muted);
  font-size: 13px;
}

.summary-brand-line strong {
  color: var(--checkout-gold-dark);
}

.summary-line strong {
  white-space: nowrap;
}

.summary-line.discount-applied strong {
  color: var(--checkout-ok);
}

.discount-row {
  margin: 18px 0;
}

.discount-row div {
  display: grid;
  grid-template-columns: 1fr 104px;
  gap: 10px;
}

.discount-row input {
  min-height: 44px;
  padding: 0 14px;
}

.discount-row button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--checkout-gold);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.discount-row small {
  display: block;
  margin-top: 7px;
  color: var(--checkout-muted);
  font-size: 13px;
}

.summary-line.total {
  align-items: baseline;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--checkout-line);
}

.summary-line.total span {
  font-family: var(--checkout-serif);
  font-size: 22px;
}

.summary-line.total strong {
  font-size: 30px;
  letter-spacing: -.03em;
}

.tax-note,
.privacy-note,
.checkout-legal {
  color: var(--checkout-muted);
  font-size: 13px;
}

.privacy-note {
  margin: 22px 0 0;
  text-align: center;
}

.checkout-legal {
  display: none;
}

.summary-return-box {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #ecdabb;
  border-radius: 12px;
  background: #fff7e8;
  display: grid;
  gap: 18px;
}

.summary-trust-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
}

.summary-trust-item > span {
  width: 26px;
  height: 26px;
  color: var(--checkout-gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.summary-trust-item svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.summary-trust-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}

.summary-trust-item p {
  margin: 0;
  color: var(--checkout-muted);
  font-size: 13px;
  line-height: 1.35;
}

.checkout-help-bar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.checkout-help-bar div {
  min-height: 70px;
  padding: 14px;
  border: 1px solid var(--checkout-line);
  border-radius: 10px;
  background: rgba(255, 253, 248, .8);
}

.checkout-help-bar strong,
.checkout-help-bar small {
  display: block;
}

.checkout-help-bar small {
  margin-top: 5px;
  color: var(--checkout-muted);
  font-size: 12px;
}

@media (max-width: 1100px) {
  body.checkout-body {
    background: #fffaf4;
  }

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

  .order-summary {
    position: static;
    order: -1;
  }

  .checkout-progress {
    margin-left: 0;
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

@media (max-width: 760px) {
  .checkout-header {
    min-height: 70px;
    padding: 18px;
    flex-wrap: wrap;
  }

  .checkout-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .checkout-shell {
    width: min(100% - 28px, 1620px);
    padding-top: 18px;
  }

  .checkout-progress {
    grid-template-columns: repeat(4, minmax(130px, 1fr));
  }

  .checkout-step-card,
  .summary-card {
    padding: 18px;
    border-radius: 16px;
  }

  .form-row,
  .compact-row,
  .shipping-options,
  .checkout-help-bar {
    grid-template-columns: 1fr;
  }

  .summary-product {
    grid-template-columns: 80px 1fr;
  }

  .summary-image {
    width: 80px;
    height: 80px;
  }

  .summary-product > strong {
    grid-column: 2;
  }

  .discount-row div {
    grid-template-columns: 1fr;
  }
}
