/* ============================================================================
   ragazzi-offer-gels.css - CARRIED from
   ragazzi-site/pdp-gels/css/sections/pdp-gels-offer-block.css.

   The SUPPLEMENTS product page's buy block. Figma via pdp-gels.

   RENAMED, 1:1:  .offer-block--gels  ->  .ragazzi-offer-gels

   IT GETS ITS OWN ROOT, not a modifier of the apparel block's. The two static
   offer blocks share 31 class names and 23 literally identical selectors, and
   in the static only their separate FOLDERS keep them apart - a theme's
   `assets/` is flat and either section can be dropped onto any template. The
   apparel one is `.ragazzi-offer-block`; this one is `.ragazzi-offer-gels`, and
   neither is a parent of the other.

   PAGE DEFAULTS from css/pdp-gels-page.css are scoped onto the section root
   below, the same call as text-1, community and the apparel block. Note this
   page is written MOBILE-FIRST - its bands are `min-width`, not the
   `max-width: 767` / `768-1023` pair the other pages use - so they are carried
   in that shape rather than normalised.

   PORT: the two radio rasters arrive as `--gels-radio-on` / `--gels-radio-off`,
   set inline by the section. Liquid is not processed in a `.css` asset, so the
   static's `url("../../assets/images/...")` would 404 in a theme - and it did:
   the plan cards had no visible selected state at all, which read as "the
   subscription is not clickable".

   NOT CARRIED: `js/offer-block.js`. Its two jobs are the self-hosted Swiper,
   which the section file already does from Liquid, and a `swiper-slide` alias
   class its own header says "nothing reads but the gate" - a build-pipeline
   artefact, not design (playbook §10.5).
============================================================================ */

/* ---------------------------------------------------------------------------
   PAGE DEFAULTS - PORT: carried from css/pdp-gels-page.css, where they sit on
   `body.page-pdp-gels`. Scoped to the section instead: a theme's <body> is
   shared with the header, the footer and every stock section.
--------------------------------------------------------------------------- */
.ragazzi-offer-gels {
  --font-body: "Onest", system-ui, sans-serif;
  --text-body: clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
}

@media (min-width: 768px) {
  .ragazzi-offer-gels {
    --text-body: clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 20px);
  }
}

@media (min-width: 1024px) {
  .ragazzi-offer-gels {
    --text-body: clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
  }
}

/* ---------------------------------------------------------------------------
   SECTION TOKENS — moved out of the page's tokens.css.

   Read by THIS block and nothing else on the site, so they belong here rather
   than in a site-wide :root. In Shopify a section can be dropped onto any
   template from the theme editor, so a section that reads a token from a
   page-level scope breaks the moment it is moved; scoped to the block's own
   class, it travels with it.

   EVERY band is carried verbatim from the old tokens.css, in that file's own
   order — so the cascade is unchanged whether the page was written
   desktop-first (base + max-width overrides) or mobile-first (base +
   min-width overrides). Verified by computed-style diff at
   375/768/1024/1440/1920.
--------------------------------------------------------------------------- */

.ragazzi-offer-gels {
  --color-ink:           #000000;
  --color-ink-900:       #161616;
  --color-ink-950:       #050505;
  --color-ink-850:       #121212;
  --color-ink-800:       #191919;
  --color-muted:         #666666;
  --color-muted-2:       #5a5a5a;
  --color-muted-3:       #4d4d4d;
  --color-disabled:      #9d9d9d;
  --color-disabled-2:    #ababab;
  --color-surface-50:    #fafafa;
  --color-surface-75:    #f9f9f9;
  --color-surface-150:   #f2f2f2;
  --color-surface-275:   #e8e8e8;
  --color-border-4:      #d1d1d1;
  --color-border-strong: #808080;
  --color-border-faint:  rgba(5, 5, 5, 0.1);
  --color-chip-red:      #b90e31;
  --color-chip-orange:   #f47722;
  --color-chip-crimson:  #cc0000;
  --color-chip-blue:     #5999d4;
  --color-chip-stone:    #93908a;
  --text-h1:             clamp(15px, calc(18px + (var(--max-vw) - 375px) * 0.015), 37px);
  --text-h4:             clamp(14px, calc(16px + (var(--max-vw) - 375px) * 0.015), 33px);
  --text-ui-lg:          clamp(14px, calc(16px + (var(--max-vw) - 375px) * 0.015), 33px);
  --text-price:          clamp(14px, calc(16px + (var(--max-vw) - 375px) * 0.015), 33px);
  --text-ui:             clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
  --text-small:          clamp(10px, calc(12px + (var(--max-vw) - 375px) * 0.015), 25px);
  --text-xs:             clamp(10px, calc(12px + (var(--max-vw) - 375px) * 0.015), 25px);
  --text-body-sm:        clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
}

@media (min-width: 768px) {
  .ragazzi-offer-gels {
    --text-h1:      clamp(18px, calc(18px + (var(--max-vw) - 768px) * 0.025), 32px);
    --text-h4:      clamp(16px, calc(16px + (var(--max-vw) - 768px) * 0.025), 25px);
    --text-ui-lg:   clamp(16px, calc(16px + (var(--max-vw) - 768px) * 0.025), 20px);
    --text-price:   clamp(16px, calc(16px + (var(--max-vw) - 768px) * 0.025), 18px);
    --text-ui:      clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 16px);
    --text-small:   clamp(12px, calc(12px + (var(--max-vw) - 768px) * 0.025), 14px);
    --text-xs:      clamp(12px, calc(12px + (var(--max-vw) - 768px) * 0.025), 12px);
    --text-body-sm: clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 16px);
  }
}

@media (min-width: 1024px) {
  .ragazzi-offer-gels {
    --text-h1:      clamp(17px, calc(32px * (var(--max-vw) / var(--vw-base))), 32px);
    --text-h4:      clamp(13px, calc(25px * (var(--max-vw) / var(--vw-base))), 25px);
    --text-ui-lg:   clamp(11px, calc(20px * (var(--max-vw) / var(--vw-base))), 20px);
    --text-price:   clamp(10px, calc(18px * (var(--max-vw) / var(--vw-base))), 18px);
    --text-ui:      clamp(9px, calc(16px * (var(--max-vw) / var(--vw-base))), 16px);
    --text-small:   clamp(7px, calc(14px * (var(--max-vw) / var(--vw-base))), 14px);
    --text-xs:      clamp(6px, calc(12px * (var(--max-vw) / var(--vw-base))), 12px);
    --text-body-sm: clamp(9px, calc(16px * (var(--max-vw) / var(--vw-base))), 16px);
  }
}

