/* =========================================================
   STOREFRONT CHECKOUT — PREMIUM HIERARCHY V2
   Presentation-only layer for product detail / checkout.
   Existing copy, checkout logic, stock, voucher, validation,
   and confirmation behavior remain unchanged.
   ========================================================= */

body.storefront-checkout-page {
  --checkout-canvas: #f3f7f3;
  --checkout-surface: #ffffff;
  --checkout-surface-soft: #eef4ef;
  --checkout-surface-quiet: #f8faf8;
  --checkout-text: #17231c;
  --checkout-text-soft: #47574e;
  --checkout-text-muted: #6f7d74;
  --checkout-primary: #2f7458;
  --checkout-primary-deep: #245f47;
  --checkout-border: #d5e0d7;
  --checkout-border-strong: #c2d1c5;
  --checkout-danger: #b45c56;
  --checkout-shadow: 0 18px 50px rgba(33, 70, 50, 0.08);
  --checkout-shadow-strong: 0 26px 68px rgba(26, 59, 41, 0.12);
  --checkout-radius-xl: 1.55rem;
  --checkout-radius-lg: 1.15rem;
  --checkout-radius-md: 0.9rem;

  color: var(--checkout-text);
  background: var(--checkout-canvas);
}

/* Header: deliberately solid and measured to keep visual geometry consistent
   between homepage, catalog, and checkout. */


















body.storefront-checkout-page .storefront-product-detail {
  min-height: calc(100vh - 4.75rem);
  padding: 0;
  color: var(--checkout-text);
  background:
    radial-gradient(circle at 84% 6rem, rgba(183, 213, 190, 0.23), transparent 24rem),
    linear-gradient(180deg, #f9fbf9 0%, var(--checkout-canvas) 55%, #edf3ee 100%);
}

body.storefront-checkout-page .storefront-checkout-shell {
  width: min(100% - 2.5rem, 72rem);
  margin: 0 auto;
  padding: 1.25rem 0 4rem;
  background: transparent;
}

body.storefront-checkout-page .storefront-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  margin-bottom: 0.85rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--checkout-text-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 750;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body.storefront-checkout-page .storefront-back-link svg {
  width: 0.95rem;
  height: 0.95rem;
}

body.storefront-checkout-page .storefront-back-link:hover {
  color: var(--checkout-primary-deep);
  border-color: var(--checkout-border);
  background: rgba(255, 255, 255, 0.78);
  transform: translateX(-2px);
}

body.storefront-checkout-page .storefront-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(27rem, 1.12fr);
  gap: 1.35rem;
  align-items: start;
}

/* Product story column */
body.storefront-checkout-page .storefront-product-summary {
  display: grid;
  gap: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.storefront-checkout-page .storefront-product-summary-top,
body.storefront-checkout-page .storefront-detail-description-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.storefront-checkout-page .storefront-product-summary {
  overflow: hidden;
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-xl);
  background: var(--checkout-surface);
  box-shadow: var(--checkout-shadow);
}

body.storefront-checkout-page .storefront-product-summary-top {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 1.2rem;
  align-items: center;
  padding: 1.15rem;
}

body.storefront-checkout-page .storefront-product-summary-visual {
  position: relative;
  min-width: 0;
}

body.storefront-checkout-page .storefront-product-summary-media {
  width: 9.5rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--checkout-border);
  border-radius: 1.15rem;
  background: var(--checkout-surface-soft);
  box-shadow: none;
}

body.storefront-checkout-page .storefront-product-summary-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.storefront-checkout-page .storefront-detail-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(47, 116, 88, 0.3);
  font-family: 'Source Serif 4', serif;
  font-size: 3rem;
  font-style: normal;
}

body.storefront-checkout-page .storefront-product-summary-copy {
  min-width: 0;
}

body.storefront-checkout-page .storefront-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

body.storefront-checkout-page .storefront-detail-fulfillment,
body.storefront-checkout-page .storefront-detail-stock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 1.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--checkout-border);
  border-radius: 999px;
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.storefront-checkout-page .storefront-detail-fulfillment svg {
  width: 0.8rem;
  height: 0.8rem;
}

body.storefront-checkout-page .storefront-detail-fulfillment.is-instant,
body.storefront-checkout-page .storefront-detail-stock.is-ready {
  color: var(--checkout-primary-deep);
  border-color: rgba(47, 116, 88, 0.2);
  background: #edf6ef;
}

body.storefront-checkout-page .storefront-detail-fulfillment.is-manual {
  color: #8c6226;
  border-color: #ead4a7;
  background: #fff7e7;
}

body.storefront-checkout-page .storefront-detail-stock.is-out {
  color: var(--checkout-danger);
  border-color: rgba(180, 92, 86, 0.22);
  background: #fbefee;
}

body.storefront-checkout-page .storefront-detail-stock-count {
  display: inline-grid;
  min-width: 1.15rem;
  height: 1.15rem;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--checkout-primary);
  box-shadow: none;
}

