:root {
  /* mainstay design tokens */
  --color-warm-paper: #F7F1E6; /* ground */
  --color-warm-paper-on: #1F2E4A; /* text/ink on warm-paper */
  --color-mainstay-navy: #1F2E4A; /* brand */
  --color-mainstay-navy-on: #F7F1E6; /* text/ink on mainstay-navy */
  --color-vivacelle-plum: #5B2A4B; /* product */
  --color-vivacelle-plum-on: #F7F1E6; /* text/ink on vivacelle-plum */
  --color-coral: #E0735A; /* accent */
  --color-oat: #E8DCC8; /* surface */
  --color-oat-on: #1F2E4A; /* text/ink on oat */
  --color-text-ink: #1E1E1E; /* text */
  --font-display: "Source Serif 4";
  --font-body: "Atkinson Hyperlegible";
  --type-h1: 3.5rem;
  --type-h2: 2.5rem;
  --type-h3: 1.875rem;
  --type-lead: 1.5rem;
  --type-body: 1.25rem;
  --type-caption: 1.0625rem;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
}

/*
 * dr_checkout/reserve-v1 (DR checkout funnel DC2, 2026-09-26).
 * The reserve layout: desktop two columns (form left, offer right); mobile
 * packs + summary first, then the reserved-for countdown, then the form. One
 * DOM serves both: below 860px the two columns become `display: contents` and
 * each block takes its mobile `order`.
 *
 * 1.6.1 phone form-first (operator decision, Brian, 2026-10-07): when the runtime has locked the pack the VSL handed over
 * (body[data-dr-pack-locked]), a phone shows the summary (with the chosen pack's pills and a "Change" link), the timer and the
 * form first, then the pack cards, then the presenter, guarantee and the rest. No lock (no / invalid / another offer's pack):
 * the mobile order above, unchanged. Every 1.6.1 rule is inside the phone query or hides the locked row, so >= 860 px is untouched.
 *
 * CRO skin 1.4.0 (operator directive, Brian, 2026-10-02): the order, upsell and thank-you pages follow the measured CRO controls (cro-skin-study-2026-10-02
 * section 2 "checkout / order page": white form column, #fbfbfb summary column, gold gradient primary button, red guarantee heading, blue selected
 * state; conversion_evidence none), NOT the brand kit. The :root defaults below are those control values and read no --brand-* token. A brand that
 * opts out (--brand-skin-source: brand in its tokens.css) gets the brand-kit mapping appended by dr-checkout-page.ts (BRAND_SKIN_CSS). The primary
 * Place Order button lives in the cart-engine payment frame, not in this stylesheet; --dr-cta / --dr-cta-ink are the tokens for the buttons this
 * stylesheet does own and the values a payment-frame theme hook should read.
 */