.ragazzi-offer-gels {
  /* --- pseudo-tablet addend (see header). 0 below 768. ------------------- */
  --ob-tab: 0px;
  /* --- desktop scale. 1 below 1024 (unused there). ----------------------- */
  --ob-k: 1;

  /* --- section-scoped TYPE tokens (brief §11 D-12) ----------------------- */
  /* `Subscription Includes:` · `30% Off + Cap + Digital Fuel Guide` · `FREE`
     · `6 pack. Delivered every month` · `Pairs Well With` product title */
  --ob-text-panel-title: clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
  /* `Save 30%` · struck `£25` · `£21.42` · `Out of stock` */
  --ob-text-chip: clamp(10px, calc(12px + (var(--max-vw) - 375px) * 0.015), 25px);
  /* `FEB 2026` — 14 on BOTH layers, NOT the 12 that --text-small would give */
  --ob-text-chip-date: clamp(12px, calc(14px + (var(--max-vw) - 375px) * 0.015), 29px);
  /* mobile lab-strip border colour — rgba(3,3,2,.76). Desktop is #161616. */
  --ob-border-lab: rgba(3, 3, 2, 0.76);

  /* --- structural geometry ---------------------------------------------- */
  --ob-gutter: clamp(20px, calc(20px + var(--ob-tab)), 100px);
  --ob-stack-gap: clamp(20px, calc(20px + var(--ob-tab)), 40px);
  --ob-intro-gap: clamp(10px, calc(10px + var(--ob-tab)), 40px);
  --ob-heading-gap: clamp(10px, calc(10px + var(--ob-tab)), 20px);
  --ob-group-gap: clamp(10px, calc(10px + var(--ob-tab)), 20px);
  --ob-gallery-gap: clamp(10px, calc(10px + var(--ob-tab)), 40px);
  --ob-rating-gap: clamp(5px, calc(5px + var(--ob-tab)), 10px);

  --ob-bullet-gap: clamp(5px, calc(5px + var(--ob-tab)), 10px);
  --ob-bullet-dot: clamp(5.625px, calc(5.625px + var(--ob-tab)), 10px);

  --ob-tile-border: clamp(0.9375px, calc(0.9375px + var(--ob-tab)), 1.2698px);
  --ob-card-border: clamp(0.9375px, calc(0.9375px + var(--ob-tab)), 1.17937px);

  --ob-flavor-gap: clamp(0px, calc(0px + var(--ob-tab)), 3px);
  --ob-flavor-h: clamp(60px, calc(60px + var(--ob-tab)), 81.27px);
  --ob-flavor-pad-t: clamp(10px, calc(10px + var(--ob-tab)), 17.7778px);
  --ob-flavor-pad-b: clamp(10px, calc(10px + var(--ob-tab)), 12.6984px);
  --ob-swatch: clamp(13.12px, calc(13.12px + var(--ob-tab)), 17.78px);

  --ob-size-gap: clamp(1.875px, calc(1.875px + var(--ob-tab)), 2.53968px);
  --ob-size-h: clamp(60px, calc(60px + var(--ob-tab)), 70px);
  /* reserves the `Best Deal` overhang (D-8). Desktop is the measured 10.1587;
     mobile needs 12 because the mobile ribbon (derived, see .sizes__ribbon)
     is 24 tall and hangs half of itself above the tile. */
  --ob-size-pad-t: 12px;

  --ob-plan-pad-x: clamp(10px, calc(10px + var(--ob-tab)), 20px);
  --ob-plan-pad-y: 20px;
  --ob-plan-gap: 20px;
  --ob-radio: clamp(17.25px, calc(17.25px + var(--ob-tab)), 21.7px);
  --ob-head-left-gap: clamp(5px, calc(5px + var(--ob-tab)), 10px);

  --ob-panel-pad: clamp(10px, calc(10px + var(--ob-tab)), 20.0619px);
  --ob-panel-gap: clamp(10px, calc(10px + var(--ob-tab)), 20.0619px);
  --ob-panel-radius: clamp(10px, calc(10px + var(--ob-tab)), 11.7937px);
  --ob-month-gap: clamp(7.5px, calc(7.5px + var(--ob-tab)), 15.0464px);
  --ob-month-pb: clamp(10px, calc(10px + var(--ob-tab)), 20.0619px);
  --ob-month-icon: clamp(30px, calc(30px + var(--ob-tab)), 37.74px);
  --ob-month-main-gap: clamp(9.375px, calc(9.375px + var(--ob-tab)), 11.7937px);
  --ob-month-title-max: 160.31px;

  --ob-inner-pad: clamp(10px, calc(10px + var(--ob-tab)), 20px);
  --ob-benefit-gap: clamp(10px, calc(10px + var(--ob-tab)), 10.0309px);
  --ob-benefit-inline-gap: clamp(5.625px, calc(5.625px + var(--ob-tab)), 7.64261px);
  --ob-benefit-icon: clamp(13.12px, calc(13.12px + var(--ob-tab)), 17.83px);
  /* panel -> delivery line, then delivery -> benefits (10.03 then 20 desktop;
     9.375 then 20 mobile). Non-uniform, so they are margins, not a gap. */
  --ob-body-gap-1: clamp(9.375px, calc(9.375px + var(--ob-tab)), 10.0309px);
  --ob-body-gap-2: 20px;

  --ob-cta-gap: clamp(9.375px, calc(9.375px + var(--ob-tab)), 20px);
  --ob-cta-pad-y: clamp(15px, calc(15px + var(--ob-tab)), 25px);
  --ob-cta-pad-x: 40px;
  --ob-guarantee-icon-w: clamp(15.94px, calc(15.94px + var(--ob-tab)), 21.59px);
  --ob-guarantee-icon-h: clamp(14.06px, calc(14.06px + var(--ob-tab)), 19.05px);

  --ob-lab-pad-y: 10px;
  --ob-lab-pad-x: clamp(10px, calc(10px + var(--ob-tab)), 20px);
  --ob-lab-gap: clamp(5px, calc(5px + var(--ob-tab)), 10px);
  --ob-lab-img-w: clamp(42.96px, calc(42.96px + var(--ob-tab)), 44px);
  --ob-lab-img-h: clamp(49.94px, calc(49.94px + var(--ob-tab)), 50px);
  --ob-lab-rule: clamp(0.9365px, calc(0.9365px + var(--ob-tab)), 1px);
  --ob-lab-arrow-w: 14.98px;
  --ob-lab-arrow-h: 6.56px;
  --ob-chip-pad-x: clamp(5px, calc(5px + var(--ob-tab)), 10px);
  --ob-chip-radius: clamp(3.746px, calc(3.746px + var(--ob-tab)), 4px);

  --ob-pairs-pad-x: clamp(20px, calc(20px + var(--ob-tab)), 25.3968px);
  --ob-pairs-pad-y: 20px;
  --ob-pairs-inner-gap: clamp(23.4375px, calc(23.4375px + var(--ob-tab)), 35.5556px);
  --ob-pairs-img: clamp(72px, calc(72px + var(--ob-tab)), 187.94px);
  --ob-pairs-text-gap: clamp(5px, calc(5px + var(--ob-tab)), 10px);
  --ob-pairs-btn-mt: clamp(5px, calc(5px + var(--ob-tab)), 12.6984px);
  --ob-pairs-btn-h: clamp(30px, calc(30px + var(--ob-tab)), 40.63px);
  --ob-pairs-stars-w: clamp(86.25px, calc(86.25px + var(--ob-tab)), 123.17px);
  --ob-pairs-stars-h: clamp(26.25px, calc(26.25px + var(--ob-tab)), 35.56px);
  --ob-pairs-rating-mb: 0px;

  --ob-stars-w: clamp(65.62px, calc(65.62px + var(--ob-tab)), 115.24px);
  --ob-stars-h: clamp(26.25px, calc(26.25px + var(--ob-tab)), 35.56px);

  /* one of the four values that go DOWN from mobile to desktop (14.0625 -> 10),
     so the addend is subtracted rather than added — the clamp form used
     everywhere else would silently pin it at the desktop value. */
  --ob-acc-pad-y: clamp(10px, calc(14.0625px - var(--ob-tab)), 14.0625px);
  --ob-acc-head-gap: clamp(18.75px, calc(18.75px + var(--ob-tab)), 20px);
  --ob-acc-body-gap: clamp(9.375px, calc(9.375px + var(--ob-tab)), 20px);
  --ob-acc-chevron: clamp(23.86px, calc(23.86px + var(--ob-tab)), 25.45px);
  --ob-acc-rule: clamp(0.9375px, calc(0.9375px + var(--ob-tab)), 1px);
  --ob-acc-rule-color: rgba(18, 18, 18, 0.1);
  --ob-acc-q-color: var(--color-ink-850);
  --ob-acc-a-color: var(--color-muted-2);

  /* Pattern A. The section has NO fill — the page's #ffffff shows through —
     and NO padding at all on mobile: the 20px gutter lives on the two inner
     containers (Figma 3100:2590 padding is [0,0,0,0]). `.container` is on the
     element, so its padding-inline is neutralised here and restored at 1024,
     where the section's own 100px IS the gutter. A `padding` SHORTHAND on a
     `.container` would wipe that gutter — longhands only, at every width. */
  padding-inline: 0;
  padding-block: 0;
}

/* The carousel template ships `.product-block-carrousel { margin-top: 15px }`
   unconditionally. Figma has no such offset on either layer. */
.ragazzi-offer-gels .product-block-carrousel {
  margin-top: 0;
}

/* ---------- mobile stack (base) ------------------------------------------
   3100:2590 is a column: gallery container (padding 0 20) then buy container
   (padding 20). `.product-block-wrapper` only becomes a flex row at >=1024,
   so nothing is needed for the stacking itself. */
.ragazzi-offer-gels .product-block-carrousel {
  padding-inline: var(--ob-gutter);
}

.ragazzi-offer-gels .product-block-right {
  display: flex;
  flex-direction: column;
  gap: var(--ob-stack-gap);
  padding: var(--ob-gutter);
}

/* ==========================================================================
   GALLERY — carousel template overrides (scoped)
   The template's own stylesheet is linked page-wide; only the values Figma
   dictates are overridden here. Thumbnails are NEVER given a fixed px width —
   Swiper derives them from `slidesPerView` (8.19 desktop / 7.71 mobile), which
   is what makes the strip overflow its frame. That overflow is the peek
   affordance, not a bug: `scrollWidth > clientWidth` must hold at every width.
========================================================================== */
.ragazzi-offer-gels .product-block-carrousel .ibdl7jSctrEgobsDF {
  gap: var(--ob-gallery-gap);
}

