/*
 * renewa-brand.css — Renewa Lift brand layer
 *
 * Loaded AFTER next-core.css. next-core.css tokenizes its palette specifically so a
 * brand layer can override it, so section 1 below is the whole design system: colours,
 * type, radius. Sections 2+ only exist where the Figma diverges from the Olympus
 * component shape, not to restate what a token already handles.
 *
 * Source of truth: Figma "Renewa Lift (Copy)" — checkout-desktop 1:3415,
 * checkout-tablet 1:3963, checkout-mobile 1:4507.
 *
 * ponytail: font stack keeps 'Clofie' first. Clofie is licensed and is not served by
 * the storefront, so Figtree carries the design until the woff2 files land in
 * assets/fonts/ + an @font-face here — then Clofie takes over with no other change.
 */

/* ── 1. Tokens ───────────────────────────────────────────────────────────── */

:root {
  --_text---font-family--primary:
    "Clofie", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --_text---font-family--heading:
    "Clofie", "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Surfaces */
  --brand--color--background: #fdf8f1; /* page cream */
  --brand--color--surface: #f3eee7; /* brand tint — review cards, guarantee */
  --brand--color--foreground: #263a51;
  --brand--color--border: #e2dcd3;

  /* Brand */
  --brand--color--primary: #263a50;
  --brand--color--primary-dark: #263a50;
  --brand--color--primary-light: #c6d4ee; /* blue panels: promo message, bump header */
  --brand--color--primary-lighter: #f2faff; /* palest blue: gift cards, savings row */
  --brand--color--primary-foreground: #ffffff;
  --brand--color--cta-primary: #c61d66; /* magenta CTA */

  /* Text */
  --brand--color--text-primary: #4b5f72;
  --brand--color--text-secondary: #4b5f72;
  --brand--color--text-muted: #767676;
  --brand--color--rating-star: #f5a623;

  /* Pills — "45% OFF" / "FREE" are the verified green; badges are navy */
  --brand--color--pill-primary: #ffffff;
  --brand--color--pill-primary-surface: #139c0a;
  --brand--color--pill-secondary: #ffffff;
  --brand--color--pill-secondary-surface: #263a50;

  --system-colors--success: #139c0a;
  --system-colors--success-medium: #139c0a;
  --system-colors--destructive: #b70101;

  /* Radius — Figma: cards 12, fields/buttons 8, pills fully round */
  --radius-size--base: 12px;
  --radius-size--buttons: 8px;
  --radius--cards: 4px;
  --radius--input: 8px;
  --radius--button: 8px;
  --radius--selector: 12px;
  --radius--label: 4px;

  /* Renewa-only values, no next-core equivalent */
  --renewa--pill-radius: 999px;
  --renewa--card-border: 1px solid #e2dcd3;
  --renewa--card-border-selected: 2px solid #263a50;
}

body {
  background-color: var(--brand--color--background);
  color: var(--brand--color--text-primary);
  font-family: var(--_text---font-family--primary);
}

/* The checkout section ships a grey wash; the design is cream end to end. */
.section-checkout,
.section-checkout.cc-gray {
  background-color: var(--brand--color--background);
}

/* ── 2. Header ───────────────────────────────────────────────────────────── */

/* Logo is a 279×21 wordmark — sizing by height keeps it legible where a width
   would squash it to ~11px tall. */
.brand-logo {
  width: auto;
  height: 21px;
}

.checkout-header {
  background-color: #ffffff;
}

.checkout-header__extras .mg-text,
.checkout-header__extras .questions-text {
  color: var(--brand--color--text-primary);
  font-size: var(--font-size--base);
  font-weight: 500;
  line-height: 1.3;
}

.checkout-header__extras .questions-text {
  border-left: 1px solid var(--brand--color--border);
  padding-left: 12px;
}

.link-tel {
  color: var(--brand--color--text-primary);
  text-decoration: none;
}

/* Secure-checkout band: pale blue, not grey. */
.encrypted-banner {
  background-color: var(--brand--color--primary-light);
  color: var(--brand--color--primary);
}

.scarcity-banner__content .text-sm {
  font-weight: 500;
}

/* ── 3. Static promo bar ─────────────────────────────────────────────────── */

.renewa-promo-bar {
  background-color: var(--brand--color--primary);
  color: var(--brand--color--primary-foreground);
  font-size: var(--font-size--base);
  font-weight: 700;
  letter-spacing: -0.02em;
  padding: 8px 16px;
  text-align: center;
}

