/** Shopify CDN: Minification failed

Line 458:1 Unexpected "$"

**/
/* ==========================================================================
   CART DRAWER — rebuilt to match .md/cart-drawer-spec.md exactly (verbatim
   hex/px values per that document's §1, re-declared on every drawer-family
   root via .cd-scope — NOT mapped to the theme's own color scheme tokens,
   per the spec's explicit "keep this re-declaration, it's what makes the
   component portable" instruction).

   Two deliberate deviations from the spec, both explained in the doc itself:
   - Fonts: spec lists Arial as a placeholder from the Framer prototype; we
     use the theme's real configured fonts instead (see --brand/--label).
   - Auto-add-on-open and default-to-subscribed are flagged as consent/
     compliance risks in the spec's own §11.8 and intentionally not built
     that way — see snippets/cart-drawer-recommendations.liquid and
     snippets/cart-drawer-purchase-options.liquid.

   Architecture note: the reference's single `.drawerwrap` (drawer + ritual
   panel sliding together as one flex unit) can't be reproduced literally —
   the theme's <cart-drawer> is a compiled web component with its own
   shadow DOM we can't safely inject a new slot into (see cart-drawer.css
   history / conversation). The ritual panel is instead a standalone fixed
   element positioned flush against the drawer and synced to its open/close
   state via JS — see §4 below and assets/cart-drawer-custom.js. It is two
   elements, not one: #cart-drawer-companion is a fixed, overflow-hidden
   FRAME occupying the strip of viewport beside the drawer, and
   #cart-drawer-companion-inner is the panel that slides inside it. The
   frame's clipping is what makes the panel read as emerging from BEHIND
   the drawer instead of sweeping across on top of it, and the two are
   staged rather than simultaneous: drawer in, then panel; panel out, then
   drawer.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens — spec §1, verbatim hex. Scoped to every drawer-family
   root element (<cart-drawer>, #cart-drawer-companion,
   <precheckout-upsell-modal>, #cart-drawer-subscription-modal) via .cd-scope,
   since they are siblings, not nested, in this theme's DOM.
   -------------------------------------------------------------------------- */
.cd-scope {
  --ink: #321E1E;
  --ink-2: #7A5F5C;
  --ink-3: #9C8582;
  --paper: #FFFBF8;
  --cream: #FAF4F0;
  --sand: #F1E4D3;
  --line: #E4D6C8;
  --line-2: #DED0C1;
  /* One accent, the brand pink, used for every filled surface in the drawer:
     buttons, the checkout bar, completed ritual steps, selected tabs, badges.
     There is no second button colour and no second accent — the dark brown is
     text only now, and the deep magenta that used to sit alongside both is gone.

     These four are overridden per-shop from the section's colour settings (see the
     {% style %} block in sections/cart-drawer.liquid), so the pink here is only the
     fallback if those are ever cleared. --pk-2 is the pressed/hover weight, --pk-soft
     the wash behind pale surfaces, --on-pk the label colour on a pink fill: the brand
     pink is light enough that white text on it is unreadable at button sizes. */
  --pk: #FFABE5;
  --pk-2: #FFABE5;
  --on-pk: #321E1E;
  --pk-soft: #FFF0FA;
  --pk-tint: #FFE3F6;

  /* Button roles — overridden per-shop from the section's colour settings (see the
     {% style %} block in sections/cart-drawer.liquid). These are only the fallbacks.
     Each --*-ink is worked out from its fill's brightness there, so a pale fill gets
     dark text and a deep one gets light text without anyone having to think about it. */
  --btn-add: #FFFBF8;
  --btn-add-ink: #321E1E;
  --btn-add-hover: #FFF0FA;
  --btn-add-hover-ink: #321E1E;
  --btn-slider: #FFABE5;
  --btn-slider-ink: #321E1E;
  --btn-slider-hover: #FFABE5;
  --btn-slider-hover-ink: #321E1E;
  --btn-upgrade: #FFE3F6;
  --btn-upgrade-ink: #321E1E;
  --btn-upgrade-hover: #FFD4F0;
  --btn-upgrade-hover-ink: #321E1E;
  --btn-subscribe: #FFABE5;
  --btn-subscribe-ink: #321E1E;
  --btn-subscribe-hover: #FFABE5;
  --btn-subscribe-hover-ink: #321E1E;
  --btn-checkout: #FFABE5;
  --btn-checkout-ink: #321E1E;
  --btn-checkout-hover: #FFABE5;
  --btn-checkout-hover-ink: #321E1E;

  /* Two hues, deliberately: warm brown carries text and every button, deep pink is the only
     accent and the only "this is done" colour (completed steps, a reached shipping goal, an
     added upsell). An olive green used to sit alongside them for those done states — it was
     dropped because three accent hues in a panel this small stopped reading as one object. */

  --brand: var(--text-font-family), Arial, sans-serif; /* theme's real body font, not the spec's Arial placeholder */
  --label: var(--subheading-font-family), Arial, sans-serif;
  --track: -.05em;
  --pill: 1.875rem;

  font-family: var(--brand);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .cd-scope, .cd-scope * {
    transition: none !important;
    animation: none !important;
  }
}

/* The brand sets everything in the drawer lowercase. Doubling the class beats any
   single-class text-transform coming from the theme's own button and label styles,
   whichever order the two stylesheets happen to load in.

   <input> is the one deliberate exception: lowercasing a discount code the shopper
   has typed in capitals makes the field look like it has mangled their input, even
   though the value posted is untouched. */
.cd-scope.cd-scope,
.cd-scope.cd-scope *:not(input) {
  text-transform: lowercase;
}

.cd-scope h1, .cd-scope h2, .cd-scope h3, .cd-scope h4 {
  margin: 0;
  text-transform: lowercase;
  letter-spacing: var(--track);
  line-height: .92;
  text-wrap: balance;
}

.drawer--cart h2, .drawer--cart h3, .drawer--cart h4,
#cart-drawer-companion h2, #cart-drawer-companion h3, #cart-drawer-companion h4 {
  text-transform: lowercase;
  letter-spacing: -.045em;
  line-height: .95;
}

.cd-scope button {
  text-transform: lowercase;
}

.tab {
  font-variant-numeric: tabular-nums;
}

/* NOTE: deliberately does NOT set border-radius. A blanket `border-radius: 6px` here was
   overriding every pill-shaped control's own radius the moment it took focus — most visibly the
   discount field, whose 999px pill snapped to a near-square box on click (a text input always
   matches :focus-visible, mouse or keyboard). Outlines already follow each element's own
   border-radius, so the ring stays rounded on pills without this. */
.cd-scope :focus-visible {
  outline: 2px solid var(--pk-2);
  outline-offset: 2px;
}

/* The two <select>s in the drawer carry their own border, so the blanket ring above —
   2px, offset 2px clear of the element — lands outside that border and reads as a double
   border with a gap between them. These two recolour their own border instead and lay a
   1px shadow directly against it: one continuous ring, same weight, no gap, no layout
   shift.

   The selector is scoped through .cd-scope on purpose. The blanket rule is also two
   classes, so an unscoped `.vsel:focus-visible` only wins on source order — which is
   exactly how this broke the first time, with a second copy of the blanket rule further
   down the file quietly reinstating the outline. Higher specificity settles it outright.

   Outside any hover guard: this is keyboard and tap focus, which happens on every device. */