/* main slide: a square (956x956 desktop / 335x335 mobile). The template's
   base rule pins `.shopify-slider-wrapper { height: 48px }`, which would
   flatten the hero on every width below 1024. */
.ragazzi-offer-gels [data-shopify-type="slider"] {
  width: 100%;
  aspect-ratio: 1 / 1;
}

.ragazzi-offer-gels [data-shopify-type="slider"] > .shopify-slider-wrapper,
.ragazzi-offer-gels [data-shopify-type="slider"] .shopify-slider-slide,
.ragazzi-offer-gels [data-shopify-type="slider"] .ivkJ7tiDLPBwLMk8t {
  height: 100%;
}

/* Figma's fill is scaleMode FILL -> `cover`. The template defaults to
   `contain` + `height: auto`, which letterboxes the square. */
.ragazzi-offer-gels .shopify-image.shopify-image__main {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ragazzi-offer-gels [data-shopify-type="thumbnails"] > .shopify-slider-wrapper {
  height: auto;
}

/* D-6 (MUST-APPLY): every thumbnail carries an INSET #000000 hairline, so it
   must be border-box — an outset border would add 2.54px to the strip width
   and break the slidesPerView arithmetic. Width/height stay Swiper's. */
.ragazzi-offer-gels [data-shopify-type="thumbnails"] .iA7jBRXnSUIAbCr1c {
  box-sizing: border-box;
  border: var(--ob-tile-border) solid var(--color-ink);
  aspect-ratio: 1 / 1;
  height: auto;
}

/* BA-4: the mockup draws NO active-thumbnail state — all 9/8 thumbs share the
   same border. The template's active class stays WIRED (so a later restyle is
   one CSS rule, not a JS change) but is styled identically. */
.ragazzi-offer-gels .i9MuTiHFVI9qvIaSA.shopify-slider-thumbs .iA7jBRXnSUIAbCr1c.shopify-slider-thumb-active {
  border: var(--ob-tile-border) solid var(--color-ink);
}

.ragazzi-offer-gels [data-shopify-type="thumbnails"] .i9P5R4TQc9YakHTAG,
.ragazzi-offer-gels [data-shopify-type="thumbnails"] .iA7jBRXnSUIAbCr1c img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   INTRO — rating link, title, lede, 3 bullets
========================================================================== */
.ragazzi-offer-gels .offer__intro {
  display: flex;
  flex-direction: column;
  gap: var(--ob-intro-gap);
}

.ragazzi-offer-gels .offer__rating {
  display: flex;
  align-items: center;
  gap: var(--ob-rating-gap);
  align-self: flex-start;
}

.ragazzi-offer-gels .offer__rating-score {
  display: flex;
  align-items: center;
  gap: 5px;
}

.ragazzi-offer-gels .offer__stars {
  width: var(--ob-stars-w);
  height: var(--ob-stars-h);
  object-fit: contain;
  flex: 0 0 auto;
}

.ragazzi-offer-gels .offer__rating-num {
  font-size: var(--text-price);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--color-ink);
  text-align: center;
}

.ragazzi-offer-gels .offer__rating-label {
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--color-ink);
  text-decoration: underline;
}

.ragazzi-offer-gels .offer__heading {
  display: flex;
  flex-direction: column;
  gap: var(--ob-heading-gap);
}

.ragazzi-offer-gels .offer__title {
  font-size: var(--text-h1);
  font-weight: 600;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  color: var(--color-ink);
}

.ragazzi-offer-gels .offer__intro-text {
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

.ragazzi-offer-gels .offer__bullets {
  display: flex;
  flex-direction: column;
  gap: var(--ob-bullet-gap);
}

.ragazzi-offer-gels .offer__bullet {
  display: flex;
  align-items: center;
  gap: var(--ob-bullet-gap);
}

.ragazzi-offer-gels .offer__bullet-dot {
  flex: 0 0 auto;
  width: var(--ob-bullet-dot);
  height: var(--ob-bullet-dot);
  border-radius: 50%;
  background: var(--color-ink-800);
}

.ragazzi-offer-gels .offer__bullet-text {
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--color-ink-800);
}

/* ==========================================================================
   FIELD LABELS  (`Choose flavours`, `Choose size`)
========================================================================== */
.ragazzi-offer-gels .offer__flavors,
.ragazzi-offer-gels .offer__sizes {
  display: flex;
  flex-direction: column;
  gap: var(--ob-group-gap);
}

/* `<variant-selects>` IS A WRAPPER THE STACK CANNOT SEE THROUGH.

   The buybox is a column with `--ob-stack-gap` (20 at mobile) between its
   children, and Figma 3100:2604 uses that same 20 between every block —
   including between "Choose flavours" (y=237.25, h=147) and "Choose size"
   (y=404.25). But both option groups live inside Dawn's `<variant-selects>`
   custom element, which is an unstyled `display: block`: the stack's gap applies
   around it, not inside it, so the two fieldsets rendered flush. Measured at a
   375 layout width: flavours ended at 910.8 and size began at 910.8 — 0 where
   the design draws 20.

   Given the same column and the same token, so the rhythm does not depend on
   whether a block happens to sit inside this wrapper. */
.ragazzi-offer-gels variant-selects {
  display: flex;
  flex-direction: column;
  gap: var(--ob-stack-gap);
}

.ragazzi-offer-gels .offer__field-label {
  font-size: var(--text-ui);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-muted);
}

/* ==========================================================================
   FLAVOUR SELECTOR — 4 tiles. 2x2 on mobile (tiles butt, gap 0), one row of
   four with gap 3 on desktop. Four DIRECT children on both layers, so
   `.flavors__item:nth-child(n)` addresses the same tile at every width.
========================================================================== */
.ragazzi-offer-gels .flavors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ob-flavor-gap);
}

.ragazzi-offer-gels .flavors__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: var(--ob-flavor-h);
  padding-block: var(--ob-flavor-pad-t) var(--ob-flavor-pad-b);
  /* the border is INSET in Figma */
  border: var(--ob-tile-border) solid var(--color-white);
  background: var(--color-surface-150);
  cursor: pointer;
}

.ragazzi-offer-gels .flavors__item:has(.flavors__input:checked) {
  background: var(--color-white);
  border-color: var(--color-ink);
}

.ragazzi-offer-gels .flavors__item:has(.flavors__input:focus-visible) {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.ragazzi-offer-gels .flavors__swatch {
  width: var(--ob-swatch);
  height: var(--ob-swatch);
  border-radius: 50%;
  flex: 0 0 auto;
}

/* BA-3: `Variety` has no fill at all in Figma (confirmed on the render) — an
   empty circle. The box is kept so the tile's height stays correct; no colour
   is invented. */
.ragazzi-offer-gels .flavors__swatch--variety { background: transparent; }
.ragazzi-offer-gels .flavors__swatch--berry { background: var(--color-chip-red); }
.ragazzi-offer-gels .flavors__swatch--orange { background: var(--color-chip-orange); }
.ragazzi-offer-gels .flavors__swatch--unflavoured { background: var(--color-chip-stone); }

.ragazzi-offer-gels .flavors__label {
  font-size: var(--text-small);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
  text-align: center;
  white-space: nowrap;
}

/* ==========================================================================
   SIZE SELECTOR — 3 tiles + the `Best Deal` ribbon
========================================================================== */
.ragazzi-offer-gels .sizes {
  display: flex;
  align-items: center;
  gap: var(--ob-size-gap);
  /* D-8 (MUST-APPLY): reserves the ribbon's overhang. Dropping it lets the
     ribbon collide with the `Choose size` label. */
  padding-top: var(--ob-size-pad-t);
}

.ragazzi-offer-gels .sizes__item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--ob-size-h);
  border: var(--ob-tile-border) solid var(--color-surface-150);
  background: var(--color-surface-150);
  cursor: pointer;
}

.ragazzi-offer-gels .sizes__item:has(.sizes__input:checked) {
  background: var(--color-white);
  border-color: var(--color-ink);
}

.ragazzi-offer-gels .sizes__item:has(.sizes__input:focus-visible) {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.ragazzi-offer-gels .sizes__label {
  font-size: var(--text-ui);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--color-ink);
  text-align: center;
  white-space: nowrap;
}

/* D-8: `abs-overlay`, NOT a child in normal flow — it deliberately breaks the
   tile's top border. Rendering it in flow would enclose it in the border and
   grow the tile 29px.
   BA-7 keeps the ribbon on BOTH layers. Figma measures it only on desktop
   (left 64.64 / top -13.98 / width 81.577 — applied verbatim at >=1024). The
   mobile layer draws no ribbon at all, and the desktop offsets would push it
   37px past a 111.25px mobile tile, so below 1024 it is centred on the tile's
   top edge at the one measured mobile pill size (24 tall, r 18.75, pad 5/10 —
   the `Save 30%` pill, 3100:2680). Derived, and logged as such. */
