/* ============================================================
   EAGLE VISION — RX PORTAL (/rx)
   Sits on top of css/styles.css: same tokens (--accent, --glass,
   --border, --text, --muted, --dim), same glass recipes, same
   type. Nothing here invents a color. Mobile first; the page is
   one column that stays one column on desktop, just wider.
   ============================================================ */

.rx-body { background-color: var(--bg); min-height: 100dvh; }
/* touch: rapid taps on − / + must never trigger double-tap zoom; and the
   page scroll is the only scroll, so keep it native and unjacked */
.rx button, .rx input, .rx summary, .rx a, .rx-bar button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rx-body { overscroll-behavior-y: contain; -webkit-text-size-adjust: 100%; }
html:has(.rx-body) { background-color: var(--bg); }
.rx-body::before { display: none; }           /* no hero photo behind the form — keeps inputs legible */
.rx-body::after  { opacity: .6; }
/* this page scrolls under the nav, so give it the ticker's glass */
.rx-body #nav { background: rgba(20,14,8,0.78); backdrop-filter: blur(24px) saturate(1.9); -webkit-backdrop-filter: blur(24px) saturate(1.9); border-bottom: 1px solid rgba(255,220,150,0.10); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08); }

.rx {
    position: relative; z-index: 1;
    max-width: 560px; margin: 0 auto;
    padding: 96px 16px calc(112px + env(safe-area-inset-bottom, 0px));
}
@media (max-width: 430px) { .rx { padding-top: 84px; } }
@media (min-width: 900px) { .rx { max-width: 640px; padding-top: 120px; } }

/* ── header ── */
.rx-head { margin-bottom: 18px; }
.rx-title { font-size: clamp(34px, 8vw, 48px); line-height: 1.05; margin-bottom: 10px; }
.rx-sub { font-size: 13.5px; color: var(--muted); line-height: 1.7; max-width: 440px; }

/* ── progress: four dots, the current one lit ── */
.rx-progress {
    list-style: none; display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 6px; margin: 0 0 14px; padding: 0;
}
.rx-progress li {
    position: relative; padding-top: 12px;
    font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: .18em;
    text-transform: uppercase; color: var(--dim); text-align: center;
    transition: color .25s;
}
.rx-progress li::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px;
    background: rgba(240,224,200,0.14);
    transition: background .25s, box-shadow .25s;
}
.rx-progress li.done::before    { background: var(--accent-lo); }
.rx-progress li.current         { color: var(--accent); }
.rx-progress li.current::before { background: var(--accent); box-shadow: 0 0 10px rgba(192,136,96,.55); }

/* ── stage + steps ── */
.rx-stage { position: relative; }
.rx-step { padding: 22px 18px 24px; }
.rx-step[hidden] { display: none; }
.rx-step-title {
    font-family: 'Cormorant Garamond', serif; font-weight: 400;
    font-size: 26px; letter-spacing: .02em; line-height: 1.15;
    margin-bottom: 16px; outline: none;
}
.rx-step-title:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* ── step transitions: View Transitions when available, class
   fallback otherwise. Transform + opacity only, 280ms. --rx-dir is
   set by rx.js (+1 forward, -1 back). ── */
:root { --rx-dir: 1; }
@keyframes rxStepIn  { from { opacity: 0; transform: translateX(calc(var(--rx-dir) * 22px)); } }
@keyframes rxStepOut { to   { opacity: 0; transform: translateX(calc(var(--rx-dir) * -22px)); } }
/* only the step animates; the page around it must not crossfade (or ghost) */
::view-transition-old(root) { display: none; }
::view-transition-new(root) { animation: none; }
::view-transition-old(rx-step) { animation: rxStepOut .28s cubic-bezier(.22,1,.36,1) both; }
::view-transition-new(rx-step) { animation: rxStepIn  .28s cubic-bezier(.22,1,.36,1) both; }
.rx-step.is-entering { animation: rxStepIn .28s cubic-bezier(.22,1,.36,1) both; }

/* ── frame cards (step 1) ── */
.rx-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.rx-frame {
    display: flex; flex-direction: column; gap: 8px; cursor: pointer;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
    padding: 10px 10px 12px; background: rgba(255,255,255,0.025);
    text-align: left; color: inherit; font: inherit; min-height: 44px;
    transition: border-color .25s, background .25s, transform .25s;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .rx-frame:hover { border-color: rgba(212,160,122,0.5); transform: translateY(-1px); } }