.cd-scope .vsel:focus-visible,
.cd-scope .sub .pbody select:focus-visible {
  outline: none;
  border-color: var(--pk-2);
  box-shadow: 0 0 0 1px var(--pk-2);
}

/* --------------------------------------------------------------------------
   2. Shell — spec §2. .drawer--cart is the theme's existing <cart-drawer>
   custom element (its own shadow-DOM chrome supplies the fixed overlay);
   these rules layer the spec's exact drawer box on top of it.
   -------------------------------------------------------------------------- */
.drawer--cart {
  --drawer-header-padding-block: 0px;
  --drawer-header-padding-inline: 0px;
  --drawer-body-padding-block: 0px;
  --drawer-body-padding-inline: 0px;
  --drawer-footer-padding-block: 0px;
  --drawer-footer-padding-inline: 0px;
  --drawer-max-width: min(428px, 100vw);
}

.drawer--cart::part(content) {
  background: var(--paper);
  box-shadow: -18px 0 60px -18px rgba(50, 30, 30, .42);
}

@media screen and (max-width: 559px) {
  .drawer--cart {
    --drawer-max-width: 100vw;
  }
}

/* --------------------------------------------------------------------------
   3.1 Header .dhead — spec §3.1
   -------------------------------------------------------------------------- */
.dhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px 13px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  flex: none;
  width: 100%;
}

/* Sized by WIDTH, not height: the wordmark is a wide 2400x922 lockup with a lot of transparent
   padding baked in, so a fixed height made it render far wider than the header wanted. Height
   follows the file's own ratio (98px wide -> ~38px tall). */
.dhead .logo {
  width: 98px;
  height: auto;
  display: block;
  max-width: none;
}

.dhead .logo-text {
  font-family: var(--label);
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}

.dhead .count {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .06em;
  background: var(--pk);
  color: var(--ink);
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 600;
}

.drawer--cart::part(close-button) {
  margin-inline-start: auto;
  position: static;
  color: var(--ink);
  opacity: .55;
}

@media (hover: hover) {
  .drawer--cart::part(close-button):hover {
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   3.2 Scroll body .dbody / .dsec — spec §3.2
   -------------------------------------------------------------------------- */
.drawer--cart::part(body) {
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

.dsec {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.dsec:last-child {
  border-bottom: 0;
}

/* --------------------------------------------------------------------------
   3.3 Free-shipping / international progress .ship — spec §3.3
   -------------------------------------------------------------------------- */
.ship {
  background: var(--cream);
  padding: 13px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.ship .row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.35;
}

/* A small branded mark at the head of the shipping bar. Defaults to a parcel drawn in
   the same stroke weight as the footer trust icons; a logo uploaded in Theme settings
   replaces it. Fixed 26px square either way, so a tall or wide upload can't shove the
   message out of line. */
/* Travel is measured in the icon's own width, not the bar's: left runs 0 -> (100% - 24px),
   so the icon is flush with the start at nothing-spent and flush with the end at the goal,
   never half-hanging off either edge. translateY alone centres it; there is deliberately no
   translateX, because the offset above already accounts for the icon's width. */
.ship .mark {
  position: absolute;
  top: 50%;
  left: calc(var(--progress-bar-progress, 0) * (100% - 24px));
  transform: translateY(-50%);
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 2px var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* The icon repeats its size and stroke as attributes in the markup, so these only
   need to carry the themed colour. Kept as declarations all the same: an attribute
   is the weakest source in the cascade, so the stylesheet still wins when both load. */
.ship .mark svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* No colour change on completion: the icon rides the fill, so tinting it to match
   would bury it in the thing it is meant to sit above. The icon swapping to a tick
   is the signal instead. */

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

.ship .row strong {
  font-weight: 700;
}

.ship .amt {
  margin-left: auto;
  font-family: var(--label);
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
}

.ship .track {
  height: 7px;
  border-radius: 999px;
  background: var(--sand);
  margin-top: 15px;
  display: block;
  position: relative;
}

/* Clips the fill, which the bar itself no longer can: the icon has to overflow it. */
.ship .fill {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  overflow: hidden;
}

.ship .track i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pk), var(--pk-2));
  transform: scaleX(var(--progress-bar-progress, 0));
  transform-origin: left;
}

.ship.done .track i {
  background: var(--pk-2);
}

.ship .won {
  color: var(--ink);
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3.4 Line item .line — spec §3.4
   -------------------------------------------------------------------------- */
/* align-items: start is load-bearing — the theme's own .line-item rule (assets/theme.css) sets
   `align-items: center`, which this element also carries, so without an explicit override the
   thumbnail floats to the vertical middle of a tall row (subscription options, properties,
   discounts) instead of sitting at the top of the grid next to the product title. */
.line {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.line.is-loading {
  opacity: .5;
  pointer-events: none;
}

.line .thumb {
  width: 70px;
  height: 78px;
  border-radius: 10px;
  background: var(--cream);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.line .top {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.line h4 {
  font-size: 14.5px;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}

.line .vr {
  font-size: 11.5px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.4;
}

/* The written caption, under the name, above the options - the same line the cards show.
   Quieter than the options because the options are what the shopper is checking. */
.line .ben {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-2);
  margin-top: 3px;
}$

.line .rm {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink-3);
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: lowercase;
  padding: 2px;
  flex: none;
}

@media (hover: hover) {
  .line .rm:hover {
    color: #B2413C;
  }
}

.line .prow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.line .subtag {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink);
}

.line .autotag {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink);
  background: var(--pk-soft);
  border-radius: 999px;
  padding: 3px 9px;
  display: inline-block;
}

.line .autotag button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--ink);
  font-size: 10px;
  text-transform: lowercase;
  letter-spacing: .02em;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 0;
}

.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  overflow: hidden;
}

/* The theme's own <quantity-selector> element is still in here, INSIDE our .qty pill, and it
   brings its own box with it: `display: inline-grid` on a fixed
   `grid-template-columns: 2.5rem auto 2.5rem` track list, plus its own 1px border, border-radius
   and min-height (assets/theme.css .quantity-selector / .quantity-selector--line-item).

   Our buttons are 26px wide, so they never filled those 40px tracks — each one sat at the START
   of its own track, which is what left the "+" floating with a dead gap between it and the
   pill's right edge instead of sitting centred in the cap. It also meant a second border was
   being drawn just inside ours, with its square-ish corners clipped by our overflow: hidden.

   Flattening it to a plain flex row hands sizing back to the buttons themselves, so the pill
   wraps its contents exactly and both icons land dead centre in their caps. */
.qty .quantity-selector {
  display: flex;
  align-items: center;
  grid-template-columns: none;
  border: 0;
  border-radius: 0;
  min-height: 0;
}

/* .quantity-selector__button matches both variants the theme's native stepper renders:
   a <button> in product-page context, an <a> in cart-line context (see snippets/quantity-selector.liquid) */
.qty button, .qty .quantity-selector__button {
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: 14px;
  color: var(--ink);
  line-height: 1;
}