/* Reserve the promo-timer's height before its JS defines the element, so the
   form below doesn't jump when it renders (measured: 48px desktop, 63px on
   phones where the message wraps). */
promo-timer {
  display: block;
  min-height: 48px;
}

/* Gallery: reserve the square stage before lazy slides and Swiper arrive, so
   the thumb strip and form below don't jump (CLS). */
.swiper-slide_image-wrap.is-square,
.swiper-slide.is-thumb .swiper-slide_image-wrap {
  aspect-ratio: 1 / 1;
}

/* Pre-init thumb slides split the row evenly, so together with the square
   aspect above the strip holds ~its final height before images/Swiper land. */
[swiper="slider-thumbs"]:not(.swiper-initialized) .swiper-slide {
  flex: 1 1 0;
}

@media (max-width: 600px) {
  promo-timer {
    min-height: 63px;
  }
}

/* ── 4. Product heading ──────────────────────────────────────────────────── */

.heading-box .display-md,
.checkout-layout__right .display-md {
  color: var(--brand--color--text-primary);
  font-family: var(--_text---font-family--heading);
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.2;
}

.hero_review-box .review_component-wrapper > div,
.review_component-wrapper > div {
  font-size: var(--font-size--sm);
  font-weight: 600;
  letter-spacing: normal;
  color: #000;
}

/* ── 5. Step headings ────────────────────────────────────────────────────── */

.renewa-step-title,
.checkout__section-title,
.form-section__title {
  color: var(--brand--color--text-primary);
  font-size: 1.125rem;
  font-weight: 700;
  /* margin: 0 0 12px; */
}

/* ── 6. Bundle selector ──────────────────────────────────────────────────── */

.os-card {
  background-color: #ffffff;
  border: var(--renewa--card-border);
  border-radius: var(--radius--cards);
}

.os-card.next-selected,
.os-card[data-next-selected="true"] {
  border: var(--renewa--card-border-selected);
}