.rx-frame:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.rx-frame.active {
    border-color: var(--accent); background: rgba(192,136,96,0.10);
    box-shadow: 0 0 0 1px var(--accent), 0 10px 26px rgba(0,0,0,0.35);
}
.rx-frame .n { font-family: 'Cormorant Garamond', serif; font-size: 18px; letter-spacing: .04em; color: var(--text); line-height: 1.1; }
.rx-frame .c { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .06em; color: var(--dim); }
.rx-frame .p { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--muted); margin-left: auto; }
.rx-frame-meta { display: flex; align-items: baseline; gap: 8px; }

/* fixed-ratio image box → zero layout shift when the photo swaps */
.rx-imgbox {
    position: relative; width: 100%; aspect-ratio: 3 / 2; border-radius: 9px; overflow: hidden;
    background: radial-gradient(ellipse 85% 70% at 50% 40%, #2b2016 0%, #1a120b 62%, #120c07 100%);
}
.rx-imgbox img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block;
    padding: 6%; filter: drop-shadow(0 8px 14px rgba(0,0,0,.45));
    opacity: 1; transition: opacity .2s ease;
}
.rx-imgbox .is-fading { opacity: 0; }
.rx-imgbox .rx-nophoto { transition: opacity .2s ease; }
/* "photo coming soon" — shown instead of any unbranded fallback */
.rx-nophoto {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    color: var(--dim); font-family: 'Inter', sans-serif; font-size: 9px;
    letter-spacing: .18em; text-transform: uppercase; text-align: center;
}
.rx-nophoto::before {
    content: ''; position: absolute; inset: 8px; border-radius: 7px;
    border: 1px dashed rgba(240,224,200,0.22);
}
.rx-nophoto svg { width: 46%; max-width: 120px; height: auto; stroke: var(--accent); opacity: .7; fill: none; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }


/* ── choice cards (prescription path, lens type) ── */
.rx-paths { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
@media (min-width: 480px) { .rx-paths { grid-template-columns: repeat(3, 1fr); } }
.rx-choice {
    display: flex; flex-direction: column; gap: 3px; cursor: pointer; width: 100%;
    border: 1px solid rgba(255,255,255,0.12); border-radius: 12px;
    padding: 12px 14px; min-height: 44px; background: rgba(255,255,255,0.025);
    text-align: left; color: inherit; font: inherit;
    transition: border-color .25s, background .25s;
    -webkit-tap-highlight-color: transparent;
}
.rx-choice:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.rx-choice.active { border-color: var(--accent); background: rgba(192,136,96,0.10); box-shadow: 0 0 0 1px var(--accent); }
.rx-choice .t { font-family: 'Inter', sans-serif; font-size: 12.5px; font-weight: 500; letter-spacing: .04em; color: var(--text); }
.rx-choice .h { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--dim); line-height: 1.5; }
.rx-choice[disabled], .rx-choice.locked { cursor: default; opacity: .5; }
.rx-choice.locked .t::after { content: ' · soon'; color: var(--dim); font-weight: 400; }

.rx-vision { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }

/* ── form primitives ── */
.rx-label {
    display: block; font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600;
    letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.rx-input {
    width: 100%; min-height: 48px; padding: 12px 14px;
    background: rgba(10,7,4,0.55); border: 1px solid rgba(255,255,255,0.20); border-radius: 10px;
    color: var(--text); font-family: 'Inter', sans-serif; font-size: 16px; /* 16px = no iOS zoom */
    outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    transition: border-color .2s, box-shadow .2s;
    -webkit-appearance: none; appearance: none;
}
.rx-input::placeholder { color: var(--dim); }
.rx-input:focus { border-color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 0 3px rgba(192,136,96,.18); }
.rx-input[aria-invalid="true"] { border-color: #d98a7a; }
.rx-date { color-scheme: dark; }
.rx-hint { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--dim); line-height: 1.6; margin-top: 8px; }
.rx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ── Rx grid: one row per eye, SPH · CYL · AXIS ── */
.rx-eyes { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.rx-eye { border-top: 1px solid var(--border); padding-top: 12px; }
.rx-eye-name { font-family: 'Cormorant Garamond', serif; font-size: 19px; letter-spacing: .03em; color: var(--text); margin-bottom: 10px; }
.rx-eye-name small { font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-left: 8px; }
.rx-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.rx-field-l { display: block; min-height: 34px; font-family: 'Inter', sans-serif; font-size: 9.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.rx-field-l small { display: block; font-weight: 400; letter-spacing: .04em; text-transform: none; color: var(--dim); font-size: 10px; }

/* value box: [sign] [value]; then a [−][+] pair below. Every control ≥44px. */
.rx-valbox {
    display: grid; grid-template-columns: 1fr; align-items: stretch;
    border: 1px solid rgba(255,255,255,0.20); border-radius: 10px; overflow: hidden;
    background: rgba(10,7,4,0.55); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
    transition: border-color .2s, box-shadow .2s;
}
.rx-valbox.has-sign { grid-template-columns: 30px 1fr; }
.rx-valbox:focus-within { border-color: var(--accent); box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 0 0 3px rgba(192,136,96,.18); }
.rx-valbox.is-invalid { border-color: #d98a7a; }
.rx-valbox input {
    min-width: 0; width: 100%; min-height: 48px; padding: 0 6px 0 2px; text-align: center;
    background: none; border: none; outline: none; color: var(--text);
    font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 500;
    -webkit-appearance: none; appearance: none;
}
.rx-valbox.has-sign input { text-align: left; }
.rx-valbox input::placeholder { color: var(--dim); font-weight: 400; }
.rx-valbox input:disabled { color: var(--dim); }
.rx-sign {
    min-height: 48px; background: rgba(255,255,255,0.05); border: none; border-right: 1px solid rgba(255,255,255,0.10); cursor: pointer;
    color: var(--accent); font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; line-height: 1; padding: 0;
    transition: background .15s, color .15s;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .rx-sign:hover { background: rgba(255,255,255,0.10); } }
.rx-sign:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -3px; }
.rx-sign-fixed { display: flex; align-items: center; justify-content: center; color: var(--dim); font-family: 'Cormorant Garamond', serif; font-size: 22px; border-right: 1px solid rgba(255,255,255,0.10); background: rgba(255,255,255,0.03); }
.rx-pm { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 4px; }
.rx-stp {
    min-height: 44px; border-radius: 8px; cursor: pointer;
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
    color: var(--muted); font-family: 'Inter', sans-serif; font-size: 18px; line-height: 1; padding: 0;
    transition: background .15s, color .15s, border-color .15s;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) { .rx-stp:hover { background: rgba(255,255,255,0.10); color: var(--text); } }
.rx-stp:active { background: rgba(192,136,96,0.25); border-color: rgba(192,136,96,.5); }
.rx-stp:disabled { opacity: .3; cursor: default; }
.rx-stp:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }
@media (max-width: 400px) {
    .rx-fields { gap: 6px; }
    .rx-valbox.has-sign { grid-template-columns: 24px 1fr; }
    .rx-valbox input { font-size: 20px; padding-right: 4px; }
}
.rx-axis.is-off { opacity: .45; }

/* reserved line for a per-eye message — no layout shift when it appears */
.rx-eye-msg { min-height: 18px; font-family: 'Inter', sans-serif; font-size: 11.5px; color: #e4a899; margin-top: 8px; line-height: 1.5; }

/* ── upload ── */
.rx-upload { border: 1px dashed rgba(240,224,200,0.28); border-radius: 12px; padding: 18px 16px; text-align: center; margin-bottom: 16px; }
.rx-upload-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
    background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid rgba(255,255,255,0.22); border-radius: 50px;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
    cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,0.16);
    transition: background .2s, border-color .2s;
}
@media (hover: hover) { .rx-upload-btn:hover { background: rgba(255,255,255,0.10); border-color: rgba(192,136,96,.5); } }
.rx-upload-btn:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; }
.rx-upload-hint { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--dim); margin-top: 10px; min-height: 16px; }
.rx-file {
    display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px;
    background: rgba(90,140,80,.10); border: 1px solid rgba(100,200,100,.22); border-radius: 10px; text-align: left;
}
.rx-file[hidden] { display: none; }
.rx-file-tag { font-family: 'Inter', sans-serif; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; color: #9fd09f; flex-shrink: 0; }
.rx-file-name { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.rx-file-remove { background: none; border: none; color: var(--dim); font-family: 'Inter', sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; min-height: 44px; padding: 0 6px; }
@media (hover: hover) { .rx-file-remove:hover { color: var(--text); } }

.rx-expiry { margin-bottom: 6px; }
.rx-expiry[hidden] { display: none; }
.rx-later { font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--muted); line-height: 1.75; }
.rx-later strong { color: var(--text); font-weight: 500; }

/* ── progressive notify (disabled option's email capture) ── */
.rx-notify { margin: -4px 0 16px; }
.rx-notify[hidden] { display: none; }
.rx-notify-note { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.rx-inline-form { display: flex; gap: 8px; }
.rx-inline-form .rx-input { min-width: 0; flex: 1; }
.rx-inline-btn {
    flex-shrink: 0; min-height: 48px; padding: 0 16px; border-radius: 10px; cursor: pointer;
    background: var(--accent); color: #fff; border: none;
    font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.20); transition: background .2s;
}
@media (hover: hover) { .rx-inline-btn:hover { background: var(--accent-hi); } }
.rx-inline-btn:focus-visible { outline: 1.5px solid var(--text); outline-offset: 2px; }
.rx-inline-msg { min-height: 18px; margin-top: 8px; font-family: 'Inter', sans-serif; font-size: 11.5px; color: #9fd09f; }
.rx-inline-msg.is-error { color: #e4a899; }

/* ── out of range card ── */
.rx-oor { margin-top: 16px; padding: 18px 16px; border-radius: 12px; border: 1px solid rgba(192,136,96,.35); background: rgba(192,136,96,.07); outline: none; }
.rx-oor[hidden] { display: none; }
.rx-oor-title { font-family: 'Cormorant Garamond', serif; font-size: 23px; color: var(--text); margin-bottom: 6px; }
.rx-oor-body { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.rx-oor-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; }
.rx-link { width: auto; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--muted); }
@media (hover: hover) { .rx-link:hover { color: var(--accent); } }

/* ── PD ── */
.rx-pd { margin-bottom: 14px; }
.rx-pd[hidden] { display: none; }
.rx-pd-input { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; text-align: center; max-width: 160px; }
.rx-pd-unknown { align-items: center; text-align: center; }
.rx-pd-unknown .t { font-size: 13px; }
.rx-pd-note { margin-top: 12px; color: var(--muted); }
.rx-pd-note[hidden] { display: none; }

/* ── review ── */
.rx-review-img { margin-bottom: 16px; aspect-ratio: 16 / 9; }
.rx-review-rows { margin-bottom: 16px; }
.rx-review-rows .r { align-items: baseline; gap: 16px; }
.rx-review-rows .r span { text-align: right; }
.rx-review-rows .r .chip { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 50px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(192,136,96,.4); vertical-align: middle; }
.rx-review-price { border-top: 1px solid var(--border); padding-top: 12px; margin-bottom: 14px; }
.rx-review-price .l { display: flex; justify-content: space-between; font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted); padding: 3px 0; }
.rx-review-price .l.total { align-items: baseline; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--border); color: var(--text); }
.rx-review-price .l.total b { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: var(--accent); font-weight: 400; line-height: 1; }
.rx-review-turn { font-family: 'Inter', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.rx-review-terms { font-family: 'Inter', sans-serif; font-size: 11.5px; color: var(--dim); line-height: 1.65; font-style: italic; }

/* ── prescription policy: collapsed glass panel under the review card ── */
.rx-policy { margin-top: 18px; border-radius: 12px; padding: 0; overflow: hidden; }
.rx-policy[hidden] { display: none; }
.rx-policy-summary {
    list-style: none; cursor: pointer; min-height: 48px; padding: 14px 16px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent);
    -webkit-tap-highlight-color: transparent; transition: background .2s;
}
.rx-policy-summary::-webkit-details-marker { display: none; }
.rx-policy-summary::after { content: '\2193'; font-size: 13px; color: var(--dim); transition: transform .25s cubic-bezier(.22,1,.36,1); }
.rx-policy[open] .rx-policy-summary::after { transform: rotate(180deg); }
@media (hover: hover) { .rx-policy-summary:hover { background: rgba(255,255,255,0.04); } }
.rx-policy-summary:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -3px; border-radius: 12px; }
.rx-policy-body { padding: 2px 16px 6px; border-top: 1px solid var(--border); }
.rx-policy[open] .rx-policy-body { animation: rxStepIn .28s cubic-bezier(.22,1,.36,1) both; --rx-dir: 0; }
.rx-policy-section h3 { font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; color: var(--text); margin: 16px 0 6px; letter-spacing: .01em; }
.rx-policy-section p, .rx-policy-section li { font-family: 'Inter', sans-serif; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.rx-policy-section p { margin-bottom: 8px; }
.rx-policy-section ul { margin: 0 0 8px 18px; }
.rx-policy-section li { margin-bottom: 2px; }
.rx-policy-section a, .rx-policy-contact a { color: var(--accent); }
.rx-policy-contact { font-family: 'Inter', sans-serif; font-size: 12.5px; color: var(--muted); margin: 14px 0 8px; }
.rx-policy-more {
    display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-top: 1px solid var(--border);
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
    color: var(--muted); text-decoration: none; transition: color .2s;
}
@media (hover: hover) { .rx-policy-more:hover { color: var(--accent); } }
.rx-policy-more:focus-visible { outline: 1.5px solid var(--accent); outline-offset: -3px; }
/* full page (/rx/policy) on top of policy-page.css */
.rx-policy-full .rx-policy-section h2 { margin-top: 32px; }
.rx-policy-full .rx-policy-contact { font-size: 16px; margin-top: 32px; }

/* ── step-level error line: reserved height, announced ── */
.rx-error { min-height: 20px; margin: 10px 4px 0; font-family: 'Inter', sans-serif; font-size: 12px; color: #e4a899; line-height: 1.5; }

/* ── thumb bar ── */
.rx-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 150;
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to bottom, rgba(255,248,238,0.10) 0%, rgba(255,248,238,0.08) 100%), rgba(20,14,8,0.80);
    backdrop-filter: blur(24px) saturate(1.9); -webkit-backdrop-filter: blur(24px) saturate(1.9);
    border-top: 1px solid rgba(255,255,255,0.18);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}