@media (hover: hover) {
  .qty button:hover, .qty .quantity-selector__button:hover {
    background: var(--cream);
  }
}

.qty .icon {
  width: 8px;
  height: 8px;
}

.qty span, .qty input {
  min-width: 18px;
  text-align: center;
  font-family: var(--label);
  font-size: 11.5px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
}

/* The two prices sit side by side on one baseline, struck original then the real
   price, right-aligned as a pair. Flex rather than inline text so the gap between
   them cannot be collapsed or wrapped by the surrounding whitespace, and nowrap so
   a long pair pushes the row rather than breaking the price in half. */
.price {
  margin-left: auto;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 7px;
  white-space: nowrap;
  text-align: right;
  font-size: 14px;
  font-weight: 700;
}

.price s {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
}

.price .now {
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   3.5 Purchase options (subscription widget) .sub — spec §3.5
   -------------------------------------------------------------------------- */
.sub {
  margin-top: 12px;
}

.sub .polab {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--ink-2);
}

.sub .polab::before, .sub .polab::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
}

.sub .popts {
  border: 1.5px solid var(--ink);
  border-radius: 11px;
  overflow: hidden;
  background: var(--paper);
}

.sub .popt {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  appearance: none;
  border: 0;
  cursor: pointer;
  background: var(--paper);
  padding: 11px 11px;
  text-align: left;
  font-family: var(--brand);
  color: var(--ink);
}

.sub .wrap {
  border-top: 1.5px solid var(--ink);
}

.sub .wrap[data-on="1"] .popt {
  background: var(--pk);
}

.sub .popt .dot {
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  background: var(--paper);
  display: grid;
  place-items: center;
}

.sub .popt[aria-pressed="true"] .dot::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--pk-2);
}

.sub .popt .nm {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  /* Grows to take whatever room .tag/.pr don't need, instead of shrinking equally
     alongside them — this is the label the shopper actually needs to read in full
     ("subscribe and save"), the badge/price are short fixed-width info by comparison,
     so they should hold their size first and let .nm claim the rest. Ellipsis stays
     only as a last-resort safety net for genuinely narrow viewports. */
  flex: 1 1 auto;
}

/* The chip swaps with the row underneath it, because it has to sit on two different
   backgrounds. While one-time purchase is selected the subscribe row is white, so the
   chip is the accent and draws the eye to the discount on offer. Once subscribe is
   selected that row fills with the accent, and an accent chip on an accent row would
   disappear exactly when it matters most — so it reverses out to white.

   Tied to the accent token rather than a fixed hex so it keeps following the brand
   colour setting; today that token is #FFABE5. */
.sub .popt .tag {
  flex: 0 0 auto;
  background: var(--pk);
  color: var(--on-pk);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px 3px 11px;
  transform: rotate(-7deg);
  letter-spacing: .02em;
  line-height: 1.25;
  clip-path: polygon(0 50%, 7px 0, 100% 0, 100% 100%, 7px 100%);
}

.sub .popt .pr {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  flex: 0 0 auto;
  white-space: nowrap;
}

.sub .popt .pr small {
  display: inline-block;
  vertical-align: bottom;
  font-weight: 400;
  font-size: 10.5px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
}

.sub .wrap[data-on="1"] .popt .tag {
  background: #fff;
  color: var(--ink);
}

.sub .wrap[data-on="1"] .popt .pr small {
  color: var(--ink);
}

/* Neutral on purpose. This panel used to be a lighter wash of the accent, directly
   under a row filled with the accent itself — two pinks meeting at a hairline, which
   read as one shape rather than a selected row with its options below it. Keeping it
   on paper leaves the selected row the only coloured surface in the widget. */
.sub .pbody {
  background: var(--paper);
  padding: 10px 12px 11px;
  border-top: 1px solid rgba(138, 42, 107, .18);
}

.sub .pbody .lb {
  display: block;
  font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.sub .pbody select {
  width: 100%;
  appearance: none;
  cursor: pointer;
  font-family: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 9px;
  padding: 9px 30px 9px 11px;
  line-height: 1.2;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
                     linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) 54%, calc(100% - 12px) 54%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

@media (max-width: 420px) {
  .sub .popt {
    gap: 7px;
    padding: 10px 9px;
  }

  .sub .popt .nm, .sub .popt .pr {
    font-size: 11.5px;
  }

  .sub .popt .tag {
    font-size: 9px;
    padding: 3px 6px 3px 9px;
  }

  .sub .popt .pr small {
    font-size: 9.5px;
  }
}

.sub .hiw-link {
  display: block;
  margin-top: 7px;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  font-family: var(--brand);
  font-size: 10.5px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  .sub .hiw-link:hover {
    color: var(--ink);
  }
}

/* --------------------------------------------------------------------------
   3.6 Conditional upsell prompt .prompt — spec §3.6
   -------------------------------------------------------------------------- */
.prompt {
  margin: 0;
  padding: 15px 18px;
  background: linear-gradient(170deg, var(--pk-soft), var(--pk-tint));
  border-bottom: 1px solid var(--line);
}

.prompt .eb {
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink);
}

.prompt h3 {
  font-size: 19px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--ink);
}

.prompt p {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 6px 0 0;
  line-height: 1.5;
  max-width: 44ch;
}

/* The saving is the reason this box exists, and at 10.5px in a label face it read as
   fine print beside the heading above it. Bigger, heavier, and on the body face so it
   carries the same weight as the sentence it competes with. */
.prompt .deal {
  /* inline-flex, not flex: the strip is a badge about one sentence, so it should be as wide as
     that sentence. As a block-level flex row it ran the full width of the box and left a long
     empty tail beside short copy, which is the "stretched out" look the client flagged. */
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-family: var(--brand);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: lowercase;
  background: var(--deal-bg-color, var(--paper));
  color: var(--deal-color, var(--ink));
  padding: 8px 14px;
  border-radius: var(--deal-radius, 999px);
}

/* The opt-out, for merchants who do want it spanning the box. */
.prompt .deal--wide {
  display: flex;
  justify-content: center;
  text-align: center;
}

/* The explaining picture, not a product thumbnail: full bleed across the box and a wide crop,
   so it reads as a photograph of the routine rather than another item for sale. aspect-ratio
   rather than a fixed height keeps it from jumping as the image loads. */
.prompt-fig {
  margin-top: 12px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
}