.ragazzi-offer-gels .sizes__ribbon {
  position: absolute;
  left: 50%;
  top: -12px;
  transform: translateX(-50%);
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: var(--lh-tight);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ==========================================================================
   PURCHASE PLAN — Subscribe (pre-selected) vs One-time
   `align-items: flex-start` is deliberate: the two cards are meant to be very
   different heights (521.82 vs 64.06 desktop, 424.06 vs 46.5 mobile). Letting
   flex stretch the One-time card to the Subscribe card's height is the exact
   bug this row exists to prevent.
========================================================================== */
.ragazzi-offer-gels .plans {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.ragazzi-offer-gels .plan {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--ob-plan-gap);
  padding: var(--ob-plan-pad-y) var(--ob-plan-pad-x);
  background: var(--color-white);
  border: var(--ob-card-border) solid var(--color-border-strong);
  cursor: pointer;
}

/* Figma draws Subscribe with a #000000 border and One-time with #808080. That
   is the SELECTED-state treatment, not the identity of either card (BA-1's
   override note swaps `checked` and the two border colours together), so it is
   bound to `:checked` — pinning black onto `.plan--subscribe` would leave a
   stale black frame around an unselected card the moment the user picks
   One-time. At load the rendered result is identical to the mockup. */
.ragazzi-offer-gels .plan:has(.plan__input:checked) {
  border-color: var(--color-ink);
}

.ragazzi-offer-gels .plan:has(.plan__input:focus-visible) {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

/* One-time is the shorter card: label padding [10,20] mobile, 20 desktop. */
.ragazzi-offer-gels .plan--onetime {
  padding-block: 10px;
  padding-inline: 20px;
}

/* mobile only: 3100:2756 gives the radio+name cluster its own 2.8125 vertical
   padding, which is what makes the card 46.5 rather than 41. Desktop's
   equivalent node (3100:1298) has none. */
.ragazzi-offer-gels .plan--onetime .plan__head-left {
  padding-block: 2.8125px;
}

.ragazzi-offer-gels .plan__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ragazzi-offer-gels .plan__head-left {
  display: flex;
  align-items: center;
  gap: var(--ob-head-left-gap);
}

/* Selected/unselected radio. Figma exports two glyphs (filled ring / empty
   ring); they are bound to the INPUT's state, never hardcoded per card, so
   flipping the plan flips both icons. */
.ragazzi-offer-gels .plan__radio {
  flex: 0 0 auto;
  width: var(--ob-radio);
  height: var(--ob-radio);
  background: var(--gels-radio-off) center / contain no-repeat;
}

.ragazzi-offer-gels .plan:has(.plan__input:checked) .plan__radio {
  background-image: var(--gels-radio-on);
}

.ragazzi-offer-gels .plan__name {
  font-size: var(--text-ui-lg);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

.ragazzi-offer-gels .plan--onetime .plan__name {
  font-weight: 500;
  color: var(--color-ink-850);
}

/* `Save 30%` — DOM relationship `child`: an inline sibling of the `Subscribe`
   text inside the header's left cluster, in normal flow. Not absolute. */
.ragazzi-offer-gels .plan__save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: var(--color-chip-crimson);
  color: var(--color-white);
  font-size: var(--ob-text-chip);
  font-weight: 500;
  line-height: var(--lh-body);
  white-space: nowrap;
}

.ragazzi-offer-gels .plan__price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

/* the price cluster flips axis between layers: `£34.99` sits ABOVE `£24.49` on
   mobile (3100:2682, vertical) and BESIDE it on desktop (3100:1226, horizontal
   with gap 10). Measured on both nodes, not assumed. */
.ragazzi-offer-gels .plan__price-row {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.ragazzi-offer-gels .plan__price-was {
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-ink);
  text-decoration: line-through;
}

.ragazzi-offer-gels .plan__price-now {
  font-size: var(--text-price);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--color-ink);
}

.ragazzi-offer-gels .plan--onetime .plan__price-now {
  color: var(--color-ink-850);
  line-height: var(--lh-body);
}

/* desktop-only sub-element — the mobile layer does not draw it (C4). */
.ragazzi-offer-gels .plan__price-unit {
  display: none;
}

.ragazzi-offer-gels .plan__body {
  display: flex;
  flex-direction: column;
}

/* --- `Subscription includes:` panel --- */
.ragazzi-offer-gels .plan__includes {
  display: flex;
  flex-direction: column;
  gap: var(--ob-panel-gap);
  padding: var(--ob-panel-pad);
  border-radius: var(--ob-panel-radius);
  background: var(--color-surface-50);
}

.ragazzi-offer-gels .plan__includes-title {
  font-size: var(--ob-text-panel-title);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
  /* Figma textCase: TITLE -> renders `Subscription Includes:` */
  text-transform: capitalize;
}

.ragazzi-offer-gels .plan__months {
  display: flex;
  flex-direction: column;
  gap: var(--ob-panel-gap);
}

.ragazzi-offer-gels .plan__month {
  display: flex;
  align-items: center;
  gap: var(--ob-month-gap);
  padding-bottom: var(--ob-month-pb);
  /* all THREE rows carry the rule, including the last one */
  border-bottom: var(--ob-card-border) solid var(--color-disabled);
}

.ragazzi-offer-gels .plan__month-icon {
  flex: 0 0 auto;
  width: var(--ob-month-icon);
  height: var(--ob-month-icon);
  object-fit: contain;
}

.ragazzi-offer-gels .plan__month-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--ob-month-main-gap);
}

.ragazzi-offer-gels .plan__month-info {
  display: flex;
  flex-direction: column;
}

.ragazzi-offer-gels .plan__month-label {
  font-size: var(--text-small);
  font-weight: 700;
  line-height: var(--lh-body);
  color: var(--color-disabled);
}

.ragazzi-offer-gels .plan__month-title {
  font-size: var(--ob-text-panel-title);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-ink);
  /* Figma's mobile row 1 carries an explicit newline in the string, i.e. the
     2-line treatment is intended at this width. */
  max-width: var(--ob-month-title-max);
}

.ragazzi-offer-gels .plan__month-price {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.ragazzi-offer-gels .plan__month-was {
  font-size: var(--ob-text-chip);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-muted-3);
  text-decoration: line-through;
}

.ragazzi-offer-gels .plan__month-now {
  font-size: var(--ob-text-panel-title);
  font-weight: 600;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

/* --- delivery line + benefit list ---
   Rendered order is identical on both layers (panel -> delivery -> benefits);
   only Figma's grouping differs, so ONE structure is built. The two gaps are
   different (10.03 then 20 desktop), hence margins rather than a flex gap. */
.ragazzi-offer-gels .plan__delivery {
  margin-top: var(--ob-body-gap-1);
  padding-inline: var(--ob-inner-pad);
  font-size: var(--ob-text-panel-title);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink-900);
}

.ragazzi-offer-gels .plan__benefits {
  margin-top: var(--ob-body-gap-2);
  padding-inline: var(--ob-inner-pad);
  display: flex;
  flex-direction: column;
  gap: var(--ob-benefit-gap);
}

.ragazzi-offer-gels .plan__benefit {
  display: flex;
  align-items: center;
  gap: var(--ob-benefit-inline-gap);
}

.ragazzi-offer-gels .plan__benefit-icon {
  flex: 0 0 auto;
  width: var(--ob-benefit-icon);
  height: var(--ob-benefit-icon);
  object-fit: contain;
}

.ragazzi-offer-gels .plan__benefit-text {
  font-size: var(--text-ui);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

/* ==========================================================================
   PRIMARY CTA + guarantee row
========================================================================== */
.ragazzi-offer-gels .offer__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--ob-cta-gap);
}