.rx-bar { transition: transform .22s cubic-bezier(.22,1,.36,1); will-change: transform; }
.rx-bar.is-typing { transform: translateY(110%); }
@media (min-width: 900px) { .rx-bar.is-typing { transform: translateX(-50%) translateY(110%); } }
.rx-back {
    flex-shrink: 0; min-width: 44px; min-height: 48px; padding: 0 14px; background: none; border: none; cursor: pointer;
    font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
    transition: color .2s, opacity .2s;
}
@media (hover: hover) { .rx-back:hover { color: var(--text); } }
.rx-back:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.rx-back.is-hidden { visibility: hidden; }
.rx-next { flex: 1; min-height: 48px; padding: 14px 16px; }
.rx-next:focus-visible { outline: 1.5px solid var(--text); outline-offset: 2px; }
.rx-next[disabled] { opacity: .7; cursor: progress; transform: none; }
@media (min-width: 900px) {
    .rx-bar { left: 50%; right: auto; width: 640px; transform: translateX(-50%); border-radius: 16px 16px 0 0; border: 1px solid rgba(255,255,255,0.18); border-bottom: none; }
}

/* ── skeleton while the Rx is being saved (never a bare spinner) ── */
.rx-review.is-busy .rx-review-rows, .rx-review.is-busy .rx-review-price { position: relative; }
.rx-review.is-busy .rx-review-rows::after, .rx-review.is-busy .rx-review-price::after {
    content: ''; position: absolute; inset: -4px; border-radius: 8px;
    background: linear-gradient(90deg, rgba(240,224,200,0.04) 25%, rgba(240,224,200,0.12) 50%, rgba(240,224,200,0.04) 75%);
    background-size: 200% 100%; animation: rxShimmer 1.1s linear infinite;
}
@keyframes rxShimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── motion: honor the OS setting everywhere on this page ── */
@media (prefers-reduced-motion: reduce) {
    ::view-transition-old(rx-step), ::view-transition-new(rx-step), .rx-step.is-entering, .rx-policy[open] .rx-policy-body { animation: none !important; }
    .rx-review.is-busy .rx-review-rows::after, .rx-review.is-busy .rx-review-price::after { animation: none; background: rgba(240,224,200,0.08); }
    .rx *, .rx-bar * { transition-duration: .01ms !important; }
    .rx-imgbox img { transition: none; }
}