.prompt-fig img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.offers {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.offer {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  background: var(--paper);
  border-radius: 12px;
  padding: 9px 11px 9px 9px;
  border: 1px solid rgba(138, 42, 107, .14);
}

.offer img {
  width: 52px;
  height: 56px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 8px;
  background: transparent;
  display: block;
}

.offer .nm {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: lowercase;
}

.offer .mt {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.35;
}

.offer .st {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-family: var(--label);
  font-size: 9.5px;
  color: var(--ink-2);
}

.offer .add {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--pk);
  border-radius: 999px;
  background: var(--btn-add);
  color: var(--btn-add-ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 9px 13px;
  line-height: 1.25;
  transition: transform .12s;
}

/* The label is a phrase now, not the word "add", so it has to be free to wrap in this
   narrow column — nowrap here squeezed the product name beside it down to a couple of
   characters. The price keeps nowrap of its own so it never breaks across lines. */
.offer .add .lbl {
  white-space: normal;
}

.offer .add .amt {
  white-space: nowrap;
}

@media (hover: hover) {
  .offer .add:hover {
    background: var(--btn-add-hover);
    color: var(--btn-add-hover-ink);
  }
}

.offer .add:active {
  transform: scale(.96);
}

.offer .add small {
  display: block;
  font-weight: 400;
  font-size: 9.5px;
  opacity: .72;
  margin-top: 2px;
}

.offer .add s {
  opacity: .6;
  font-weight: 400;
}

/* Inline variant picker (snippets/cart-drawer-offer-add.liquid).
   Multi-variant suggestions used to open the theme's quick-buy popup on top of the drawer just to
   pick a size; they now pick in place. A card that carries a picker drops to a two-column grid and
   gives the whole add form its own full-width row underneath, so the select never squeezes the
   product name into a two-character column. */
.offer.has-options {
  grid-template-columns: 52px minmax(0, 1fr);
}

.offer.has-options product-form {
  grid-column: 1 / -1;
  display: block;
}

.offer.has-options product-form form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.vsel {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  min-width: 0;
  font-family: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  text-transform: lowercase;
  line-height: 1.1;
  cursor: pointer;
  padding: 9px 27px 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background-color: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23321E1E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 9px 6px;
}

@media (hover: hover) {
  .vsel:hover {
    border-color: var(--pk-2);
  }
}


/* One picker per option. Side by side while each still has room to read - two 110px pickers fit
   the drawer, one of them does not fit the narrow panel, so they stack there instead. */
.vpick {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 7px;
  /* Both gaps belong to the wrapper, not to the selects inside it. Per-card rules on .vsel were
     landing on every cell of the grid instead of once around it, which is how the pickers ended up
     with air above them and sitting flush against the button they control. */
  margin: 8px 0 9px;
}

/* Guard: the selects carry no margin of their own in any card. */
.vpick .vsel {
  margin: 0;
}

.vopt-row {
  display: grid;
  gap: 3px;
  min-width: 0;
}

/* The option's own name, so a row of pickers does not read as two unexplained dropdowns. */
.vopt-lb {
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: var(--track);
  text-transform: lowercase;
  color: var(--ink-3);
  padding-inline-start: 2px;
}

/* A value that no available variant carries. Kept visible rather than removed: a shopper looking
   for the scent they wanted should find it greyed, not wonder whether they imagined it. */
.vopt option:disabled {
  color: var(--ink-3);
}

/* theme.css draws `outline: 5px auto` on any label containing a focus-visible control, which put a
   black ring around the option's name as well as the picker. The pickers are not wrapped in labels
   any more; this is the guard in case a card ever puts one back. The picker keeps its own ring from
   the .vsel:focus-visible rule at the top of this file. */
.cd-scope label:focus-within:has(.vopt:focus-visible),
.cd-scope .vopt-row:focus-within {
  outline: none;
}

/* The cards that bring their own button: the picker goes above it, because the price on the
   button is what the picker changes and reading downwards is the order it happens in. */


.scard .ad .amt,
.fullset .cta .was,
.fs-action .cta .was {
  white-space: nowrap;
}

/* The struck price is a sibling of .amt now, so it needs the same spacing the nested <s> had. */
.fs-action .cta s {
  margin-inline-start: 6px;
  opacity: .55;
  font-weight: 400;
}

/* A product with no compare-at price would otherwise show an empty <s>. */
.cta small[hidden],
.ad small[hidden] {
  display: none;
}

/* The pop-up card plus its picker, as one grid cell. */
.atcpick {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.atcpick .atccard {
  width: 100%;
}

.atcpick .vsel {
  font-size: 11px;
  padding: 7px 9px;
}

/* [hidden] is a UA rule, so it loses to `.offer .add small { display: block }` — the struck price
   has to be switched off explicitly or it shows as an empty <s> on variants with no compare-at. */
.offer .add small[hidden],
.rcard .go small[hidden] {
  display: none;
}

.cta[disabled],
.add[disabled],
.go[disabled],
.ad[disabled] {
  cursor: not-allowed;
  background: var(--sand);
  border-color: var(--line);
  color: var(--ink-3);
  filter: none;
}

/* The verified mark before the review meta line. Sized from the text so it stays
   proportional if that line is ever resized. */
.tb-t .vchk {
  display: inline-block;
  vertical-align: -1px;
  width: 1.05em;
  height: 1.05em;
  margin-right: 3px;
  color: var(--pk-2);
}

.stars {
  color: var(--pk-2);
  letter-spacing: .5px;
  font-size: 10px;
}

/* --------------------------------------------------------------------------
   3.7 Social proof .proof — spec §3.7
   -------------------------------------------------------------------------- */
/* No bottom rule. The block already sits on its own ground, which separates it from
   what follows; the line on top of that cut the footer into stripes. */
.proof {
  padding: 14px 18px;
  background: var(--cream);
}

.proof .hd {
  display: flex;
  align-items: center;
  gap: 7px;
}

.proof .hd .stars {
  font-size: 12px;
}

.proof .hd .sc {
  font-family: var(--label);
  font-size: 10.5px;
  color: var(--ink-2);
}

.proof .hd .pill {
  margin-left: auto;
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 2px 7px;
}

.proof .rvt {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: var(--track);
  margin-top: 7px;
  text-transform: lowercase;
}

.proof blockquote {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink);
}

.proof cite {
  display: block;
  margin-top: 6px;
  font-family: var(--label);
  font-size: 10px;
  font-style: normal;
  color: var(--ink-2);
}

.proof-for {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.proof-for img {
  width: 38px;
  height: 42px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 8px;
  background: transparent;
  display: block;
  flex: none;
}

.proof-for span {
  font-size: 11px;
  line-height: 1.35;
  color: var(--ink-2);
  min-width: 0;
}

/* The no-reviews line. Deliberately quiet — it is an honest note, not a claim, and it
   should not compete with the review that normally sits here. */
/* A long review is clamped rather than cut: the whole text is in the markup, four lines
   are shown, and the toggle opens the rest in place. Clamping in CSS instead of trimming
   in Liquid is what makes "read the full review" possible at all — there is nothing left
   to reveal once the words have been thrown away. */
.proof blockquote.clamped {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proof blockquote.clamped.is-open {
  -webkit-line-clamp: unset;
  overflow: visible;
}

.proof .moreqt {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin-top: 6px;
  cursor: pointer;
  font-family: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.proof .noreview {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
}

.proof .about {
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink);
  margin-top: 7px;
}

/* --------------------------------------------------------------------------
   3.8 "Complete your ritual" slider .ritual — spec §3.8
   -------------------------------------------------------------------------- */
.ritual {
  padding: 14px 18px 16px;
  border-bottom: 1px solid var(--line);
}

.ritual .hd {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.ritual h3 {
  font-size: 16px;
  font-weight: 700;
}

.ritual .hd span {
  margin-left: auto;
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink-3);
}

.slider {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding-bottom: 5px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.scard {
  flex: 0 0 132px;
  scroll-snap-align: start;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.scard img {
  width: 100%;
  aspect-ratio: 1 / 1.06;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 8px;
  background: transparent;
  padding: 4px;
  display: block;
}

.scard .nm {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: lowercase;
}

.scard .mt {
  font-size: 10px;
  color: var(--ink-2);
  line-height: 1.35;
  margin-top: 2px;
}

.scard .st {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--label);
  font-size: 9px;
  color: var(--ink-2);
}

/* The add control is the card's last row, pinned to the bottom so every button across the slider
   sits on the same line however tall the name, the caption, the stars or the variant pickers above
   it happen to be.

   The pinning has to live HERE, on the flex child, not on the button: the button is inside
   <product-form><form>, so its own margin-top: auto was measured against the form and did nothing
   at all - which is why a card with two pickers pushed its button down while the plain cards left
   theirs floating in the middle. <product-form> is a custom element with no display of its own, so
   it is inline until told otherwise, and an inline box cannot be a flex item's auto margin. */
.scard product-form {
  display: block;
  margin-top: auto;
}

.scard .ad {
  width: 100%;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--pk);
  background: var(--btn-slider);
  color: var(--btn-slider-ink);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 7px 8px;
  line-height: 1;
  text-align: center;
}

@media (hover: hover) {
  .scard .ad:hover {
    background: var(--btn-slider-hover);
    color: var(--btn-slider-hover-ink);
  }
}

/* --------------------------------------------------------------------------
   3.9 Whole-set upgrade .fullset — spec §3.9
   -------------------------------------------------------------------------- */
/* Two stacked rows (.fs-head, .fs-action), not one grid over four loose children. The grid
   version placed <product-form> — not the .cta inside it — as a grid item, so the button's
   `grid-column: 1 / -1` was inert and the button was auto-placed into the narrow first column,
   stopping short of the image's 78px column instead of spanning the box. */
.fullset {
  margin: 0;
  padding: 14px 18px;
  background: var(--pk-tint);
  border-bottom: 1px solid var(--line);
}

/* Row 1: copy left, product image right. */
.fullset .fs-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.fullset .fs-copy {
  flex: 1 1 auto;
  min-width: 0;
}

/* Row 2: the add button and its badge, full bleed across the box. */
.fullset .fs-action {
  margin-top: 12px;
}

/* <product-form> is a custom element with no display of its own, so it defaults to inline and
   would shrink-wrap the button. It has to be a block for `width: 100%` on .cta to mean the
   box's full width. */
.fullset product-form {
  display: block;
}

#cart-drawer-companion .fullset {
  margin-top: 16px;
  border-radius: 14px;
  border-bottom: 0;
}

.fullset h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.15;
}

/* 5px under a 17px heading is less than the heading's own descender space, so the two read as
   one block of text. 9px plus the line-height above separates them without opening a gap. */
.fullset p {
  font-size: 11.5px;
  color: var(--ink-2);
  margin: 9px 0 0;
  line-height: 1.45;
}

.fullset img {
  flex: none;
  width: 78px;
  height: 78px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 10px;
  display: block;
  background: transparent;
}

/* Layout fixes vs. the original rule:
   - horizontal padding (was a flat `padding: 11px`), so the label no longer runs edge to edge
     inside the pill at the ritual panel's narrow width;
   - .amt (separator + price + struck-through compare-at price) is one nowrap unit, so a line can
     only ever break between the LABEL and the amount, never inside the amount. Previously the
     price was appended onto the label string and the <s> trailed it as a bare inline, so the
     browser was free to break anywhere: the price glued to the compare-at price
     ("...set - $4.99$15.99"), and once spaced, "$15.99" dropped onto a line by itself.
   Deliberately `display: block`, not flex: label and amount are one sentence and should reflow
   as running text. Flex would make .amt a separate item baseline-aligned to the label's FIRST
   line, stranding the price beside "add the everything" whenever the label wraps.
   No text-wrap: balance either — balancing pushed the amount onto its own short line; plain
   greedy wrapping fills the first line and carries only the remainder over, as in the design. */
.fullset .cta {
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--pk);
  border-radius: 999px;
  background: var(--btn-upgrade);
  color: var(--btn-upgrade-ink);
  font-size: 12px;
  font-weight: 700;
  /* Trimmed from 12px/18px and 1.4: with a long label, the struck price and a 1.4 line-height the
     pill grew into a three-deep block. The padding is now just enough to keep the text off the
     border, and the tighter leading means a second line costs 15px rather than 18px. */
  padding: 9px 14px;
  display: block;
  text-align: center;
  line-height: 1.25;
  width: 100%;
}