.ragazzi-offer-gels .offer__cta-btn {
  width: 100%;
  min-width: 0;
  padding: var(--ob-cta-pad-y) var(--ob-cta-pad-x);
  border: var(--ob-tile-border) solid var(--color-ink);
  border-radius: var(--radius-pill);
  background: var(--color-ink);
  color: var(--color-white);
  font-size: var(--text-btn);
  font-weight: var(--weight-btn);
  line-height: var(--lh-body);
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

/* CENTRED AT EVERY WIDTH, including mobile — this used to be `flex-start` here
   and `center` only from 1024 up, so the phone layer was the odd one out.

   The mobile frame centres it too: in Figma 3100:2604 the guarantee row
   (3100:2767) is 230.94 wide and sits at x=53.28 inside a 337.5 container, and
   (337.5 - 230.94) / 2 = 53.28 exactly. Measured on the live page it started at
   the container's left edge instead, under a full-width CTA.

   The 1024 block no longer restates this; it keeps only the `width: 100%` that
   is its own. */
.ragazzi-offer-gels .offer__guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ragazzi-offer-gels .offer__guarantee-icon {
  flex: 0 0 auto;
  width: var(--ob-guarantee-icon-w);
  height: var(--ob-guarantee-icon-h);
  object-fit: contain;
}

.ragazzi-offer-gels .offer__guarantee-text {
  font-size: var(--text-body);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

/* ==========================================================================
   LAB-TEST STRIP — BA-5 had no destination in Figma; it opens the supplement
   facts popup now, so the card is a <button> and needs the element's own
   styling taken off it. Everything below the reset is the original rule,
   unchanged — the card must look exactly as it did as a <div>.
========================================================================== */
.ragazzi-offer-gels .offer__lab-card {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  /* Pointer is NOT the default here — see the gate below. */
  cursor: default;

  display: flex;
  align-items: center;
  gap: var(--ob-lab-gap);
  padding: var(--ob-lab-pad-y) var(--ob-lab-pad-x);
  border: var(--ob-lab-rule) solid var(--ob-border-lab);
}

/* `aria-controls` is written by ragazzi-ingredients.js, at boot, and ONLY when
   a supplement facts modal exists on the page. So it doubles as the gate for
   the affordance: no modal (ingredients section removed, its facts switched
   off, JS not running) and the card offers nothing it cannot deliver. */
.ragazzi-offer-gels .offer__lab-card[aria-controls] {
  cursor: pointer;
}

/* Same focus ring the flavour, size and plan controls use. */
.ragazzi-offer-gels .offer__lab-card:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

.ragazzi-offer-gels .offer__lab-img {
  flex: 0 0 auto;
  width: var(--ob-lab-img-w);
  height: var(--ob-lab-img-h);
  object-fit: contain;
}

.ragazzi-offer-gels .offer__lab-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 10px;
  border-left: var(--ob-lab-rule) solid var(--color-border-4);
}

.ragazzi-offer-gels .offer__lab-title,
.ragazzi-offer-gels .offer__lab-sub {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ragazzi-offer-gels .offer__lab-title > span:first-child {
  font-size: var(--text-ui);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--color-ink-800);
}

.ragazzi-offer-gels .offer__lab-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: var(--ob-chip-pad-x);
  border-radius: var(--ob-chip-radius);
  background: var(--color-chip-blue);
  color: var(--color-white);
  font-size: var(--ob-text-chip-date);
  font-weight: 500;
  line-height: var(--lh-tight);
  white-space: nowrap;
}

.ragazzi-offer-gels .offer__lab-sub > span:first-child {
  font-size: var(--text-body-sm);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-disabled-2);
}

/* a wide, flat glyph (14x6) — not a square icon */
.ragazzi-offer-gels .offer__lab-arrow {
  flex: 0 0 auto;
  width: var(--ob-lab-arrow-w);
  height: var(--ob-lab-arrow-h);
  object-fit: contain;
}

/* ==========================================================================
   `Pairs Well With` cross-sell card
========================================================================== */
.ragazzi-offer-gels .offer__pairs {
  display: flex;
  flex-direction: column;
  gap: var(--ob-group-gap);
}

.ragazzi-offer-gels .offer__pairs-label {
  font-size: var(--text-ui-lg);
  font-weight: 600;
  line-height: var(--lh-tight);
  color: var(--color-ink);
}

.ragazzi-offer-gels .offer__pairs-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ob-pairs-inner-gap);
  padding: var(--ob-pairs-pad-y) var(--ob-pairs-pad-x);
  background: var(--color-surface-75);
}

.ragazzi-offer-gels .offer__pairs-imglink {
  flex: 0 0 auto;
  display: block;
}

.ragazzi-offer-gels .offer__pairs-img {
  width: var(--ob-pairs-img);
  height: var(--ob-pairs-img);
  object-fit: cover;
}

.ragazzi-offer-gels .offer__pairs-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--ob-pairs-text-gap);
}

.ragazzi-offer-gels .offer__pairs-rating {
  display: flex;
  align-items: center;
  margin-bottom: var(--ob-pairs-rating-mb);
}

.ragazzi-offer-gels .offer__pairs-stars {
  width: var(--ob-pairs-stars-w);
  height: var(--ob-pairs-stars-h);
  object-fit: contain;
  flex: 0 0 auto;
}

.ragazzi-offer-gels .offer__pairs-rating-num {
  font-size: var(--text-ui);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
  text-align: center;
}

/* MUST-APPLY: the title WRAPS. Without the width constraint the flex item
   expands to one line and the card's height is ~17px wrong on mobile. */
.ragazzi-offer-gels .offer__pairs-title {
  width: 100%;
  font-size: var(--ob-text-panel-title);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

.ragazzi-offer-gels .offer__pairs-price {
  font-size: var(--ob-text-chip);
  font-weight: 500;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

/* BA-6 — DO NOT "fix" this contrast.
   `#ffffff` on `#e8e8e8` is 1.2:1, a hard WCAG AA failure that exists IN THE
   FIGMA DESIGN (3100:1363 desktop / 3100:2815 mobile). It is reproduced
   exactly as drawn; the out-of-stock state is carried non-visually by the
   `disabled` + `aria-disabled` attributes so assistive tech is not misled.
   Changing the colour is a client decision, already surfaced, not a bug for
   this build to fix unilaterally. */
.ragazzi-offer-gels .offer__pairs-btn {
  width: 100%;
  height: var(--ob-pairs-btn-h);
  margin-top: var(--ob-pairs-btn-mt);
  border: var(--ob-tile-border) solid var(--color-surface-275);
  border-radius: var(--radius-pill);
  background: var(--color-surface-275);
  color: var(--color-white);
  font-size: var(--ob-text-chip);
  font-weight: 500;
  line-height: var(--lh-body);
  text-transform: uppercase;
  text-align: center;
  cursor: default;
}

/* ==========================================================================
   FAQ ACCORDION — 6 rows, accordion template
   `.accordion-answer` gets NO styling from the template stylesheet (that file
   only styles the demo's `.faq-answer`), so the collapse mechanics MUST be
   declared here or every panel ships permanently open.
========================================================================== */
.ragazzi-offer-gels .offer__faq {
  display: flex;
  flex-direction: column;
}

/* D-10 (MUST-APPLY): Figma gives rows 2-6 BOTH a top and a bottom stroke; in
   Figma they coincide with the neighbour's and render as ONE hairline. Copying
   them literally doubles every interior rule to 2px and adds a stray line
   under row 1. One border per seam instead, and row 1 gets no top border. */
.ragazzi-offer-gels .offer__faq-item + .offer__faq-item {
  border-top: var(--ob-acc-rule) solid var(--ob-acc-rule-color);
}

.ragazzi-offer-gels .offer__faq-item:last-of-type {
  border-bottom: var(--ob-acc-rule) solid var(--ob-acc-rule-color);
}

.ragazzi-offer-gels .offer__faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  /* MERGE 2026-08-15. This page used to link the PRISTINE accordion template,
     which styles only the demo's `.faq-*` classes and left `.accordion-question`
     alone; the shared css/templates/accordion.css is the ADAPTED one, which
     gives it `justify-content: space-between`. Nothing moves either way — the
     text child is `flex: 1 1 auto`, so there is no free space to distribute and
     both values lay out identically (measured: 30 computed-style diffs, 0 rect
     diffs, at all five viewports). Restated anyway: this block already owns
     every other layout property of this button, and the page was built and
     verified against `normal`. */
  justify-content: normal;
  gap: var(--ob-acc-head-gap);
  padding-block: var(--ob-acc-pad-y);
  text-align: left;
  background: transparent;
}

.ragazzi-offer-gels .offer__faq-q-text {
  flex: 1 1 auto;
  /* guard: `overflow-x: clip` on html/body would HIDE an overflowing question
     from every audit stage, so the shrink is made explicit. */
  min-width: 0;
  font-size: var(--text-h4);
  font-weight: 500;
  line-height: var(--lh-tight);
  color: var(--ob-acc-q-color);
}

/* the icon span is created by accordion.js and carries only `.accordion-icon` */
.ragazzi-offer-gels .offer__faq .accordion-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--ob-acc-chevron);
  height: var(--ob-acc-chevron);
  color: var(--ob-acc-q-color);
  transition: transform 0.2s ease;
}

.ragazzi-offer-gels .offer__faq .accordion-icon svg {
  width: 100%;
  height: 100%;
}

