/* 自家线上点餐 H5 — design direction B v2 (h5-design-20261121 §2, §7): white,
   warm grey only as section ground, black for actions, the brand yellow
   (--accent; BO 主题色 when set) only as a touch. Fonts: Plus Jakarta Sans when
   the device has it, else the system font (no web font is loaded: CSP and no
   third-party request); Chinese in the system's (PingFang SC on iPhone).
   视觉层级 (2026-11-22, h5-hierarchy-20261122, after HEYTEA's levels and
   spacing): one focus a screen; black and white first, the yellow on one
   thing a page (home: 「Order now」; menu: 「Checkout」; order: the current
   step); three weights only — 400 text, 500 names and buttons, 600 titles,
   prices and totals; few capitals; no fills or frames where space groups;
   second things (the other language's name, hours, notes) a grade greyer. */
:root {
  --accent: #FBC52D; --accent-ink: #141414; --accent-soft: #FFF3CC;
  --bg: #FFFFFF; --surface: #F6F4F0; --surface-2: #EFECE6; --line: #ECE9E3; --frame: #E4E0D9;
  --ink: #141414; --ink-2: #3C3A36; --sub: #76726B; --faint: #A9A49B; --faint-2: #BDB8AF;
  --red: #D8432B; --green: #2E8B57;
  --shadow: 0 1px 2px rgba(20,20,20,.04), 0 8px 24px rgba(20,20,20,.07);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --zh: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); }