/* The amount and the struck price are one unit, so a line can only break before the amount -
   never between the price and what it was. */
.fullset .cta .amt,
.fs-action .cta .amt {
  white-space: nowrap;
}

.fullset .cta .was,
.fs-action .cta .was {
  font-size: 10.5px;
}

@media (hover: hover) {
  .fullset .cta:hover {
    background: var(--btn-upgrade-hover);
    color: var(--btn-upgrade-hover-ink);
  }
}

.fullset .cta s {
  margin-inline-start: 6px;
  opacity: .55;
  font-weight: 400;
}

.fsbadge {
  text-align: center;
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--ink);
  margin-top: 7px;
}

/* --------------------------------------------------------------------------
   3.10 Empty state .empty — spec §3.10
   -------------------------------------------------------------------------- */
.empty {
  padding: 22px 18px 18px;
  text-align: center;
}

.empty h3 {
  font-size: 23px;
  font-weight: 700;
}

.empty p {
  font-size: 12.5px;
  color: var(--ink-2);
  margin: 8px auto 0;
  max-width: 34ch;
  line-height: 1.5;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 16px 0;
}

.tabs button {
  appearance: none;
  cursor: pointer;
  width: 100%;
  border: 1px solid var(--line-2);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  padding: 12px;
  line-height: 1;
}

.tabs button[aria-pressed="true"] {
  background: var(--pk);
  color: var(--on-pk);
  border-color: var(--pk);
}

.empty .meet {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.04em;
  text-transform: lowercase;
  margin-bottom: 10px;
  text-align: left;
}

.egrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  text-align: left;
}

/* --------------------------------------------------------------------------
   3.11 Footer .dfoot — spec §3.11
   -------------------------------------------------------------------------- */
.drawer--cart::part(footer) {
  padding: 0;
}

.dfoot {
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--paper);
  padding: 13px 18px 15px;
  padding-bottom: calc(15px + env(safe-area-inset-bottom));
}

/* The <form> itself (.promo) stays a plain, unstyled wrapper — positioning/sizing all lives on
   the inner .promo-field <div> instead, since a <div> is a more predictable containing block for
   an absolutely-positioned child across browsers than a <form> is. ".apply" is a small standalone
   pill floating INSIDE the input's pill (its own border, a visible gap of the input's background
   all around it — matching the Framer reference exactly), not a full-height segment sharing the
   outer border. Positioned via top:50% + translateY(-50%) rather than top/bottom offsets: its
   size comes purely from its own padding/content, not from matching .promo-field's exact height. */