/* D-9 (MUST-APPLY): ONE chevron-down glyph, rotated by CSS and bound to the
   EXPANDED STATE — never an "up" glyph hardcoded onto row 1. */
.ragazzi-offer-gels .offer__faq .accordion-question[aria-expanded="true"] .accordion-icon {
  transform: rotate(180deg);
}

.ragazzi-offer-gels .offer__faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.3s ease;
}

/* The question-to-body gap lives on the body's inner <p>, not on a flex gap:
   a gap would also apply to the five COLLAPSED (height 0) panels and make
   every closed row ~10px too tall.
   D-11: every panel uses ROW 1's visible typography. Figma styles the five
   hidden bodies differently, but that is an artifact of hidden layers, not a
   design intent nobody can see. */
.ragazzi-offer-gels .offer__faq-a p {
  padding-top: var(--ob-acc-body-gap);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--ob-acc-a-color);
}

/* THE OPEN ROW'S VERTICAL RHYTHM. Closed was already exact; open was not.

   Figma 3100:2817 puts the padding on the ROW and lets a 9.375 flex gap sit
   between the question and the body:
     14.063 + question 23.86 + 9.375 + body 68 + 14.063 = 129.36
   Here the 14.063 lives on the BUTTON instead, top and bottom. Closed that comes
   to the same 51.99 and measured 51.98, which is why this went unnoticed. Open it
   does not: the button's bottom padding and the body's 9.375 stack to 23.44
   between question and answer, and nothing at all sits under the answer.

   Not fixed by moving the padding onto the row, which is what the design
   literally does — that would leave the button 23.86px tall and halve the tap
   target on a phone. Instead the button gives up its bottom padding only while
   the row is open, and the row takes the closing 14.063 itself. Both states then
   match the design and the control stays 47.3px tall while open, 51.98 closed. */
.ragazzi-offer-gels .offer__faq-item.active > .offer__faq-q {
  padding-bottom: 0;
}

.ragazzi-offer-gels .offer__faq-item.active {
  padding-bottom: var(--ob-acc-pad-y);
}

/* ==========================================================================
   768-1023 — PSEUDO-TABLET. `has-tablet-layer: false`, so this band is
   MANDATORY: without it the 1024 rules would fire at 768 and every desktop
   value would come back at 40% of its base. One addend drives every clamp
   declared above (see the file header).
========================================================================== */
@media (min-width: 768px) {
  .ragazzi-offer-gels {
    --ob-tab: calc((var(--max-vw) - 768px) * 0.025);
    --ob-text-panel-title: clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 18px);
    --ob-text-chip: clamp(12px, calc(12px + (var(--max-vw) - 768px) * 0.025), 16px);
    --ob-text-chip-date: clamp(14px, calc(14px + (var(--max-vw) - 768px) * 0.025), 14px);
  }
}