.os-card__title {
  color: var(--brand--color--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

/* Discount pill sits inline after the title: green, fully round. */
.os-card__title-badge.pb--bestseller {
  background-color: var(--brand--color--pill-primary-surface);
  border-radius: var(--renewa--pill-radius);
  color: var(--brand--color--pill-primary);
  font-size: 14px;
  font-weight: 700;
  padding: 5px 10px;
}

.os-card__subtitle-text {
  color: var(--system-colors--success);
  font-size: var(--font-size--base);
  font-style: italic;
  font-weight: 700;
}

/* Figma prices the card as compare-struck + total only — no "/ea" row and no
   "Total:" label. Both are SDK-populated, so hide rather than restructure. */
.os-card__price-container,
.os-card__total-label,
.os-card__total-compare + .os-card__total-compare {
  display: none;
}

.os-card__total-container {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.os-card__total-compare {
  color: var(--brand--color--text-primary);
  font-size: var(--font-size--base);
  position: relative;
  /* text-decoration: line-through; */
  opacity: 0.5 !important;
  font-weight: 700 !important;
}

.os-card__total-compare::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  border-top: 1px solid #f20404 !important;
  transform: rotate(-10deg);
  transform-origin: center;
}

.os-card__total-current,
.os-card__total-current.os-dark {
  color: var(--brand--color--text-primary);
  font-size: 1.25rem;
  font-weight: 700;
}

/* "MOST POPULAR" / "BEST DEAL" ride the top edge of the card. */
.os-card__label-2 {
  background-color: var(--brand--color--pill-secondary-surface);
  border-radius: var(--radius--label);
  color: var(--brand--color--pill-secondary);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 10px;
  text-transform: uppercase;
}

.os-card__label-2.os-card__label--pill-secondary {
  background-color: var(--brand--color--primary-light);
  color: var(--brand--color--primary);
}

.os-card__label-2 .card-icons {
  display: none;
}

/* ── 7. Free-gift unlock row ─────────────────────────────────────────────── */

.renewa-gifts__heading {
  align-items: center;
  color: #000;
  display: flex;
  font-size: 1.125rem;
  font-weight: 700;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.renewa-gifts__heading::before,
.renewa-gifts__heading::after {
  background-color: var(--brand--color--border);
  content: "";
  flex: 1;
  height: 1px;
}

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

.renewa-gift__media {
  align-items: center;
  background-color: var(--brand--color--primary-lighter);
  border: 1px dashed #263a50;
  /* border-radius: var(--radius--cards); */
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  /* Fixed height, not min-height: a locked tile has no image, so a min-height
     would let it end up shorter than its unlocked neighbours. */
  height: 110px;
  overflow: hidden;
  /* padding: 10px; */
}

.renewa-gift__media img {
  height: auto;
  max-height: 100%;
  width: auto;
}

.renewa-gift__title {
  color: var(--brand--color--text-primary);
  font-size: var(--font-size--sm);
  font-weight: 700;
  line-height: 1.2;
  margin-top: 8px;
  text-align: center;
}

.renewa-gift__pricing {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 4px;
}

.renewa-gift__compare {
  color: #263a51;
  font-size: 1rem;
  position: relative;
  font-weight: 700;
  opacity: 0.5;
}
.renewa-gift__compare::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  right: 0;
  border-top: 1px solid #f20404 !important;
  transform: rotate(-10deg);
  transform-origin: center;
}
.renewa-gift__free {
  background-color: var(--system-colors--success);
  border-radius: var(--renewa--pill-radius);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 2px 10px;
}

/* Locked tier: dark panel with the unlock condition instead of the product shot. */
.renewa-gift__unlock {
  display: none;
}

.renewa-gift--locked .renewa-gift__media img {
  display: none;
}

.renewa-gift--locked .renewa-gift__unlock {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.renewa-gift__unlock svg {
  flex: 0 0 auto;
}

.renewa-gift--locked .renewa-gift__media {
  background-color: #262625;
  border: none;
  color: #ffffff;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.renewa-gift--locked .renewa-gift__unlock {
  font-size: var(--font-size--base);
  line-height: 1.25;
}

.renewa-gift--locked .renewa-gift__unlock strong {
  display: block;
}

/* ── 8. Form fields ──────────────────────────────────────────────────────── */

.checkout__form input,
.checkout__form select,
.form-input,
input.next-input,
select.next-select {
  background-color: #ffffff;
  border: 1px solid var(--brand--color--border);
  border-radius: var(--radius--input);
  color: var(--brand--color--text-primary);
  font-family: var(--_text---font-family--primary);
  font-size: var(--font-size--sm);
}

/* next-core sets 0.925rem on .input-flds; the design is a flat 14px everywhere. */
.input-flds,
.input-flds.select-field {
  font-size: var(--font-size--sm);
}

.form-section__subtitle {
  font-size: var(--font-size--sm);
}

/* "Use shipping address as billing address" — Figma 14px / 400 / lh 18px
   (next-core renders it at 10.4px). */
.checkout__checkbox .checkbox__label {
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
}

/* "OR" divider between express checkout and the form — Figma 700. */
.divider-section__text-v2 {
  font-weight: 700;
}

.checkout__form input::placeholder,
.form-input::placeholder {
  color: #888888;
}

/* ── 9. Order bump ───────────────────────────────────────────────────────── */

.bump-card {
  background-color: #ffffff;
  border: 1px solid var(--brand--color--primary-light);
  border-radius: var(--radius--cards);
  overflow: hidden;
}

.bump-card .bump__header-left {
  background-color: var(--brand--color--primary-light);
  padding: 12px 16px;
}

.bump-card .bump__title {
  color: var(--brand--color--primary);
  font-size: 1.125rem;
  font-weight: 700;
}

.bump-card .bump__checkbox .checkbox__icon {
  background-color: var(--brand--color--primary);
  border-radius: var(--radius-size--sm);
  color: #ffffff;
}

.bump-card .bump__price-reg {
  color: var(--brand--color--text-muted);
  text-decoration: line-through;
}

.bump-card .bump__price-sale,
.bump-card .bump__price-total {
  color: var(--brand--color--text-primary);
  font-weight: 700;
}

.bump-card .list__item {
  color: var(--brand--color--text-secondary);
  font-size: 12px;
}

.bump-card .list_icon {
  color: var(--brand--color--primary);
}

/* ── 10. Order summary ───────────────────────────────────────────────────── */

.renewa-summary-head {
  border-bottom: 1px solid var(--brand--color--border);
  display: flex;
  font-size: 1.125rem;
  font-weight: 700;
  justify-content: space-between;
  padding: 16px 20px;
}

.cart-item__title,
.order-totals__label {
  color: var(--brand--color--text-primary);
}

.cart-item__title {
  font-size: 18px;
  font-weight: 700;
}

/* Summary prices — Figma 20px/700 on desktop and tablet (16px stays on mobile
   via the ≤767 override). The FREE label keeps its own 20px/500 rule. */
.cart-item__pricing {
  font-size: 20px;
  font-weight: 700;
}

.cart-item__pricing .diagonal-strike {
  font-weight: 700;
}

/* Tooltips dismiss snappily — the SDK injects a 0.2s fade; doubled class
   beats the runtime-injected rule on specificity. */
.next-tooltip.next-tooltip {
  transition-duration: 80ms;
}

/* $0.00 gift lines are relabelled "FREE" (see checkout.html observer).
   Figma: Clofie 20px / 500 / lh 27px, text-primary #263A51. Family inherits
   from the body stack (Clofie -> Figtree). */
.checkout__line-item__final-price.is-free {
  color: var(--brand--color--foreground);
  font-size: 20px;
  font-weight: 500;
  line-height: 27px;
}

.order-totals__label--total,
.order-totals__value--total {
  font-size: 1.125rem;
  font-weight: 700;
}

/* "Your Savings" row ships tw-600 utilities; the design is 700. */
.os-cart-summary-row--discount .tw-600 {
  font-weight: 700;
}

.order-totals__line.order-totals__line--total {
  font-size: 18px !important;
}

.line-compare,
.diagonal-strike {
  color: var(--brand--color--text-muted);
}

/* Savings row: pale blue band, green figure. */
.order-totals__section--inset {
  background-color: var(--brand--color--primary-lighter);
}

.o-cart-summary-row--discount .order-totals__value,
.order-totals__discount-list .order-totals__value {
  color: var(--brand--color--text-secondary);
  font-weight: 400;
}

/* ── 11. Submit block ────────────────────────────────────────────────────── */

.submit-section__disclaimer {
  color: var(--brand--color--text-secondary);
  font-size: 12px;
  text-align: center;
}

.submit-button {
  background-color: var(--brand--color--cta-primary);
  border: none;
  border-radius: var(--radius--button);
  color: #ffffff;
  padding: 18px 20px;
  width: 100%;
}

.submit-button:hover {
  background-color: #ad1859;
}

.submit-button__main-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.submit-button__subtext {
  font-size: var(--font-size--sm);
  font-weight: 400;
  letter-spacing: -0.005em;
  opacity: 1;
  text-transform: uppercase;
}

/* ── 12. Trust bar, guarantee, reviews, footer ───────────────────────────── */

.checkout-trust-bar {
  color: var(--brand--color--text-primary);
}

.olympus-guarantee,
.checkout-guarantee {
  background-color: transparent;
  color: var(--brand--color--text-secondary);
}

.checkout-review {
  background-color: var(--brand--color--surface);
  border: none;
  border-radius: var(--radius--cards);
}

.checkout-review__title {
  color: var(--brand--color--text-primary);
  font-size: 1rem;
  font-weight: 700;
}

.checkout-review__description {
  font-size: 1rem;
  font-weight: 500;
  color: var(--brand--color--text-secondary);
}

.review-auth {
  font-weight: 700;
}

.icon-image .text-xs {
  color: var(--brand--color--text-primary);
  font-size: var(--font-size--sm);
  font-weight: 700;
}

.payment-method__title {
  font-size: var(--font-size--base);
  font-weight: 700;
}

.trust-badge--text {
  font-weight: 700;
}

.footer_section {
  background-color: var(--brand--color--primary);
  color: #ffffff;
}

.footer_link-wrapper {
  font-size: var(--font-size--xs);
}

.footer_legal-link {
  color: #ffffff;
  text-decoration: underline;
}

.footer_section .text-xs {
  color: #ffffff;
}
.guarantee-section .text-xs {
  font-size: 16px;
  /* Figma sets the whole guarantee paragraph to 700, not just the lead-in. */
  font-weight: 700;
}
/* ── 13. Breakpoints ─────────────────────────────────────────────────────── */

/* Tablet (1:3963) keeps the two-column shape until the checkout column can no
   longer hold the summary; mobile (1:4507) is one centred column. */
@media (max-width: 991px) {
  /* Figma tablet header is cream, not white (desktop stays white). next-core
     paints .checkout-header__inner white at this width and it covers nearly
     the whole header, so the inner must go transparent too. */
  .checkout-header {
    background-color: var(--brand--color--background);
  }

  .checkout-header__inner {
    background-color: transparent;
  }

  /* Guarantee text steps down to 14px on tablet. */
  .checkout-header__extras .mg-text {
    font-size: var(--font-size--sm);
  }

  /* Figma tablet keeps the phone line at 14px/500 — hidden only on phones. */
  .checkout-header__extras .questions-text {
    font-size: var(--font-size--sm);
  }

  /* Figma tablet shows two review cards side by side; next-core stacks them here. */
  .checkout-reviews {
    display: grid;
  }

  /* next-core adds -0.02em tracking to .text-reg at this width; Figma has none. */
  .heading-box .text-reg {
    letter-spacing: normal;
  }
}

@media (max-width: 767px) {
  .checkout-header__extras .questions-text {
    display: none;
  }

  .checkout-header__extras .mg-text {
    font-size: 12px;
  }

  .scarcity-banner__content .text-sm {
    font-size: 12px;
  }

  .icon-image .text-xs {
    font-size: 12px;
    line-height: 1.2;
  }

  .renewa-gift--locked .renewa-gift__unlock {
    font-size: var(--font-size--sm);
  }

  .checkout-reviews {
    display: flex;
    flex-flow: column;
  }
  .heading-box .display-md,
  .checkout-layout__right .display-md {
    font-size: 28px;
    text-align: center;
  }

  .heading-box .text-reg,
  .heading-box .hero_review-box {
    text-align: center;
  }

  .heading-box .review_component-wrapper {
    justify-content: center;
  }

  .submit-button__main-text {
    font-size: 1.125rem;
  }

  /* M22: static centred line per Figma — the marquee was a dev addition. */
  .renewa-promo-bar {
    font-size: var(--font-size--sm);
  }

  /* next-core stacks the wrapper at 991px but keeps its 3rem gap — too airy once
     the columns are on top of each other. */
  .checkout-wrapper {
    grid-column-gap: 2rem;
    grid-row-gap: 2rem;
  }

  .os-card__title {
    font-size: 18px;
  }

  .os-card__total-current,
  .os-card__total-current.os-dark {
    font-size: 20px;
  }

  /* Gift tiles are too narrow on phones for the lock + copy side by side. */
  .renewa-gift--locked .renewa-gift__unlock {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }

  .checkbox__icon {
    width: 24px;
    min-width: 24px;
    height: 24px;
    min-height: 24px;
  }

  .cart-box {
    padding: 20px 12px;
  }

  /* next-core adds 1rem top/bottom padding under 991px. */
  .order-summary {
    padding: 0;
  }

  .cart-item__title {
    font-size: 18px;
  }

  .cart-item__pricing {
    font-size: 16px;
  }

  .cart-item__content {
    align-items: start;
  }

  .order-totals {
    font-size: 14px;
  }

  .order-totals__label.text-muted:first-of-type {
    max-width: 70%;
  }

  /* Bleed the inset section to the card edge (cart-box has 12px side padding). */
  .order-totals__section--inset {
    margin-left: -12px;
    margin-right: -12px;
    padding: 0.5rem 12px;
  }

  .submit-section__disclaimer,
  .submit-button__subtext {
    font-size: 12px;
  }

  .checkout-trust-bar {
    padding: 0;
  }

  .trust-badge--text {
    font-size: 12px;
  }

  .credit-card__flags {
    max-width: unset;
  }

  .checkout-review {
    padding: 1rem;
  }

  .guarantee-badge {
    width: 60px;
  }

  .guarantee-section .text-xs {
    font-size: 14px;
  }

}

/* ── 14. Corrections from the live-vs-Figma comparison ───────────────────── */

.review_component-star svg,
.review_stars-wrapper svg {
  color: var(--brand--color--rating-star);
}

/* Header seal is 58×58 in the design. */
.checkout-header__extras .mg-image {
  height: 58px;
  width: 58px;
}

/* Bundle cards: white when selected, and no product thumbnail — the design's
   card is radio + title + savings + price. */
.os-card.next-selected,
.os-card.next-selected .os-card__content {
  background-color: #ffffff;
}

.os-card .os-card__image-slot {
  display: none;
}

/* Tier badges are navy ("MOST POPULAR") and pale blue ("BEST DEAL"); the green
   pill tokens belong to the discount badge, not to these. */
.os-card__label-2.os-card__label--pill-primary {
  background-color: var(--brand--color--primary);
  color: #ffffff;
}

.os-card__label-2.os-card__label--pill-secondary {
  background-color: var(--brand--color--primary-light);
  color: var(--brand--color--primary);
}

.bump__price-unit {
  font-size: 18px !important;
}

/* Bump: price is a flat pair ($19.99 struck + $9.00), no per-unit suffix, and the
   shield keeps its designed 100×100 box. */
.bump-card .bump__price-unit .text-xl {
  display: none;
}

.bump-card .bump__price-row {
  align-items: baseline;
  display: flex;
  gap: 10px;
}

.bump-card .bump__image img,
.bump-card .bump__image svg {
  height: 100px;
  width: 100px;
}

/* Savings row: amount only, in green. */
.os-cart-summary-row--discount .accordion__right > .order-totals__label {
  display: none;
}

.os-cart-summary-row--discount .order-totals__value.cc-disc {
  color: var(--system-colors--success);
}

/* Benefit icons sit on the page background in the design, not in a grey tile. */
.icon-image .icon-img {
  background-color: transparent;
  height: 40px;
  width: 40px;
}

/* Merchant's five-star image (174×28) replaces the template's inline star SVGs. */
.star_wrapper .renewa-stars {
  display: block;
  height: 15px;
  width: auto;
}

/* Phones: the 279px wordmark plus the guarantee block is a tight single row. */
@media (max-width: 479px) {
  .brand-logo {
    height: 11px;
  }

  .checkout-header__extras .mg-image {
    height: 44px;
    width: 44px;
  }

  .checkout-header__extras .mg-text {
    font-size: 12px;
    width: 100px;
  }

  /* Narrow phones: let the guarantee copy wrap naturally instead of at the <br>. */
  .checkout-header__extras .mg-text br {
    display: none;
  }
  .scarcity-banner__content .text-sm {
    font-size: 12px;
  }
}

/* Long package names ("2 RenewaLift Device + 6 Swiss Niacinamide Serum") must wrap
   inside the card instead of pushing the title 453px wide. */
.os-card__title-wrapper {
  flex-wrap: wrap;
}

.os-card__title {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* next-core sets .os-card__title { flex: none }, so a long package name
   ("2 RenewaLift Device + 6 Swiss Niacinamide Serum") never shrinks and runs past
   the card edge on narrow screens. */
.os-card__main-slot,
.os-card__title-section {
  min-width: 0;
}

.os-card__title {
  flex: 0 1 auto;
  min-width: 0;
}

/* Gift tiles are narrow on phones — keep the label and pricing legible. */
@media (max-width: 479px) {
  .renewa-gift__media {
    padding: 6px;
  }

  .renewa-gift__compare {
    font-size: 14px;
  }

  .renewa-gift__free {
    font-size: 12px;
  }
}

/* ── 15. Upsell (Figma upsell-eyelift 1:5045 / 1:5913 / 1:6728) ──────────── */

/* Top promo strip: pale blue band, navy copy — not the navy bar next-core ships. */
.announcement__block {
  background-color: var(--brand--color--primary-light);
  padding-top: 8px;
  padding-bottom: 8px;
}

.announcement__text {
  color: var(--brand--color--primary);
  font-size: var(--font-size--base);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.upsell-header-bar__step {
  justify-content: center;
}

.upsell-header-bar__step-label {
  font-size: 18px;
  letter-spacing: -0.005em;
  line-height: 1;
}

/* Breadcrumb separator is a 12px caret, not a text chevron. */
.upsell-header-bar__step-label--arrow {
  align-items: center;
  color: var(--brand--color--primary);
  display: flex;
  line-height: 0;
}

/* Hero: navy band, headline + one accented subline. */
.upsell-header__title {
  font-size: 44px;
  letter-spacing: -0.005em;
}

.upsell-header__offer {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}

/* One-shot on load: each ✨ pops in and shakes once, then sits still. */
.upsell-header__sparkle {
  animation: renewa-sparkle 1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  display: inline-block;
  transform-origin: center;
}

.upsell-header__sparkle:last-child {
  animation-delay: 0.18s;
}

@keyframes renewa-sparkle {
  0% {
    opacity: 0;
    transform: scale(0.2) rotate(-20deg);
  }
  40% {
    opacity: 1;
    transform: scale(1.25) rotate(8deg);
  }
  55% {
    transform: scale(1) rotate(-10deg);
  }
  70% {
    transform: scale(1) rotate(8deg);
  }
  85% {
    transform: scale(1) rotate(-4deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .upsell-header__sparkle {
    animation: none;
  }
}

/* Figma keeps the whole subline at weight 400 — the 800 accent was a dev addition. */
.upsell-header__accent {
  color: var(--brand--color--primary-light);
  font-weight: 400;
}

/* Offer card: white, hairline border, 8px radius — next-core ships a shadowed
   pale-blue container. */
.upsell-container {
  background-color: #ffffff;
  border: 1px solid #c7c7c7;
  border-radius: 8px;
  box-shadow: none;
}

.upsell-offer__card {
  gap: 16px;
  padding: 24px 20px;
}

/* next-core spaces the card children with margins; the design is a gap stack. */
.upsell-offer__card > .divider_line,
.upsell-offer__card > .divider_line._25,
.upsell-offer__card > .divider_line.margin-32 {
  margin-top: 0;
  margin-bottom: 0;
}

.upsell-offer__stock {
  align-items: center;
  color: var(--system-colors--success);
  display: flex;
  font-size: var(--font-size--base);
  font-weight: 700;
  gap: 4px;
}

.upsell-offer__stock svg {
  flex: 0 0 auto;
}

/* Live "in stock" indicator: the faint outer ring breathes outward. */
.upsell-offer__stock svg circle:first-child {
  animation: renewa-stock-pulse 1.8s ease-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes renewa-stock-pulse {
  0% {
    opacity: 0.25;
    transform: scale(0.75);
  }
  70% {
    opacity: 0;
    transform: scale(1.35);
  }
  100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

@media (prefers-reduced-motion: reduce) {
  .upsell-offer__stock svg circle:first-child {
    animation: none;
  }
}

.upsell-offer__title {
  color: var(--brand--color--foreground);
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  margin: 0;
}

.upsell-offer__subtitle {
  color: var(--brand--color--foreground);
  font-size: var(--font-size--lg);
  font-weight: 500;
  line-height: 1.5;
}

.upsell-offer__bullets {
  width: 100%;
}

.upsell-offer__bullets .bullet_inner-one {
  gap: 12px;
  width: 100%;
}

.upsell-offer__bullets .bullet-features-icon-box {
  width: 24px;
  flex: 0 0 24px;
}

.upsell-offer__bullets .bullet-features-text-box {
  flex: 1 1 auto;
  width: auto;
}

.upsell-offer__bullet-text {
  color: var(--brand--color--foreground);
  font-size: var(--font-size--base);
  font-weight: 500;
  line-height: 1.5;
}

/* Quantity stepper: navy filled buttons on a hairline-bordered row. */
.next-bundle-qty {
  margin-bottom: 0;
  gap: 12px;
}

.next-bundle-qty__label {
  color: var(--brand--color--foreground);
  font-size: var(--font-size--lg);
  font-weight: 700;
  gap: 8px;
}

.next-bundle-qty__label .right-bullet-icon {
  width: 16px;
}

.next-bundle-qty__row {
  border-color: #f4eef1;
  gap: 12px;
  padding: 9px;
}

.next-bundle-qty__btn {
  background-color: var(--brand--color--primary);
  border-color: var(--brand--color--primary);
  color: #ffffff;
}

/* Tier cards (upsell 2): three selectable bundle cards instead of the stepper.
   Selected state is the SDK's .next-selected. */
.upsell-tier {
  width: 100%;
}

.upsell-tier__label {
  color: var(--brand--color--foreground);
  font-size: var(--font-size--lg);
  font-weight: 700;
  /* Clears the badges that sit on the card tops. */
  margin-bottom: 20px;
  text-align: center;
}

.upsell-tier__grid {
  display: flex;
  gap: 16px;
  width: 100%;
}

.upsell-tier__card {
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex: 1 1 0;
  flex-flow: column;
  gap: 8px;
  min-width: 0;
  padding: 20px 17px 16px;
  position: relative;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}

.upsell-tier__card.next-selected {
  background-color: var(--brand--color--primary-lighter);
  border: 2px solid var(--brand--color--primary);
}

.upsell-tier__badge {
  background-color: var(--brand--color--primary);
  border-radius: 4px;
  color: #ffffff;
  font-size: var(--font-size--sm);
  font-weight: 700;
  left: 50%;
  line-height: 1;
  padding: 4px 8px;
  position: absolute;
  text-transform: uppercase;
  top: -11px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.upsell-tier__badge--deal {
  background-color: #ff4678;
}

.upsell-tier__media {
  align-items: center;
  display: flex;
  height: 102px;
  justify-content: center;
  width: 100%;
}

.upsell-tier__media img {
  height: 100%;
  object-fit: contain;
  width: auto;
}

.upsell-tier__name {
  color: var(--brand--color--primary);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}

.upsell-tier__price {
  color: var(--brand--color--cta-primary);
  font-size: var(--font-size--base);
  line-height: 1.5;
  text-align: center;
}

.upsell-tier__compare {
  color: #888888;
  margin-right: 4px;
  text-decoration: line-through;
}

.upsell-tier__compare:empty {
  display: none;
}

/* Price pair. */
.prices-text-wrapper {
  gap: 32px;
  margin-bottom: 0;
  margin-top: 24px;
}

.upsell-offer__price-label {
  color: var(--brand--color--foreground);
  font-size: var(--font-size--lg);
  font-weight: 700;
}

.upsell-offer__price {
  color: var(--brand--color--foreground);
  font-size: 32px;
}

/* Half-strength navy rather than opacity: the SDK writes an inline opacity on
   display nodes, and fading the element would fade the red strike with it. */
.upsell-offer__price.diagonal-strike {
  color: rgba(38, 58, 81, 0.5);
}

.upsell-offer__price-note {
  color: var(--brand--color--foreground);
  font-size: var(--font-size--lg);
  font-weight: 700;
}

/* These two carry .color-success from next-core, which ties on specificity with
   the rules above and loses on order — restate the green here. */
.upsell-offer__price-label.color-success,
.upsell-offer__price-note.color-success {
  color: var(--system-colors--success);
}

.upsell-offer__divider {
  height: auto;
  align-self: stretch;
}

.upsell-offer__cta {
  background-color: var(--brand--color--cta-primary);
  border-color: var(--brand--color--cta-primary);
  font-size: var(--font-size--lg);
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-top: 20px;
  min-height: 64px;
  text-transform: uppercase;
  width: 100%;
}

/* Shipping note: hairline box, not the 2px navy next-core draws. */
.upsell-ships-info {
  border: 2px solid #f4eef1;
  border-radius: 4px;
  gap: 16px;
  margin-top: 20px;
  padding: 8px 12px;
}

.upsell-ships-info__icon {
  height: 60px;
  margin-right: 0;
}

.upsell-ships-info__text {
  font-size: var(--font-size--sm);
  line-height: 1.5;
  margin: 0;
}

/* Gallery column sits on the palest blue panel. */
.upsell-offer__image-column {
  /* next-core centres this column; stretch is what makes the pale-blue panel run
     the full card height. A percentage height here resolves shorter than the row
     and breaks it, so there is deliberately no `height`. */
  align-self: stretch;
  background-color: var(--brand--color--primary-lighter);
  display: flex;
  flex-flow: column;
  gap: 20px;
  padding: 20px;
}

.upsell-offer__image-column .payment-img-wrapper {
  align-items: center;
  gap: 12px;
}

.badge-text-black {
  color: var(--brand--color--cta-primary);
  font-size: var(--font-size--sm);
  font-weight: 400;
}

/* Inline lock icon: takes its colour from the badge, and keeps its aspect when
   next-core narrows the width on small screens. */
svg.trust-badge__icon {
  color: var(--brand--color--cta-primary);
  flex: 0 0 auto;
  height: auto;
}

.upsell-offer__decline-text {
  color: var(--brand--color--foreground);
  font-size: var(--font-size--base);
  text-decoration: underline;
}

@media (max-width: 991px) {
  /* Tablet and phone are the same stack: gallery first, copy below. */
  .upsell-offer__image-column {
    background-color: transparent;
    padding: 12px;
  }

  /* next-core drops the container gutter entirely below 992px; the design keeps
     the card off the viewport edge. */
  .section.upsell-box .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  /* Figma tablet is 36px; 32px belongs to mobile only. */
  .upsell-header__title {
    font-size: 36px;
  }
}

@media (max-width: 767px) {
  .upsell-header__title {
    font-size: 32px;
  }

  /* Figma mobile keeps the promo strip at 16px and lets it wrap. */

  .upsell-header-bar__step-label {
    font-size: var(--font-size--base);
  }

  .upsell-header__offer {
    font-size: var(--font-size--lg);
  }

  .upsell-offer__card {
    gap: 12px;
    padding: 24px 12px;
  }

  .upsell-offer__title {
    font-size: 28px;
  }

  .upsell-offer__subtitle,
  .upsell-offer__price-label,
  .upsell-offer__price-note,
  .next-bundle-qty__label,
  .upsell-offer__cta {
    font-size: var(--font-size--base);
  }

  .upsell-offer__bullet-text,
  .upsell-offer__stock,
  .upsell-offer__decline-text {
    font-size: var(--font-size--sm);
  }

  .prices-text-wrapper {
    gap: 12px;
  }

  .upsell-tier__grid {
    gap: 8px;
  }

  .upsell-tier__card {
    gap: 4px;
    padding: 16px 6px 12px;
  }

  .upsell-tier__media {
    height: 72px;
  }

  .upsell-tier__label,
  .upsell-tier__name {
    font-size: var(--font-size--base);
  }

  .upsell-tier__badge,
  .upsell-tier__price {
    font-size: 11px;
  }
}

/* Utilities */
.fs-18 {
  font-size: 18px;
}
.mb--10 {
  margin-bottom: -10px;
}
.radio-style-1,
.radio-style-2,
.radio-default {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  position: relative;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