/* The terms checkbox sits directly above the discount field, and both are optional, so
   neither can carry the gap on its own: with terms off, a top margin on the discount box
   would push it away from whatever happens to be above it instead. The gap belongs to the
   checkbox, applied only when it is actually followed by the discount box. */
.checkbox-control:has(+ .promo) {
  margin-bottom: 14px;
}

/* :has() is well supported now, but a drawer footer is the wrong place to gamble on it —
   this is the same gap stated the other way round, harmless where the rule above already
   applies because margins between siblings collapse to the larger of the two. */
.checkbox-control + .promo {
  margin-top: 14px;
}

.promo {
  margin-bottom: 16px !important;
}

/* View cart and checkout are two full-width pills stacked on top of each other. The outline
   one is rendered by the theme's own button snippet, so it carries no spacing of its own and
   the two sat flush. The gap goes on the checkout button, and only when something precedes
   it — on its own it must stay tight to the footer above. */
.checkout:not(:first-child) {
  margin-top: 10px;
}

/* Two fully separate pills side by side (not one overlapping the other) — plain flexbox, no
   absolute positioning at all, per explicit request. */
.promo-field {
  display: flex;
  gap: 8px;
  box-sizing: border-box;
}

.promo-field input {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--paper);
  font-family: var(--brand);
  font-size: 12px;
  color: var(--ink);
  padding: 12px 16px;
  letter-spacing: 0;
}

.promo-field input::placeholder {
  color: var(--ink-3);
}

.promo-field input:focus {
  outline: none;
  border-color: var(--pk-2);
}

.promo-field button {
  flex: none;
  appearance: none;
  cursor: pointer;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--brand);
  font-size: 11.5px;
  font-weight: 700;
  padding: 0 18px;
  letter-spacing: var(--track);
}

@media (hover: hover) {
  .promo-field button:hover {
    background: var(--pk-2);
    color: #FFF6FC;
  }
}

.tot {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 11px;
  /* No top margin of its own. The 16px that used to be forced from this side was clearance from
     the inline discount field, which has moved into the footer's popover row — so it was being
     paid even when nothing was above the totals, as a gap under the action buttons. .promo keeps
     its own margin-bottom, so the clearance comes back with the field whenever the inline
     version is switched back on. */
  margin-top: 0;
}

.tot .r {
  display: flex;
  font-size: 12.5px;
  color: var(--ink-2);
}

.tot .r b {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 600;
}

.tot .r.save {
  color: var(--ink);
}

.tot .r.save b {
  color: var(--ink);
}

.tot .r.grand {
  font-size: 17px;
  color: var(--ink);
  font-weight: 700;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  text-transform: lowercase;
  letter-spacing: -.03em;
}

.tot .r.grand b {
  font-size: 19px;
  font-weight: 700;
}

.checkout {
  display: block;
  width: 100%;
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: var(--pill);
  background: var(--btn-checkout);
  color: var(--btn-checkout-ink);
  font-size: 14.5px;
  font-weight: 700;
  padding: 15px;
  letter-spacing: var(--track);
  transition: transform .12s;
}

/* Hover is a setting now, and its default equals the background, so by default
   nothing changes on hover — the earlier request still holds — while a shop that
   wants a hover colour has one. Pointer devices only: on a phone :hover sticks
   after a tap, which is what made these buttons look permanently bright. */
@media (hover: hover) {
  .checkout:hover {
    background: var(--btn-checkout-hover);
    color: var(--btn-checkout-hover-ink);
  }
}

.checkout:active {
  transform: scale(.99);
}

.checkout[disabled] {
  opacity: .35;
  cursor: not-allowed;
}

/* margin-bottom keeps the "verified reviews" line off the checkout button below it — with
   `margin: 10px 0 0` the two sat flush against each other. */
.trustbar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0 14px;
  padding-top: 0px;
  border-top: 0px solid var(--line);
}

.faces {
  display: flex;
  flex: none;
}

.faces img {
  width: 21px;
  height: 21px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--paper);
  margin-left: -7px;
  background: var(--sand);
}

.faces img:first-child {
  margin-left: 0;
}

.tb-t {
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.3;
}

.tb-t b {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  text-transform: lowercase;
  letter-spacing: -.02em;
}

.tb-t .stars {
  font-size: 9px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 11px;
  margin: 7px 0 12px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.trust span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--ink-2);
  white-space: nowrap;
  line-height: 1.5;
}

.trust svg {
  flex: none;
  width: 12px;
  height: 12px;
  stroke: var(--ink);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trustline {
  text-align: center;
  font-size: 9.5px;
  color: var(--ink-3);
  margin: 7px 0 0;
  line-height: 1.4;
}

.trustline .stars {
  font-size: 11px;
}

/* --------------------------------------------------------------------------
   4. Ritual panel #cart-drawer-companion (spec: aside#ritual.ritualpanel) —
   spec §4. Standalone fixed element, not a flex sibling inside a shared
   wrapper — see the architecture note at the top of this file. Position/
   sizing below is the practical equivalent: flush against the drawer,
   sliding with it, hidden below 1000px in favour of .rtmini inside the drawer.
   -------------------------------------------------------------------------- */
/* #cart-drawer-companion is a CLIPPING FRAME, not the panel itself: it is parked in the strip of
   viewport immediately to the left of the drawer and clips its overflow, while the panel that
   actually slides (#cart-drawer-companion-inner) translates inside it. That split is what makes
   the panel appear to come OUT FROM BEHIND the main drawer: previously the panel itself carried
   the transform at z-index 1000, so on its way in it was painted ON TOP of the drawer and
   visibly swept across it. Now anything still sitting over the drawer's own column is simply
   clipped away and never paints there at all.

   The frame keeps z-index 1000 (above the drawer's ::part(base) at 999) so the panel is not
   dimmed by the drawer's overlay, and pointer-events: none so that, while closed, clicks in this
   strip still fall through to the overlay and close the drawer as usual. */
#cart-drawer-companion {
  display: none;
}

@media screen and (min-width: 1000px) {
  #cart-drawer-companion {
    display: block;
    position: fixed;
    inset-block: 0;
    inset-inline-end: min(428px, 100vw);
    width: 352px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1000; /* above the drawer's own overlay part (z-index 999) */
  }

  #cart-drawer-companion-inner {
    pointer-events: auto;
    box-sizing: border-box;
    height: 100%;
    background: var(--cream);
    border-right: 1px solid var(--line);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 20px 18px 22px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s linear .42s;
  }

  #cart-drawer-companion.is-open #cart-drawer-companion-inner {
    transform: translateX(0);
    visibility: visible;
    transition: transform .42s cubic-bezier(.32, .72, 0, 1), visibility 0s;
  }

  .rtmini {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   4.0 Scrollbars — the drawer body and the ritual panel are both tall,
   always-scrolling columns, so their native scrollbars are permanently on
   screen. Styled to the drawer's own palette instead: a thin, rounded,
   track-less thumb. scrollbar-width/-color are the standard properties
   (Firefox, Chrome 121+, Safari 18.4+); the ::-webkit- block below is the
   fallback for older Chromium/Safari, which ignore the standard ones.
   -------------------------------------------------------------------------- */
#cart-drawer-companion-inner {
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}