/* ==========================================================================
   DESKTOP >= 1024
========================================================================== */
@media (min-width: 1024px) {
  .ragazzi-offer-gels {
    --ob-k: calc(var(--max-vw) / var(--vw-base));
    --ob-tab: 0px;

    --ob-text-panel-title: clamp(10px, calc(18px * var(--ob-k)), 18px);
    --ob-text-chip: clamp(9px, calc(16px * var(--ob-k)), 16px);
    --ob-text-chip-date: clamp(7px, calc(14px * var(--ob-k)), 14px);
    --ob-border-lab: var(--color-ink-900);

    --ob-stack-gap: calc(40px * var(--ob-k));
    --ob-intro-gap: calc(40px * var(--ob-k));
    --ob-heading-gap: calc(20px * var(--ob-k));
    --ob-group-gap: calc(20px * var(--ob-k));
    --ob-gallery-gap: calc(40px * var(--ob-k));
    --ob-rating-gap: calc(10px * var(--ob-k));

    --ob-bullet-gap: calc(10px * var(--ob-k));
    --ob-bullet-dot: calc(10px * var(--ob-k));

    --ob-tile-border: calc(1.2698px * var(--ob-k));
    --ob-card-border: calc(1.17937px * var(--ob-k));

    --ob-flavor-gap: calc(3px * var(--ob-k));
    --ob-flavor-h: calc(81.27px * var(--ob-k));
    --ob-flavor-pad-t: calc(17.7778px * var(--ob-k));
    --ob-flavor-pad-b: calc(12.6984px * var(--ob-k));
    --ob-swatch: calc(17.78px * var(--ob-k));

    --ob-size-gap: calc(2.53968px * var(--ob-k));
    --ob-size-h: calc(70px * var(--ob-k));
    --ob-size-pad-t: calc(10.1587px * var(--ob-k));

    --ob-plan-pad-x: calc(20px * var(--ob-k));
    --ob-plan-pad-y: calc(20px * var(--ob-k));
    --ob-plan-gap: calc(20px * var(--ob-k));
    --ob-radio: calc(21.7px * var(--ob-k));
    --ob-head-left-gap: calc(10px * var(--ob-k));

    --ob-panel-pad: calc(20.0619px * var(--ob-k));
    --ob-panel-gap: calc(20.0619px * var(--ob-k));
    --ob-panel-radius: calc(11.7937px * var(--ob-k));
    --ob-month-gap: calc(15.0464px * var(--ob-k));
    --ob-month-pb: calc(20.0619px * var(--ob-k));
    --ob-month-icon: calc(37.74px * var(--ob-k));
    --ob-month-main-gap: calc(11.7937px * var(--ob-k));
    --ob-month-title-max: none;

    --ob-inner-pad: calc(20px * var(--ob-k));
    --ob-benefit-gap: calc(10.0309px * var(--ob-k));
    --ob-benefit-inline-gap: calc(7.64261px * var(--ob-k));
    --ob-benefit-icon: calc(17.83px * var(--ob-k));
    --ob-body-gap-1: calc(10.0309px * var(--ob-k));
    --ob-body-gap-2: calc(20px * var(--ob-k));

    --ob-cta-gap: calc(20px * var(--ob-k));
    --ob-cta-pad-y: calc(25px * var(--ob-k));
    --ob-cta-pad-x: calc(40px * var(--ob-k));
    --ob-guarantee-icon-w: calc(21.59px * var(--ob-k));
    --ob-guarantee-icon-h: calc(19.05px * var(--ob-k));

    --ob-lab-pad-y: calc(10px * var(--ob-k));
    --ob-lab-pad-x: calc(20px * var(--ob-k));
    --ob-lab-gap: calc(10px * var(--ob-k));
    --ob-lab-img-w: calc(44px * var(--ob-k));
    --ob-lab-img-h: calc(50px * var(--ob-k));
    --ob-lab-rule: 1px;
    --ob-lab-arrow-w: calc(14px * var(--ob-k));
    --ob-lab-arrow-h: calc(6px * var(--ob-k));
    --ob-chip-pad-x: calc(10px * var(--ob-k));
    --ob-chip-radius: calc(4px * var(--ob-k));

    --ob-pairs-pad-x: calc(25.3968px * var(--ob-k));
    --ob-pairs-pad-y: 0px;
    --ob-pairs-inner-gap: calc(35.5556px * var(--ob-k));
    --ob-pairs-img: calc(187.94px * var(--ob-k));
    --ob-pairs-text-gap: calc(10px * var(--ob-k));
    --ob-pairs-btn-mt: calc(12.6984px * var(--ob-k));
    --ob-pairs-btn-h: calc(40.63px * var(--ob-k));
    --ob-pairs-stars-w: calc(123.17px * var(--ob-k));
    --ob-pairs-stars-h: calc(35.56px * var(--ob-k));
    --ob-pairs-rating-mb: calc(5.07937px * var(--ob-k));

    --ob-stars-w: calc(115.24px * var(--ob-k));
    --ob-stars-h: calc(35.56px * var(--ob-k));

    --ob-acc-pad-y: calc(10px * var(--ob-k));
    --ob-acc-head-gap: calc(20px * var(--ob-k));
    --ob-acc-body-gap: calc(20px * var(--ob-k));
    --ob-acc-chevron: calc(25.45px * var(--ob-k));
    --ob-acc-rule: 1px;
    --ob-acc-rule-color: var(--color-border-faint);
    --ob-acc-q-color: var(--color-ink-950);
    --ob-acc-a-color: var(--color-ink-950);

    /* Pattern A: the section's own 100px IS the gutter at this width. Longhand
       only — a `padding` shorthand on a `.container` wipes it. */
    padding-inline: var(--container-pad);
    padding-block: calc(60px * var(--ob-k));
  }

  /* --- the two-column row ---------------------------------------------
     D-7 (MUST-APPLY): 955.58 + 80 + 649 = 1684.58 inside a 1720 content box.
     The 35.42px remainder is CORRECT — the row is CENTRED, not stretched, and
     that is what puts the gallery's own x at 117.71 rather than 100. Widening
     a column to make the three numbers sum to 1720 shifts the whole block
     17.71px left. Because both widths are `calc(px * --max-vw / 1920)` and
     --max-vw caps at 1920, the centring still holds above --vw-base. */
  .ragazzi-offer-gels .product-block-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: calc(80px * var(--ob-k));
  }

  .ragazzi-offer-gels .product-block-carrousel {
    flex: 0 0 calc(955.58px * var(--ob-k));
    width: calc(955.58px * var(--ob-k));
    padding-inline: 0;
  }

  /* the template pins the gallery column `position: sticky; top: 20px`. Figma
     draws it static on both layers and expresses no sticky behaviour, so the
     template default is neutralised rather than inherited. */
  .ragazzi-offer-gels .product-block-left {
    position: static;
    top: auto;
  }

  .ragazzi-offer-gels .product-block-right {
    flex: 0 0 calc(649px * var(--ob-k));
    width: calc(649px * var(--ob-k));
    min-width: 0;
    padding: 0;
  }

  /* --- per-layer flips that are NOT geometry (brief §11 D-13) ---------- */
  .ragazzi-offer-gels .offer__field-label {
    line-height: var(--lh-tight);
  }

  /* the ONE letter-spacing in this section: 3.94% -> em (never px), desktop
     only; the mobile node measures 0. */
  .ragazzi-offer-gels .offer__field-label--tracked {
    letter-spacing: 0.0394em;
  }

  .ragazzi-offer-gels .flavors {
    display: flex;
    align-items: stretch;
  }

  .ragazzi-offer-gels .flavors__item {
    flex: 1 1 0;
    border-color: var(--color-surface-150);
  }

  .ragazzi-offer-gels .flavors__item:has(.flavors__input:checked) {
    border-color: var(--color-ink);
  }

  .ragazzi-offer-gels .flavors__label {
    line-height: var(--lh-tight);
  }

  /* D-8: the measured desktop overlay, verbatim from the generated code
     (`absolute left-[64.64px] top-[-13.98px] w-[81.577px]`). */
  .ragazzi-offer-gels .sizes__ribbon {
    left: calc(64.64px * var(--ob-k));
    top: calc(-13.98px * var(--ob-k));
    width: calc(81.577px * var(--ob-k));
    height: calc(29px * var(--ob-k));
    padding-inline: calc(10px * var(--ob-k));
    transform: none;
  }

  /* RESPONSIVE 2026-08-10 — STEP 3b rule 3. The Subscribe/One-time gap is 20px
     on BOTH Figma layers (brief/offer-block.md §2.3, row "purchase group"), so
     it was written once as a flat `gap: 20px` in the mobile base. A flat value
     the desktop band never overrides holds its FULL size all the way down to
     1024, where the proportional value is 20 x 1024/1920 = 10.67px. Every other
     spacing in this section already scales through `--ob-k`; this one was the
     only raw px declaration left behind. Fixed by ADDING the desktop override,
     never by touching the base declaration (that is the mobile value).
     M-base == D-base == 20, so the pseudo-tablet band stays flat by design
     (fluid-formulas: skip a token where M-base >= D-base). */
  .ragazzi-offer-gels .plans {
    gap: calc(20px * var(--ob-k));
  }

  /* `--lh-tight` here, not only on the one-time row below. The base line-height
     is `--lh-body` (1.2), which is right for the MOBILE frame — its "Subscribe"
     text node is 19 tall on a 16px face. The desktop frame draws both plan names
     at 22 on a 20px face, i.e. 1.1 (3100:1222 and 3100:1302). Only the one-time
     row was given it, so the subscribe row rendered at 24px line-height against
     the drawn 22. */
  .ragazzi-offer-gels .plan__name {
    font-weight: 500;
    line-height: var(--lh-tight);
  }

  .ragazzi-offer-gels .plan--onetime .plan__name,
  .ragazzi-offer-gels .plan--onetime .plan__price-now {
    line-height: var(--lh-tight);
  }

  .ragazzi-offer-gels .plan--onetime {
    padding-block: calc(20px * var(--ob-k));
    padding-inline: calc(20px * var(--ob-k));
  }

  .ragazzi-offer-gels .plan--onetime .plan__head-left {
    padding-block: 0;
  }

  .ragazzi-offer-gels .plan--onetime .plan__price-now {
    color: var(--color-ink-900);
  }

  .ragazzi-offer-gels .plan__price {
    gap: calc(5px * var(--ob-k));
  }

  .ragazzi-offer-gels .plan__price-row {
    flex-direction: row;
    align-items: flex-end;
    gap: calc(10px * var(--ob-k));
  }

  .ragazzi-offer-gels .plan__price-was {
    line-height: var(--lh-tight);
  }

  /* THE BADGE'S PADDING IS MEASURED, NOT READ OFF FIGMA'S AUTO-LAYOUT PANEL.

     This used to carry Figma's DECLARED padding, 7.076 / 14.152, and those two
     numbers do not produce the box the file draws:
       declared:  7.076*2 + 17.6 line = 31.75 tall, and 14.152*2 + 75.2 = 103.5 wide
       drawn:     3100:1223 is 90.803 x 37.74
     Measured live at 1920 the badge came out 103.53 x 31.72 — exactly what the
     declared values predict, and visibly wider and flatter than the design.

     The drawn box reconciles with the TEXT NODE's own position instead: 3100:1224
     sits at x=7.401 y=9.870 and is 76 x 18 inside a 90.803 x 37.74 frame, so
     7.401*2 + 76 = 90.80 and 9.870*2 + 18 = 37.74. Both exact. The panel's
     figures are a Figma artefact of a fixed-size text node inside an auto-layout
     frame; the geometry is the truth.

     Gives 90.03 x 37.34 against the drawn 90.80 x 37.74 — the remainder is our
     "Save 30%" rendering 75.2 wide where Figma's text box is 76. */
  .ragazzi-offer-gels .plan__save {
    padding: calc(9.870001px * var(--ob-k)) calc(7.401329px * var(--ob-k));
    border-radius: calc(23.587496px * var(--ob-k));
    line-height: var(--lh-tight);
  }

  /* desktop-only sub-element: the unit price under the discounted price */
  .ragazzi-offer-gels .plan__price-unit {
    display: block;
    font-size: var(--text-small);
    font-weight: 400;
    line-height: var(--lh-tight);
    color: var(--color-muted-2);
  }

  .ragazzi-offer-gels .plan__includes-title,
  .ragazzi-offer-gels .plan__month-title,
  .ragazzi-offer-gels .plan__month-now,
  .ragazzi-offer-gels .plan__delivery,
  .ragazzi-offer-gels .plan__month-label,
  .ragazzi-offer-gels .plan__month-was,
  .ragazzi-offer-gels .plan__benefit-text {
    line-height: var(--lh-tight);
  }

  /* the price block flips axis: stacked on mobile, side by side on desktop */
  .ragazzi-offer-gels .plan__month-price {
    flex-direction: row;
    align-items: flex-end;
    gap: calc(10px * var(--ob-k));
  }

  .ragazzi-offer-gels .offer__guarantee {
    width: 100%;
  }

  .ragazzi-offer-gels .offer__guarantee-text {
    font-weight: 400;
    line-height: var(--lh-tight);
  }

  .ragazzi-offer-gels .offer__cta-btn,
  .ragazzi-offer-gels .offer__rating-num,
  .ragazzi-offer-gels .offer__rating-label,
  .ragazzi-offer-gels .offer__lab-date,
  .ragazzi-offer-gels .offer__pairs-rating-num,
  .ragazzi-offer-gels .offer__pairs-title,
  .ragazzi-offer-gels .offer__pairs-price,
  .ragazzi-offer-gels .offer__pairs-btn,
  .ragazzi-offer-gels .offer__pairs-label,
  .ragazzi-offer-gels .offer__bullet-text {
    line-height: var(--lh-tight);
  }

  .ragazzi-offer-gels .offer__lab-date {
    font-weight: 400;
  }

  .ragazzi-offer-gels .offer__lab-sub > span:first-child {
    line-height: var(--lh-tight);
  }

  .ragazzi-offer-gels .offer__pairs-label,
  .ragazzi-offer-gels .offer__pairs-btn {
    font-weight: 500;
  }

  .ragazzi-offer-gels .offer__pairs-btn {
    font-weight: 600;
  }

  .ragazzi-offer-gels .offer__pairs-price {
    font-size: var(--text-ui);
  }

  .ragazzi-offer-gels .offer__pairs-card {
    justify-content: flex-start;
  }
}