:root {
  --dr-ink: #111111;
  --dr-surface: #ffffff;
  --dr-panel: #fbfbfb;
  --dr-accent: #0466a7;
  --dr-highlight: #e6f1fa;
  --dr-alert: #c21300;
  --dr-cta: linear-gradient(180deg, #ffd23f 0%, #f7941d 100%);
  --dr-cta-ink: #111111;
  --dr-line: #d9dce1;
  --dr-radius: 8px;
  --dr-font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --dr-font-display: var(--dr-font);
}

* { box-sizing: border-box; }
body.dr-page { margin: 0; background: var(--dr-surface); color: var(--dr-ink); font: 16px/1.5 var(--dr-font); }
/* OP-3 (order-page reload P0, 2026-10-10): a skin that sets no_pull_refresh marks <html data-dr-no-ptr>. The root element is where the rule must sit
   (a rule on body alone is not read by the viewport), and the attribute keeps every other brand and skin on the browser's default bounce.
   It stops the page being dragged past the top, which is what the Facebook in-app browser's own pull-to-refresh needs; iOS before 16 ignores it,
   so the v2 runtime also cancels the downward drag at the top (order-v2.js). */
html[data-dr-no-ptr], html[data-dr-no-ptr] body { overscroll-behavior-y: none; }
.dr-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px max(16px, calc((100% - 1120px) / 2)); border-bottom: 1px solid var(--dr-line); }
.dr-header__brand { margin: 0; font: 700 1.25rem/1.2 var(--dr-font-display); color: var(--dr-accent); }
.dr-header__support { margin: 0; font-size: 0.875rem; }
.dr-main { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.dr-section__heading { margin: 0 0 12px; font: 600 1rem/1.3 var(--dr-font); text-transform: uppercase; letter-spacing: 0.04em; }

/* stages (the embed sets data-dr-stage on the mount) */
.dr-stage-note { display: none; padding: 16px; border-radius: var(--dr-radius); background: var(--dr-highlight); }
.dr-stage-note__title { margin: 0 0 8px; font: 700 1.5rem/1.2 var(--dr-font-display); }
[data-dr-stage="confirming"] .dr-stage-note--confirming { display: block; }
/* DC4: the thank-you stage lives inside the form (thank-you-club-v1 lays it out); only confirming hides the form. */
[data-dr-stage="confirming"] .dr-form { display: none; }
.dr-fallback { padding: 16px; border: 1px solid var(--dr-line); border-radius: var(--dr-radius); }

/* two columns */
.dr-form { display: flex; gap: 40px; align-items: flex-start; }
.dr-form[hidden] { display: none; }
.dr-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.dr-col--form { flex: 1 1 52%; }
.dr-col--offer { flex: 1 1 48%; padding: 16px; background: var(--dr-panel); border-radius: var(--dr-radius); }

/* urgency */
.dr-reserved { margin: 0; padding: 14px 16px; text-align: center; font-weight: 600; font-size: 1.125rem; background: var(--dr-highlight); border: 1px solid var(--dr-accent); border-radius: var(--dr-radius); }
.dr-reserved__clock, .dr-countdown__clock { color: var(--dr-alert); font-weight: 800; font-variant-numeric: tabular-nums; }
.dr-reserved__clock { font-size: 1.5rem; margin-left: 6px; }
.dr-countdown, .dr-viewers, .dr-stock { margin: 0 0 10px; font-size: 0.9375rem; }
.dr-viewers__count { font-weight: 700; }
.dr-toast { position: fixed; left: 16px; bottom: 16px; z-index: 20; max-width: min(360px, calc(100% - 32px)); padding: 12px 36px 12px 14px; background: #fff; border-radius: 999px; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18); font-size: 0.875rem; }
.dr-toast[hidden] { display: none; }

/* fields */
.dr-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dr-fields .dr-section__heading { grid-column: 1 / -1; }
.dr-field { display: flex; flex-direction: column; gap: 4px; grid-column: 1 / -1; }
.dr-field--half { grid-column: span 1; }
.dr-field__label { font-size: 0.9375rem; }
.dr-field input, .dr-field select { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--dr-line); border-radius: 6px; background: #fff; }

/* 0.10.3 missing-field hint: shown when the buyer taps the disabled Place Order button.
   Its CSS order matches the contact fields so it sits near its target on a phone. */
.dr-missing-hint { margin: 0 0 12px; padding: 10px 14px; font-size: 0.9375rem; font-weight: 600; color: var(--dr-alert); background: #fff0f0; border: 1px solid var(--dr-alert); border-radius: var(--dr-radius); order: 4; }
.dr-missing-hint[hidden] { display: none; }

/* payment */
.dr-payment { padding: 16px; border: 1px solid var(--dr-line); border-radius: var(--dr-radius); background: var(--dr-panel); }
.dr-payment__methods { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 0.8125rem; }
.dr-payment__method { padding: 2px 8px; border: 1px solid var(--dr-line); border-radius: 4px; background: #fff; }
.dr-payment__slot { min-height: 120px; }
.dr-payment__slot iframe { display: block; width: 100%; border: 0; }
.dr-payment__consent, .dr-payment__descriptor { margin: 12px 0 0; font-size: 0.8125rem; }

/* OP-5: autofill-completion card cue. Space reserved (visibility+opacity, not display:none) to avoid layout shift. */
.dr-card-cue { margin: 10px 0 0; padding: 10px 12px; font-size: 0.9375rem; font-weight: 500; color: var(--dr-ink); background: var(--dr-highlight); border-radius: var(--dr-radius); border-left: 3px solid var(--dr-accent); visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s .3s; }
.dr-card-cue[data-dr-card-cue-shown] { visibility: visible; opacity: 1; transition: opacity .3s ease, visibility 0s 0s; }
[data-dr-card-cue-highlight] .dr-payment { box-shadow: 0 0 0 2px var(--dr-accent); transition: box-shadow .3s ease; }

/* autoship test arm + its negative-option disclosure */
.dr-autoship { padding: 12px; border: 1px dashed var(--dr-line); border-radius: var(--dr-radius); }
.dr-autoship__terms { margin: 8px 0 0; font-size: 0.8125rem; }

/* guarantee + presenter */
.dr-guarantee { padding: 16px; border-radius: var(--dr-radius); background: var(--dr-highlight); }
.dr-guarantee__badge { margin: 0 0 4px; font-weight: 700; color: var(--dr-accent); }
.dr-guarantee__title { margin: 0 0 8px; font: 700 1.25rem/1.25 var(--dr-font-display); color: var(--dr-alert); }
.dr-guarantee__body { margin: 0; }
.dr-presenter { padding: 16px; border-radius: var(--dr-radius); background: var(--dr-panel); text-align: center; }
.dr-presenter__name { margin: 0; font-weight: 700; }
.dr-presenter__credential { margin: 0; font-size: 0.9375rem; }

/* packs */
.dr-packs__list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dr-pack__select { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 12px; width: 100%; padding: 14px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--dr-line); border-radius: var(--dr-radius); cursor: pointer; }
.dr-pack__select[aria-pressed="true"] { border: 2px solid var(--dr-accent); box-shadow: 0 0 0 3px var(--dr-highlight); }
.dr-pack__radio { grid-row: 1 / span 3; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--dr-line); border-radius: 50%; }
.dr-pack__select[aria-pressed="true"] .dr-pack__radio { border-color: var(--dr-accent); background: radial-gradient(var(--dr-accent) 45%, transparent 50%); }
.dr-pack__label { font-weight: 700; }
.dr-pack__prices { grid-column: 3; grid-row: 1 / span 2; text-align: right; }
.dr-pack__unit { display: block; font-size: 1.25rem; font-weight: 800; }
/* F8-OF: the per-bottle price is the biggest number on every card; the total is the small line under it. */
.dr-pack__unit--primary { font-size: 1.75rem; line-height: 1.1; }
.dr-pack__total { display: block; font-size: 0.8125rem; font-weight: 400; color: #4b5563; }
.dr-pack__anchor { display: block; font-size: 0.875rem; color: #6b7280; }
.dr-pack__badges { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 2 / -1; }
.dr-pack__badge { padding: 1px 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--dr-accent); border-radius: 999px; }
.dr-pack__badge--ribbon { border-radius: 2px 999px 999px 2px; text-transform: uppercase; }
.dr-pack__badge--pill { border-radius: 999px; }
.dr-pack__badge--plain { color: var(--dr-ink); background: var(--dr-highlight); }
.dr-pack__badge--starburst { padding: 6px 10px; color: #fff; background: var(--dr-alert); clip-path: polygon(50% 0, 61% 12%, 78% 6%, 82% 22%, 98% 26%, 90% 42%, 100% 56%, 85% 66%, 88% 84%, 71% 84%, 62% 100%, 50% 88%, 38% 100%, 29% 84%, 12% 84%, 15% 66%, 0 56%, 10% 42%, 2% 26%, 18% 22%, 22% 6%, 39% 12%); border-radius: 0; text-align: center; line-height: 1.1; }
.dr-pack__pills { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2 / -1; }
.dr-pack__pill { padding: 2px 10px; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; border-radius: 999px; }
.dr-pack__pill--shipping { color: #fff; background: var(--dr-accent); }
.dr-pack__pill--bonus { color: var(--dr-ink); background: var(--dr-highlight); border: 1px solid var(--dr-accent); }
.dr-pack__meta, .dr-pack__bonus, .dr-pack__bonus-delivery { grid-column: 2 / -1; margin: 0; font-size: 0.8125rem; }
.dr-pack__bonus-delivery { font-weight: 600; }
.dr-offer-line, .dr-sold-only { margin: 12px 0 0; text-align: center; font-size: 0.9375rem; }
.dr-offer-line { font-weight: 700; }
.dr-pack__bonus { font-weight: 600; color: var(--dr-accent); }

/* summary, reassurance, seals, reviews */
.dr-summary__rows { margin: 0; }
.dr-summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.dr-summary__row dt, .dr-summary__row dd { margin: 0; }
[data-dr-summary-state="pending"] [data-dr-cart-total], [data-dr-summary-state="pending"] [data-dr-cart-shipping] { color: #6b7280; }
.dr-summary__row--total { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--dr-line); font-weight: 700; }
.dr-reassurance { margin: 0; text-align: center; font-size: 0.9375rem; font-weight: 600; }
.dr-seals__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dr-seal { display: flex; align-items: center; gap: 6px; padding: 4px 10px; font-size: 0.8125rem; border: 1px solid var(--dr-line); border-radius: 999px; background: #fff; }
.dr-seal img { width: 32px; height: 32px; object-fit: contain; }
.dr-reviews__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dr-review { padding: 14px; border-radius: var(--dr-radius); background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08); }
.dr-review__name { margin: 0; font-weight: 700; }
.dr-review__meta { margin: 0 0 6px; font-size: 0.8125rem; color: #4b5563; }
.dr-review__body { margin: 0; }
.dr-footer { padding: 24px 16px; text-align: center; font-size: 0.875rem; border-top: 1px solid var(--dr-line); }
.dr-footer__fda { max-width: 720px; margin: 12px auto 0; font-size: 0.75rem; color: #4b5563; }

/* F8-OF: the sold-out swap. The runtime marks the mount; the form is hidden by class (the embed owns its [hidden]). */
.dr-soldout { max-width: 560px; margin: 24px auto; padding: 24px; text-align: center; background: var(--dr-panel); border: 1px solid var(--dr-line); border-radius: var(--dr-radius); }
.dr-soldout[hidden] { display: none; }
.dr-soldout__headline { margin: 0 0 8px; font: 700 1.5rem/1.2 var(--dr-font-display); }
.dr-soldout__body { margin: 0 0 16px; }
.dr-soldout__form { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.dr-soldout__form[hidden] { display: none; } /* the runtime hides the form after a successful sign-up; display: flex above would override [hidden] */
.dr-soldout__form input { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--dr-line); border-radius: 6px; background: #fff; }
.dr-soldout__button { padding: 12px 16px; font: 800 1.125rem/1 var(--dr-font); color: var(--dr-cta-ink); background: var(--dr-cta); border: 0; border-radius: 6px; cursor: pointer; }
.dr-soldout__consent { margin: 12px 0 0; font-size: 0.8125rem; }
.dr-soldout__status { margin: 12px 0 0; font-weight: 600; }
.dr-soldout__status[hidden] { display: none; }
/* Only ever at the order-form stage: a confirming / upsell / thank-you stage is never inside anything the swap hides. */
[data-dr-sold-out-active][data-dr-stage="order_form"]:not([data-dr-payment-in-flight]) .dr-form, [data-dr-sold-out-active][data-dr-stage="order_form"]:not([data-dr-payment-in-flight]) .dr-stage-note { display: none !important; }
[data-dr-stage]:not([data-dr-stage="order_form"]) .dr-soldout, [data-dr-payment-in-flight] .dr-soldout { display: none !important; }

/* 1.6.1: the locked-pack row shows on a phone only (see the phone query) */
.dr-locked { display: none; }

/* 1.6.2 form reviews (O2): one or two short verbatim quotes directly above the contact fields, from the same real
   feed as the review block. Compact on purpose — the form must not move far on a phone (the reviews brief's rule). */
.dr-form-reviews { margin: 0; }
.dr-form-reviews__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dr-form-review { padding: 10px 14px; background: var(--dr-panel); border: 1px solid var(--dr-line); border-radius: var(--dr-radius); }
.dr-form-review__meta { display: flex; gap: 8px; align-items: baseline; margin: 0 0 2px; font-size: 0.8125rem; font-weight: 600; }
.dr-form-review__stars { color: var(--dr-accent); letter-spacing: 1px; }
.dr-form-review__body { margin: 0; font-size: 0.9375rem; line-height: 1.45; }

/* 1.6.7 trust row: a compact single-line strip of trust signals between the summary and the form.
   Shown at every width; on a locked phone it sits right after the summary (order 2). */
.dr-trust-row { margin: 0; }
.dr-trust-row__list { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; justify-content: center; }
.dr-trust-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 0.6875rem; font-weight: 600; color: var(--dr-ink); line-height: 1; white-space: nowrap; }
.dr-trust-chip svg { color: var(--dr-accent); flex-shrink: 0; }

/* mobile: packs + summary, then the countdown, then the form (design § 3) */
@media (max-width: 859px) {
  .dr-main { padding-top: 16px; }
  .dr-form { flex-direction: column; gap: 20px; }
  .dr-col { display: contents; }
  .dr-form > .dr-col > * { width: 100%; }
  .dr-packs { order: 1; }
  .dr-summary { order: 2; }
  .dr-reserved { order: 3; }
  .dr-fields--contact { order: 4; }
  .dr-fields--shipping { order: 5; }
  .dr-payment { order: 6; }
  .dr-autoship { order: 7; }
  .dr-guarantee { order: 8; }
  .dr-presenter { order: 9; }
  .dr-trust-row { order: 3; }
  .dr-reassurance { order: 10; }
  .dr-seals { order: 11; }
  .dr-reviews { order: 12; }
  .dr-packs__list > .dr-pack { order: var(--dr-mobile-order, 0); }
  .dr-field--half { grid-column: 1 / -1; }
  /* 1.6.2: the form reviews strip sits directly above the contact fields in either phone order (the tie with the
     contact fields breaks on DOM order, where the strip comes first); a phone shows one quote, desktop both. */
  .dr-form-reviews { order: 4; }
  body[data-dr-pack-locked] .dr-form-reviews { order: 3; }
  .dr-form-reviews .dr-form-review:nth-child(2) { display: none; }
  /* 1.6.1 phone form-first: a handed-over pack puts the summary, the timer and the form first, the cards below the form */
  /* 1.6.7: trust row inserts at order 2 (after summary); everything else shifts +1 */
  body[data-dr-pack-locked] .dr-summary { order: 1; }
  body[data-dr-pack-locked] .dr-trust-row { order: 2; margin: -8px 0; }
  body[data-dr-pack-locked] .dr-reserved { order: 3; }
  body[data-dr-pack-locked] .dr-fields--contact { order: 4; }
  body[data-dr-pack-locked] .dr-fields--shipping { order: 5; }
  body[data-dr-pack-locked] .dr-payment { order: 6; }
  body[data-dr-pack-locked] .dr-autoship { order: 7; }
  body[data-dr-pack-locked] .dr-packs { order: 8; }
  body[data-dr-pack-locked] .dr-presenter { order: 9; }
  body[data-dr-pack-locked] .dr-guarantee { order: 10; }
  body[data-dr-pack-locked] .dr-reassurance { order: 12; }
  body[data-dr-pack-locked] .dr-seals { order: 13; }
  body[data-dr-pack-locked] .dr-reviews { order: 14; }
  body[data-dr-pack-locked] .dr-summary .dr-section__heading { margin-bottom: 8px; }
  body[data-dr-pack-locked] .dr-locked { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; }
  .dr-locked__pills { display: flex; flex-wrap: wrap; gap: 6px; }
  .dr-locked__change { font-size: 0.9375rem; font-weight: 600; color: var(--dr-accent); text-decoration: underline; }
}
/* 1.6.6 (2026-10-08): on a pack-locked PHONE the one-quote strip moves from directly above the contact fields to directly
   below them (it ties with the shipping fields at order 4 and comes first in DOM order), so the email field sits inside the
   first screen of the Facebook in-app browser (390x664: email top 679 -> 553). The quote, its order and the no-repeat rule
   are unchanged; tablets (600-859 px) and desktop keep the 1.6.2 placement. */
@media (max-width: 599px) {
  body[data-dr-pack-locked] .dr-form-reviews { order: 5; }
}

/*
 * dr_checkout/upsell-video-v1 (DR checkout funnel DC3, 2026-09-26): the upsell stages of
 * the one order document. Appended to styles.css only when the page carries a chain.
 *
 * The payment frame is NEVER moved in the DOM (a moved iframe reloads and would lose its
 * in-memory OTO session). During the upsell stage the form and its columns become
 * `display: contents`, every order-form block is hidden except the payment slot, and the
 * current stage's main part, the payment block and the stage's decline part take flex
 * `order` 1 / 2 / 3: the frame's own confirm control lands at the stage's accept slot.
 */
.dr-upsell { display: none; }
[data-dr-stage="upsell"] .dr-form { flex-direction: column; gap: 16px; align-items: stretch; max-width: 760px; margin: 0 auto; }
[data-dr-stage="upsell"] .dr-col { display: contents; }
[data-dr-stage="upsell"] .dr-col > *:not(.dr-payment) { display: none; }
[data-dr-stage="upsell"] .dr-payment { order: 2; padding: 0; border: 0; background: transparent; }
[data-dr-stage="upsell"] .dr-payment > *:not([data-dr-payment-slot]) { display: none; }
[data-dr-stage="upsell"]:not([data-dr-upsell-revealed]) .dr-payment { display: none; }
[data-dr-stage="upsell"] .dr-upsell:not([hidden]) { display: contents; }
.dr-upsell__main { order: 1; display: flex; flex-direction: column; gap: 14px; }
.dr-upsell__after { order: 3; display: flex; flex-direction: column; align-items: center; gap: 12px; }

/* persuasion slots (brand wording, each switchable as_control | off in the record) */
.dr-upsell__banner { margin: 0; padding: 10px 14px; text-align: center; font-weight: 700; color: #fff; background: var(--dr-alert); border-radius: var(--dr-radius); }
.dr-upsell__overlay { margin: 0; padding: 16px; text-align: center; font: 700 1.375rem/1.25 var(--dr-font-display); background: var(--dr-highlight); border: 2px solid var(--dr-accent); border-radius: var(--dr-radius); }
.dr-upsell__notice { display: none; margin: 0; padding: 10px 14px; font-size: 0.9375rem; background: #fff4f2; border: 1px solid var(--dr-alert); border-radius: var(--dr-radius); }
[data-dr-upsell-notice="payment_declined"] .dr-upsell__notice--payment_declined,
[data-dr-upsell-notice="reenter_required"] .dr-upsell__notice--reenter_required,
[data-dr-upsell-notice="refunded"] .dr-upsell__notice--refunded,
[data-dr-upsell-notice="price_changed"] .dr-upsell__notice--price_changed { display: block; }

/* the video gate */
.dr-upsell__video { position: relative; width: 100%; aspect-ratio: var(--dr-video-aspect, 16 / 9); background: #111; border-radius: var(--dr-radius); overflow: hidden; }
.dr-upsell__player { position: absolute; inset: 0; }
.dr-upsell__video-fallback { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 8px 12px; font-size: 0.8125rem; color: #fff; background: rgba(0, 0, 0, 0.55); }
.dr-upsell__countdown { margin: 0; text-align: center; font-weight: 600; }
.dr-upsell__countdown [data-dr-clock] { margin-left: 6px; color: var(--dr-alert); font-weight: 800; font-variant-numeric: tabular-nums; }

/* the offer drops at the CTA: hidden until the stage is revealed */
.dr-upsell:not([data-dr-upsell-revealed]) .dr-upsell__offer { display: none; }
/* forced watch, as the control runs it (Brian, 2026-10-07): the decline drops WITH the offer, never before it. Only while the
   gate runtime is there to release the stage (it marks data-dr-upsell-gate-ready at boot; its static fallback and boot-failure
   release set data-dr-upsell-revealed). A runtime that never loads leaves the decline visible (PR #6913 review r1 P2). */
.dr-upsell[data-dr-upsell-gate-ready]:not([data-dr-upsell-revealed]) .dr-upsell__decline { display: none; }
.dr-upsell__ladder { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.dr-upsell__option { display: grid; grid-template-columns: 24px 1fr auto; gap: 4px 12px; width: 100%; padding: 14px; text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--dr-line); border-radius: var(--dr-radius); cursor: pointer; }
.dr-upsell__option[aria-pressed="true"] { border: 2px solid var(--dr-accent); box-shadow: 0 0 0 3px var(--dr-highlight); }
.dr-upsell__radio { grid-row: 1 / span 2; width: 20px; height: 20px; margin-top: 2px; border: 2px solid var(--dr-line); border-radius: 50%; }
.dr-upsell__option[aria-pressed="true"] .dr-upsell__radio { border-color: var(--dr-accent); background: radial-gradient(var(--dr-accent) 45%, transparent 50%); }
.dr-upsell__label { font-weight: 700; }
.dr-upsell__prices { grid-column: 3; grid-row: 1 / span 2; text-align: right; }
.dr-upsell__price { display: block; font-size: 1.25rem; font-weight: 800; }
.dr-upsell__anchor { display: block; font-size: 0.875rem; color: #6b7280; }
.dr-upsell__badges { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 2 / -1; }
.dr-upsell__badge { padding: 1px 8px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #fff; background: var(--dr-accent); border-radius: 999px; }
.dr-upsell__accept { margin: 4px 0 0; text-align: center; font: 700 1.125rem/1.3 var(--dr-font-display); }
.dr-upsell__decline { padding: 6px 10px; font: inherit; font-size: 0.9375rem; color: #4b5563; text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* exit popup (back button during the chain) */
.dr-upsell__exit { position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, 0.55); }
.dr-upsell__exit[hidden] { display: none; }
.dr-upsell__exit-card { max-width: 440px; padding: 20px; text-align: center; background: #fff; border-radius: var(--dr-radius); }
.dr-upsell__exit-headline { margin: 0 0 8px; font: 700 1.25rem/1.25 var(--dr-font-display); }
.dr-upsell__exit-body { margin: 0 0 14px; }
.dr-upsell__exit-close { padding: 10px 16px; font: inherit; font-weight: 800; color: var(--dr-cta-ink); background: var(--dr-cta); border: 0; border-radius: var(--dr-radius); cursor: pointer; }

.dr-upsell-opening { display: none; margin: 0; padding: 16px; text-align: center; }
[data-dr-upsell-state="opening"] .dr-upsell-opening { display: block; }

/*
 * dr_checkout/thank-you-club-v1 (DR checkout funnel DC4, 2026-09-26): the thank-you stage of the
 * one order document, with the autoship-club offer. Appended to styles.css.
 *
 * The payment frame is NEVER moved in the DOM (a moved iframe reloads). On the thank-you stage the
 * form and its columns become `display: contents`, every order-form block is hidden except the
 * payment slot, and the confirmation + the club offer's main part, the payment block (the frame's
 * own join control) and the offer's decline part take flex `order` 1 / 2 / 3, so the join control
 * lands under the terms. The payment block shows only while the frame's join control is armed.
 */
.dr-ty { display: none; }
[data-dr-stage="thank_you"] .dr-form { flex-direction: column; gap: 16px; align-items: stretch; max-width: 760px; margin: 0 auto; }
[data-dr-stage="thank_you"] .dr-col { display: contents; }
[data-dr-stage="thank_you"] .dr-col > *:not(.dr-payment) { display: none; }
[data-dr-stage="thank_you"] .dr-payment { order: 2; padding: 0; border: 0; background: transparent; }
[data-dr-stage="thank_you"] .dr-payment > *:not([data-dr-payment-slot]) { display: none; }
[data-dr-stage="thank_you"]:not([data-dr-club-armed]) .dr-payment { display: none; }
[data-dr-stage="thank_you"] .dr-ty { display: contents; }
[data-dr-stage="thank_you"] .dr-club { display: contents; }
[data-dr-stage="thank_you"] .dr-club__offer:not([hidden]) { display: contents; }
.dr-ty__confirm { order: 0; padding: 16px; border-radius: var(--dr-radius); background: var(--dr-highlight); }
.dr-club__main { order: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 2px solid var(--dr-accent); border-radius: var(--dr-radius); background: #fff; }
.dr-club__after { order: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.dr-club__notes { order: 3; }
.dr-ty__after { order: 4; text-align: center; font-size: 0.9375rem; }

.dr-ty__steps { display: flex; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 0.8125rem; font-weight: 700; }
.dr-ty__step { flex: 1; padding: 6px 8px; text-align: center; border-radius: 999px; background: #fff; color: #4b5563; }
.dr-ty__step--done { color: #fff; background: var(--dr-accent); }
.dr-ty__step--current { border: 2px solid var(--dr-accent); color: var(--dr-accent); }
.dr-ty__title { margin: 0 0 6px; font: 700 1.5rem/1.2 var(--dr-font-display); }
.dr-ty__order { margin: 0 0 8px; }
.dr-ty__lines { margin: 0; padding: 0 0 0 18px; }
.dr-ty__line--confirming { color: var(--dr-alert); font-weight: 600; }

.dr-club__badge { align-self: flex-start; margin: 0; padding: 2px 10px; font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #fff; background: var(--dr-alert); border-radius: 999px; }
.dr-club__headline { margin: 0; font: 700 1.375rem/1.25 var(--dr-font-display); }
.dr-club__body { margin: 0; }
.dr-club__price { margin: 0; font-size: 1.0625rem; }
.dr-club__price [data-dr-club-price] { font-size: 1.5rem; font-weight: 800; }
.dr-club__anchor { margin-left: 8px; color: #6b7280; }
.dr-club__benefits { margin: 0; padding: 0 0 0 18px; }
.dr-club__countdown { margin: 0; font-weight: 600; }
.dr-club__countdown [data-dr-clock] { margin-left: 6px; color: var(--dr-alert); font-weight: 800; font-variant-numeric: tabular-nums; }
.dr-club__terms { padding: 10px 12px; font-size: 0.8125rem; background: var(--dr-panel); border: 1px solid var(--dr-line); border-radius: var(--dr-radius); }
.dr-club__terms p { margin: 0 0 4px; }
.dr-club__terms-heading { font-weight: 700; }
.dr-club__accept { margin: 0; text-align: center; font: 700 1.125rem/1.3 var(--dr-font-display); }
.dr-club__decline { padding: 6px 10px; font: inherit; font-size: 0.9375rem; color: #4b5563; text-decoration: underline; background: none; border: 0; cursor: pointer; }

/* review round 2: an upsell line's amount shows only once the embed writes the CHARGED amount */
.dr-ty__charged:has([data-dr-ty-amount]:empty) { display: none; }

/* club states the embed writes on the mount (data-dr-club-state / -terms) */
.dr-club__note { display: none; margin: 0; padding: 12px 14px; border-radius: var(--dr-radius); background: var(--dr-highlight); }
[data-dr-club-state="enrolled"] .dr-club__note--enrolled,
[data-dr-club-state="expired"] .dr-club__note--expired,
[data-dr-club-state="declined"] .dr-club__note--declined,
[data-dr-club-terms="updated"]:not([data-dr-club-state="enrolled"]) .dr-club__note--terms-updated { display: block; }
[data-dr-club-state="enrolled"] .dr-club__main, [data-dr-club-state="enrolled"] .dr-club__after { display: none; }

/* F8-OF: the bonus download slots. Hidden until the embed fills an href from the completion response. */
.dr-ty__bonuses[hidden], .dr-ty__bonus[hidden] { display: none; }
.dr-ty__bonuses { margin-top: 16px; padding: 16px; border-radius: var(--dr-radius, 8px); background: var(--dr-highlight, #e8f1fb); }
.dr-ty__bonuses-heading { margin: 0 0 8px; font: 700 1.125rem/1.3 var(--dr-font-display, inherit); }
.dr-ty__bonus-list { margin: 0; padding: 0; list-style: none; }
.dr-ty__bonus { display: inline-block; padding: 8px 0; font-weight: 700; color: var(--dr-accent, #1d5c63); }

/*
 * dr_checkout/thank-you-club-v1 1.2.0: the confirmation layer (appended after template.css ONLY on a page built with a
 * confirmation file; a page without one never carries these rules). Mobile first; one column up to 760px wide.
 *
 * Direction: a calm, personal "letter of congratulations" for an older buyer who just paid. Warm paper hero with a
 * drawn check seal and a serif headline (the one place the page leaves the cart's sans), the doctor's video framed
 * like a photograph, then plain cards that answer what happens next in order. Large type, high contrast, generous
 * tap targets. Brand-agnostic: every colour reads a --dr-* token (the control skin, or the brand kit on opt-out).
 */
.dr-ty--confirmation {
  --dr-ty-paper: #fbf7ef;
  --dr-ty-paper-edge: #efe6d3;
  --dr-ty-success: #1f7a4a;
  --dr-ty-card: #ffffff;
  --dr-ty-muted: #4a4f57;
  --dr-ty-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, serif;
  --dr-ty-shadow: 0 1px 2px rgba(17, 17, 17, 0.06), 0 8px 24px rgba(17, 17, 17, 0.06);
}
[data-dr-stage="thank_you"] .dr-form:has(.dr-ty--confirmation) { gap: 18px; max-width: 760px; }
.dr-ty--confirmation .dr-ty__card,
.dr-ty--confirmation .dr-ty__guide-card,
.dr-ty--confirmation .dr-ty__bonuses,
.dr-ty--confirmation .dr-ty__notices,
.dr-ty--confirmation .dr-ty__support { font-size: 1.0625rem; line-height: 1.6; }

/* ---- hero: the congratulations ---------------------------------------------------------------- */
.dr-ty--confirmation .dr-ty__hero {
  position: relative;
  padding: 20px 18px 22px;
  text-align: center;
  border: 1px solid var(--dr-ty-paper-edge);
  border-radius: 14px;
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 167, 52, 0.16) 0 3px, transparent 4px),
    radial-gradient(circle at 86% 26%, rgba(4, 102, 167, 0.12) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 82%, rgba(214, 167, 52, 0.14) 0 3px, transparent 4px),
    radial-gradient(circle at 20% 78%, rgba(31, 122, 74, 0.12) 0 3px, transparent 4px),
    linear-gradient(180deg, #ffffff 0%, var(--dr-ty-paper) 100%);
  overflow: hidden;
}
.dr-ty--confirmation .dr-ty__hero .dr-ty__steps { margin-bottom: 18px; }
.dr-ty__seal-check { display: inline-block; color: var(--dr-ty-success, #1f7a4a); line-height: 0; margin: 0 0 8px; filter: drop-shadow(0 4px 10px rgba(31, 122, 74, 0.25)); }
.dr-ty--confirmation .dr-ty__title {
  margin: 0 0 8px;
  font: 700 clamp(1.75rem, 6.2vw, 2.5rem)/1.12 var(--dr-ty-serif);
  letter-spacing: -0.01em;
  color: var(--dr-ink);
  text-wrap: balance;
}
.dr-ty__sub { margin: 0 auto 14px; max-width: 34em; font-size: 1.125rem; line-height: 1.5; color: var(--dr-ty-muted); text-wrap: pretty; }
.dr-ty--confirmation .dr-ty__order {
  display: inline-block;
  margin: 0;
  padding: 6px 14px;
  font-size: 0.9375rem;
  border: 1px dashed #c9bfa8;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}
.dr-ty--confirmation .dr-ty__order [data-dr-ty-order-id] { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---- the video: framed like a photograph ----------------------------------------------------- */
.dr-ty__video { margin: 0; }
.dr-ty__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 2px 4px rgba(17, 17, 17, 0.12), 0 18px 40px rgba(17, 17, 17, 0.18);
  outline: 6px solid #fff;
  outline-offset: -1px;
}
.dr-ty__video[data-dr-aspect="9:16"] .dr-ty__video-frame { aspect-ratio: 9 / 16; max-width: 420px; margin: 0 auto; }
.dr-ty__video[data-dr-aspect="1:1"] .dr-ty__video-frame { aspect-ratio: 1 / 1; max-width: 560px; margin: 0 auto; }
.dr-ty__video[data-dr-aspect="4:5"] .dr-ty__video-frame { aspect-ratio: 4 / 5; max-width: 480px; margin: 0 auto; }
.dr-ty__video-el { display: block; width: 100%; height: 100%; object-fit: cover; background: #111; }
.dr-ty__video-el::cue { font-size: 1.15em; line-height: 1.35; background: rgba(0, 0, 0, 0.78); }
.dr-ty__video-fallback { margin: 0; padding: 16px; color: #fff; }
.dr-ty__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.35) 100%);
  color: var(--dr-accent);
  cursor: pointer;
}
.dr-ty__play[hidden] { display: none; }
.dr-ty__play svg { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.92), 0 10px 30px rgba(0, 0, 0, 0.35); transition: transform 0.2s ease; }
.dr-ty__play:hover svg, .dr-ty__play:focus-visible svg { transform: scale(1.06); }
.dr-ty__play:focus-visible { outline: 4px solid #ffd23f; outline-offset: -4px; }

/* ---- cards ------------------------------------------------------------------------------------- */
.dr-ty--confirmation .dr-ty__card {
  padding: 18px;
  border: 1px solid var(--dr-line);
  border-radius: 14px;
  background: var(--dr-ty-card);
  box-shadow: var(--dr-ty-shadow);
}
.dr-ty__heading { margin: 0 0 10px; font: 700 1.3125rem/1.25 var(--dr-ty-serif); color: var(--dr-ink); }
.dr-ty__body { margin: 0; color: var(--dr-ink); text-wrap: pretty; }
.dr-ty--confirmation a[data-dr-support-contact] { color: var(--dr-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.dr-ty--confirmation a[data-dr-support-contact][href^="tel:"] { white-space: nowrap; }

/* the order lines */
.dr-ty--confirmation .dr-ty__summary { padding: 14px 18px; }
.dr-ty--confirmation .dr-ty__lines { padding: 0; list-style: none; }
.dr-ty--confirmation .dr-ty__line { position: relative; padding: 6px 0 6px 30px; font-weight: 600; }
.dr-ty--confirmation .dr-ty__line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--dr-ty-success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.dr-ty--confirmation .dr-ty__line + .dr-ty__line:not([hidden]) { border-top: 1px solid #eef0f2; }
.dr-ty--confirmation .dr-ty__line--confirming::before { background: var(--dr-alert); }
.dr-ty--confirmation .dr-ty__summary:not(:has(.dr-ty__line:not([hidden]))) { display: none; }

/* what happens next: a numbered timeline (vertical on a phone, across on a wide screen) */
.dr-ty__timeline { position: relative; margin: 6px 0 0; padding: 0; list-style: none; }
.dr-ty__tl-step { position: relative; display: flex; gap: 14px; padding: 0 0 18px; }
.dr-ty__tl-step:last-child { padding-bottom: 0; }
.dr-ty__tl-step:not(:last-child)::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: repeating-linear-gradient(180deg, #c9d6e2 0 6px, transparent 6px 11px); }
.dr-ty__tl-dot {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font: 800 1rem/1 var(--dr-font);
  color: #fff;
  background: var(--dr-accent);
  box-shadow: 0 0 0 4px var(--dr-highlight);
}
.dr-ty__tl-step:first-child .dr-ty__tl-dot { background: var(--dr-ty-success); box-shadow: 0 0 0 4px #dcefe3; }
.dr-ty__tl-text { display: flex; flex-direction: column; gap: 2px; padding-top: 5px; min-width: 0; }
.dr-ty__tl-label { font-size: 1.0625rem; color: var(--dr-ink); }
.dr-ty__tl-detail { color: var(--dr-ty-muted); }

/* how to take it + what to expect */
.dr-ty__guide { display: grid; gap: 18px; }
.dr-ty--confirmation .dr-ty__guide-card { position: relative; }
.dr-ty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 10px;
  border-radius: 12px;
  color: var(--dr-accent);
  background: var(--dr-highlight);
}

/* the guarantee, with the order page's seal */
.dr-ty--confirmation .dr-ty__guarantee { border: 2px solid #f2c230; background: linear-gradient(180deg, #fffdf6 0%, #ffffff 70%); }
.dr-ty__guarantee--seal { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.dr-ty__guarantee .dr-skin-seal { flex: 0 0 auto; line-height: 0; }
.dr-ty__guarantee .dr-skin-seal svg { width: 92px; height: 92px; }
.dr-ty__guarantee-text { min-width: 0; align-self: stretch; }

/* statement name + whitelist: quiet notices */
.dr-ty__notices { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: #f4f6f8; border: 1px solid #e3e7ec; }
.dr-ty__notice { display: flex; gap: 12px; align-items: flex-start; margin: 0; font-size: 1rem; color: var(--dr-ink); }
.dr-ty__notice-icon { flex: 0 0 auto; color: var(--dr-ty-muted); line-height: 0; padding-top: 2px; }

/* the bonus guides (the existing slot; the embed shows it for an eligible order only) */
.dr-ty--confirmation .dr-ty__bonuses { margin-top: 0; padding: 18px; border-radius: 14px; border: 1px solid #cfe1f0; background: linear-gradient(180deg, var(--dr-highlight) 0%, #ffffff 100%); }
.dr-ty--confirmation .dr-ty__bonuses-heading { font: 700 1.3125rem/1.25 var(--dr-ty-serif); margin-bottom: 6px; }
.dr-ty__bonuses-body { margin: 0 0 10px; }
.dr-ty--confirmation .dr-ty__bonus-list { display: grid; gap: 8px; }
.dr-ty--confirmation .dr-ty__bonus {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--dr-line);
  border-radius: 10px;
  background: #fff;
  text-decoration: none;
}
.dr-ty--confirmation .dr-ty__bonus[hidden] { display: none; }
.dr-ty--confirmation .dr-ty__bonus::before { content: "\2193"; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--dr-accent); font-weight: 800; }

/* the club slot's heading (inside the offer, so it shows only when the offer does) */
.dr-club__eyebrow { margin: 0; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dr-accent); }

/* support */
.dr-ty--confirmation .dr-ty__support { order: 4; padding: 20px 18px; text-align: center; border-radius: 14px; background: var(--dr-ty-paper); border: 1px solid var(--dr-ty-paper-edge); font-size: 1.0625rem; }
.dr-ty--confirmation .dr-ty__support .dr-ty__heading { margin-bottom: 6px; }

/* ---- entrance: one calm staggered reveal when the stage appears ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  [data-dr-stage="thank_you"] .dr-ty--confirmation > * { animation: dr-ty-rise 0.5s ease-out both; }
  [data-dr-stage="thank_you"] .dr-ty--confirmation > :nth-child(2) { animation-delay: 0.08s; }
  [data-dr-stage="thank_you"] .dr-ty--confirmation > :nth-child(3) { animation-delay: 0.14s; }
  [data-dr-stage="thank_you"] .dr-ty--confirmation > :nth-child(4) { animation-delay: 0.2s; }
  [data-dr-stage="thank_you"] .dr-ty--confirmation > :nth-child(n + 5) { animation-delay: 0.26s; }
  [data-dr-stage="thank_you"] .dr-ty__seal-check { animation: dr-ty-pop 0.55s cubic-bezier(0.2, 1.4, 0.4, 1) 0.1s both; }
  .dr-ty__video:not([data-dr-ty-video-playing]) .dr-ty__play svg { animation: dr-ty-pulse 2.4s ease-in-out 1s 3; }
}
@keyframes dr-ty-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dr-ty-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes dr-ty-pulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.92), 0 10px 30px rgba(0, 0, 0, 0.35); } 50% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0.55), 0 10px 30px rgba(0, 0, 0, 0.35); } }

/* ---- wider screens ------------------------------------------------------------------------------ */
@media (min-width: 720px) {
  .dr-ty--confirmation .dr-ty__hero { padding: 28px 40px 30px; }
  .dr-ty--confirmation .dr-ty__card { padding: 24px 26px; }
  .dr-ty__guide { grid-template-columns: 1fr 1fr; }
  .dr-ty__timeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; }
  .dr-ty__tl-step { flex-direction: column; gap: 10px; padding: 0; }
  .dr-ty__tl-step:not(:last-child)::after { left: 44px; right: -10px; top: 17px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, #c9d6e2 0 6px, transparent 6px 11px); }
  .dr-ty__tl-text { padding-top: 0; }
  .dr-ty__guarantee--seal { flex-direction: row; gap: 18px; align-items: flex-start; }
  .dr-ty__guarantee .dr-skin-seal svg { width: 108px; height: 108px; }
}

/*
 * dr_checkout/reserve-v1 1.6.0: the cart skin (src/build/dr-cart-skin.ts). Appended ONLY when the page is built with a
 * cart skin; a page without one never loads a byte of this file. Values follow the reserve-style control carts captured
 * 2026-10-05 (Stem Cell Renew, Pup Labs, Sun Coast): logo header, reserved-price box, bottle thumbs with quantity
 * badges, FREE shipping + yellow "You Saved" row, green-check pills, card marks + padlock line, doctor card under the
 * button, red/gold guarantee seal, policy footer. The order button itself is drawn by the payment frame (embed 0.10.0
 * `frame_theme` preset control_gold), not here.
 */
[data-dr-cart-skin] .dr-header { padding-top: 10px; padding-bottom: 10px; }
.dr-header__brand--logo { line-height: 0; }
.dr-header__brand--logo img { display: block; height: 52px; width: auto; }
[data-dr-cart-skin] .dr-header__support { font-weight: 600; }

/* the packs and prices stay on the page even when the store call or the payment frame fails (the embed hides the form then).
   Review r1 [high]: ONLY once the skin runtime (dr-page.js) finished booting and set data-dr-skin-ready, because it then owns a
   working retry + support line. A dr-page.js that 404s or throws leaves the static fallback visible and the form as shipped. */
[data-dr-cart-skin][data-dr-skin-ready] .dr-form[hidden] { display: flex; }
[data-dr-cart-skin][data-dr-skin-ready] .dr-fallback { display: none; }
/* 1.6.3 (order-page bug slice, 2026-10-08): BEFORE dr-page.js runs, the page already shows what it will show once booted (the form,
   in the phone pack-locked order when the VSL handed over a pack), not the "could not load" fallback with the footer links inside the
   first screen (a tap carried over from the VSL hit Contact Us 0.35 s after load). The template's pre-paint script sets
   data-dr-preboot and removes it at DOMContentLoaded, i.e. after dr-page.js ran or failed, or after 8 s when dr-page.js stalls (the
   parser then never reaches DOMContentLoaded; sol r1): a runtime that 404s, throws or hangs still ends on the static fallback (review
   r1 [high] above), and a late runtime brings the form back through data-dr-skin-ready. A locked pack that is not the record's default keeps the summary blank until
   dr-page.js draws it (never a flash of another pack's price). */
[data-dr-cart-skin][data-dr-preboot] .dr-form[hidden] { display: flex; }
[data-dr-cart-skin][data-dr-preboot] .dr-fallback { display: none; }
[data-dr-cart-skin][data-dr-preboot-stale]:not([data-dr-skin-ready]) .dr-summary { visibility: hidden; }

/* reserved-price box */
[data-dr-cart-skin] .dr-reserved { padding: 12px 14px; font-size: 1.125rem; font-weight: 700; background: #fff8db; border: 2px solid #f2c230; border-radius: 6px; }
[data-dr-cart-skin] .dr-reserved__clock { display: inline-block; min-width: 3.2em; font-size: 1.75rem; line-height: 1; color: #c21300; }

/* packs with bottle thumbs + quantity badges */
[data-dr-cart-skin] .dr-pack__select { grid-template-columns: 22px 84px 1fr auto; align-items: start; }
[data-dr-cart-skin] .dr-pack__radio { grid-column: 1; grid-row: 1 / span 4; margin-top: 30px; }
.dr-pack__media { position: relative; grid-column: 2; grid-row: 1 / span 5; width: 84px; height: 84px; }
.dr-pack__media img { display: block; width: 84px; height: 84px; object-fit: contain; }
.dr-pack__qty { position: absolute; top: -6px; left: -6px; display: grid; place-items: center; width: 26px; height: 26px; font-size: 0.875rem; font-weight: 800; color: #fff; background: #0466a7; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }
[data-dr-cart-skin] .dr-pack__label { grid-column: 3; font-size: 1.0625rem; }
[data-dr-cart-skin] .dr-pack__prices { grid-column: 4; }
[data-dr-cart-skin] .dr-pack__badges,
[data-dr-cart-skin] .dr-pack__pills,
[data-dr-cart-skin] .dr-pack__meta,
[data-dr-cart-skin] .dr-pack__bonus,
[data-dr-cart-skin] .dr-pack__bonus-delivery { grid-column: 3 / -1; }

/* summary: thumb, FREE shipping, the yellow saving row, a bold total; the estimate is never greyed */
.dr-skin-summary { display: flex; gap: 12px; align-items: flex-start; }
.dr-skin-summary .dr-summary__rows { flex: 1 1 auto; }
.dr-skin-summary__thumb { flex: 0 0 72px; width: 72px; height: 72px; object-fit: contain; background: #fff; border: 1px solid var(--dr-line); border-radius: 6px; }
[data-dr-cart-skin] [data-dr-cart-shipping] { font-weight: 800; color: #1a7f37; text-transform: uppercase; }
[data-dr-cart-skin][data-dr-summary-state="pending"] [data-dr-cart-total],
[data-dr-cart-skin] [data-dr-summary-state="pending"] [data-dr-cart-total],
[data-dr-cart-skin] [data-dr-summary-state="pending"] [data-dr-cart-shipping] { color: inherit; }
[data-dr-cart-skin] [data-dr-summary-state="pending"] [data-dr-cart-shipping] { color: #1a7f37; }
.dr-summary__row--saved { margin: 4px 0; padding: 6px 8px; font-weight: 800; background: #fff59d; border-radius: 4px; }
/* every summary row the skin runtime hides (subtotal on a cart/record mismatch, the saving row); .dr-summary__row sets display: flex */
[data-dr-cart-skin] .dr-summary__row[hidden] { display: none; }
[data-dr-cart-skin] .dr-summary__row--total { font-size: 1.25rem; }

/* pills + padlock + card marks */
.dr-skin-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.dr-skin-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 700; color: #111; }
.dr-skin-pill svg { color: #1a7f37; }
.dr-skin-cards { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.dr-skin-cards svg { display: block; width: 46px; height: 29px; }
.dr-skin-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; font-size: 0.9375rem; font-weight: 700; color: #1f2937; }
.dr-skin-secure__icon { color: #1a7f37; }
[data-dr-cart-skin] .dr-payment__descriptor { text-align: center; font-weight: 600; }
[data-dr-cart-skin] .dr-payment__consent { font-size: 0.75rem; line-height: 1.4; color: #4b5563; }

/* payment area states: loading until the frame answers; the retry only after a failure (the runtime marks it) */
.dr-skin-loading { display: none; margin: 0; padding: 18px 8px; text-align: center; font-weight: 600; color: #4b5563; }
[data-dr-stage="loading"] .dr-skin-loading,
[data-dr-stage="fallback"]:not([data-dr-payment-failed]) .dr-skin-loading { display: block; }
.dr-skin-retry { margin: 6px 0 0; padding: 14px; text-align: center; background: #fff4f2; border: 1px solid #f3c2bb; border-radius: 6px; }
.dr-skin-retry[hidden] { display: none; }
.dr-skin-retry__note { margin: 0 0 10px; font-weight: 600; }
.dr-skin-retry__button { min-height: 52px; padding: 10px 28px; font: 800 1.25rem/1 var(--dr-font); color: var(--dr-cta-ink); background: var(--dr-cta); border: 1px solid #d4860b; border-radius: 6px; cursor: pointer; }
.dr-skin-retry__support { margin: 10px 0 0; font-size: 0.875rem; }

/* doctor card directly under the button */
.dr-skin-presenter { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; background: #f3f8fc; border: 1px solid #d6e6f2; border-radius: var(--dr-radius); }
.dr-skin-presenter__photo { flex: 0 0 auto; width: 84px; height: 84px; object-fit: cover; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.dr-skin-presenter__byline { margin: 0; font-size: 1rem; line-height: 1.4; }
.dr-skin-presenter .dr-presenter__name { font-weight: 800; }

/* reviews slot (only with a real feed) */
.dr-skin-reviews .vsl-reviews { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.dr-skin-reviews .vsl-review { padding: 14px; background: #fff; border: 1px solid var(--dr-line); border-radius: var(--dr-radius); }
.dr-skin-reviews .vsl-review__rating { margin: 0 0 4px; color: #f5a623; letter-spacing: 2px; }
.dr-skin-reviews .vsl-review__title { margin: 0 0 4px; font-weight: 700; }
.dr-skin-reviews .vsl-review__body { margin: 0 0 6px; }
.dr-skin-reviews .vsl-review__meta, .dr-skin-reviews .vsl-review__helpful, .dr-skin-reviews .vsl-reviews__source { margin: 0; font-size: 0.8125rem; color: #4b5563; }
.dr-skin-reviews .vsl-rating { display: none; }

/* guarantee: seal + one red headline + the short line; the full body behind the toggle */
.dr-skin-guarantee { display: flex; gap: 14px; align-items: center; background: #fff; border: 2px solid #f2c230; }
.dr-skin-seal { flex: 0 0 auto; line-height: 0; }
.dr-skin-guarantee__text { min-width: 0; }
.dr-skin-guarantee .dr-guarantee__title { margin: 0 0 6px; font-size: 1.1875rem; }
.dr-skin-guarantee .dr-guarantee__badge { margin: 0 0 6px; color: #111; font-weight: 600; }
.dr-skin-guarantee__more summary { cursor: pointer; font-size: 0.875rem; font-weight: 700; color: var(--dr-accent); text-decoration: underline; }
.dr-skin-guarantee__more .dr-guarantee__body { margin: 8px 0 0; font-size: 0.875rem; }

/* footer */
.dr-skin-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0 0; }
.dr-skin-footer__links a, .dr-skin-footer__support a { color: var(--dr-accent); }
.dr-skin-footer__address, .dr-skin-footer__support { margin: 10px 0 0; font-size: 0.8125rem; color: #4b5563; }

@media (max-width: 859px) {
  .dr-skin-pills { order: 2; }
  .dr-skin-presenter, .dr-skin-reviews { order: 7; }
  /* 1.6.1 phone form-first (template.css): with a locked pack the skin's pills follow the guarantee, its reviews stay with the presenter */
  body[data-dr-pack-locked] .dr-skin-pills { order: 10; }
  body[data-dr-pack-locked] .dr-skin-reviews { order: 8; }
  [data-dr-cart-skin] .dr-pack__select { grid-template-columns: 20px 68px 1fr auto; gap: 4px 10px; padding: 12px; }
  .dr-pack__media, .dr-pack__media img { width: 68px; height: 68px; }
  [data-dr-cart-skin] .dr-pack__radio { margin-top: 22px; }
  /* phone: the label gets the full text column; the prices sit under it (no "3- / Month / Supply" wrap) */
  [data-dr-cart-skin] .dr-pack__label { grid-column: 3 / -1; }
  [data-dr-cart-skin] .dr-pack__prices { grid-column: 3 / -1; grid-row: auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-align: left; }
  [data-dr-cart-skin] .dr-pack__unit--primary { font-size: 1.5rem; }
  .dr-header__brand--logo img { height: 44px; }
  .dr-skin-guarantee { align-items: flex-start; }
  .dr-skin-seal svg { width: 88px; height: 88px; }
}

/* CRO revision pass (2026-10-05): the controls print the total as "$147.00"; the currency code stays in the markup for the check and assistive tech */
[data-dr-cart-skin] .dr-summary__currency { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 1.6.4 reviews between the packs (skin.reviews.between_packs, Brian 2026-10-08): real review cards directly under the first
   pack card, before the other packs. They reuse the review block's card look (the inner .dr-skin-reviews); every card shows at
   every width (a hidden card would drop that review from the phone). */
.dr-pack-reviews { margin: 4px 0; }
@media (max-width: 859px) {
  .dr-packs__list > .dr-pack-reviews { order: var(--dr-mobile-order, 0); }
}

/* 1.7.0 order page v2 (Brian, 2026-10-09: "make the order page dead simple and get people typing"). Every rule keys on markup that
   renders only when the skin turns its element on (summary_collapse, scarcity_line, live_viewers, express_pay, field_errors,
   support_placement), so a 1.6.7 skin page is unchanged. */
.dr-summary__toggle { display: none; }
.dr-scarcity { margin: 0; padding: 7px 12px; text-align: center; font-size: 0.9375rem; font-weight: 700; line-height: 1.3; color: #fff; background: #c21300; border-radius: 6px; }
.dr-viewers--live { margin: 0; text-align: center; font-size: 0.9375rem; line-height: 1.3; }
.dr-viewers--live[hidden] { display: none; }
.dr-express { margin: 0; }
.dr-express[hidden] { display: none; }
/* EXP-W W2: a page that opted in to the wallet frame renders the section PROBING: zero height and not display:none, so the wallet frame
   inside lays out at full width while it checks for a wallet. The negative margin cancels the flex gap the empty item would add (24px
   in the desktop column, 20px in the phone form), so a browser with no wallet shows exactly the page it showed before. The v2 runtime
   adds data-dr-express-live when the embed reports a wallet, and the section then takes its place. */
.dr-express[data-dr-express-probe]:not([data-dr-express-live]) { height: 0; margin: -24px 0 0; overflow: hidden; pointer-events: none; }
.dr-express__slot { display: flex; flex-direction: column; gap: 8px; }
/* EXP-W speed (2026-10-10): where a wallet is likely (the v2 runtime marks the section data-dr-express-reserve when ApplePaySession can pay),
   the section keeps its full place from the first paint: the heading, a button-shaped placeholder the height of the real button (the wallet
   frame is 56px, and the slot holds that height before and after), and the divider. When the wallet arrives only the placeholder is swapped,
   so nothing below moves; with no wallet the runtime folds the place away. */
.dr-express[data-dr-express-probe][data-dr-express-reserve]:not([data-dr-express-live]) { height: auto; margin: 0; overflow: visible; pointer-events: auto; }
.dr-express[data-dr-express-probe][data-dr-express-reserve]:not([data-dr-express-live]) .dr-express__slot { min-height: 56px; }
.dr-express[data-dr-express-probe][data-dr-express-reserve]:not([data-dr-express-live]) .dr-express__slot::before { content: ""; display: block; height: 48px; border-radius: 6px; background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%); background-size: 200% 100%; animation: dr-express-shimmer 1.4s linear infinite; }
/* EXP-H (2026-10-11): the wallet verdict arrives on the link (dr_xw, read by express-hint.inline.js, which marks the section data-dr-xw="a|n|x" and
   <html data-dr-xw> for the runtime). "a": the section is reserved from the first paint (the rules above) and the slot keeps the button's 56px
   before and after the frame fills it, so nothing below moves. "n": the inline script removes the section before the first paint (the express frame
   never loads). "x" (no hint): nothing is reserved; the section waits OUT OF THE FLOW at the button's size and fully transparent (a clipped, zero-height
   section keeps WebKit from drawing the Apple Pay button at all: measured), and takes its place only when a wallet shows. */
.dr-express[data-dr-xw="a"] .dr-express__slot { min-height: 56px; }
.dr-express[data-dr-xw="x"][data-dr-express-probe]:not([data-dr-express-live]) { position: absolute; left: 0; right: 0; height: 56px; margin: 0; overflow: visible; opacity: 0; pointer-events: none; z-index: -1; }
@keyframes dr-express-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .dr-express[data-dr-express-reserve] .dr-express__slot::before { animation: none; } }
.dr-express__divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font-size: 0.875rem; font-weight: 700; color: #6b7280; text-transform: uppercase; }
.dr-express__divider::before, .dr-express__divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--dr-line); }
/* checkout-embed >= 0.10.4 field_errors: every empty required field is marked inline when Place Order is tapped */
.dr-field__error { margin: 2px 0 0; font-size: 0.875rem; font-weight: 600; color: var(--dr-alert); }
.dr-field__error[hidden] { display: none; }
.dr-field--error input, .dr-field--error select { border-color: var(--dr-alert); box-shadow: 0 0 0 1px var(--dr-alert); }
.dr-footer__support { margin: 10px 0 0; font-size: 0.875rem; }
@media (max-width: 859px) {
  .dr-summary[data-dr-collapsible][data-dr-collapse-ready] .dr-summary__toggle { display: flex; align-items: center; gap: 6px; width: 100%; margin: 0; padding: 10px 12px; font: 700 1rem/1.2 var(--dr-font); color: var(--dr-ink); text-align: left; background: #fff; border: 1px solid var(--dr-line); border-radius: 6px; cursor: pointer; }
  .dr-summary__toggle-caret { display: inline-block; color: var(--dr-accent); transition: transform 0.15s; }
  .dr-summary[data-dr-expanded] .dr-summary__toggle-caret { transform: rotate(90deg); }
  .dr-summary__toggle-total { margin-left: auto; font-weight: 800; }
  /* collapsed: the one line only (the pack row, the locked pills and "Change" are one tap away). Only once the v2 runtime wired the
     toggle (data-dr-collapse-ready): without it the full summary stays, so the page never shows an unwired toggle or a stale total. */
  .dr-summary[data-dr-collapsible][data-dr-collapse-ready] > .dr-section__heading { display: none; }
  .dr-summary[data-dr-collapsible][data-dr-collapse-ready]:not([data-dr-expanded]) > :not(.dr-summary__toggle) { display: none !important; }
  .dr-summary[data-dr-collapsible][data-dr-collapse-ready][data-dr-expanded] > .dr-skin-summary { margin-top: 10px; }
  .dr-scarcity, .dr-viewers--live { order: 3; }
  /* EXP-W W2 (Brian, 2026-10-10): the wallet button sits on the FIRST screen. The pack list alone is taller than a phone, so with no pack
     handed over the section leads the form (above the packs; the product-info test block, order 0 and earlier in the markup, still
     comes first when it is on); with a handed-over pack the summary leads and the button sits right under it, before the trust row.
     Either way it is above the contact fields. A page with no wallet shows none of this (the section is hidden or probing). */
  .dr-express { order: 0; }
  body[data-dr-pack-locked] .dr-express { order: 2; }
  .dr-express[data-dr-express-probe]:not([data-dr-express-live]) { margin-top: -20px; }
}
/* field_errors: while at least one field carries an inline mark, the marks replace the embed's single hint line */
[data-dr-field-errors][data-dr-field-errors-shown] .dr-missing-hint { display: none !important; }

/* OP-1 Change C: product-info block at the top of the order page. Hidden by default; shown via data-dr-product-info-active
   (set server-side by skin.product_info.active or client-side by the v2 runtime on ?pi=1).
   Review r1 fix: .dr-form is display:flex (no wrap) with two column children. The product-info block spans full width
   above them by wrapping the flex container and sizing the columns to account for the 40px gap. When the block is hidden
   (display:none) the layout is unchanged. :has() is supported on all target browsers (iOS 15.4+, Chrome 105+, FF 121+);
   in unsupported browsers the test variant simply won't activate (acceptable: it ships OFF by default). */
.dr-product-info { display: none; }
.dr-form:has([data-dr-product-info-active]) { flex-wrap: wrap; }
.dr-form:has([data-dr-product-info-active]) > .dr-col--form { flex: 1 1 calc(52% - 20px); }
.dr-form:has([data-dr-product-info-active]) > .dr-col--offer { flex: 1 1 calc(48% - 20px); }
[data-dr-product-info-active].dr-product-info {
  display: block; flex: 0 0 100%; margin: 0 0 16px; padding: 16px 16px 14px; border: 2px solid var(--dr-accent);
  border-radius: 10px; background: var(--dr-highlight, #e8f1fb);
}
/* Review r2: hide the product-info block during upsell and thank-you stages (it belongs to the order form only). */
[data-dr-stage="upsell"] .dr-product-info,
[data-dr-stage="thank-you"] .dr-product-info,
[data-dr-stage="confirmation"] .dr-product-info { display: none !important; }
.dr-product-info__heading { margin: 0 0 10px; font-size: 1.125rem; font-weight: 900; color: var(--dr-ink); line-height: 1.25; }
.dr-product-info__packs { margin: 0; padding: 0; list-style: none; }
.dr-product-info__pack { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dr-product-info__pack[hidden] { display: none; }
.dr-product-info__pack-line { font-size: 1rem; font-weight: 600; line-height: 1.35; }
.dr-product-info__price { font-size: 1.125rem; font-weight: 900; color: var(--dr-accent); white-space: nowrap; }
.dr-product-info__includes { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.dr-product-info__item { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.875rem; font-weight: 700; color: #1a7f37; background: #e6f4ea; }
.dr-product-info__item::before { content: "\2713"; font-weight: 900; }

/* OP-6 reserve_hold_space (emitted only with the option): a server-hold line (the reserved-price line and, if on, the countdown) keeps its box while hidden, invisible rather than display:none, so the form never jumps when the hold lands. !important beats the VSL pages' global [hidden] rule (arm B). */
[data-dr-cart-skin] [data-dr-hold-space][hidden] { display: block !important; visibility: hidden; }

/* P4 parent_card_fields (emitted only with the option): the parent card slot's box. The slot ships `hidden`; the embed un-hides it when it mounts the card-only
   Payment Element and sets data-dr-card-box="mounting|ready|failed" on the checkout mount while it hosts the box (removed on release). With the server mode
   off the slot stays hidden and empty and this wrapper takes no space at all. */
.dr-card { margin: 0; }
[data-dr-card-box] .dr-card { margin: 0 0 12px; }
/* reserve the box's height while Stripe's frame loads (no jump when it paints; 151 px is what the card-only box measures at phone width, tests/e2e-order-page-stripe-test-mode.test.ts); never display:none while mounting (the host un-hides the slot) */
[data-dr-card-box="mounting"] .dr-card [data-dr-card-slot]:not([hidden]) { min-height: 151px; }
.dr-card [data-dr-card-slot] { scroll-margin: 24px 0; }
[data-dr-card-box="failed"] .dr-card { display: none; }
/* Phone (optional) below the card box: the same field look as the other fields, a little air above it */
.dr-fields--below-card { margin: 0 0 12px; }

/* OP-11 form_lift (emitted only with the option; phones only, below 860 px): the first form field stands higher on the page. Existing elements and existing
   words only: nothing is added, nothing is hidden, no price, anchor, badge or claim changes. The marker is on the order form (`data-dr-form-lift="a|b|c"`), so the
   same rules reach the inline checkout under a VSL (arm B), whose fragment is this form. Each rule is keyed one attribute deep, so the pack-handed-over layout
   (`body[data-dr-pack-locked] ...`, a more specific selector) keeps the order it has: a visitor who arrives from the VSL with a pack sees what they see today.
     a  short pack rows: every part of a pack card stays, laid out in fewer lines (smaller picture, the name and its badges on one line, tighter spacing)
     b  a + the order summary moves to directly above the payment block; the reassurance pills and the trust chips move below Place Order
     c  b + the reserved-price clock and the scarcity line move to directly above the order summary (after the address, right before the card)
   How the order is made: on a phone the form is one flex column and every block has an `order`; ties keep document order (the form column's blocks come before
   the offer column's). Shipping joins Contact at 4, so 5 reads: clock, scarcity line (c only), then the summary; 6 reads: payment, then the trust chips and the pills. */
@media (max-width: 859px) {
  [data-dr-form-lift] .dr-packs__list { gap: 8px; }
  [data-dr-form-lift] .dr-pack__select { grid-template-columns: 20px 48px 1fr auto; gap: 2px 8px; padding: 8px 10px; align-items: center; }
  [data-dr-form-lift] .dr-pack__media, [data-dr-form-lift] .dr-pack__media img { width: 48px; height: 48px; }
  [data-dr-form-lift] .dr-pack__media { grid-row: 1 / span 2; align-self: start; }
  [data-dr-form-lift] .dr-pack__qty { width: 22px; height: 22px; font-size: 0.75rem; }
  [data-dr-form-lift] .dr-pack__radio { grid-row: 1 / span 2; margin-top: 0; }
  [data-dr-form-lift] .dr-pack__label { grid-column: 3; grid-row: 1; font-size: 1rem; line-height: 1.2; }
  [data-dr-form-lift] .dr-pack__badges { grid-column: 4; grid-row: 1; justify-content: flex-end; align-items: center; }
  [data-dr-form-lift] .dr-pack__prices { grid-column: 3 / -1; grid-row: 2; gap: 0 8px; }
  [data-dr-form-lift] .dr-pack__unit--primary { font-size: 1.25rem; }
  [data-dr-form-lift] .dr-pack__pills, [data-dr-form-lift] .dr-pack__meta, [data-dr-form-lift] .dr-pack__bonus, [data-dr-form-lift] .dr-pack__bonus-delivery { grid-column: 2 / -1; }
  [data-dr-form-lift] .dr-pack__meta { font-size: 0.75rem; line-height: 1.3; }
  [data-dr-form-lift] .dr-pack__bonus { font-size: 0.75rem; line-height: 1.3; }
  [data-dr-form-lift="b"] .dr-summary, [data-dr-form-lift="c"] .dr-summary { order: 5; }
  [data-dr-form-lift="b"] .dr-fields--shipping, [data-dr-form-lift="c"] .dr-fields--shipping { order: 4; }
  [data-dr-form-lift="b"] .dr-skin-pills, [data-dr-form-lift="c"] .dr-skin-pills { order: 6; }
  [data-dr-form-lift="b"] .dr-trust-row, [data-dr-form-lift="c"] .dr-trust-row { order: 6; }
  [data-dr-form-lift="c"] .dr-reserved, [data-dr-form-lift="c"] .dr-scarcity { order: 5; }
  /* the scarcity line has no rule of its own in the pack-handed-over layout: say here that it stays where it is there */
  body[data-dr-pack-locked] [data-dr-form-lift="c"] .dr-scarcity { order: 3; }
}

/* OP-12 submit_feedback (emitted only with the option): what the buyer sees between the tap on Place Order and the next stage. The checkout mount carries
   `data-dr-payment-in-flight` from the moment the payment frame reports the payment is on its way (about 25 ms after the tap; the card was checked first, so an
   incomplete card never shows this) until the next stage (upsell, thank-you, confirming) or the decline. While it does, on the order form: the form steps back
   and the page's own confirming note (the same element and words the confirming stage shows) stands over the bottom of the screen. Nothing is added to the page
   and nothing is taken out of the layout: the form stays laid out (the card box is being confirmed by Stripe).
   ONLY WHILE THE CARD BOX IS ON THE PAGE (`data-dr-card-box="ready"`, the embed's own mark while the page hosts the box): Stripe then opens its 3-D Secure window on
   the top-level page, above the form and outside it, so it is never dimmed or covered. With the card fields inside the payment frame (the server switch off) an
   authentication challenge is drawn INSIDE the frame, which stands in the form: these rules then do not apply and the page behaves as it did.
   AND NEVER A BLOCK THAT HOSTS A PAYMENT FRAME: the fade is on the form's blocks one by one, all but the payment block (the card box, the payment frame and
   its Place Order control) and the express wallet block (its frame confirms a wallet payment itself, and may draw an authentication step inside it). A
   wallet payment sets the same in-flight mark, so it gets the same note; whatever Stripe draws in either frame keeps its full strength. */
[data-dr-submit-feedback][data-dr-card-box="ready"][data-dr-stage="order_form"][data-dr-payment-in-flight] .dr-form > :not(.dr-col), [data-dr-submit-feedback][data-dr-card-box="ready"][data-dr-stage="order_form"][data-dr-payment-in-flight] .dr-col > :not(.dr-payment):not([data-dr-express]) { opacity: 0.45; }
[data-dr-submit-feedback][data-dr-card-box="ready"][data-dr-stage="order_form"][data-dr-payment-in-flight] .dr-stage-note--confirming { display: block; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; margin: 0; text-align: center; font-weight: 700; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28); }