#cart-drawer-companion-inner::-webkit-scrollbar {
  width: 10px;
}

#cart-drawer-companion-inner::-webkit-scrollbar-track {
  background: transparent;
}

#cart-drawer-companion-inner::-webkit-scrollbar-thumb {
  background-color: var(--line-2);
  border-radius: 999px;
  border: 3px solid transparent;
  background-clip: content-box;
}

@media (hover: hover) {
  #cart-drawer-companion-inner::-webkit-scrollbar-thumb:hover {
    background-color: var(--ink-3);
  }
}

.ritualpanel-kick {
  text-align: center;
  font-size: 9.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink-2);
}

#cart-drawer-companion h2 {
  text-align: center;
  font-size: 31px;
  font-weight: 700;
  margin-top: 4px;
  letter-spacing: -.05em;
}

.ritualpanel-strap {
  text-align: center;
  font-size: 9px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink-2);
  margin-top: 7px;
}

/* 4.2 four-step tracker .rsteps */
.rsteps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  position: relative;
}

.rstep {
  text-align: center;
  position: relative;
}

.rstep .dot {
  width: 29px;
  height: 29px;
  border-radius: 999px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  background: var(--sand);
  color: var(--ink-3);
  position: relative;
  z-index: 2;
  border: 2px solid var(--cream);
  transition: background .3s, color .3s;
}

.rstep.on .dot {
  background: var(--pk);
  color: var(--on-pk);
}

.rstep.next .dot {
  background: var(--pk-soft);
  color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--pk);
}

.rstep .bar {
  position: absolute;
  top: 14px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: var(--line-2);
  z-index: 1;
}

.rstep.on .bar {
  background: var(--pk);
}

.rstep:first-child .bar {
  display: none;
}

.rstep .nm {
  font-size: 9.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
  font-weight: 700;
  margin-top: 8px;
}

.rstep .sb {
  font-size: 10.5px;
  color: var(--ink-2);
  font-style: italic;
  margin-top: 2px;
}

.rstep:not(.on) .nm {
  color: var(--ink-3);
}

.rtmini .rstep .sb {
  display: none;
}

/* 4.3 status banner .rban */
.rban {
  background: var(--pk-soft);
  border: 1px solid rgba(138, 42, 107, .14);
  border-radius: 13px;
  padding: 13px 14px;
  margin-top: 18px;
}

.rban .t {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--ink);
}

.rban p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}

.rban .tt {
  display: block;
  margin-top: 9px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  line-height: 1.4;
}

.rban .dn {
  margin-top: 6px;
  font-size: 11px;
  color: var(--ink-2);
}

/* 4.4 next-step cards .rcards */
.rcards {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 13px;
}

.rcard {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 11px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 13px;
  padding: 9px;
  align-items: center;
}

.rcard img {
  width: 62px;
  height: 66px;
  object-fit: contain;
  mix-blend-mode: multiply;
  border-radius: 9px;
  background: transparent;
  display: block;
}

.rcard .nm {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: lowercase;
}

.rcard .mt {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 3px;
}

.rcard .dsc {
  font-size: 11px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.rcard .st {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--ink-2);
  margin-top: 3px;
}

.rcard .go {
  margin-top: 7px;
  width: 100%;
  appearance: none;
  cursor: pointer;
  border: 1px solid var(--pk);
  border-radius: 999px;
  background: var(--btn-add);
  color: var(--btn-add-ink);
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px;
  font-family: var(--brand);
}

@media (hover: hover) {
  .rcard .go:hover {
    background: var(--btn-add-hover);
    color: var(--btn-add-hover-ink);
  }
}

/* 4.5 mini tracker inside the drawer .rtmini */
.rtmini {
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}

/* A line of text, not a control: nothing in the strip folds away any more. */
.rtmini-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 2px 0 10px;
}

.rtmini .lb {
  font-size: 9.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink-2);
  text-align: center;
}


/* --------------------------------------------------------------------------
   5. Subscription benefits modal — a centered dialog covering the whole
   viewport (drawer, ritual panel and page all dimmed behind it), per the
   reference screenshot: rounded corners on every side, scale/fade in,
   not a bottom sheet. Centered within the drawer + ritual panel's own
   combined width on the right side of the screen (matching the Framer
   reference exactly — its popup is NOT centered on the full page either,
   it stays over the cart UI so the page content on the left stays
   legible behind it), not the full viewport — a full-viewport center was
   tried and didn't match the reference, this corrects that.
   -------------------------------------------------------------------------- */
.cd-sub-scrim {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: min(428px, 100vw); /* drawer's own width */
  background: rgba(40, 20, 30, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1001; /* above #cart-drawer-companion's 1000 */
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .28s ease;
}

@media screen and (min-width: 1000px) {
  body:has(#cart-drawer-companion) .cd-sub-scrim {
    width: calc(22rem + min(428px, 100vw)); /* ritual panel (352px) + drawer, ~780px total */
  }
}

.cd-sub-scrim.is-open {
  opacity: 1;
  pointer-events: auto;
}

.cd-sub-scrim[hidden] {
  display: none;
}

.cd-sub-modal {
  background: var(--pk-soft);
  border: 1px solid var(--pk);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  transform: scale(.94) translateY(6px);
  opacity: 0;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1), opacity .28s ease;
  padding: 28px 26px calc(26px + env(safe-area-inset-bottom, 0px));
  max-height: min(88vh, 640px);
  overflow-y: auto;
  position: relative;
}

.cd-sub-scrim.is-open .cd-sub-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.cd-sub-modal h3 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  line-height: .98;
}

.cd-sub-modal .sub2 {
  text-align: center;
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink);
  margin-top: 9px;
}

.cd-sub-modal .x2 {
  position: absolute;
  top: 18px;
  right: 20px;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 16px;
  color: var(--ink);
  line-height: 1;
}

.cd-sub-modal .mcalc {
  margin-top: 14px;
  background: var(--paper);
  border-radius: 12px;
  padding: 11px;
}

.cd-sub-modal .go {
  display: block;
  width: 100%;
  margin-top: 13px;
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--btn-subscribe);
  color: var(--btn-subscribe-ink);
  font-size: 13.5px;
  font-weight: 700;
  padding: 13px;
}

@media (hover: hover) {
  .cd-sub-modal .go:hover {
    background: var(--btn-subscribe-hover);
    color: var(--btn-subscribe-hover-ink);
  }
}

.cd-sub-modal .no {
  display: block;
  width: 100%;
  margin-top: 9px;
  appearance: none;
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hiw {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  margin-top: 14px;
}

.hiw div {
  font-size: 11px;
  line-height: 1.4;
  color: var(--ink-2);
  text-align: center;
}

.hiw .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0 auto 6px;
  border-radius: 999px;
  background: var(--pk);
  font-size: 18px;
}

.hiw div:nth-child(2) .ic {
  background: var(--sand);
}

.hiw div:nth-child(3) .ic {
  background: rgba(82, 87, 46, .18);
}

.hiw div:nth-child(4) .ic {
  background: rgba(138, 42, 107, .14);
}

.calc {
  padding: 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: var(--pk-soft);
}