body.storefront-checkout-page .storefront-detail-stock-mobile {
  display: none;
}

body.storefront-checkout-page .storefront-detail-title {
  margin-top: 0.75rem;
  color: var(--checkout-text);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

body.storefront-checkout-page .storefront-detail-price {
  display: block;
  margin-top: 0.4rem;
  color: var(--checkout-primary);
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

body.storefront-checkout-page .storefront-detail-unit-price {
  display: block;
  margin-top: 0.25rem;
  color: var(--checkout-text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.68rem;
}

body.storefront-checkout-page .storefront-detail-description-panel {
  margin: 0;
  padding: 1.05rem 1.15rem 1.15rem;
  border-top: 1px solid var(--checkout-border);
  border-radius: 0;
}

body.storefront-checkout-page .storefront-detail-description-label {
  display: block;
  color: var(--checkout-primary-deep);
  font-family: 'Manrope', sans-serif;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.storefront-checkout-page .storefront-detail-description {
  margin-top: 0.7rem;
  color: var(--checkout-text-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.86rem;
  line-height: 1.65;
  white-space: pre-line;
}

body.storefront-checkout-page .storefront-product-terms {
  margin: 0;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-lg);
  background: var(--checkout-surface);
  box-shadow: none;
}

body.storefront-checkout-page .storefront-product-terms-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.storefront-checkout-page .storefront-product-terms-heading > span {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--checkout-border);
  border-radius: 0.85rem;
  color: var(--checkout-primary);
  background: var(--checkout-surface-soft);
}

body.storefront-checkout-page .storefront-product-terms-heading > span svg {
  width: 1.1rem;
  height: 1.1rem;
}

body.storefront-checkout-page .storefront-product-terms-heading h2,
body.storefront-checkout-page .storefront-order-summary h3 {
  color: var(--checkout-text);
  font-family: 'Manrope', sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

body.storefront-checkout-page .storefront-product-terms-heading p {
  margin-top: 0.16rem;
  color: var(--checkout-text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  line-height: 1.45;
}

body.storefront-checkout-page .storefront-product-terms ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  color: var(--checkout-text-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  line-height: 1.65;
}

body.storefront-checkout-page .storefront-product-terms li::marker {
  color: #89a593;
}

body.storefront-checkout-page .storefront-product-terms li + li {
  margin-top: 0.72rem;
}

/* Checkout form column */
body.storefront-checkout-page .storefront-checkout-card {
  position: sticky;
  top: 5.6rem;
  padding: 1.45rem;
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-xl);
  background: var(--checkout-surface);
  box-shadow: var(--checkout-shadow-strong);
}

body.storefront-checkout-page .storefront-checkout-header > span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  min-height: 1.85rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--checkout-border);
  border-radius: 999px;
  color: var(--checkout-primary-deep);
  background: var(--checkout-surface-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.storefront-checkout-page .storefront-checkout-header > span svg {
  width: 0.92rem;
  height: 0.92rem;
}

body.storefront-checkout-page .storefront-checkout-header h2 {
  max-width: none;
  margin-top: 0.85rem;
  color: var(--checkout-text);
  font-family: 'Source Serif 4', serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

body.storefront-checkout-page .storefront-checkout-header p {
  max-width: 36rem;
  margin-top: 0.55rem;
  color: var(--checkout-text-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
  line-height: 1.55;
}

body.storefront-checkout-page .storefront-checkout-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.35rem;
}

body.storefront-checkout-page .storefront-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

body.storefront-checkout-page .storefront-form-group label {
  display: block;
  min-height: 0;
  margin-bottom: 0.42rem;
  color: var(--checkout-text-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.35;
}

body.storefront-checkout-page .storefront-form-group label span {
  color: var(--checkout-text-muted);
  font-size: 0.66rem;
  opacity: 1;
}

body.storefront-checkout-page .storefront-input,
body.storefront-checkout-page .storefront-quantity-control,
body.storefront-checkout-page #voucher-apply {
  min-height: 3.2rem;
  border: 1px solid var(--checkout-border);
  border-radius: 0.9rem;
  color: var(--checkout-text);
  background: var(--checkout-surface-quiet);
  box-shadow: none;
}

body.storefront-checkout-page .storefront-input {
  width: 100%;
  height: 3.2rem;
  padding: 0.78rem 0.9rem;
  font-family: 'Manrope', sans-serif;
  font-size: 0.82rem;
}

body.storefront-checkout-page .storefront-input::placeholder {
  color: #96a198;
}

body.storefront-checkout-page .storefront-input:hover {
  border-color: var(--checkout-border-strong);
}

body.storefront-checkout-page .storefront-input:focus {
  border-color: rgba(47, 116, 88, 0.55);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 116, 88, 0.1);
  outline: none;
}

body.storefront-checkout-page .storefront-form-group > div.flex {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
}

body.storefront-checkout-page #voucher-apply {
  min-width: 7rem;
  padding-inline: 1rem;
  color: var(--checkout-primary-deep);
  font-family: 'Manrope', sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

body.storefront-checkout-page #voucher-apply:hover {
  color: #fff;
  border-color: var(--checkout-primary);
  background: var(--checkout-primary);
  transform: translateY(-1px);
}

body.storefront-checkout-page .storefront-order-summary {
  margin: 0.1rem 0 0;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--checkout-border);
  border-radius: var(--checkout-radius-lg);
  background: var(--checkout-surface-soft);
  box-shadow: none;
}

body.storefront-checkout-page .storefront-order-summary dl {
  margin-top: 0.7rem;
}

body.storefront-checkout-page .storefront-order-summary dl > div {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.48rem 0;
  color: var(--checkout-text-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.76rem;
}

body.storefront-checkout-page .storefront-order-summary dd {
  max-width: 68%;
  color: var(--checkout-text);
  font-weight: 750;
  text-align: right;
  overflow-wrap: anywhere;
}

body.storefront-checkout-page .storefront-order-summary .storefront-order-total {
  margin-top: 0.35rem;
  padding-top: 0.85rem !important;
  border-top: 1px solid var(--checkout-border-strong);
  color: var(--checkout-text);
  font-weight: 800;
}

body.storefront-checkout-page .storefront-order-summary .storefront-order-total dd {
  color: var(--checkout-primary);
  font-size: 1.1rem;
  font-weight: 850;
}

body.storefront-checkout-page .storefront-checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3.35rem;
  margin-top: 0.05rem;
  border: 1px solid var(--checkout-primary);
  border-radius: 0.95rem;
  color: #fff;
  background: var(--checkout-primary);
  box-shadow: none;
  font-family: 'Manrope', sans-serif;
  font-size: 0.84rem;
  font-weight: 800;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

body.storefront-checkout-page .storefront-checkout-button svg {
  width: 1rem;
  height: 1rem;
}

body.storefront-checkout-page .storefront-checkout-button:hover:not(:disabled) {
  border-color: var(--checkout-primary-deep);
  background: var(--checkout-primary-deep);
  box-shadow: 0 14px 28px rgba(36, 95, 71, 0.18);
  transform: translateY(-2px);
}

body.storefront-checkout-page .storefront-checkout-note {
  margin-top: -0.15rem;
  color: var(--checkout-text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.66rem;
  line-height: 1.5;
  text-align: center;
}

body.storefront-checkout-page .storefront-confirmation-dialog {
  border-color: var(--checkout-border);
  border-radius: var(--checkout-radius-xl);
  background: var(--checkout-surface);
  box-shadow: 0 26px 70px rgba(22, 45, 32, 0.18);
}



/* Dark mode */
html[data-theme='dark'] body.storefront-checkout-page {
  --checkout-canvas: #0d1712;
  --checkout-surface: #14231b;
  --checkout-surface-soft: #192b21;
  --checkout-surface-quiet: #112018;
  --checkout-text: #edf4ee;
  --checkout-text-soft: #c2cec4;
  --checkout-text-muted: #92a097;
  --checkout-primary: #9bcfaf;
  --checkout-primary-deep: #b6dec2;
  --checkout-border: #294236;
  --checkout-border-strong: #365447;
  --checkout-shadow: none;
  --checkout-shadow-strong: none;

  color-scheme: dark;
  background: var(--checkout-canvas);
}





html[data-theme='dark'] body.storefront-checkout-page .storefront-product-detail {
  background:
    radial-gradient(circle at 84% 6rem, rgba(73, 116, 88, 0.18), transparent 24rem),
    linear-gradient(180deg, #0f1a14 0%, var(--checkout-canvas) 60%, #0b140f 100%);
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-product-summary,
html[data-theme='dark'] body.storefront-checkout-page .storefront-product-terms,
html[data-theme='dark'] body.storefront-checkout-page .storefront-checkout-card,
html[data-theme='dark'] body.storefront-checkout-page .storefront-order-summary,
html[data-theme='dark'] body.storefront-checkout-page .storefront-confirmation-dialog {
  color: var(--checkout-text);
  border-color: var(--checkout-border);
  background: var(--checkout-surface);
  box-shadow: none;
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-detail-description-panel {
  border-top-color: var(--checkout-border);
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-product-summary-media,
html[data-theme='dark'] body.storefront-checkout-page .storefront-product-terms-heading > span,
html[data-theme='dark'] body.storefront-checkout-page .storefront-checkout-header > span,
html[data-theme='dark'] body.storefront-checkout-page .storefront-order-summary {
  border-color: var(--checkout-border);
  background: var(--checkout-surface-soft);
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-input,
html[data-theme='dark'] body.storefront-checkout-page .storefront-quantity-control,
html[data-theme='dark'] body.storefront-checkout-page #voucher-apply {
  color: var(--checkout-text);
  border-color: var(--checkout-border);
  background: var(--checkout-surface-quiet);
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-input:focus {
  border-color: rgba(155, 207, 175, 0.62);
  background: #13251b;
  box-shadow: 0 0 0 3px rgba(155, 207, 175, 0.1);
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-detail-fulfillment.is-instant,
html[data-theme='dark'] body.storefront-checkout-page .storefront-detail-stock.is-ready {
  color: var(--checkout-primary-deep);
  border-color: var(--checkout-border-strong);
  background: #1b3226;
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-detail-fulfillment.is-manual {
  color: #e0bd80;
  border-color: #5b4527;
  background: #2a2115;
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-detail-stock.is-out {
  color: #efaaa4;
  border-color: #5a312e;
  background: #2d1d1b;
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-checkout-button {
  color: #0b1a12;
  border-color: var(--checkout-primary);
  background: var(--checkout-primary);
}



@media (max-width: 1023px) {




  body.storefront-checkout-page .storefront-checkout-layout {
    grid-template-columns: 1fr;
  }

  body.storefront-checkout-page .storefront-checkout-card {
    position: static;
  }
}

@media (max-width: 639px) {










  body.storefront-checkout-page .storefront-header-whatsapp {
    display: grid;
    width: 2.6rem;
    height: 2.6rem;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--checkout-border);
    border-radius: 999px;
    color: #fff;
    background: var(--checkout-primary);
  }

  body.storefront-checkout-page .storefront-header-whatsapp svg {
    width: 1.1rem;
    height: 1.1rem;
  }

  body.storefront-checkout-page #storefront-mobile-whatsapp {
    display: none;
  }

  body.storefront-checkout-page .storefront-product-detail {
    min-height: calc(100vh - 4.25rem);
  }

  body.storefront-checkout-page .storefront-checkout-shell {
    width: min(100% - 1rem, 36rem);
    padding: 0.75rem 0 2.5rem;
  }

  body.storefront-checkout-page .storefront-back-link {
    margin-bottom: 0.55rem;
  }

  body.storefront-checkout-page .storefront-checkout-layout,
  body.storefront-checkout-page .storefront-product-summary {
    gap: 0.8rem;
  }

  body.storefront-checkout-page .storefront-product-summary {
    border-radius: 1.2rem;
  }

  body.storefront-checkout-page .storefront-product-summary-top {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
  }

  body.storefront-checkout-page .storefront-product-summary-media {
    width: 7rem;
    border-radius: 0.95rem;
  }

  body.storefront-checkout-page .storefront-detail-stock-mobile {
    display: none;
  }

  body.storefront-checkout-page .storefront-detail-stock-desktop {
    display: inline-flex;
  }

  body.storefront-checkout-page .storefront-detail-badges {
    gap: 0.35rem;
  }

  body.storefront-checkout-page .storefront-detail-fulfillment,
  body.storefront-checkout-page .storefront-detail-stock {
    min-height: 1.7rem;
    padding: 0.3rem 0.5rem;
    font-size: 0.52rem;
  }

  body.storefront-checkout-page .storefront-detail-title {
    margin-top: 0.55rem;
    font-size: 1.08rem;
    line-height: 1.12;
  }

  body.storefront-checkout-page .storefront-detail-price {
    margin-top: 0.28rem;
    font-size: 1.18rem;
  }

  body.storefront-checkout-page .storefront-detail-description-panel {
    padding: 0.9rem;
  }

  body.storefront-checkout-page .storefront-detail-description {
    margin-top: 0.55rem;
    font-size: 0.8rem;
    line-height: 1.58;
  }

  body.storefront-checkout-page .storefront-product-terms,
  body.storefront-checkout-page .storefront-checkout-card {
    border-radius: 1.2rem;
  }

  body.storefront-checkout-page .storefront-product-terms {
    padding: 0.95rem;
  }

  body.storefront-checkout-page .storefront-product-terms-heading p,
  body.storefront-checkout-page .storefront-product-terms ul {
    font-size: 0.76rem;
  }

  body.storefront-checkout-page .storefront-product-terms ul {
    margin-top: 0.85rem;
    line-height: 1.6;
  }

  body.storefront-checkout-page .storefront-checkout-card {
    padding: 1rem;
  }

  body.storefront-checkout-page .storefront-checkout-header h2 {
    margin-top: 0.72rem;
    font-size: 2rem;
    line-height: 1;
  }

  body.storefront-checkout-page .storefront-checkout-header p {
    font-size: 0.78rem;
  }

  body.storefront-checkout-page .storefront-checkout-form {
    gap: 0.9rem;
    margin-top: 1.1rem;
  }

  body.storefront-checkout-page .storefront-form-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  body.storefront-checkout-page .storefront-form-group > div.flex {
    grid-template-columns: 1fr;
  }

  body.storefront-checkout-page #voucher-apply {
    width: 100%;
  }

  body.storefront-checkout-page .storefront-order-summary {
    padding: 0.95rem;
  }

  body.storefront-checkout-page .storefront-order-summary dl > div {
    gap: 0.8rem;
    font-size: 0.74rem;
  }

  body.storefront-checkout-page .storefront-order-summary dd {
    max-width: 60%;
  }

  body.storefront-checkout-page .storefront-checkout-button {
    min-height: 3.2rem;
  }

  body.storefront-checkout-page .storefront-confirmation-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {


  body.storefront-checkout-page .storefront-product-summary-top {
    grid-template-columns: 5.75rem minmax(0, 1fr);
  }

  body.storefront-checkout-page .storefront-product-summary-media {
    width: 5.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.storefront-checkout-page .storefront-back-link,
  body.storefront-checkout-page #voucher-apply,
  body.storefront-checkout-page .storefront-checkout-button {
    transition: none;
  }
}

/* =========================================================
   STOREFRONT CHECKOUT — PREMIUM V3 POLISH
   Focused fixes: stable header geometry, aligned badges, and
   tighter product-summary rhythm. No copy or checkout logic.
   ========================================================= */

body.storefront-checkout-page .storefront-product-summary-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

body.storefront-checkout-page .storefront-detail-badges {
  min-height: 1.85rem;
  flex-wrap: nowrap;
  align-items: center;
}

body.storefront-checkout-page .storefront-detail-fulfillment,
body.storefront-checkout-page .storefront-detail-stock {
  flex: 0 0 auto;
  white-space: nowrap;
}

body.storefront-checkout-page .storefront-detail-stock-count {
  flex: 0 0 auto;
}

@media (max-width: 639px) {








  body.storefront-checkout-page .storefront-product-summary-top {
    grid-template-columns: 6.75rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.82rem;
  }

  body.storefront-checkout-page .storefront-product-summary-media {
    width: 6.75rem;
  }

  body.storefront-checkout-page .storefront-product-summary-copy {
    align-self: stretch;
    justify-content: center;
  }

  body.storefront-checkout-page .storefront-detail-badges {
    display: grid;
    width: 100%;
    min-height: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.32rem;
  }

  body.storefront-checkout-page .storefront-detail-fulfillment,
  body.storefront-checkout-page .storefront-detail-stock {
    width: 100%;
    min-width: 0;
    min-height: 1.72rem;
    padding: 0.3rem 0.4rem;
    gap: 0.25rem;
    overflow: hidden;
    font-size: 0.48rem;
    letter-spacing: 0.025em;
  }

  body.storefront-checkout-page .storefront-detail-fulfillment svg {
    width: 0.72rem;
    height: 0.72rem;
  }

  body.storefront-checkout-page .storefront-detail-stock-count {
    min-width: 1rem;
    height: 1rem;
    font-size: 0.52rem;
  }

  body.storefront-checkout-page .storefront-detail-title {
    width: 100%;
    margin-top: 0.62rem;
    font-size: 1.06rem;
    line-height: 1.12;
    text-align: left;
    overflow-wrap: anywhere;
  }

  body.storefront-checkout-page .storefront-detail-price {
    width: 100%;
    margin-top: 0.25rem;
    font-size: 1.16rem;
    text-align: left;
  }

  body.storefront-checkout-page .storefront-detail-unit-price {
    text-align: left;
  }
}

@media (max-width: 380px) {
  body.storefront-checkout-page .storefront-product-summary-top {
    grid-template-columns: 5.6rem minmax(0, 1fr);
    gap: 0.65rem;
  }

  body.storefront-checkout-page .storefront-product-summary-media {
    width: 5.6rem;
  }

  body.storefront-checkout-page .storefront-detail-fulfillment,
  body.storefront-checkout-page .storefront-detail-stock {
    padding-inline: 0.3rem;
    font-size: 0.45rem;
  }
}

/* =========================================================
   STOREFRONT CHECKOUT — V4 ALIGNMENT POLISH
   Focus: one header system, badge baseline consistency, and
   tighter product-description hierarchy. No copy or logic.
   ========================================================= */

/* Match the checkout header with the established storefront header geometry. */




















/* Both badges use one explicit row height and baseline. */
body.storefront-checkout-page .storefront-detail-badges {
  display: grid;
  width: max-content;
  max-width: 100%;
  min-height: 0;
  grid-auto-flow: column;
  grid-auto-columns: max-content;
  align-items: stretch;
  justify-content: start;
  gap: 0.48rem;
}

body.storefront-checkout-page .storefront-detail-fulfillment,
body.storefront-checkout-page .storefront-detail-stock {
  box-sizing: border-box;
  width: auto;
  min-width: 0;
  height: 2rem;
  min-height: 2rem;
  align-self: stretch;
  padding: 0 0.7rem;
  line-height: 1;
}

body.storefront-checkout-page .storefront-detail-fulfillment svg {
  width: 0.82rem;
  height: 0.82rem;
  flex: 0 0 0.82rem;
}

body.storefront-checkout-page .storefront-detail-stock > span,
body.storefront-checkout-page .storefront-detail-fulfillment {
  align-items: center;
}

/* Stronger section label and a shorter gap to the actual description. */
body.storefront-checkout-page .storefront-detail-description-panel {
  padding: 0.92rem 1.15rem 1rem;
}

body.storefront-checkout-page .storefront-detail-description-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--checkout-text);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.085em;
}

body.storefront-checkout-page .storefront-detail-description-label::before {
  content: '';
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 0.42rem;
  border-radius: 999px;
  background: var(--checkout-primary);
  box-shadow: 0 0 0 0.22rem rgba(47, 116, 88, 0.1);
}

body.storefront-checkout-page .storefront-detail-description-label::after {
  content: '';
  height: 1px;
  flex: 1 1 auto;
  background: var(--checkout-border);
}

body.storefront-checkout-page .storefront-detail-description {
  margin-top: 0.48rem;
  color: var(--checkout-text-soft);
  font-size: 0.9rem;
  line-height: 1.58;
}







html[data-theme='dark'] body.storefront-checkout-page .storefront-detail-description-label {
  color: var(--checkout-text);
}

@media (max-width: 767px) {










  body.storefront-checkout-page .storefront-detail-badges {
    width: max-content;
    max-width: 100%;
    grid-template-columns: repeat(2, max-content);
    grid-auto-flow: initial;
    gap: 0.34rem;
  }

  body.storefront-checkout-page .storefront-detail-fulfillment,
  body.storefront-checkout-page .storefront-detail-stock {
    width: auto;
    height: 1.78rem;
    min-height: 1.78rem;
    padding-inline: 0.48rem;
    font-size: 0.49rem;
  }

  body.storefront-checkout-page .storefront-detail-description-panel {
    padding: 0.82rem 0.9rem 0.9rem;
  }

  body.storefront-checkout-page .storefront-detail-description-label {
    gap: 0.45rem;
    font-size: 0.65rem;
    letter-spacing: 0.075em;
  }

  body.storefront-checkout-page .storefront-detail-description {
    margin-top: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.55;
  }
}

@media (max-width: 359px) {






  body.storefront-checkout-page .storefront-detail-badges {
    gap: 0.28rem;
  }

  body.storefront-checkout-page .storefront-detail-fulfillment,
  body.storefront-checkout-page .storefront-detail-stock {
    padding-inline: 0.38rem;
    font-size: 0.45rem;
  }
}

/* =========================================================
   STOREFRONT CHECKOUT — V5 HEADER PARITY
   The checkout route must not introduce a different header geometry.
   These values intentionally mirror the product catalog header to keep
   navigation visually consistent.
   ========================================================= */































































@media (max-width: 767px) {














  body.storefront-checkout-page .storefront-header-whatsapp {
    width: 2.6rem !important;
    height: 2.6rem !important;
    flex: 0 0 2.6rem !important;
    transition: none !important;
  }
}

@media (max-width: 359px) {








  body.storefront-checkout-page .storefront-header-whatsapp {
    width: 2.4rem !important;
    height: 2.4rem !important;
    flex-basis: 2.4rem !important;
  }
}

/* Product Variant V1 */
body.storefront-checkout-page .storefront-variant-fieldset {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    border: 0;
}

body.storefront-checkout-page .storefront-variant-fieldset legend {
    margin-bottom: .75rem;
    color: var(--storefront-ink, #0f172a);
    font-size: .83rem;
    font-weight: 800;
}

body.storefront-checkout-page .storefront-variant-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
}

body.storefront-checkout-page .storefront-variant-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    min-height: 4.25rem;
    padding: .8rem .9rem;
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
    border-radius: .95rem;
    background: color-mix(in srgb, var(--surface, #fff) 96%, transparent);
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.storefront-checkout-page .storefront-variant-option input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

body.storefront-checkout-page .storefront-variant-option:hover:not(.is-disabled) {
    transform: translateY(-1px);
}

body.storefront-checkout-page .storefront-variant-option.is-selected {
    border-color: currentColor;
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 10%, transparent);
}

body.storefront-checkout-page .storefront-variant-option.is-disabled {
    opacity: .45;
    cursor: not-allowed;
}

body.storefront-checkout-page .storefront-variant-option-copy {
    display: grid;
    gap: .15rem;
}

body.storefront-checkout-page .storefront-variant-option-copy strong {
    font-size: .86rem;
}

body.storefront-checkout-page .storefront-variant-option-copy small {
    color: var(--storefront-muted, #64748b);
    font-size: .72rem;
    line-height: 1.35;
}

body.storefront-checkout-page .storefront-variant-option-price {
    white-space: nowrap;
    font-size: .82rem;
    font-weight: 800;
}

@media (max-width: 640px) {
    body.storefront-checkout-page .storefront-variant-options {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   STOREFRONT CHECKOUT — ORDERED FLOW + VARIANT CLARITY
   One flat sequence: product choice → order data → voucher → summary.
   ========================================================= */
body.storefront-checkout-page .storefront-checkout-card {
  padding: 0;
  overflow: hidden;
}

body.storefront-checkout-page .storefront-checkout-card.has-checkout-form .storefront-checkout-form {
  gap: 0;
  margin-top: 0;
}

body.storefront-checkout-page .storefront-checkout-data-panel {
  display: grid;
  gap: 0;
  padding: 1.35rem 1.35rem 0;
}

body.storefront-checkout-page .storefront-checkout-header {
  margin-bottom: 0;
  padding-bottom: 1.15rem;
}

body.storefront-checkout-page .storefront-checkout-header h2 {
  margin-top: 0.7rem;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(1.45rem, 2.1vw, 1.85rem);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

body.storefront-checkout-page .storefront-checkout-header p {
  margin-top: 0.35rem;
  font-size: 0.76rem;
}

body.storefront-checkout-page .storefront-checkout-section {
  padding: 1.15rem 0;
  border-top: 1px solid var(--checkout-border);
}

body.storefront-checkout-page .storefront-checkout-section-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

body.storefront-checkout-page .storefront-checkout-section-heading.is-compact {
  margin-bottom: 0.7rem;
}

body.storefront-checkout-page .storefront-checkout-section-heading > span {
  display: grid;
  width: 1.7rem;
  height: 1.7rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  color: var(--checkout-primary-deep);
  background: var(--checkout-surface-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.58rem;
  font-weight: 850;
}

body.storefront-checkout-page .storefront-checkout-section-heading h3 {
  color: var(--checkout-text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

body.storefront-checkout-page .storefront-checkout-section-heading p {
  margin-top: 0.12rem;
  color: var(--checkout-text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.66rem;
  line-height: 1.45;
}

body.storefront-checkout-page .storefront-variant-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

body.storefront-checkout-page .storefront-variant-fieldset legend {
  margin-bottom: 0.5rem;
  color: var(--checkout-text-soft);
  font-family: 'Manrope', sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
}

body.storefront-checkout-page .storefront-variant-option {
  position: relative;
  border-color: var(--checkout-border-strong);
  background: var(--checkout-surface-quiet);
}

body.storefront-checkout-page .storefront-variant-option::before {
  content: '';
  position: absolute;
  inset-block: 0.7rem;
  inset-inline-start: -1px;
  width: 0.25rem;
  border-radius: 999px;
  background: transparent;
  transition: background-color 180ms ease;
}

body.storefront-checkout-page .storefront-variant-option:hover:not(.is-disabled) {
  border-color: color-mix(in srgb, var(--checkout-primary) 55%, var(--checkout-border));
  background: color-mix(in srgb, var(--checkout-primary) 5%, var(--checkout-surface));
}

body.storefront-checkout-page .storefront-variant-option.is-selected {
  border-color: var(--checkout-primary);
  color: var(--checkout-primary-deep);
  background: color-mix(in srgb, var(--checkout-primary) 11%, var(--checkout-surface));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--checkout-primary) 12%, transparent);
}

body.storefront-checkout-page .storefront-variant-option.is-selected::before {
  background: var(--checkout-primary);
}

body.storefront-checkout-page .storefront-variant-option.is-selected .storefront-variant-option-price {
  color: var(--checkout-primary-deep);
}

body.storefront-checkout-page .storefront-order-data-section {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

body.storefront-checkout-page .storefront-order-data-heading {
  margin: 0 0 0.6rem;
  padding-inline-start: 0.65rem;
  border-inline-start: 2px solid rgba(47, 116, 88, 0.45);
}

body.storefront-checkout-page .storefront-order-data-heading.is-contact-heading {
  margin-top: 1rem;
  padding-top: 0.85rem;
  padding-inline-start: 0;
  border-top: 1px dashed var(--checkout-border);
  border-inline-start: 0;
}

body.storefront-checkout-page .storefront-order-data-heading h4 {
  color: var(--checkout-text);
  font-family: 'Manrope', sans-serif;
  font-size: 0.73rem;
  font-weight: 850;
  line-height: 1.25;
}

body.storefront-checkout-page .storefront-order-data-heading p {
  margin-top: 0.08rem;
  color: var(--checkout-text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
  line-height: 1.4;
}

body.storefront-checkout-page .storefront-custom-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

body.storefront-checkout-page .storefront-custom-fields-grid > :only-child,
body.storefront-checkout-page .storefront-form-group.is-full-span,
body.storefront-checkout-page .storefront-robux-whatsapp {
  grid-column: 1 / -1;
}

body.storefront-checkout-page .storefront-robux-whatsapp {
  margin-top: 0.85rem;
  max-width: none;
}

body.storefront-checkout-page .storefront-robux-whatsapp small {
  display: block;
  margin-top: 0.35rem;
  color: var(--checkout-text-muted);
  font-family: 'Manrope', sans-serif;
  font-size: 0.62rem;
}

body.storefront-checkout-page .storefront-quantity-group {
  margin-top: 0;
}

body.storefront-checkout-page .storefront-quantity-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

body.storefront-checkout-page .storefront-quantity-control {
  width: 8.5rem;
  max-width: 100%;
  flex: 0 0 8.5rem;
}

body.storefront-checkout-page .storefront-quantity-notes {
  min-width: 0;
}

body.storefront-checkout-page .storefront-checkout-section.is-promo {
  padding-bottom: 1.3rem;
}

body.storefront-checkout-page .storefront-checkout-finalize {
  display: grid;
  gap: 0.85rem;
  padding: 1.15rem 1.35rem 1.35rem;
  border-top: 1px solid var(--checkout-border);
  background: var(--checkout-surface-quiet);
}

body.storefront-checkout-page .storefront-order-summary {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.storefront-checkout-page .storefront-order-summary dl {
  margin-top: 0.55rem;
}

body.storefront-checkout-page .storefront-order-summary dl > div {
  padding: 0.35rem 0;
}

body.storefront-checkout-page .storefront-order-summary .storefront-order-total {
  margin-top: 0.25rem;
  padding-top: 0.65rem !important;
}

html[data-theme='dark'] body.storefront-checkout-page .storefront-checkout-finalize {
  border-color: var(--checkout-border);
  background: var(--checkout-surface-quiet);
}

@media (min-width: 1024px) {
  body.storefront-checkout-page .storefront-checkout-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(27rem, 1.08fr);
    align-items: start;
  }

  body.storefront-checkout-page .storefront-checkout-card.has-checkout-form {
    align-self: start;
  }

  body.storefront-checkout-page .storefront-quantity-control {
    display: grid;
    grid-template-columns: 2.35rem 3.8rem 2.35rem;
  }
}

@media (max-width: 639px) {
  body.storefront-checkout-page .storefront-checkout-data-panel {
    padding: 1rem 1rem 0;
  }

  body.storefront-checkout-page .storefront-checkout-header h2 {
    font-size: 1.45rem;
  }

  body.storefront-checkout-page .storefront-checkout-section {
    padding: 1rem 0;
  }

  body.storefront-checkout-page .storefront-custom-fields-grid {
    grid-template-columns: 1fr;
  }

  body.storefront-checkout-page .storefront-quantity-row {
    align-items: flex-start;
    flex-direction: column;
  }

  body.storefront-checkout-page .storefront-quantity-control {
    flex-basis: auto;
  }

  body.storefront-checkout-page .storefront-checkout-finalize {
    padding: 1rem;
  }
}

/* =========================================================
   STOREFRONT CHECKOUT — ROBUX VARIANT CARDS
   Robux variants use a dedicated token icon and stay compact
   in a two-column mobile grid. Checkout behavior is unchanged.
   ========================================================= */
body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option {
  grid-template-columns: 2.45rem minmax(0, 1fr) auto;
  column-gap: 0.65rem;
}

body.storefront-checkout-page .storefront-variant-option-icon {
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 2.45rem;
  align-self: center;
  border-radius: 0.8rem;
  background-image: url('../../images/storefront/icons/robux-token.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 0.32rem 0.42rem rgba(36, 95, 71, 0.16));
  transition: transform 180ms ease, filter 180ms ease;
}

body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option.is-selected .storefront-variant-option-icon {
  transform: translateY(-1px) scale(1.04);
  filter: drop-shadow(0 0.42rem 0.55rem rgba(36, 95, 71, 0.24));
}

@media (max-width: 640px) {
  body.storefront-checkout-page .storefront-variant-options.is-robux {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option {
    grid-template-columns: 2rem minmax(0, 1fr);
    grid-template-areas:
      'icon copy'
      'price price';
    gap: 0.42rem 0.5rem;
    min-height: 6.1rem;
    padding: 0.68rem;
    border-radius: 0.9rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option::before {
    inset-block: 0.62rem;
    width: 0.2rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option::after {
    content: '✓';
    position: absolute;
    inset-block-start: 0.42rem;
    inset-inline-end: 0.42rem;
    display: grid;
    width: 1rem;
    height: 1rem;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--checkout-primary);
    font-family: 'Manrope', sans-serif;
    font-size: 0.58rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0;
    transform: scale(0.72);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option.is-selected::after {
    opacity: 1;
    transform: scale(1);
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-icon {
    grid-area: icon;
    width: 2rem;
    height: 2rem;
    flex-basis: 2rem;
    border-radius: 0.68rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-copy {
    grid-area: copy;
    min-width: 0;
    align-self: center;
    padding-inline-end: 0.8rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-copy strong {
    font-size: 0.76rem;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-copy small {
    display: -webkit-box;
    margin-top: 0.08rem;
    overflow: hidden;
    font-size: 0.6rem;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-price {
    grid-area: price;
    width: 100%;
    padding-top: 0.48rem;
    border-top: 1px solid var(--checkout-border);
    color: var(--checkout-text);
    font-size: 0.71rem;
    text-align: left;
  }

  html[data-theme='dark'] body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-price {
    border-top-color: var(--checkout-border);
  }
}

@media (max-width: 359px) {
  body.storefront-checkout-page .storefront-variant-options.is-robux {
    gap: 0.45rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    min-height: 5.8rem;
    padding: 0.58rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-icon {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-copy strong {
    font-size: 0.7rem;
  }

  body.storefront-checkout-page .storefront-variant-options.is-robux .storefront-variant-option-price {
    font-size: 0.66rem;
  }
}