body { -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; }
@media (min-width: 520px) { html, body { background: #EAE7E1; } }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: inherit; }
button:disabled { cursor: default; }
input, select, textarea { font: inherit; color: inherit; font-size: 16px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
b, strong { font-weight: 600; }
#app { max-width: 480px; margin: 0 auto; background: var(--bg); min-height: 100%; position: relative; }
.loading, .error-page { padding: 64px 24px; text-align: center; color: var(--sub); font-size: 14px; }
.error-page .btn-black { margin-top: 16px; }

/* page frame: one screen tall, its own scroll areas */
.screen { display: flex; flex-direction: column; height: 100vh; height: 100dvh; position: relative; overflow: hidden; background: var(--bg); }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.scroll::-webkit-scrollbar { display: none; }
.grey { background: var(--surface); }
.pad { padding: 0 18px; }
.scroll.pad { padding-top: 8px; padding-bottom: 120px; }
.ic { display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none; }
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.chev { width: 14px; height: 14px; color: var(--faint); }
.ic.chev svg { stroke-width: 2; }
.ib { width: 40px; height: 40px; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.ib .ic { width: 22px; height: 22px; }
.ib.round { background: rgba(255,255,255,.9); box-shadow: 0 1px 4px rgba(20,20,20,.08); }
.hint { font-size: 12px; line-height: 1.5; color: var(--faint); margin-top: 10px; }
.tips { font-size: 12px; line-height: 1.5; color: var(--faint); text-align: center; padding: 14px 24px 24px; }
.lbl { font: 600 13px/1 var(--font); margin: 18px 0 12px; }
.pill { display: inline-block; padding: 5px 9px; border-radius: 999px; background: var(--surface); font: 500 11.5px/1 var(--font); color: var(--ink-2); }
.alert { display: block; width: calc(100% - 24px); margin: 10px 12px 0; padding: 11px 14px; border-radius: 12px; background: #FFF1EC; color: #A33A22; font-size: 13px; line-height: 1.45; text-align: left; }
.warn { margin: 0 14px 8px; padding: 9px 12px; border-radius: 10px; background: #FFF1EC; color: #A33A22; font-size: 13px; flex: none; }

/* buttons */
.btn-black { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 50px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px/1 var(--font); }
.btn-black.small { width: auto; height: 46px; padding: 0 26px; font-size: 14.5px; display: inline-flex; }
.btn-black:disabled { background: #D9D6D0; }
.btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid #D6D2CA; font: 500 14px/1 var(--font); background: #fff; color: var(--ink); text-decoration: none; }
.btn-line.block { width: 100%; }
.stepper { display: inline-flex; align-items: center; gap: 12px; }
.stepper button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid #CFCAC1; display: grid; place-items: center; position: relative; }
.stepper button::after { content: ""; position: absolute; inset: -8px; }
.stepper button .ic { width: 15px; height: 15px; }
.stepper button .ic svg { stroke-width: 1.8; }
.stepper button.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.stepper button:disabled { opacity: .35; }
.stepper b { font: 500 15px/1 var(--font); min-width: 14px; text-align: center; }

/* EN / 中 */
.lang { display: inline-flex; border-radius: 999px; background: var(--surface); padding: 3px; flex: none; }
.lang button { min-width: 34px; height: 28px; padding: 0 9px; border-radius: 999px; font: 500 12px/28px var(--font); color: var(--sub); text-align: center; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20,20,20,.1); }

/* bottom tabs: Home · Order · the member code (a round black button standing
   out in the middle; yellow only on its own page) · Rewards · Me */
.tabbar { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 0 calc(8px + var(--safe-b)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); position: relative; z-index: 6; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; color: var(--faint); min-height: 44px; justify-content: center; }
.tab .ic { width: 24px; height: 24px; }
.tab .ic svg { stroke-width: 1.6; }
.tab span:last-child { font: 500 10.5px/1 var(--font); letter-spacing: .02em; }
.tab.on { color: var(--ink); }
.tab.on .ic svg { stroke-width: 2; }
.tab.on span:last-child { font-weight: 600; }
.tab-code { justify-content: flex-start; }
.code-btn { width: 50px; height: 50px; margin-top: -20px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(20,20,20,.22); }
.code-btn .ic { width: 22px; height: 22px; }
.code-btn .ic svg { stroke-width: 1.8; }
.tab-code.on .code-btn { color: var(--accent); }

/* header bar of inner pages */
.bar { flex: none; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 4px 6px; background: #fff; border-bottom: 1px solid var(--line); }
.bar b { text-align: center; font: 600 16px/1 var(--font); }
.box { background: #fff; border-radius: 14px; margin: 10px 12px 0; padding: 14px 16px; }
.box h4 { font: 600 14px/1 var(--font); margin-bottom: 10px; }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; min-height: 40px; padding: 8px 0; }
.kv + .kv { border-top: 1px solid var(--line); }
.kv > span { color: var(--sub); }
.kv > b { font-weight: 500; text-align: right; color: var(--ink); }
.kv.total { border-top: 1px solid var(--line); margin-top: 2px; padding-top: 12px; }
.kv.total > span { color: var(--ink); font-weight: 500; }
.kv.total b { font: 600 18px/1 var(--font); }
.info-row { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--ink-2); padding: 6px 0 0; }
.info-row .ic { width: 16px; height: 16px; color: var(--sub); margin-top: 1px; }

/* 营业状态与取餐时间: a small dot and the time, a grade below the store; red when not taking orders */
.pickup { display: inline-flex; align-items: center; gap: 6px; font: 400 12.5px/1.3 var(--font); color: var(--sub); min-width: 0; }
.pickup::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex: none; }
.pickup.closed { color: var(--red); }
.pickup.closed::before { background: var(--red); }

/* ===== Home ===== */
.hi { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px 0; }
.hi h1 { font: 600 22px/1.2 var(--font); letter-spacing: -.01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hi-pts { display: inline-flex; align-items: center; gap: 1px; flex: none; padding: 8px 0 8px 4px; font: 400 12.5px/1 var(--font); color: var(--sub); white-space: nowrap; }
.hi-pts .chev { width: 13px; height: 13px; }
.store-line { display: flex; align-items: center; gap: 4px; width: calc(100% - 36px); margin: 8px 18px 0; min-height: 32px; text-align: left; }
.store-line b { font: 500 15px/1.25 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.store-line .chev { margin-right: 8px; }
.store-line .pickup { margin-left: auto; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
.store-line .pickup::before { display: inline-block; margin-right: 6px; vertical-align: 1px; }
.hero-card { position: relative; width: calc(100% - 32px); margin: 14px 16px 0; aspect-ratio: 1 / 1.1; border-radius: 22px; overflow: hidden; background: var(--surface); }
.hc-main { position: absolute; inset: 0; display: block; width: 100%; height: 100%; text-align: left; }
.hc-text { position: absolute; left: 22px; top: 22px; width: 58%; display: flex; flex-direction: column; gap: 8px; }
.hc-k { font: 500 11.5px/1 var(--font); letter-spacing: .04em; color: var(--sub); }
.hc-name { font: 600 23px/1.15 var(--font); letter-spacing: -.015em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
:lang(zh-CN) .hc-name { font-family: var(--zh); }
.hc-sub { font: 400 12px/1.3 var(--zh); color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -2px; }
:lang(zh-CN) .hc-sub { font-family: var(--font); }
.hc-img { position: absolute; right: 0; bottom: 0; width: 80%; height: 94%; display: grid; place-items: center; }
.hc-img img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 62%; mix-blend-mode: multiply; }
.hc-img .ph { font-size: 120px; }
.hc-slogan { position: absolute; left: 22px; bottom: 72px; max-width: 46%; font: 400 12px/1.35 var(--font); color: var(--sub); }
.hc-go { position: absolute; left: 22px; bottom: 22px; height: 40px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 500 14px/40px var(--font); white-space: nowrap; }
.hero-card.plain .hc-name { font-size: 30px; max-width: 80%; }
.hero-card.banner { aspect-ratio: 16 / 11; }
.hero-card.banner .hc-go { box-shadow: 0 2px 10px rgba(20,20,20,.14); }
.hero-card .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; }
.hero-card .slide.on { opacity: 1; }
.hero-card .dots { position: absolute; bottom: 14px; right: 18px; display: flex; gap: 5px; }
.hero-card .dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.6); box-shadow: 0 0 0 .5px rgba(20,20,20,.18); }
.hero-card .dots i.on { width: 18px; background: #fff; }
.picks { padding: 28px 0 0; }
.picks h3 { font: 600 15px/1 var(--font); padding: 0 18px; }
.picks-row { display: flex; gap: 14px; overflow-x: auto; padding: 12px 18px 4px; scrollbar-width: none; }
.picks-row::-webkit-scrollbar { display: none; }
.pick { flex: none; width: 112px; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.pick-img { width: 112px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; place-items: center; margin-bottom: 2px; }
.pick-name { font: 400 12.5px/1.3 var(--font); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pick-price { font: 600 13px/1 var(--font); }
.latest { display: flex; align-items: center; gap: 10px; width: calc(100% - 36px); margin: 24px 18px 28px; padding: 14px 0; border-top: 1px solid var(--line); text-align: left; }
.latest .k { font-size: 13px; color: var(--sub); flex: 1; }
.latest b { font: 500 13.5px/1.2 var(--font); }
.home > .alert { margin-top: 12px; }
.home .scroll > .alert { margin-top: 10px; }

/* product picture (real photo on the white, or a quiet placeholder) */
.img-in, .p-img, .bs-img, .co-img, .pick-img, .hc-img { display: grid; place-items: center; overflow: hidden; }
.img-in img, .p-img img, .bs-img img, .co-img img, .pick-img img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.ph { font: 400 30px/1 var(--zh); color: #D3CEC4; }
.pick-img:has(.ph), .bs-img:has(.ph), .co-img:has(.ph) { background: #F8F7F4; }

/* ===== Order ===== */
/* the store on a grey top, the menu on a white sheet with round corners */
.o-top { flex: none; background: #F1EEE9; padding-bottom: 14px; }
.o-head { padding: 6px 16px 4px; }
.o-row { display: flex; align-items: center; justify-content: space-between; min-height: 40px; }
.o-title { font: 600 16px/1 var(--font); }
.o-tools { display: flex; align-items: center; gap: 4px; }
.o-tools .lang { background: #fff; }
.o-tools .lang button[aria-pressed="true"] { background: #F1EEE9; box-shadow: none; }
.o-store { display: flex; align-items: center; gap: 4px; margin-top: 4px; text-align: left; max-width: 100%; }
.o-store b { font: 500 15px/1.25 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-head .pickup { margin-top: 6px; }
.o-notice { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 16px 0; font-size: 12px; color: var(--sub); text-align: left; }
.o-notice .chev { width: 13px; height: 13px; color: var(--faint); }
.o-notice span:not(.ic) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-top .alert { width: calc(100% - 24px); margin: 10px 12px 0; }
.o-body { flex: 1; min-height: 0; display: flex; position: relative; background: #fff; border-radius: 18px 18px 0 0; margin-top: -2px; overflow: hidden; box-shadow: 0 -1px 0 rgba(20,20,20,.03); }
.rail { flex: none; width: 92px; background: #fff; overflow-y: auto; scrollbar-width: none; padding: 6px 0 150px; border-right: 1px solid var(--line); }
.rail::-webkit-scrollbar { display: none; }
.cat { position: relative; display: block; width: 100%; padding: 14px 6px 14px 13px; text-align: left; }
.cat span { display: block; font: 400 12.5px/1.3 var(--zh); color: var(--faint); overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
.cat[aria-current="true"] span { color: var(--ink); font-weight: 500; }
.cat[aria-current="true"]::after { content: ""; position: absolute; right: -1px; top: 12px; bottom: 12px; width: 2px; border-radius: 1px; background: var(--ink); }
:lang(en) .cat span { font: 400 11.5px/1.3 var(--font); letter-spacing: -.01em; }
:lang(en) .cat[aria-current="true"] span { font-weight: 500; }
.badge { position: absolute; top: 5px; right: 6px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 8px; background: var(--ink); color: #fff; font: 600 9.5px/15px var(--font); text-align: center; }
.list { flex: 1; min-width: 0; overflow-y: auto; scrollbar-width: none; padding: 0 14px 170px; }
.list::-webkit-scrollbar { display: none; }
.sec { padding-top: 18px; }
.sec h3 { font: 600 14px/1.25 var(--font); margin-bottom: 12px; }
:lang(zh-CN) .sec h3 { font-family: var(--zh); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
.card { position: relative; min-width: 0; }
.card-main { display: block; width: 100%; text-align: left; }
.card-img { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; }
.card-img.noimg { background: #F8F7F4; }
.card-img .img-in { position: absolute; inset: 0; }
.veil { position: absolute; inset: 0; background: rgba(255,255,255,.6); }
.tags { position: absolute; left: 4px; top: 4px; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.tags.inline { position: static; flex-direction: row; margin-bottom: 10px; }
/* marks: small words, no strong colours, no capitals */
.tag { font: 500 10px/1 var(--font); padding: 4px 6px; border-radius: 4px; white-space: nowrap; background: #F3F1EC; color: var(--ink-2); }
:lang(zh-CN) .tag { font-family: var(--zh); }
.t-top { background: #F3F1EC; color: var(--ink-2); }
.t-best { background: #F3F1EC; color: var(--ink); }
.t-few { background: #FCEDE9; color: var(--red); }
.t-sold { background: rgba(255,255,255,.95); color: var(--sub); }
.card-n { position: absolute; right: 4px; top: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font: 600 10.5px/18px var(--font); text-align: center; }
.card-name { font: 400 13px/1.3 var(--font); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
:lang(zh-CN) .card-name { font-family: var(--zh); }
.card-sub { font: 400 10.5px/1.3 var(--zh); color: var(--faint-2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
:lang(zh-CN) .card-sub { font-family: var(--font); }
.card-price { margin-top: 5px; font: 600 13.5px/1.2 var(--font); }
.card.sold .card-name, .card.sold .card-price { color: var(--faint); }
.end { text-align: center; font: 400 11px/1 var(--font); letter-spacing: .04em; color: var(--faint-2); margin-top: 32px; }
.menu > .alert { flex: none; }

/* bag bar: above the tabs */
.bagbar { position: absolute; left: 12px; right: 12px; bottom: calc(80px + var(--safe-b)); z-index: 5; display: flex; align-items: center; gap: 10px; height: 58px; padding: 0 7px 0 16px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 10px 26px rgba(20,20,20,.22); }
.search .bagbar { bottom: calc(14px + var(--safe-b)); }
.bb-left { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; text-align: left; }
.bb-bag { position: relative; display: grid; place-items: center; }
.bb-bag .ic { width: 24px; height: 24px; }
.bb-bag b { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #fff; color: var(--ink); font: 600 11px/18px var(--font); text-align: center; }
.bb-sum { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bb-sum strong { font: 600 16px/1 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-sum small { font: 400 10.5px/1 var(--font); color: rgba(255,255,255,.6); }
.go { height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 500 14px/44px var(--font); flex: none; }
.go:disabled { background: #4A4845; color: rgba(255,255,255,.6); font-size: 12.5px; padding: 0 16px; }
.bagbar.closed { background: #6E6B66; }
.bagbar.closed .bb-sum strong { font-size: 14px; }

/* sheets */
.mask { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; justify-content: center; background: rgba(20,20,20,.45); animation: fade .18s ease-out; }
.sheet { position: relative; width: 100%; max-width: 480px; max-height: 86vh; max-height: 86dvh; display: flex; flex-direction: column; background: #fff; border-radius: 24px 24px 0 0; padding-bottom: var(--safe-b); animation: rise .22s cubic-bezier(.2,.8,.2,1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); } }
.sh-head { flex: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 16px 12px 22px; }
.sh-head > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.sh-head b { font: 600 18px/1.2 var(--font); letter-spacing: -.01em; }
.sh-head span { font-size: 12px; color: var(--sub); }
.sh-x { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; flex: none; }
.sh-x .ic { width: 16px; height: 16px; }
.sh-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 22px 24px; }
.sh-foot { flex: none; padding: 10px 22px 22px; border-top: 1px solid var(--line); }
.si-name { font: 600 20px/1.2 var(--font); margin-bottom: 6px; }
.hours { margin: 14px 0 0; border-radius: 12px; background: var(--surface); padding: 4px 14px; }
.hours div { display: flex; justify-content: space-between; padding: 9px 0; font-size: 13px; }
.hours dt { color: var(--sub); }
.hours dd { margin: 0; font-weight: 500; }
.sh-art { width: 120px; height: auto; margin: 0 auto 4px; }
.sh-sub { font-size: 14px; color: var(--ink-2); line-height: 1.5; text-align: center; }
.closed-sheet .btn-black { margin-top: 20px; }
.os-list { overflow-y: auto; padding-bottom: 8px; }
.os-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 54px; text-align: left; padding: 12px 22px; font: 400 14.5px/1.3 var(--font); border-top: 1px solid var(--line); }
.os-item em { font-style: normal; color: var(--sub); font-size: 13px; }
.os-item.on { font-weight: 500; }
.os-item:disabled { color: var(--faint); }
.os-side { display: flex; align-items: center; gap: 10px; flex: none; }
.os-side small { font: 400 12.5px/1 var(--font); color: var(--sub); }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #D6D2CA; display: grid; place-items: center; color: #fff; }
.tick.on { background: var(--ink); border-color: var(--ink); }
.tick .ic { width: 14px; height: 14px; }
.tick .ic svg { stroke-width: 2.4; }
.tick.sq { border-radius: 6px; }
.os-item:not(.on) .tick:not(.sq) { border-color: transparent; }

/* bag sheet */
.bs-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 16px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.bs-head > b { flex: 1; font: 600 16px/1 var(--font); }
.bs-clear { display: inline-flex; align-items: center; gap: 4px; font: 400 12.5px/1 var(--font); color: var(--sub); padding: 8px; }
.bs-clear .ic { width: 16px; height: 16px; }
.bs-clear.warn { color: var(--red); }
.bs-list { overflow-y: auto; padding: 4px 16px; flex: 1; min-height: 0; }
.bs-item { display: flex; gap: 12px; padding: 14px 0; }
.bs-item + .bs-item { border-top: 1px solid var(--line); }
.bs-img { width: 60px; height: 60px; border-radius: 10px; flex: none; }
.bs-img .ph { font-size: 22px; }
.bs-info { flex: 1; min-width: 0; }
.bs-info > b { font: 500 13.5px/1.25 var(--font); }
.bs-opts { margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: var(--sub); }
.bs-row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.bs-row .m { font: 600 14px/1 var(--font); }
.bs-foot { flex: none; padding: 10px 0 14px; }
.bs-foot .bagbar { position: static; margin: 0 12px; box-shadow: none; }

/* ===== Search ===== */
.srch { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 14px 8px 16px; }
.srch-box { flex: 1; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 999px; background: var(--surface); color: var(--faint); }
.srch-box .ic { width: 17px; height: 17px; }
.srch-box input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none; }
.srch-cancel { font: 500 14px/1 var(--font); padding: 8px 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 13px; border-radius: 999px; background: var(--surface); font: 400 13px/1.2 var(--font); text-align: left; }
.empty-note { text-align: center; color: var(--sub); font-size: 13px; padding: 40px 0; }
.srch-body .grid { margin-top: 10px; }

/* ===== Product page ===== */
.p-bar { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; padding: 8px 8px; transition: background .15s; }
.p-bar-name { text-align: center; font: 600 15px/1 var(--font); opacity: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-bar.scrolled { background: #fff; box-shadow: 0 1px 0 var(--line); }
.p-bar.scrolled .p-bar-name { opacity: 1; }
.p-bar.scrolled .ib.round { box-shadow: none; }
.p-hero { position: relative; aspect-ratio: 1 / 0.92; background: #F6F5F2; }
.p-hero .p-img { position: absolute; inset: 0; }
.p-hero .ph { font-size: 92px; }
.p-hero.noimg { aspect-ratio: 2 / 1; }
.p-hero.noimg .ph { font-size: 64px; }
.p-sold { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); background: rgba(255,255,255,.92); padding: 9px 15px; border-radius: 999px; font: 500 13px/1 var(--font); color: var(--sub); }
.p-head { padding: 20px 20px 4px; }
.p-head h1 { font: 600 22px/1.2 var(--font); letter-spacing: -.01em; word-break: break-word; }
.p-zh { font: 400 13px/1.4 var(--zh); color: var(--faint); margin-top: 4px; }
.p-price { font: 600 22px/1 var(--font); margin-top: 16px; letter-spacing: -.01em; }
.p-sec { padding: 0 20px; margin-top: 24px; }
.opt-row { display: grid; grid-template-columns: 1fr 18px; grid-template-rows: auto auto; column-gap: 8px; row-gap: 4px; width: 100%; padding: 11px 14px; background: #fff; border: 1px solid var(--frame); border-radius: 12px; margin-bottom: 10px; text-align: left; }
.opt-row.fixed { border-color: var(--line); }
.or-k { font-size: 11.5px; color: var(--sub); }
.or-k em { font-style: normal; color: var(--faint); }
.or-v { font: 500 14px/1.3 var(--font); grid-row: 2; }
.or-c { grid-row: 1 / 3; grid-column: 2; align-self: center; width: 18px; height: 18px; color: var(--faint); }
.p-space { height: 150px; }
.p-foot { flex: none; display: flex; flex-direction: column; gap: 10px; padding: 10px 16px calc(14px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
.pf-row { display: flex; align-items: center; justify-content: space-between; min-height: 32px; padding: 0 2px; }
.pf-k { font-size: 13px; color: var(--sub); }
.p-foot .add { width: 100%; height: 50px; border-radius: 999px; background: var(--ink); color: #fff; font: 500 15px/1 var(--font); white-space: nowrap; text-align: center; }
.p-foot .add:disabled { background: #D9D6D0; }

/* ===== Checkout ===== */
.checkout .scroll { padding-bottom: 12px; }
.cs-name b { font: 600 15px/1.25 var(--font); }
.cs-addr { font-size: 12px; line-height: 1.45; color: var(--sub); margin: 4px 0 6px; }
.pt { position: relative; cursor: pointer; }
.pt-v { display: flex; align-items: center; gap: 4px; min-width: 0; max-width: 64%; }
.pt select { border: 0; background: none; font: 500 16px/1.2 var(--font); color: var(--ink); text-align: right; text-align-last: right; -webkit-appearance: none; appearance: none; padding: 0 2px 0 0; min-width: 0; width: 100%; outline: none; }
.pt .pt-c { width: 14px; height: 14px; color: var(--faint); }
.co-store .kv:first-of-type { border-top: 1px solid var(--line); }
/* contact: quiet rows, the label left and what is typed right */
.f-row { display: flex; align-items: center; gap: 12px; min-height: 48px; border-top: 1px solid var(--line); }
.co-contact h4 + .f-row { border-top: 0; }
.f-row label { flex: none; font-size: 13.5px; color: var(--sub); width: 88px; }
.f-in { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.f-in input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); padding: 0; -webkit-appearance: none; }
.f-in input::placeholder { color: var(--faint-2); }
.f-in input:disabled { color: var(--sub); }
.cc { font: 400 16px/1 var(--font); color: var(--sub); }
.co-item { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0 12px; }
.co-img { width: 46px; height: 46px; border-radius: 8px; flex: none; }
.co-img .ph { font-size: 18px; }
.co-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.co-t b { font: 500 13.5px/1.25 var(--font); }
.co-t small { font-size: 11.5px; color: var(--sub); line-height: 1.4; }
.co-m { font: 500 13.5px/1.2 var(--font); text-align: right; display: flex; flex-direction: column; gap: 4px; flex: none; }
.co-m small { font-weight: 400; font-size: 11.5px; color: var(--faint); }
.co-foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); }
.due { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.due span { font-size: 11.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.due strong { font: 600 20px/1 var(--font); }

/* ===== Order status ===== */
.st-k { font-size: 12px; color: var(--sub); }
.st-code { font: 500 52px/1 var(--font); letter-spacing: .02em; margin-top: 10px; }
.st-line { font-size: 13.5px; line-height: 1.45; margin-top: 12px; color: var(--sub); }
.st-state { color: var(--ink); font-weight: 500; }
.st-state.cancelled { color: var(--red); }
.st-note.bad { color: var(--red); }
.steps { list-style: none; margin: 20px 0 2px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 4px; height: 1px; background: var(--line); }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); }
.steps i { width: 9px; height: 9px; border-radius: 50%; background: #fff; border: 1px solid #D6D2CA; position: relative; z-index: 1; }
.steps li.done { color: var(--sub); }
.steps li.done i { background: var(--ink); border-color: var(--ink); }
.steps li.cur { color: var(--ink); font-weight: 500; }
.steps li.cur i { background: var(--accent); border-color: var(--ink); }
.steps li.done:not(:last-child)::after { content: ""; position: absolute; left: 50%; width: 100%; top: 4px; height: 1px; background: var(--ink); }
.st-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.st-actions > * { width: 100%; height: 42px; padding: 0 12px; font-size: 14px; }
.st-actions .btn-black.small { display: flex; }
.st-store { padding-bottom: 6px; }
.st-store b { font: 600 15px/1.2 var(--font); }
.status .pad { margin-top: 16px; }

/* ===== Me ===== */
.me .lang { background: #fff; }
.me-id { display: flex; align-items: center; gap: 12px; padding: 18px 16px 6px 20px; min-height: 76px; }
.me-av { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; font: 600 18px/1 var(--font); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.me-av .ic { width: 22px; height: 22px; color: var(--sub); }
.me-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.me-name { font: 600 18px/1.2 var(--font); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-email { font-size: 12.5px; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-signin { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; font: 600 17px/1.2 var(--font); }
.me-signin > span:not(.me-av):not(.ic) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-signin .chev { margin-left: -6px; }
.me-nums { margin: 10px 12px 0; padding: 14px 0; background: #fff; border-radius: 14px; }
.me-note { margin: 4px 20px 0; }
.me-out { display: block; margin: 22px auto 8px; padding: 10px 18px; font: 400 13.5px/1 var(--font); color: var(--sub); }
.me .scroll { padding-bottom: 20px; }
.ord { display: block; width: 100%; padding: 12px 0; text-align: left; }
.ord + .ord { border-top: 1px solid var(--line); }
.ord-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ord-h b { font: 500 13.5px/1.2 var(--font); }
.ord-h span { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.ord-s { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; }
.ord-s b { font: 500 12.5px/1.2 var(--font); }
.ord-s span { font-size: 11.5px; color: var(--sub); }
.ord-s.pending, .ord-s.accepted { background: var(--accent-soft); }
.ord-s.cancelled b { color: var(--sub); }
.ord-f { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 12px; color: var(--sub); }
.ord-f b { font: 600 14px/1 var(--font); color: var(--ink); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 10px 0 6px; }
.empty img { width: 132px; height: auto; }
.empty p { font-size: 14px; color: var(--sub); }
.me-store { display: flex; align-items: center; gap: 4px; text-align: left; margin-bottom: 4px; }
.me-store b { font: 600 15px/1.2 var(--font); }
.me .box .pickup { margin: 4px 0 2px; }

/* toast */
.toast { position: fixed; left: 50%; top: 84px; z-index: 50; transform: translate(-50%, -10px); opacity: 0; pointer-events: none; transition: all .2s; background: var(--ink); color: #fff; font: 500 13px/1 var(--font); padding: 11px 16px; border-radius: 999px; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 中英资料 (11-21): 一句话简介与详细描述, 门店电话 */
.p-about h4 { font: 600 13px/1 var(--font); margin-bottom: 10px; }
.p-sum { font: 400 14px/1.5 var(--font); color: var(--ink-2); margin-top: 10px; }
.p-about { padding-bottom: 4px; margin-top: 18px; }
.p-desc { font-size: 13px; line-height: 1.6; color: var(--sub); white-space: pre-line; }
.info-row a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* 提示 cards and page (11-21, like HEYTEA's 「小料&提示」 and tip pages):
   black single-line drawings; the card is white, the page grey on top */
.tip-art { display: block; color: var(--ink); }
.tip-art svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tip .tip-face { background: #fff; display: flex; align-items: center; justify-content: center; }
.tip .tip-face .tip-art { width: 96%; aspect-ratio: 200 / 150; }
.tip .tip-face .tip-art svg { stroke-width: 3; }
.tip-name { font: 400 13px/1.3 var(--font); -webkit-line-clamp: 2; margin-top: 10px; }
.tips-sec .grid { row-gap: 30px; }
.tip-page .scroll { background: #F4F4F4; display: flex; flex-direction: column; }
.tip-hero { position: relative; flex: none; min-height: max(300px, 38dvh); padding: 0 22px 0; display: flex; flex-direction: column; }
.tip-back { margin: 10px 0 0 -8px; width: 40px; height: 40px; display: grid; place-items: center; }
.tip-back .ic { width: 24px; height: 24px; }
.tip-back .ic svg { stroke-width: 1.6; }
.tip-hero h1 { font: 400 28px/1.2 var(--font); letter-spacing: -.01em; margin-top: 30px; max-width: 92%; word-break: break-word; }
.tip-page.zh .tip-hero h1 { font: 600 28px/1.25 var(--zh); }
.tip-hero .tip-art { width: 240px; max-width: 62%; aspect-ratio: 200 / 150; margin: auto 9% -8px auto; padding-top: 18px; }
.tip-sheet { flex: 1 0 auto; background: #fff; border-radius: 26px 26px 0 0; padding: 40px 22px calc(40px + var(--safe-b)); }
.tip-sheet h2 { font: 500 17px/1.3 var(--font); margin-bottom: 10px; }
.tip-page.zh .tip-sheet h2 { font: 600 17px/1.3 var(--zh); }
.tip-sheet p { font: 400 14.5px/1.75 var(--font); color: var(--ink); word-break: break-word; }
.tip-page.zh .tip-sheet p { font-family: var(--zh); }
/* 门店详情 (as HEYTEA's) */
.sd-slogan { font-size: 13px; line-height: 1.5; color: var(--sub); }
.sd-title { font: 600 15px/1.2 var(--font); margin: 22px 0 8px; }
.sd-line { font-size: 13px; line-height: 1.6; color: var(--sub); margin-top: 2px; word-break: break-word; }
.sd-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 12px; margin-top: 26px; }
.sd-btn { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 999px; border: 1px solid #D9D5CE; background: #fff; color: var(--ink); font: 500 13.5px/1 var(--font); text-decoration: none; }
.sd-btn .ic { width: 16px; height: 16px; }
/* 找问题 11-25: a bag line that cannot be ordered now (已售罄 / 已下架 / 选项已失效),
 * with 移除; the 重试 in an alert. */
.gone { align-items: center; }
.gone .bs-img, .gone .co-img { opacity: .45; filter: grayscale(1); }
.gone b { color: var(--sub); }
.gone-tag { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #F2F2F2; color: #A33A22; font-size: 12px; font-weight: 600; }
.gone .bs-info, .gone .co-t { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.gone-x { flex: none; padding: 8px 12px; border: 1px solid #D9D5CE; border-radius: 999px; background: #fff; color: var(--ink); font: 500 13px/1 var(--font); }
.gone-x:disabled { opacity: .4; }
.alert-retry { display: inline-block; margin-left: 10px; padding: 4px 12px; border: 1px solid currentColor; border-radius: 999px; background: none; color: inherit; font: 600 13px/1.2 var(--font); }

/* ===== 会员 (2026-11-26, h5-member-20261126): the sign-in / join panel, the
   member code, Rewards. Black and white; the one yellow is the code button on
   its own page. ===== */
/* sign-in / join panel */
.login-sheet { padding: 24px 22px calc(22px + var(--safe-b)); overflow-y: auto; }
.login-sheet > .sh-x { position: absolute; right: 16px; top: 16px; }
.ls-body { display: flex; flex-direction: column; }
.ls-logo { width: auto; height: 16px; align-self: flex-start; margin: 4px 0 18px; }
.ls-body h3 { font: 600 22px/1.2 var(--font); letter-spacing: -.01em; padding-right: 44px; }
.ls-sub { font-size: 13.5px; line-height: 1.5; color: var(--sub); margin-top: 8px; }
.ls-sub b { color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.ls-sub.center, .ls-link.center { text-align: center; align-self: center; }
.ls-field { display: flex; align-items: center; gap: 10px; height: 50px; border-radius: 14px; background: var(--surface); padding: 0 14px; margin-top: 20px; color: var(--sub); }
.ls-field .ic { width: 18px; height: 18px; }
.ls-field input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; color: var(--ink); padding: 0; -webkit-appearance: none; appearance: none; }
.ls-field input::placeholder { color: var(--faint); }
.ls-body .btn-black { margin-top: 14px; }
.ls-err { margin-top: 12px; font-size: 13px; line-height: 1.45; color: #A33A22; }
.ls-info { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.otp-wrap { position: relative; display: block; margin-top: 22px; }
.otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.otp span { height: 54px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; font: 500 22px/1 var(--font); }
.otp span.cur { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.otp-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; color: transparent; caret-color: transparent; }
.ls-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ls-link { font: 500 13.5px/1.2 var(--font); color: var(--ink); padding: 10px 0; }
.ls-link:disabled { color: var(--faint); font-weight: 400; }
.ls-hint { font-size: 12px; color: var(--faint); margin-top: 2px; }
.ls-form { margin-top: 14px; border-bottom: 1px solid var(--line); }
.ls-form .f-row:first-child { border-top: 1px solid var(--line); }
.ls-form .f-row label { width: 76px; }
.ls-form .f-in input[type="date"] { min-height: 24px; font-size: 16px; text-align: left; }
.ls-form .f-in input[type="date"].blank { color: var(--faint-2); }
.f-note { font-size: 11.5px; color: var(--faint); margin: -10px 0 0 88px; padding-bottom: 10px; }
.ls-art { width: 120px; height: auto; align-self: center; margin: 6px 0 14px; }
.ls-outside { font: 500 16px/1.4 var(--font); text-align: center; }

/* member code page */
.member .scroll { padding-bottom: 20px; }
.mc-card { margin: 16px 14px 0; background: #fff; border-radius: 24px; padding: 20px 20px 18px; box-shadow: var(--shadow); }
.mc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.mc-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mc-name { font: 600 22px/1.15 var(--font); letter-spacing: -.01em; overflow-wrap: anywhere; }
.mc-no { font-size: 12px; color: var(--sub); font-variant-numeric: tabular-nums; }
.mc-logo { flex: none; width: auto; height: 13px; margin-top: 7px; }
.mc-lead { font: 500 14px/1.4 var(--font); text-align: center; margin-top: 20px; }
.mc-qr { width: 216px; max-width: 72%; aspect-ratio: 1; margin: 14px auto 0; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.mc-qr-img { width: 100%; height: 100%; }
.mc-bright { font-size: 11.5px; color: var(--faint); text-align: center; margin-top: 10px; }
.mc-note { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); background: var(--surface); border-radius: 10px; padding: 10px 12px; margin-top: 14px; text-align: left; }
.mc-nums, .me-nums { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.mc-nums { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.mc-nums .num, .me-nums .num { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; min-width: 0; }
.mc-nums .num + .num, .me-nums .num + .num { border-left: 1px solid var(--line); }
.mc-nums b, .me-nums b { font: 600 18px/1 var(--font); font-variant-numeric: tabular-nums; }
.mc-nums span, .me-nums span { font-size: 11.5px; color: var(--sub); }
.mc-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 14px 0; }
.mc-pick { padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--frame); font: 400 12.5px/1 var(--font); color: var(--sub); font-variant-numeric: tabular-nums; }
.mc-pick[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); font-weight: 500; }
.mc-refresh { display: flex; align-items: center; gap: 6px; margin: 14px auto 0; padding: 10px 14px; font: 400 12.5px/1 var(--font); color: var(--sub); }
.mc-refresh .ic { width: 15px; height: 15px; }
.mc-refresh:disabled { opacity: .5; }
/* where the code would be, signed out */
.m-guide { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 26px 30px; }
.mg-card { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1.58; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; }
.mg-logo { position: absolute; left: 18px; top: 18px; width: auto; height: 12px; }
.mg-qr { width: 72px; height: 72px; color: #D6D2CA; }
.mg-qr svg { stroke-width: 1.1; }
.m-guide h2 { font: 600 20px/1.25 var(--font); margin-top: 26px; letter-spacing: -.01em; }
.mg-sub { font-size: 13.5px; line-height: 1.5; color: var(--sub); margin-top: 8px; max-width: 300px; text-wrap: balance; }
.m-guide .btn-black { margin-top: 22px; max-width: 300px; }
.mg-instore { font-size: 12.5px; color: var(--sub); margin-top: 14px; }
.m-note { font-size: 13px; line-height: 1.45; color: #A33A22; margin-top: 16px; }
.m-wait { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 28px; text-align: center; color: var(--sub); font-size: 14px; line-height: 1.5; }

/* Rewards */
.rewards .scroll { padding-bottom: 28px; }
.rw-top { padding: 22px 20px 4px; }
.rw-k { font-size: 12.5px; color: var(--sub); }
.rw-points { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.rw-points b { font: 600 44px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rw-points span { font: 500 15px/1 var(--font); color: var(--ink-2); }
.rw-stored { font-size: 13px; color: var(--sub); margin-top: 10px; }
.rw-top.out { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-bottom: 0; }
.rw-head { min-width: 0; padding-bottom: 14px; }
.rw-top.out h1 { font: 600 26px/1.15 var(--font); letter-spacing: -.015em; }
.rw-sub { font-size: 13.5px; color: var(--sub); margin-top: 8px; }
.rw-art { flex: none; width: 104px; height: auto; }
.rw-note { margin: 10px 20px 0; }
.rw-sec { margin: 24px 20px 0; }
.rw-sec h4 { font: 600 15px/1.2 var(--font); margin-bottom: 8px; }
.rw-rule { display: flex; align-items: center; gap: 10px; padding: 12px 0; font-size: 14px; border-top: 1px solid var(--line); }
.rw-sec h4 + .rw-rule { border-top: 0; }
.rw-rule .ic, .rw-perk .ic { width: 20px; height: 20px; color: var(--ink-2); }
.rw-coupons { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.rw-coupon { display: flex; border-radius: 14px; background: var(--surface); overflow: hidden; }
.cp-mark { flex: none; width: 56px; display: grid; place-items: center; color: var(--ink); border-right: 1.5px dashed #fff; }
.cp-mark .ic { width: 24px; height: 24px; }
.cp-body { flex: 1; min-width: 0; padding: 13px 14px; display: flex; flex-direction: column; gap: 4px; }
.cp-name { font: 600 15px/1.25 var(--font); overflow-wrap: anywhere; }
.cp-desc { font-size: 12.5px; line-height: 1.4; color: var(--ink-2); overflow-wrap: anywhere; }
.cp-exp { font-size: 11.5px; color: var(--faint); }
.rw-hint { font-size: 12px; line-height: 1.5; color: var(--faint); margin-top: 10px; }
.rw-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 16px 0 4px; }
.rw-empty img { width: 108px; height: auto; }
.rw-empty p { font-size: 13.5px; color: var(--sub); }
.rw-perks { list-style: none; margin: 0; padding: 0; }
.rw-perk { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 14.5px; line-height: 1.35; border-top: 1px solid var(--line); }
.rw-perk:first-child { border-top: 0; }
.rw-ask { font-size: 14px; color: var(--sub); }
.rw-cta { display: flex; flex-direction: column; align-items: center; margin: 28px 20px 0; }
.rw-instore { font-size: 12.5px; color: var(--sub); margin-top: 14px; }
.rw-member { margin-top: 8px; }

/* 结算: the earn line under the contact */
.co-earn { font-size: 12px; line-height: 1.5; color: var(--faint); padding-top: 10px; border-top: 1px solid var(--line); }

/* 会员邮箱激活 (11-26): a card waiting for its activation mail; the link's page */
.m-pending { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; max-width: 320px; margin: 0 auto; padding: 22px 20px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); text-align: center; color: var(--ink); }
.me-id + .m-pending { margin-top: 12px; width: auto; max-width: none; margin-left: 12px; margin-right: 12px; }
.mp-title { font: 600 17px/1.3 var(--font); }
.mp-card { font-size: 13px; color: var(--sub); }
.mp-line { font-size: 13.5px; line-height: 1.5; color: var(--sub); margin-bottom: 6px; }
.ac-box { display: flex; flex-direction: column; align-items: center; gap: 14px; margin: 48px 18px 0; padding: 30px 22px; background: #fff; border-radius: 24px; box-shadow: var(--shadow); text-align: center; }
.ac-box h2 { font: 600 20px/1.25 var(--font); }
.ac-line { font-size: 14.5px; line-height: 1.5; color: var(--sub); }
.ac-ok { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.ac-ok .ic { width: 28px; height: 28px; }
.ac-box .btn-black { max-width: 300px; margin-top: 6px; }
/* 独立审查后的修正 (11-26): the link's page — the store, the card's last four, the phone. */
.ac-card { font-size: 14px; color: var(--sub); margin-top: -8px; }
.ac-field { width: 100%; max-width: 300px; margin-top: 4px; }
.ac-err { margin-top: -6px; }
/* 审查第 5 条: a card still waiting, shown under an activated one. */
.mc-card ~ .m-pending { margin: 16px 14px 0; width: auto; max-width: none; }
.rw-top ~ .m-pending { margin: 16px 20px 0; width: auto; max-width: none; }
.me-nums + .m-pending { margin: 12px 12px 0; width: auto; max-width: none; }