/* ============================================================================
   ADAPTATION - everything above this line is the carried static.

   1. THE DESCRIPTION, STYLED BY ELEMENT. The intro paragraph and the bullets are
      the product's own `description` printed as markup, exactly as on the apparel
      block - a description holding a `<p>` and a `<ul>` already IS this shape,
      and `strip_html` would flatten the list into prose.

      The rules had to be written AGAIN here rather than shared: the apparel copy
      lives in ragazzi-offer-block.css, which this layout does not link, so on the
      supplements page `.offer__desc` had no styling at all and the description
      collapsed to unstyled text. Same technique, but every value is THIS design's
      token - `--text-body-lg` / `--lh-body` / `--color-ink` for the paragraph and
      `--ob-bullet-gap` / `--ob-bullet-dot` / `--color-ink-800` for the list,
      copied off `.offer__intro-text`, `.offer__bullets`, `.offer__bullet`,
      `.offer__bullet-dot` and `.offer__bullet-text` above.

      Styling by TAG and not by those class names is the point: the merchant
      writes an ordinary paragraph and an ordinary list in the product description
      and gets the design, without having to know what the static called things.

      `list-style: none` is explicit - the base layer resets markers at (0,0,0)
      inside `:where()`, which cannot displace the UA sheet on a `<ul>`.
============================================================================ */
.ragazzi-offer-gels .offer__desc {
  display: flex;
  flex-direction: column;
  gap: var(--ob-heading-gap);
}

.ragazzi-offer-gels .offer__desc > p {
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--lh-body);
  color: var(--color-ink);
}

.ragazzi-offer-gels .offer__desc ul,
.ragazzi-offer-gels .offer__desc ol {
  display: flex;
  flex-direction: column;
  gap: var(--ob-bullet-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ragazzi-offer-gels .offer__desc li {
  display: flex;
  align-items: center;
  gap: var(--ob-bullet-gap);
  font-size: var(--text-body-lg);
  font-weight: 400;
  line-height: var(--lh-tight);
  color: var(--color-ink-800);
}

.ragazzi-offer-gels .offer__desc li::before {
  content: '';
  flex: 0 0 auto;
  width: var(--ob-bullet-dot);
  height: var(--ob-bullet-dot);
  border-radius: 50%;
  background: var(--color-ink-800);
}

/* ...unless the item already ships a dot of its own. Both statics hand-authored
   their `<li>` with an empty span - gels calls it `.offer__bullet-dot`, the
   apparel page `.offer__bullet` - and a description pasted out of either brings
   those along, which would draw two dots. Suppress the generated one rather than
   hide the merchant's markup; the carried rules above already paint an identical
   circle. */
.ragazzi-offer-gels .offer__desc li:has(.offer__bullet-dot)::before,
.ragazzi-offer-gels .offer__desc li:has(.offer__bullet)::before {
  content: none;
}

/* 2. THE OPTION GROUPS ARE SQUEEZED unless Dawn's baggage is answered. They are
      `<fieldset class="product-form__input">` because that is what Dawn's variant
      machinery queries - the reasoning is in the snippet - and the class drags
      `max-width: 44rem`, `margin: 0 0 1.2rem`, `min-width: fit-content` and
      `flex: 0 0 100%` in from section-main-product.css, which is linked before
      this file. A 44rem cap inside this design's buy column is exactly the
      "squeezed" the user saw. The fieldset's own UA `min-inline-size: min-content`
      does the same thing from the other side.

      The apparel block answers this in ITS stylesheet, which this layout does not
      link - a technique shared between two ported sections is not shared code.

      `border: none` and `padding: 0` come from that same class and are KEPT: they
      are what a fieldset needed anyway. */
.ragazzi-offer-gels .offer__flavors,
.ragazzi-offer-gels .offer__sizes {
  min-inline-size: 0;
  max-width: none;
  min-width: 0;
  margin: 0;
  flex: 0 1 auto;
}

/* 3. The buy form's two carriers are invisible to layout. The design's
      `.offer__cta` is a plain DIV holding the button; `<product-form>` and the
      `<form>` Dawn requires are two extra boxes the static never had, and the
      button shrink-wrapped inside them - MEASURED at 158.5px in a 505.7px column,
      505.7 after. (`<product-form>` itself computed `display: flex`, not the
      `inline` first assumed, so it is the CHAIN that shrank it, not one element.)
      `display: contents` removes both from the box tree, so the button is the
      div's child again, which is what every carried rule assumes. */
.ragazzi-offer-gels .offer__cta-form,
.ragazzi-offer-gels .offer__cta-form > form {
  display: contents;
}

/* 4. The add-to-cart SPINNER, same as on the apparel block: everything Dawn gives
      `.loading__spinner` is scoped to `.button.loading`, and this button is
      `.offer__cta-btn` and deliberately carries no Dawn button class. Mirrored
      here rather than importing the class. */
.ragazzi-offer-gels .offer__cta-btn {
  position: relative;
}

.ragazzi-offer-gels .offer__cta-btn.loading {
  color: transparent;
}

.ragazzi-offer-gels .offer__cta-btn.loading > .loading__spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 100%;
  display: flex;
  align-items: center;
}

.ragazzi-offer-gels .offer__cta-btn .loading__spinner .path {
  stroke: var(--color-white, #fff);
}

/* Dawn's section padding, on the layer the design does not want it.

   `main-product.liquid` emits `.section-{id}-padding` from an inline
   `{% style %}` with the two padding sliders in it — 36/12 here, which Dawn
   scales to 75% below 750px, hence the 27/9 that showed up on mobile. The
   design has none: `pdp-gels-offer-block.css` sets `padding-block: 0` on the
   section frame and puts the 20px gutter on the two inner containers instead
   (Figma 3100:2590 padding is [0,0,0,0]).

   Selector notes. The padded element is `<product-info>` itself and our own
   `.ragazzi-offer-gels` sits INSIDE it, so the section class cannot be an
   ancestor here — `:has()` is what reaches back up, and it also keeps this off
   any other product template that does not use this block. Specificity beats
   the inline rule ((0,2,1) against its (0,1,0)), so the fact that the inline
   `{% style %}` sits later in the document does not matter.

   EVERY WIDTH since 2026-09-04. It was scoped to `max-width: 767px` on the
   first pass and the desktop 36/12 was left alone in case the merchant had set
   those sliders deliberately — they had not, and the gap was reported from the
   store. Measured at 1920 before the change: header bottom 157 -> Dawn's 36 ->
   section top 193 -> the design's own 60 -> content at 253, i.e. 96px above a
   band the mock gives 60. The apparel sheet has always zeroed this at every
   width (`ragazzi-offer-block.css`); the two now agree. The section's OWN
   `padding-block: calc(60px * var(--ob-k))` at >=1024 is design and stays. */
product-info[class*='-padding']:has(.ragazzi-offer-gels) {
  padding-block: 0;
}

/* Mobile thumbs (owner, Dec 2026): iOS Safari stretched the slides taller than
   wide and `cover` cropped the square shots. Pin each slide to a square and lay
   the image box over it absolutely, so no flex stretch can change its shape. */
.ragazzi-offer-gels [data-shopify-type="thumbnails"] > .shopify-slider-wrapper { align-items: flex-start !important; }
.ragazzi-offer-gels [data-shopify-type="thumbnails"] .iA7jBRXnSUIAbCr1c {
  position: relative; align-self: flex-start !important; aspect-ratio: 1 / 1; height: auto !important; min-height: 0 !important; overflow: hidden;
}
.ragazzi-offer-gels [data-shopify-type="thumbnails"] .iA7jBRXnSUIAbCr1c .i9P5R4TQc9YakHTAG { position: absolute; inset: 0; width: 100%; height: 100%; }
.ragazzi-offer-gels [data-shopify-type="thumbnails"] .iA7jBRXnSUIAbCr1c img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* CTA with prices (owner, Dec 2026): "Add to Cart" plus a pill holding the
   struck-out and current price of the checked offer card. Same button shape. */
.ragazzi-offer-gels .offer__cta-btn--priced { text-transform: none; }
.ragazzi-offer-gels .offer__cta-btn--priced > span:first-child {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px; max-width: 100%;
}
.ragazzi-offer-gels .offer__cta-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); font-weight: 600; line-height: 1.2;
}
.ragazzi-offer-gels .offer__cta-pill s { font-weight: 400; opacity: 0.6; }
@media (max-width: 767px) {
  .ragazzi-offer-gels .offer__cta-btn--priced > span:first-child { gap: 10px; }
  .ragazzi-offer-gels .offer__cta-pill { padding: 5px 11px; gap: 6px; }
}
