@font-face {
    font-family: Manrope;
    src: url('/optigo/fonts/manrope-latin-variable.woff2') format('woff2');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

:root {
    color: #050505;
    background: #e9e9e7;
    font-family: Manrope, Arial, sans-serif;
    font-synthesis: none;
    --black: #050505;
    --white: #fff;
    --muted: #61615d;
    --soft: #f4f4f1;
    --line: #171717;
    --hairline: #c9c9c4;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-width: 320px; min-height: 100%; }
html { scroll-behavior: smooth; }
body { background: #e9e9e7; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button, label, input[type="radio"], input[type="checkbox"] { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid #50504d; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 50; top: 10px; left: 10px; padding: 10px 14px; transform: translateY(-160%); border: 1px solid var(--black); background: var(--white); color: var(--black); font-size: 12px; font-weight: 760; }
.skip-link:focus { transform: translateY(0); }

.optigo-shell {
    width: min(100%, 430px);
    min-height: 100dvh;
    margin-inline: auto;
    position: relative;
    overflow-x: hidden;
    background: var(--white);
    border-inline: 1px solid #d7d7d2;
}

.shop-home, .shop-wizard {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    background: var(--white);
}

.site-header {
    min-height: 54px;
    padding: 13px 20px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    background: var(--white);
}

.site-header.compact { min-height: 64px; padding-block: 15px 12px; }
.wordmark { padding: 0; border: 0; background: transparent; font-size: 31px; font-weight: 760; line-height: .95; letter-spacing: -.075em; text-decoration: none; }
.site-header nav { min-width: 0; display: flex; gap: clamp(9px, 3vw, 20px); align-items: center; overflow-x: auto; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav .shop-tab {
    appearance: none;
    padding: 5px 0 7px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--black);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: normal;
    text-decoration: none;
}
.site-header nav .shop-tab.active, .site-header nav .shop-tab:hover { border-bottom-color: var(--black); }
.site-header nav button.shop-tab:disabled { color: #969691; border-bottom-color: transparent; cursor: not-allowed; }
.site-header nav .account-link { font-weight: 720; }
.back-button { min-height: 50px; padding: 0 14px; border: 1px solid var(--black); background: var(--white); font-size: 11px; font-weight: 720; }
.cart-link { position: relative; }
.cart-badge { position: absolute; top: -4px; right: -9px; min-width: 15px; height: 15px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--black); color: var(--white); font-size: 8px; font-weight: 780; line-height: 1; }
.compact-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 16px; }
.compact-cart { padding: 8px 0; border: 0; border-bottom: 1px solid var(--black); background: transparent; font-size: 11px; font-weight: 700; }

.home-content { padding: 38px 20px 30px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 38px; font-size: clamp(38px, 10.8vw, 46px); font-weight: 720; line-height: 1; letter-spacing: -.065em; }
.error-banner { margin: -12px 0 24px; padding: 12px; border: 1px solid var(--black); font-size: 12px; line-height: 1.5; }
.draft-banner { margin: -10px 0 28px; padding-block: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-block: 1px solid var(--line); }
.draft-banner > div:first-child { display: grid; gap: 3px; }
.draft-banner strong { font-size: 12px; }
.draft-banner span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.draft-banner > div:last-child { display: flex; align-items: center; gap: 12px; }
.draft-banner button { padding: 5px 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--black); font: inherit; font-size: 10px; font-weight: 720; white-space: nowrap; }
.draft-banner button:last-child { color: var(--muted); }
.draft-banner button:disabled { opacity: .45; }

.shopping-tutorial { display: grid; gap: 30px; }
.tutorial-heading > p, .tutorial-start header > p { margin: 0 0 11px; color: var(--muted); font-size: 9px; font-weight: 780; letter-spacing: .12em; }
.tutorial-heading h1 { max-width: 390px; margin: 0 0 17px; font-size: clamp(43px, 12vw, 54px); font-weight: 710; line-height: .91; letter-spacing: -.075em; text-wrap: balance; }
.tutorial-heading > span { display: block; max-width: 370px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tutorial-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.tutorial-steps li { min-height: 82px; padding: 15px 0; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--hairline); }
.tutorial-steps li > span { align-self: start; padding-top: 3px; color: var(--muted); font-size: 9px; font-weight: 780; font-variant-numeric: tabular-nums; }
.tutorial-steps li > div { min-width: 0; display: grid; gap: 4px; }
.tutorial-steps strong { font-size: 16px; font-weight: 720; letter-spacing: -.025em; }
.tutorial-steps p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tutorial-steps a { padding-bottom: 3px; border-bottom: 1px solid var(--black); color: var(--black); font-size: 9px; font-weight: 740; text-decoration: none; white-space: nowrap; }
.tutorial-start { margin-top: 4px; border-block: 1px solid var(--line); }
.tutorial-start > header { padding: 22px 0 20px; }
.tutorial-start h2 { margin: 0 0 6px; font-size: 29px; font-weight: 690; line-height: 1; letter-spacing: -.055em; }
.tutorial-start header > span { color: var(--muted); font-size: 10px; }
.tutorial-routes { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); border-top: 1px solid var(--line); }
.tutorial-route-primary { grid-column: 1 / -1; }
.tutorial-route { min-width: 0; min-height: 174px; padding: 17px 14px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 13px; border: 0; background: var(--black); color: var(--white); text-align: left; transition: background-color 180ms ease, color 180ms ease, transform 120ms ease; }
.tutorial-route + .tutorial-route { border-left: 1px solid var(--line); background: var(--white); color: var(--black); }
.tutorial-route > span { font-size: 10px; font-weight: 780; letter-spacing: .08em; }
.tutorial-route > strong { width: 100%; overflow-wrap: anywhere; font-size: clamp(33px, 9.5vw, 42px); font-weight: 720; line-height: .88; letter-spacing: -.085em; font-variant-numeric: tabular-nums; }
.tutorial-route > strong small { display: block; margin-bottom: 5px; font-size: 9px; font-weight: 620; line-height: 1; letter-spacing: .02em; }
.tutorial-route > small { color: #c2c2bd; font-size: 9px; line-height: 1.35; }
.tutorial-route + .tutorial-route > small { color: var(--muted); }
.tutorial-route:hover { background: #2a2a28; }
.tutorial-route + .tutorial-route:hover { background: var(--soft); }
.tutorial-route:active { transform: translateY(1px) scale(.99); }
.tutorial-route:disabled { opacity: .45; cursor: not-allowed; }

.primary-button {
    min-height: 50px;
    width: 100%;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--black);
    border-radius: 0;
    background: var(--black);
    color: var(--white);
    font-size: 12px;
    font-weight: 740;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease, transform 120ms ease;
}
.primary-button:hover { background: var(--white); color: var(--black); }
.primary-button:active, .assistant-button:active, .voucher-control button:active { transform: translateY(1px) scale(.99); }
.primary-button:disabled { border-color: #9f9f99; background: #9f9f99; cursor: not-allowed; }

.step-frame-image { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }
.frame-image-placeholder { min-height: 190px; margin-bottom: 18px; display: grid; place-items: center; border: 1px dashed var(--hairline); background: var(--soft); color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.frame-image-placeholder.step-placeholder { min-height: 155px; margin-block: 0 18px; }
.trust-strip { min-height: 56px; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); background: var(--white); font-size: 10px; font-weight: 650; line-height: 1.35; }
.network-status { white-space: nowrap; }
.offline-notice { position: fixed; z-index: 20; top: 8px; left: 50%; width: min(calc(100% - 24px), 406px); padding: 9px 12px; transform: translateX(-50%); border: 1px solid var(--black); background: var(--black); color: var(--white); font-size: 10px; font-weight: 720; text-align: center; }

.shop-wizard { position: relative; height: 100dvh; overflow: hidden; grid-template-rows: auto 3px minmax(0, 1fr) auto; }
.progress-track { position: relative; height: 3px; background: #e3e3df; z-index: 3; }
.progress-track span { display: block; width: 16.666%; height: 100%; background: var(--black); transition: width 180ms ease; }
.wizard-scroll { min-height: 0; overflow-y: auto; padding: 32px 20px 108px; }
.eyebrow { margin: 0 0 12px; font-size: 10px; font-weight: 760; line-height: 1.25; letter-spacing: .11em; text-transform: uppercase; }
.wizard-step h1 { margin-bottom: 22px; font-size: clamp(38px, 11vw, 48px); }
.step-lead, .confirmation-lead { margin: -10px 0 22px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.step-frame-image { margin: -8px -8px 2px; width: calc(100% + 16px); }
.choice-list { border-top: 1px solid var(--line); }
.choice-row { width: 100%; min-height: 76px; padding: 13px 0; display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--hairline); }
.choice-row input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-marker { width: 16px; height: 16px; border: 1px solid var(--black); }
.choice-row:has(input:checked) .choice-marker { border: 5px solid var(--black); background: var(--white); }
.choice-row:has(input:focus-visible) { outline: 2px solid #50504d; outline-offset: 3px; }
.choice-row.is-unavailable { opacity: .48; cursor: not-allowed; }
.choice-copy { display: grid; gap: 4px; text-align: left; }
.choice-copy strong { font-size: 13px; line-height: 1.25; }
.choice-copy small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.choice-price { display: grid; gap: 3px; font-size: 13px; font-weight: 720; text-align: right; white-space: nowrap; }
.choice-price small { color: var(--muted); font-size: 9px; font-weight: 500; }
.frame-path-option { border-bottom: 1px solid var(--hairline); }
.frame-path-option .choice-row { border-bottom: 0; }
.inline-handoff-location { margin: -2px 0 15px 30px; padding: 12px; background: var(--soft); }
.notice { margin-top: 18px; padding: 13px 0; border-block: 1px solid var(--hairline); color: var(--muted); font-size: 11px; line-height: 1.5; }

.segmented-control { margin-bottom: 18px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--black); }
.segmented-control label { min-height: 44px; display: grid; place-items: center; font-size: 11px; font-weight: 680; }
.segmented-control label + label { border-left: 1px solid var(--black); }
.segmented-control label:has(input:checked) { background: var(--black); color: var(--white); }
.segmented-control label:has(input:focus-visible) { outline: 2px solid #50504d; outline-offset: 3px; }
.segmented-control input { position: absolute; opacity: 0; }
.upload-field { min-height: 146px; padding: 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px dashed var(--black); text-align: center; }
.upload-field strong { font-size: 13px; }
.upload-field small { color: var(--muted); font-size: 10px; }
.upload-field input { max-width: 100%; margin-top: 7px; font-size: 10px; }
.compact-upload { min-height: 116px; margin-top: 18px; }
.prescription-chat { min-height: 146px; padding: 22px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--black); background: #f7f7f4; }
.prescription-chat div { display: grid; gap: 7px; }
.prescription-chat strong { font-size: 14px; }
.prescription-chat small { max-width: 420px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.prescription-chat a, .prescription-chat > span { flex: 0 0 auto; padding: 13px 16px; border: 1px solid var(--black); background: var(--black); color: var(--white); font-size: 11px; font-weight: 720; text-decoration: none; }
.prescription-chat > span { border-color: var(--hairline); background: transparent; color: var(--muted); }
.rx-prefill-tools { margin-bottom: 18px; padding: 16px 0; display: grid; gap: 10px; border-block: 1px solid var(--line); }
.rx-prefill-tools p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.rx-prefill-tools > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rx-prefill-tools button, .rx-prefill-tools a { min-height: 42px; padding: 8px 10px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--black); background: var(--white); color: var(--black); font-size: 10px; font-weight: 730; text-align: center; text-decoration: none; }
.rx-prefill-tools button:hover, .rx-prefill-tools a:hover { background: var(--black); color: var(--white); }
.rx-prefill-tools > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.rx-eye-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.rx-eye-card { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--black); }
.rx-eye-card legend { padding: 0 8px; display: flex; align-items: baseline; gap: 7px; }
.rx-eye-card legend strong { font-size: 15px; }
.rx-eye-card legend span { color: var(--muted); font-size: 10px; }
.rx-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.rx-grid .field-wide { grid-column: 1 / -1; }
.form-stack { display: grid; gap: 15px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 10px; font-weight: 730; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field textarea { width: 100%; padding: 12px; border: 1px solid var(--hairline); border-radius: 0; background: var(--white); font-size: 14px; }
.field select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--hairline); border-radius: 0; background: var(--white); font: inherit; font-size: 13px; }
.field textarea { resize: vertical; }
.field-error { color: #8f1717; font-size: 10px; line-height: 1.4; }
.precal-fields { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-fill-toggle { min-height: 72px; padding: 14px 0; display: grid; grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: 11px; border-block: 1px solid var(--line); }
.admin-fill-toggle input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--black); }
.admin-fill-toggle span { display: grid; gap: 4px; }
.admin-fill-toggle strong { font-size: 13px; }
.admin-fill-toggle small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.jnt-quote { padding: 13px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; border-block: 1px solid var(--line); }
.jnt-quote p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.jnt-quote p.is-success { color: #17603f; }
.jnt-quote p.is-error { color: #8f1717; }
.jnt-quote button { min-height: 40px; padding: 0 12px; border: 1px solid var(--black); background: var(--black); color: var(--white); font-size: 10px; font-weight: 720; white-space: nowrap; }
.jnt-quote button:disabled { opacity: .55; }
.input-with-unit { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border: 1px solid var(--hairline); }
.input-with-unit input { min-width: 0; border: 0; }
.input-with-unit small { padding-right: 12px; color: var(--muted); font-size: 10px; font-weight: 700; }
.addon-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.addon-choice { min-width: 0; min-height: 158px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--hairline); transition: background-color 160ms ease, color 160ms ease; }
.addon-choice:nth-child(odd) { border-right: 1px solid var(--hairline); }
.addon-choice input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.addon-choice > span { display: grid; gap: 6px; }
.addon-choice small { color: var(--muted); font-size: 8px; font-weight: 780; letter-spacing: .1em; }
.addon-choice strong { font-size: 16px; line-height: 1.15; letter-spacing: -.025em; }
.addon-choice em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.45; }
.addon-choice > b { font-size: 13px; }
.addon-choice:has(input:checked) { background: var(--black); color: var(--white); }
.addon-choice:has(input:checked) small, .addon-choice:has(input:checked) em { color: #c8c8c3; }
.addon-choice:has(input:focus-visible) { outline: 2px solid #50504d; outline-offset: 3px; }
.addon-choice.is-unavailable { opacity: .46; cursor: not-allowed; }

.wizard-actions { padding: 12px 20px 16px; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); background: rgba(255,255,255,.98); }
.assistant-button { min-height: 50px; padding: 0 14px; border: 1px solid var(--black); background: var(--white); font-size: 11px; font-weight: 720; }
.wizard-actions [data-submit] { grid-column: 3; }

.order-summary { border-top: 1px solid var(--line); }
.order-summary > div { min-height: 51px; padding: 12px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--hairline); }
.order-summary span { color: var(--muted); font-size: 11px; }
.order-summary strong { max-width: 62%; font-size: 12px; text-align: right; }
.order-summary .summary-total { min-height: 72px; border-bottom-color: var(--line); }
.order-summary .summary-total strong { font-size: 28px; letter-spacing: -.06em; }
.voucher-box { margin-top: 20px; padding: 16px 0 18px; border-block: 1px solid var(--line); }
.voucher-box > label { display: block; margin-bottom: 8px; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.voucher-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.voucher-control input { min-width: 0; height: 46px; padding: 0 12px; border: 1px solid var(--black); border-radius: 0; background: var(--white); font-size: 13px; font-weight: 720; text-transform: uppercase; }
.voucher-control button { min-width: 92px; border: 1px solid var(--black); border-left: 0; background: var(--black); color: var(--white); font-size: 11px; font-weight: 720; }
.voucher-control button:disabled { opacity: .55; }
.voucher-box > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.voucher-box > p.is-success { color: #17603f; }
.voucher-box > p.is-error { color: #8f1717; }
.payment-options { margin-top: 20px; }
.payment-options > p { margin-bottom: 10px; font-size: 10px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.payment-options .choice-row { min-height: 66px; }
.payment-options .choice-row.is-unavailable { opacity: .52; cursor: not-allowed; }
.payment-options .choice-row.is-unavailable:hover { border-color: var(--line); transform: none; }
.payment-options [data-pakasir-method-field] { margin-top: 14px; }
.consent-row { margin-top: 22px; display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.consent-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--black); }

.assistant-dialog { width: min(calc(100% - 32px), 398px); max-height: min(620px, calc(100dvh - 32px)); padding: 0; border: 1px solid var(--black); border-radius: 0; background: var(--white); color: var(--black); }
.assistant-dialog::backdrop { background: rgba(0,0,0,.55); }
.assistant-head { padding: 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.assistant-head > div { display: grid; }
.assistant-head strong { font-size: 20px; }
.assistant-head small { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.assistant-head button { padding: 5px 0; border: 0; border-bottom: 1px solid var(--black); background: transparent; font-size: 11px; }
.assistant-messages { min-height: 190px; max-height: 390px; padding: 16px; overflow-y: auto; }
.assistant-messages p { margin-bottom: 10px; padding: 11px; border: 1px solid var(--hairline); font-size: 12px; line-height: 1.5; }
.assistant-messages p.user { margin-left: 32px; border-color: var(--black); background: var(--black); color: var(--white); }
.assistant-dialog form { padding: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; border-top: 1px solid var(--line); }
.assistant-dialog input { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--hairline); }
.assistant-dialog form button { min-width: 72px; border: 1px solid var(--black); background: var(--black); color: var(--white); }
.cart-content { min-height: 210px; padding: 22px 16px; }
.cart-empty { min-height: 160px; display: grid; align-content: center; gap: 8px; text-align: center; }
.cart-empty strong { font-size: 20px; letter-spacing: -.04em; }
.cart-empty p, .cart-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.cart-note { margin-top: 15px; }
.cart-actions { padding: 12px 16px 16px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; border-top: 1px solid var(--line); }
.cart-actions > button:first-child { min-height: 50px; padding-inline: 12px; border: 1px solid var(--black); background: var(--white); font-size: 11px; font-weight: 720; }
.optical-picker-list { min-height: 230px; max-height: min(520px, calc(100dvh - 150px)); padding: 0 16px 16px; overflow-y: auto; }
.optical-picker-list > p { padding: 22px 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.optical-record-choice { width: 100%; padding: 15px 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; border: 0; border-bottom: 1px solid var(--hairline); background: var(--white); text-align: left; }
.optical-record-choice > span { min-width: 0; display: grid; gap: 4px; }
.optical-record-choice strong { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.optical-record-choice small { color: var(--muted); font-size: 9px; line-height: 1.45; }
.optical-record-choice > b { align-self: center; font-size: 10px; white-space: nowrap; }
.optical-record-choice:hover strong { text-decoration: underline; text-underline-offset: 3px; }

.confirmation-shell { min-height: 100dvh; background: var(--white); }
.confirmation-content { padding: 38px 20px 48px; }
.confirmation-content h1 { margin-bottom: 20px; font-size: clamp(42px, 12vw, 58px); }
.tracker-label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.tracker-hero { display: grid; gap: 24px; }
.tracker-total { padding-block: 18px; display: grid; gap: 4px; border-block: 1px solid var(--line); }
.tracker-total > span { color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .08em; text-transform: uppercase; }
.tracker-total > strong { font-size: clamp(42px, 13vw, 64px); line-height: .96; letter-spacing: -.085em; }
.tracker-total > small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.tracker-state-grid { margin-top: 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.tracker-state-grid article { min-width: 0; min-height: 92px; padding: 13px 10px 13px 0; display: grid; align-content: space-between; gap: 12px; }
.tracker-state-grid article + article { padding-left: 10px; border-left: 1px solid var(--hairline); }
.tracker-state-grid span { color: var(--muted); font-size: 9px; line-height: 1.35; }
.tracker-state-grid strong { font-size: 11px; line-height: 1.35; overflow-wrap: anywhere; }
.status-timeline { margin: 28px 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.status-timeline li { min-height: 66px; padding: 13px 0; display: grid; grid-template-columns: 28px minmax(0, 1fr); align-items: start; gap: 12px; border-bottom: 1px solid var(--hairline); }
.status-timeline li > span { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--black); color: var(--muted); font-size: 9px; font-weight: 760; }
.status-timeline li.is-complete > span { background: var(--black); color: var(--white); }
.status-timeline strong { display: block; font-size: 12px; }
.status-timeline small { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.tracker-panel { margin-top: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.tracker-panel:last-of-type { border-bottom: 1px solid var(--line); }
.tracker-panel h2 { margin-bottom: 12px; font-size: clamp(26px, 8vw, 36px); line-height: 1; letter-spacing: -.055em; }
.tracker-panel > p:not(.eyebrow), .tracker-note { color: var(--muted); font-size: 12px; line-height: 1.6; }
.tracker-warning { padding-inline: 16px; border: 1px solid var(--black); background: #f3f0e7; }
.tracker-success { padding-inline: 16px; border: 1px solid var(--black); background: var(--soft); }
.tracker-alert { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--black); font-size: 11px; line-height: 1.5; }
.tracker-alert ul { margin: 7px 0 0; padding-left: 18px; }
.tracker-alert.is-success { background: #edf5ee; }
.tracker-alert.is-error { background: #fff0ee; }
.tracker-form { margin-top: 20px; display: grid; gap: 14px; }
.tracker-form .primary-button { margin-top: 2px; }
.payment-qr { width: min(100%, 286px); margin: 18px auto; padding: 12px; border: 1px solid var(--black); background: var(--white); }
.payment-qr svg { width: 100%; height: auto; display: block; }
.payment-instruction { margin-block: 16px; display: grid; grid-template-columns: minmax(105px, .8fr) minmax(0, 1.2fr); border-top: 1px solid var(--line); }
.payment-instruction > * { min-width: 0; padding: 11px 0; border-bottom: 1px solid var(--hairline); font-size: 11px; overflow-wrap: anywhere; }
.payment-instruction > span { color: var(--muted); }
.payment-instruction > strong { text-align: right; }
.tracker-security { margin: 28px 0 18px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.secondary-link { display: inline-block; padding-block: 6px; border-bottom: 1px solid var(--black); color: var(--black); font-size: 11px; font-weight: 720; text-decoration: none; }
.update-banner { position: fixed; z-index: 30; right: 12px; bottom: 12px; left: 12px; width: min(406px, calc(100% - 24px)); margin-inline: auto; padding: 12px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; border: 1px solid var(--black); background: var(--white); font-size: 11px; }
.update-banner button { min-height: 36px; padding-inline: 12px; border: 1px solid var(--black); background: var(--black); color: var(--white); font-weight: 720; }
.offline-shell { min-height: 100dvh; display: grid; place-items: center; padding: 22px; background: var(--white); }
.offline-card { width: min(100%, 430px); padding: 28px; border: 1px solid var(--black); background: var(--white); }
.offline-card .wordmark { margin-bottom: 62px; }
.offline-card h1 { margin-bottom: 20px; }
.offline-card > p:not(.eyebrow) { margin-bottom: 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 431px) {
    body { padding-block: 24px; }
    .optigo-shell, .shop-home, .shop-wizard { min-height: min(844px, calc(100dvh - 48px)); }
    .shop-wizard { height: min(844px, calc(100dvh - 48px)); }
}

@media (min-width: 900px) {
    body { padding: 0; background: #f0f0ed; }
    .optigo-shell { width: min(100%, 1180px); min-height: 100dvh; border-inline: 1px solid #d7d7d2; }
    .shop-home, .shop-wizard { min-height: 100dvh; }
    .shop-wizard { height: 100dvh; }
    .site-header { min-height: 72px; padding: 18px 34px 14px; }
    .wordmark { font-size: 36px; }
    .home-content { padding: 58px 48px 44px; }
    .shopping-tutorial { grid-template-columns: minmax(300px, .72fr) minmax(440px, 1.28fr); column-gap: clamp(64px, 8vw, 118px); row-gap: 42px; align-items: start; }
    .tutorial-heading h1 { max-width: 430px; font-size: clamp(58px, 5.4vw, 76px); }
    .tutorial-heading > span { max-width: 390px; font-size: 13px; }
    .tutorial-steps li { min-height: 96px; padding-block: 17px; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 15px; }
    .tutorial-steps strong { font-size: 19px; }
    .tutorial-steps p { max-width: 430px; font-size: 11px; }
    .tutorial-start { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(270px, .55fr) minmax(0, 1.45fr); }
    .tutorial-start > header { padding: 28px 32px 28px 0; border-right: 1px solid var(--line); }
    .tutorial-start h2 { font-size: 38px; }
    .tutorial-routes { border-top: 0; }
    .tutorial-route { min-height: 210px; padding: 22px 24px; }
    .tutorial-route > strong { font-size: clamp(48px, 5.4vw, 68px); }
    .frame-image-placeholder { min-height: 390px; }
    .trust-strip { min-height: 64px; padding-inline: 34px; font-size: 11px; }
    .wizard-scroll { width: min(100%, 820px); margin-inline: auto; padding: 54px 30px 132px; }
    .wizard-step h1 { font-size: clamp(52px, 5vw, 72px); }
    .wizard-actions { padding: 16px max(30px, calc((100% - 760px) / 2)) 20px; }
    .confirmation-shell { width: min(100%, 1040px); }
    .confirmation-content { padding: 76px 72px 68px; }
    .confirmation-content h1 { max-width: 650px; font-size: 72px; }
    .tracker-hero { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); align-items: end; gap: 64px; }
    .tracker-total { padding: 22px 0; }
    .tracker-total > strong { font-size: 64px; }
    .tracker-state-grid article { min-height: 106px; padding: 17px 18px 17px 0; }
    .tracker-state-grid article + article { padding-left: 18px; }
    .tracker-state-grid strong { font-size: 14px; }
    .tracker-panel { padding-block: 30px; }
    .tracker-panel h2 { font-size: 40px; }
    .tracker-form { max-width: 620px; }
}

@media (max-width: 370px) {
    .home-content { padding-inline: 14px; }
    .site-header, .trust-strip, .wizard-actions { padding-inline: 14px; }
    .site-header { gap: 10px; }
    .site-header nav { gap: 7px; }
    .site-header nav .shop-tab { font-size: 10px; }
    .site-header nav .account-link { font-size: 10px; }
    .tutorial-route > strong { font-size: 32px; }
}

@media (max-width: 620px) {
    .draft-banner { align-items: flex-start; flex-direction: column; gap: 10px; }
    .site-header:not(.compact) { align-items: stretch; flex-direction: column; gap: 8px; }
    .site-header:not(.compact) .store-wordmark { font-size: 28px; white-space: nowrap; }
    .site-header:not(.compact) nav { width: 100%; justify-content: flex-start; }
    .site-header:not(.compact) nav .shop-tab { flex: 0 0 auto; }
    .prescription-chat { min-height: 0; align-items: stretch; flex-direction: column; }
    .prescription-chat a, .prescription-chat > span { text-align: center; }
    .rx-eye-grid { grid-template-columns: 1fr; }
    .addon-choice-grid { grid-template-columns: 1fr; }
    .addon-choice:nth-child(odd) { border-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.store-wordmark { min-width: 0; max-width: 100%; display: inline-flex; align-items: center; gap: 10px; text-align: left; }
.store-wordmark span { min-width: 0; overflow-wrap: anywhere; line-height: 1.05; }
.site-header.compact .store-wordmark { max-width: calc(100% - 82px); font-size: clamp(22px, 7vw, 31px); }
.site-header.compact .back-button { flex: 0 0 auto; }
.store-wordmark img { width: 34px; height: 34px; object-fit: contain; border-radius: 8px; }
.store-identity { min-height: 250px; margin-bottom: 28px; padding: clamp(28px, 5vw, 64px); display: flex; align-items: flex-end; border: 1px solid #111; background: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.72)), var(--store-banner, none) center/cover; }
.store-identity.tutorial-store { min-height: 190px; margin-bottom: 42px; padding: clamp(24px, 4vw, 44px); }
.store-identity p { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.store-identity h1 { margin: 0 0 12px; font-size: clamp(42px, 8vw, 86px); line-height: .95; letter-spacing: -.06em; }
.store-identity.tutorial-store h1 { font-size: clamp(38px, 6vw, 64px); }
.store-identity span { display: block; max-width: 620px; color: #555; line-height: 1.6; }
.store-contact { margin-top: 20px; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; }
.store-contact span, .store-contact a { color: #111; font-size: 12px; font-weight: 700; }
.store-contact a { padding-bottom: 2px; border-bottom: 1px solid #111; text-decoration: none; }