.calc .r {
  display: flex;
  font-size: 11.5px;
  color: var(--ink-2);
}

.calc .r b {
  margin-left: auto;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.calc .r.big {
  font-size: 12.5px;
  color: var(--ink);
  padding-top: 5px;
  border-top: 1px solid rgba(138, 42, 107, .16);
}

.calc .r.big b {
  color: var(--ink);
  font-weight: 700;
}

.perks {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  padding: 8px 11px 10px;
  background: var(--pk-soft);
  border-top: 1px solid rgba(138, 42, 107, .1);
}

.perks span {
  font-family: var(--label);
  font-size: 9.5px;
  letter-spacing: .02em;
  text-transform: lowercase;
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   6. Pre-checkout pairing pop-up — spec §6
   -------------------------------------------------------------------------- */
.modal--upsell {
  --modal-content-margin: 20px;
}

/* The stacking order of everything that can sit over the drawer, in one place:

     drawer overlay            999
     ritual panel             1000
     subscription scrim       1001
     this pop-up              1002   <- the last word before checkout

   It carried no z-index at all, which was fine while opening it also closed the drawer.
   Now that the drawer deliberately stays open behind it, the pop-up has to out-rank the
   panel and the scrim or it renders underneath them and looks like it failed to open. */
.modal--upsell::part(base) {
  background: rgba(50, 30, 30, .52);
  place-items: center;
  z-index: 1002;
}

.modal--upsell::part(content) {
  position: relative;
  background: var(--atc-bg, var(--paper));
  color: var(--atc-ink, var(--ink));
  border-radius: 20px;
  padding: 22px 20px 20px;
  width: 100%;
  max-width: 430px;
  max-height: 100%;
  overflow-y: auto;
  box-shadow: 0 26px 60px -18px rgba(50, 30, 30, .5);
  place-self: center;
}

/* This line is the whole reason the pop-up interrupts the shopper, and it was set in the
   smallest type in the box. Up to 13px, bold, letterspaced and in the ink colour - it now
   reads as the first thing in the dialog rather than as a caption above the heading. */
.atceb {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: currentColor;
  opacity: .72;
}

.modal--upsell h3 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -.04em;
  line-height: 1.04;
  text-transform: lowercase;
  margin-top: 9px;
  padding: 0 6px;
  color: currentColor;
}

.atcsub {
  text-align: center;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 9px auto 0;
  max-width: 34ch;
  color: currentColor;
  opacity: .72;
}

/* The offer, on its own line. A pill rather than a full-width bar so it reads as a stamp on
   the message and not as another section of the dialog. */
.atcoffer {
  display: block;
  width: fit-content;
  margin: 13px auto 0;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--pk);
  color: var(--on-pk);
  font-family: var(--brand);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  text-align: center;
}

.modal--upsell::part(close-button) {
  top: 12px;
  right: 14px;
  font-size: 17px;
  color: var(--ink-3);
}

/* Three across, always. auto-fit with a 112px minimum sounds equivalent but is not: it
   measures the container, and inside this modal that measurement came out under 224px, so
   every card wrapped onto its own line and the popup turned into a tall scrolling column.
   Three explicit columns of minmax(0, 1fr) share whatever width there is instead — the
   cards shrink rather than stack, and the popup keeps its shape. */

/* The sold-out stand-in for a grid card's add button. Same footprint so the card keeps its
   height and the row stays level.

   In the brand's own pink rather than grey: grey read as broken UI next to the pink add buttons
   beside it, when the card is not broken at all - the product is simply unavailable. The soft
   tint and the muted ink keep it clearly a statement rather than an offer, without it looking
   like a rendering failure. */
.scard .ad--out {
  background: var(--pk-soft);
  color: var(--ink-2);
  border: 1px solid var(--pk);
  cursor: default;
  opacity: .85;
}

.atccards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

/* Below this the three would be too narrow to read, so two is the better compromise. */
@media screen and (max-width: 420px) {
  .atccards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Two products get two columns, not two thirds of a three-column grid with a gap on the end. */
/* A single suggestion. Two classes, so it beats the narrow-screen override of .atccards above
   whatever the source order: one card in a three-column grid sat in the left column, hard against
   the edge of the dialog, reading as a layout that had failed to load the other two. */
.atccards.atccards--one {
  grid-template-columns: minmax(0, 190px);
  justify-content: center;
  max-width: none;
  margin-inline: auto;
}

.atccards--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 340px;
  margin-inline: auto;
}

.atccard {
  position: relative;
  appearance: none;
  cursor: pointer;
  /* Explicitly the paper colour, not inherited: the dialog behind it is tinted now, and a
     transparent card would leave the product floating on the tint with no edge. */
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 9px 9px 11px;
  text-align: center;
  font-family: var(--brand);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s, background .15s;
}

@media (hover: hover) {
  .atccard:hover {
    border-color: var(--ink);
    background: var(--cream);
  }
}

/* contain, not cover. These are tall bottles and jars shot on white: a square cover crop cuts
   the lid off the top and the base off the bottom, which is the "images are being cut off" in
   the brief. contain fits the whole product and pads the sides instead. */
.atccard img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 10px;
  background: var(--paper);
  padding: 6px;
  display: block;
}

.atccard .plus {
  position: absolute;
  top: -7px;
  left: -7px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--pk-soft);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  z-index: 2;
  border: 2px solid var(--paper);
}

.atccard .cn {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 4px;
}

.atccard .cn {
  color: var(--ink);
}

/* The benefit line. Left to inherit it picked up the dialog's ink colour, which the merchant
   can set to anything - pinned to the drawer's own secondary ink so it stays legible. */
.atccard .cm {
  font-size: 10.5px;
  color: var(--ink-2);
  line-height: 1.35;
}

.atccard.added {
  border-color: var(--pk-2);
  background: var(--pk-soft);
}

.atccard.added .plus {
  background: var(--pk);
}

.atccard[disabled] {
  cursor: default;
}

.atcgo {
  display: block;
  width: 100%;
  margin-top: 18px;
  appearance: none;
  cursor: pointer;
  border: 0;
  border-radius: 999px;
  background: var(--pk);
  color: var(--on-pk);
  font-size: 14px;
  font-weight: 700;
  padding: 14px;
  font-family: var(--brand);
  letter-spacing: -.02em;
}

@media (hover: hover) {
  .atcgo:hover {
    background: var(--btn-add-hover);
    color: var(--btn-add-hover-ink);
  }
}

/* --------------------------------------------------------------------------
   7. Toast — spec §7. Positioned relative to the drawer's content box,
   centred across drawer + ritual panel per the spec (this theme's own
   <x-toast> is a page-level singleton, so this instead restyles it to the
   spec's pill shape and colours — see snippets/cart-drawer.css §"toast"
   note below).
   -------------------------------------------------------------------------- */
.toast.color-scheme--scheme-4 .toast__message:not(.toast__message--error) {
  background: var(--ink, #321E1E);
  color: #FFF6FC;
}

.toast__message {
  border-radius: 999px;
  font-size: 12px;
  padding: 9px 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

/* --------------------------------------------------------------------------
   Focus ring (spec §1 / §10)
   -------------------------------------------------------------------------- */

