/* Lite page styles; shared layout and controls are maintained in style.css. */
.app:has(.catalog) > .notice {
  position: static;
  transform: none;
  width: auto;
  margin: 12px 12px 0;
  max-height: 30dvh;
  overflow-y: auto;
  overflow-wrap: anywhere;
}
.payment-status { border-left: 3px solid var(--green); }
.payment-status-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.payment-status h2 { margin: 0; font-size: 16px; line-height: 1.5; }
.payment-status p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.payment-status small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.payment-status.is-warning { border-left-color: #b47720; }
.payment-status .is-warning { color: #916019; }
.payment-status.is-success h2, .payment-status .is-success { color: #37751f; }
.payment-countdown { flex-shrink: 0; text-align: right; }
.payment-countdown span { display: block; color: var(--muted); font-size: 12px; }
.payment-countdown strong { display: block; color: var(--dark); font-size: 22px; font-variant-numeric: tabular-nums; line-height: 1.3; }
.payment-panel .payment-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-panel .payment-actions .wide { flex-basis: 100%; }
.payment-panel .payment-intent + .payment-intent { margin-top: 12px; padding-top: 12px; border-top: 1px solid #edf0e8; }
.payment-panel button:disabled { opacity: .6; cursor: wait; }
[data-publicity-slot] { min-width: 0; margin-bottom: 12px; }
.publicity-carousel { position: relative; min-width: 0; overflow: hidden; border-radius: 8px; background: #fff; }
.publicity-target { display: block; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; text-decoration: none; text-align: left; }
.publicity-target img, .publicity-dialog img { display: block; width: 100%; max-width: 100%; }
.publicity-target img[hidden], .publicity-dialog img[hidden], .publicity-frame[hidden] { display: none; }
.publicity-banner { aspect-ratio: 2.5 / 1; background: #f1f3ee; }
.publicity-banner img { height: 100%; object-fit: contain; }
.publicity-controls { position: absolute; right: 8px; bottom: 8px; z-index: 1; display: flex; align-items: center; gap: 0; height: 24px; padding: 0 2px; border-radius: 999px; background: rgba(0, 0, 0, .35); color: #fff; font-size: 11px; }
.publicity-controls button { min-width: 24px; min-height: 24px; padding: 0 4px; border-radius: 999px; background: transparent; color: #fff; font-size: 13px; line-height: 1; }
.publicity-controls [data-publicity-pause] { font-size: 11px; }
.publicity-promo-art { position: relative; width: 100%; aspect-ratio: 4 / 1; overflow: hidden; }
.publicity-layers, .publicity-layer { position: absolute; inset: 0; min-width: 0; min-height: 0; overflow: hidden; }
.publicity-layer { display: flex; inset: 0; box-sizing: border-box; }
.publicity-layer img { width: 100%; height: 100%; min-width: 0; min-height: 0; flex-shrink: 1; }
.publicity-dialog { position: fixed; inset: 0; width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); margin: auto; padding: 0; border: 0; border-radius: 8px; overflow: auto; background: #fff; color: var(--ink, #20251c); }
.publicity-dialog::backdrop { background: #0008; }
.publicity-close { position: sticky; top: 0; z-index: 2; display: block; width: 44px; height: 44px; margin-left: auto; padding: 0; background: #fff; color: #20251c; font-size: 28px; line-height: 1; }
.publicity-copy { padding: 20px; }
.publicity-copy h1, .publicity-copy h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.4; overflow-wrap: anywhere; }
.publicity-copy p { margin: 12px 0; font-size: 15px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.publicity-copy img { margin: 16px 0; }
.publicity-copy .primary { margin-top: 20px; padding: 12px 16px; background: var(--green); color: #fff; border-radius: 5px; text-align: center; }
.publicity-image-dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: visible; border-radius: 0; background: transparent; }
.publicity-image-dialog .publicity-close { position: relative; margin-bottom: 8px; border-radius: 50%; }
.publicity-image-dialog img { height: auto; }
:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
.muted { color: var(--muted); }.small { font-size: 12px; }.error { color: #b83222; margin: 8px 0; }
.detail-body { margin: 12px; padding: 16px; background: #fff; border-radius: 8px; }.detail-body .wide { margin-top: 16px; }
#shared-state { flex-shrink: 0; max-height: 30dvh; overflow-y: auto; }
.shared-alert { margin: 0 16px 10px; padding: 10px 12px; background: #fff8ed; border: 1px solid #ebd5bd; border-radius: 6px; font-size: 12px; }.shared-alert p { margin: 0; }.shared-alert button,.cart-intent button { min-height: 36px; padding: 7px 10px; font-size: 12px; margin: 6px 6px 0 0; }.cart-intent { border-top: 1px solid #ead8c2; margin-top: 10px; padding-top: 10px; }.cart-intent p { margin: 6px 0; }
.member-panel .section-heading { margin-bottom: 10px; }.member-panel .text-button { min-height: 34px; padding: 4px 0; }.member-panel .metadata { margin-top: 8px; }.member-toggle { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }.member-toggle input { width: 18px; height: 18px; accent-color: var(--green); }
.payment-panel .section-heading { margin-bottom: 10px; }.payment-panel .text-button { min-height: 34px; padding: 4px 0; }.payment-actions { display: grid; gap: 8px; margin-top: 14px; }.payment-intent { border-top: 1px solid #e5e5e5; margin-top: 12px; padding-top: 12px; }.payment-intent p { margin: 6px 0; }.payment-intent button { margin: 4px 6px 0 0; min-height: 36px; padding: 7px 10px; font-size: 12px; }
/* Store header (design 2.点单): name 18/500 with a chevron to 门店信息, the table or today's hours under it, the scene switch
   (dark-text segmented pill, the chosen side solid green) and a round search button on the right; offers below. */
.store-header > .store { display: block; padding: 14px 16px 10px; background: #fff; color: var(--text); border-bottom: 1px solid var(--line); }
.app:has(.catalog) .store-header > .store { touch-action: pan-x pinch-zoom; }
.store-summary { display: flex; align-items: center; gap: 10px; }
.store-copy { flex: 1; min-width: 0; }
.store-header h1 { margin: 0; font-size: 18px; font-weight: 500; line-height: 1.4; letter-spacing: 0; }
.store-name { display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; }
.store-name > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.chevron { flex-shrink: 0; width: 7px; height: 7px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
.store-sub { min-height: 20px; color: var(--muted); font-size: 13px; line-height: 20px; }
.store-sub p { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.store-table { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; margin: -4px 0; padding: 0; background: transparent; color: inherit; font-size: 13px; }
.store-table .chevron { width: 5px; height: 5px; border-width: 1px; }
/* Cover hero: the storefront cover at 3:1 above the store header; a missing or failed cover leaves the header as it is. */
.menu-hero { margin: -14px -16px 12px; aspect-ratio: 3 / 1; overflow: hidden; background: var(--canvas); }
.menu-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-settings { display: flex; flex-shrink: 0; padding: 3px; border-radius: 999px; background: var(--fill); }
.scene-choice { min-width: 48px; min-height: 30px; padding: 0 12px; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; }
.scene-choice[aria-pressed='true'] { background: var(--green); color: #fff; font-weight: 500; }
.store-search { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); }
.search-icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.store-offers { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin-top: 12px; }
.store-offers[hidden] { display: none; }
/* Menu offer strip (PR#10217): one line per row, what does not fit stays under 更多 in the offer sheet.
   docs/DESIGN.md 内容与商品页: amounts 500, other text 400, greys #787878/#a5a5a5, one 4px radius, no shadow; colour only on coupons and offer chips. */
.offer-row { position: relative; display: flex; align-items: center; min-width: 0; }
.offer-strip { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.offer-strip-note { padding: 4px 0; color: #a5a5a5; font-size: 12px; white-space: nowrap; }
.offer-details { position: relative; display: flex; align-items: center; gap: 2px; flex-shrink: 0; min-height: 28px; padding: 0 0 0 8px; background: #fff; color: #a5a5a5; font-size: 12px; font-weight: 400; }
.offer-details::before { content: ''; position: absolute; top: 0; bottom: 0; right: 100%; width: 16px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.offer-details svg { width: 10px; height: 10px; }
.offer-amount { --offer-color: #995014; --offer-fill: #fff2d9; --offer-line: #f1d29e; }
.offer-rate { --offer-color: #b2382f; --offer-fill: #fff0ed; --offer-line: #f4c7bf; }
.offer-price { --offer-color: #bf4521; --offer-fill: #fff2e8; --offer-line: #f4ccb4; }
.offer-gift { --offer-color: #70549a; --offer-fill: #f5f0fa; --offer-line: #ded0ee; }
.offer-coupon, .store-offers { --offer-color: #ce4536; --offer-fill: #fff1ed; --offer-line: #f0c9bf; }
.offer-chip { display: flex; align-items: center; gap: 6px; flex-shrink: 0; height: 26px; padding: 0 6px; border: 1px solid var(--offer-line); border-radius: 4px; background: #fff; color: var(--offer-color); font-size: 12px; white-space: nowrap; }
.offer-chip strong { font-weight: 500; }
/* Membership is gold, the member card's family. */
.offer-member { gap: 4px; border-color: transparent; background: linear-gradient(100deg, #fff1d2, #ffd9a0); color: #8f4a07; }
/* Store coupon ticket: value and threshold, a dashed stub with 领 / 已领; the largest open one leads in solid colour. */
.offer-ticket { position: relative; display: flex; align-items: center; gap: 3px; flex-shrink: 0; height: 26px; padding: 0 0 0 6px; border: 1px solid var(--offer-line); border-radius: 4px; background: var(--offer-fill); color: var(--offer-color); font-size: 12px; white-space: nowrap; }
.offer-ticket strong { font-size: 14px; font-weight: 500; }
.offer-ticket em { position: relative; align-self: stretch; display: flex; align-items: center; margin-left: 4px; padding: 0 6px; border-left: 1px dashed var(--offer-line); font-style: normal; }
.offer-ticket em::before, .offer-ticket em::after { content: ''; position: absolute; left: -4px; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.offer-ticket em::before { top: -4px; }
.offer-ticket em::after { bottom: -4px; }
.offer-ticket.is-lead { border-color: transparent; background: linear-gradient(100deg, #e0702c, #d7322b); color: #fff; }
.offer-ticket.is-lead em { border-left-color: rgba(255, 255, 255, .6); }
.offer-ticket.is-held { border-color: #f0f0f0; background: #f5f5f5; color: #787878; }
.offer-ticket.is-held strong { color: var(--offer-color); }
.offer-ticket.is-held em { border-left-color: #f0f0f0; }
.offer-ticket:disabled { opacity: 1; }
/* Whole-store spend-and-save tiers in one outlined card: 88减2 | 128减4. */
.offer-tiers { gap: 0; }
.offer-tiers > span + span { margin-left: 6px; padding-left: 6px; border-left: 1px solid var(--offer-line); }
.offers-sheet { --offer-title: 600 20px/1.4 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; --offer-body: 400 14px/1.5 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; --offer-caption: 400 12px/1.5 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; position: fixed; inset: auto 0 0; width: min(560px, 100%); max-width: 100%; max-height: 85vh; max-height: 85dvh; margin: 0 auto; padding: 0; overflow: hidden; border: 0; border-radius: 4px 4px 0 0; background: #f6f7f5; color: #252b21; }
.offers-sheet[open] { display: flex; flex-direction: column; }
.offers-sheet::backdrop { background: #0007; }
.offers-heading { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 20px 16px 14px; background: #fff; }
.offers-heading h2 { margin: 0; font: var(--offer-title); }
.offers-heading p { margin: 4px 0 0; font: var(--offer-caption); color: #868b80; overflow-wrap: anywhere; }
.offers-heading button { flex-shrink: 0; width: 40px; height: 40px; margin-left: 12px; padding: 0; border-radius: 6px; background: #f5f6f3; color: #474e40; font-size: 28px; }
.offers-body { min-height: 0; padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
.offers-body > section + section { margin-top: 24px; }
.offers-section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.offers-section-title h3 { margin: 0; font-size: 16px; font-weight: 600; }
.offers-section-title > span { font: var(--offer-caption); color: #858a80; }
.offer-card { display: flex; min-width: 0; margin-bottom: 10px; border: 1px solid var(--offer-line); border-radius: 8px; overflow: hidden; background: #fff; }
.offer-value { display: flex; flex: 0 0 108px; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px 8px; background: var(--offer-fill); color: var(--offer-color); text-align: center; }
.offer-value > span { font: var(--offer-caption); }
.offer-value strong { font-size: 30px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; max-width: 100%; }
.offer-value small { margin: 0 2px; font-size: 14px; font-weight: 500; }
.offer-value p { margin: 0; font: var(--offer-caption); }
.offer-card-copy { position: relative; flex: 1; min-width: 0; padding: 16px 12px; }
.offer-card h3 { margin: 0 0 6px; font-size: 16px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.offer-card-copy > p { margin: 4px 0; font: var(--offer-caption); color: #818779; overflow-wrap: anywhere; }
.offer-card-copy > .offer-validity { color: var(--offer-color); }
.offer-card details { margin-top: 10px; border-top: 1px solid #f0f1ed; padding-top: 8px; font: var(--offer-caption); color: #737b6b; }
.offer-card summary { cursor: pointer; list-style: none; }
.offer-card summary::-webkit-details-marker { display: none; }
.offer-card details p { margin: 8px 0 0; overflow-wrap: anywhere; }
.offer-card.offer-price .offer-value { border-right: 1px solid var(--offer-line); }
.offer-card.offer-gift .offer-value { border-right: 1px dotted var(--offer-line); }
.offer-card.offer-coupon { border-style: dashed; }
.offer-card.offer-coupon .offer-value { position: relative; border-right: 1px dashed var(--offer-line); background: #fff; }
.offer-owned { display: inline-block; margin-top: 8px; padding: 2px 8px; border: 1px solid var(--offer-line); border-radius: 4px; color: var(--offer-color); font: var(--offer-caption); }
.offer-card.is-inactive { --offer-color: #898d84; --offer-fill: #f0f1ed; --offer-line: #dde0d7; }
.offer-claim { min-height: 34px; margin-top: 8px; padding: 4px 16px; border-color: var(--offer-color); color: var(--offer-color); font: var(--offer-caption); }
.offer-claim:disabled { border-color: var(--offer-line); color: var(--offer-color); opacity: 1; }
.offers-message { padding: 16px; margin: 0; border-radius: 6px; background: #fff; color: #7e8475; font: var(--offer-body); }
.offers-note { color: #899080; font: var(--offer-caption); }
.offer-history > summary { padding: 12px 0; cursor: pointer; color: #828977; font: var(--offer-body); }
.offers-footer { display: flex; gap: 12px; flex-shrink: 0; padding: 12px 16px max(16px, env(safe-area-inset-bottom)); border-top: 1px solid #e9ece4; background: #fff; }
.offers-footer button { flex: 1; min-height: 44px; border-radius: 6px; font: var(--offer-body); }
@media (max-width: 360px) { .store-header > .store { padding-right: 12px; padding-left: 12px; } .menu-hero { margin-right: -12px; margin-left: -12px; } .scene-choice { min-width: 40px; padding: 0 8px; } .offer-value { flex-basis: 90px; } .offers-body { padding: 12px; } }
.store-header ~ .menu-tools { padding-top: 12px; }
#guests-dialog { width: min(440px,calc(100% - 32px)); border-radius: 8px; }.sheet-content { padding: 20px; }.sheet-heading { display: flex; justify-content: space-between; align-items: center; }.close { width: 40px; height: 40px; font-size: 26px; background: none; }.guest-presets { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 20px 0; }.guest-presets button { min-height: 44px; background: #f4f4f4; border: 1px solid #ddd; border-radius: 5px; }.guest-presets button[aria-pressed=true] { border-color: var(--green); color: var(--dark); background: #f1f9e9; }.field { display: grid; gap: 8px; margin: 16px 0; }.field input { width: 100%; min-height: 44px; border: 1px solid #ddd; padding: 10px; border-radius: 5px; }
.stepper button:disabled { cursor: not-allowed; }
.spinner { display: block; width: 40px; height: 40px; }.spinner circle { fill: none; stroke: var(--green); stroke-width: 3; }.empty-symbol { display: none; }

#shared-state[hidden] { display: none !important; }
body.dish-drawer-open { overflow: hidden; }

.dish-media { position: relative; overflow: hidden; border-radius: 4px; }
.dish-detail { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-width: 0; }
.dish.is-sold-out { color: var(--weak); }
.dish.is-sold-out .dish-image { filter: grayscale(1); opacity: .72; }
.dish.is-sold-out .dish-detail:disabled,
.dish.is-sold-out .dish-media:disabled { opacity: 1; cursor: default; }
.dish.is-sold-out h3,
.dish.is-sold-out .dish-detail p,
.dish.is-sold-out .dish-price { color: var(--weak); }
.dish-stock { margin-top: 4px; color: var(--price); font-size: 12px; font-weight: 400; line-height: 1.5; }
/* Store information sheet (customer-mini COMPONENTS.md 业务区域 商家信息): name, photo wall, address, phone, open state and
   introduction on the bottom drawer; rows split by 1px rules. */
.store-info-body { padding: 4px 16px calc(16px + env(safe-area-inset-bottom)); }
.store-info-name { margin: 0; color: #141414; font-size: 18px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.store-info-photos { display: flex; gap: 8px; margin: 8px -16px 0; padding: 0 16px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.store-info-photos::-webkit-scrollbar { display: none; }
.store-info-photo { flex: 0 0 112px; width: 112px; margin: 0; }
.store-info-photo img { display: block; width: 112px; height: 84px; border-radius: 4px; background: #f5f5f5; object-fit: cover; }
.store-info-photo figcaption { margin-top: 4px; overflow: hidden; color: #787878; font-size: 14px; line-height: 1.5; white-space: nowrap; text-overflow: ellipsis; }
.store-info-rows { margin-top: 8px; }
.store-info-row { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 0; border-top: 1px solid var(--line); color: #141414; font-size: 14px; line-height: 1.5; text-decoration: none; }
.store-info-row:first-child { border-top: 0; }
.store-info-row svg { flex-shrink: 0; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.store-info-row > span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.store-info-row .is-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.store-info-row > i { flex-shrink: 0; color: #a5a5a5; font-style: normal; }
/* 营业时段: the open row folds the week out (周一 first, today in the primary color); the row's › turns down when open. */
.store-info-hours { border-top: 1px solid var(--line); }
.store-info-rows > .store-info-hours:first-child { border-top: 0; }
.store-info-hours > summary { border-top: 0; cursor: pointer; list-style: none; }
.store-info-hours > summary::-webkit-details-marker { display: none; }
.store-info-hours > summary > i { transform: rotate(90deg); transition: transform .15s; }
.store-info-hours[open] > summary > i { transform: rotate(-90deg); }
.store-info-week { display: grid; gap: 4px; margin: 0; padding: 0 0 8px 26px; }
.store-info-week > div { display: flex; justify-content: space-between; gap: 12px; color: #787878; font-size: 14px; line-height: 1.5; }
.store-info-week > .is-today { color: #141414; font-weight: 500; }
.store-info-week dt { flex-shrink: 0; }
.store-info-week dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.store-info-about { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.store-info-about h3 { margin: 0 0 4px; color: #787878; font-size: 14px; font-weight: 400; }
.store-info-about p { margin: 0; color: #141414; font-size: 14px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Product card (design 2.2 商品详情): a rounded card over the menu, picture on top with a round close button on it,
   name, description and option chips, the price and 加入购物车 at its foot. */
#dish-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: #0007;
  box-shadow: none;
  border-radius: 0;
}
#dish-dialog[hidden] { display: none !important; }
#dish-dialog[open] { display: flex; flex-direction: column; justify-content: center; align-items: stretch; animation: none; }
#dish-dialog::backdrop { background: #0007; backdrop-filter: none; }
#dish-form, #dish-dialog > .dialog-content { position: relative; display: flex; flex-direction: column; width: min(520px, calc(100% - 32px)); height: auto; max-height: calc(100dvh - 48px); min-height: 0; margin: 0 auto; overflow: hidden; overflow: clip; background: #fff; border-radius: 12px; box-shadow: none; transform: none; }
#dish-dialog[open] #dish-form { animation: dish-card-in 200ms cubic-bezier(.2,.8,.2,1); }
#dish-form .dialog-content, #dish-dialog > .dialog-content { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0; }
#dish-form .dialog-image, #dish-dialog > .dialog-content .dialog-image { display: block; flex: none; width: 100%; height: auto; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 0; background: var(--canvas); }
#dish-form .dialog-image.food-placeholder, #dish-dialog > .dialog-content .dialog-image.food-placeholder { display: grid; place-items: center; font-size: 64px; }
#dish-form .dialog-body, #dish-dialog > .dialog-content .dialog-body { padding: 20px 20px 12px; }
#dish-form .dialog-content h2, #dish-dialog > .dialog-content h2 { font-size: 20px; font-weight: 500; line-height: 1.35; margin-bottom: 8px; }
#dish-form .dialog-body > .subtle, #dish-dialog .dialog-body > .subtle { color: var(--muted); font-size: 13px; line-height: 1.6; }
/* No picture: height follows the content up to 70% of the screen, the action bar right after it. */
#dish-form:has(> .dialog-content > .food-placeholder.dialog-image) { height: auto; max-height: 80vh; max-height: 80dvh; }
#dish-form:has(> .dialog-content > .food-placeholder.dialog-image) .dialog-content { flex: 0 1 auto; }
#dish-form:has(> .dialog-content > .food-placeholder.dialog-image) .dialog-image { display: none; }
#dish-form:has(> .dialog-content > .food-placeholder.dialog-image) .dialog-body { padding-top: 24px; }
#dish-form:has(> .dialog-content > .food-placeholder.dialog-image) .dialog-body > h2 { padding-right: 40px; }
#dish-form:has(> .dialog-content > .food-placeholder.dialog-image) > .dialog-close { background: var(--fill); color: var(--muted); }
.dish-action-bar { flex-shrink: 0; padding: 12px 20px 16px; border-top: 1px solid var(--line); background: #fff; }
.dish-action-bar .form-error { min-height: 0; margin: 0 0 8px; }
.dish-action-bar .form-error:empty { display: none; }
.dish-action-bar .primary { width: 100%; }

.product-detail-tabs { margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-detail-tabs[hidden] { display: none !important; }
.product-detail-status { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--muted); font-size: 13px; }
.product-detail-status p { margin: 0; overflow-wrap: anywhere; }
.product-detail-status .loader { width: 18px; height: 18px; flex: 0 0 18px; }
.product-detail-error { align-items: flex-start; justify-content: space-between; color: #9a3b2f; }
.product-detail-error .text-button { flex: 0 0 auto; min-height: 32px; padding: 4px 0 4px 12px; color: var(--dark); font-size: 13px; }
/* Underline tabs (Joy Tabs, docs/DESIGN.md「组件·页签」). */
.product-detail-tablist { display: flex; gap: 20px; margin: 0 0 12px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.product-detail-tablist::-webkit-scrollbar { display: none; }
.product-detail-tab { flex: 0 0 auto; min-height: 40px; padding: 0 2px; border: 0; border-radius: 0; background: none; box-shadow: inset 0 -2px transparent; color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.product-detail-tab[aria-selected='true'] { color: var(--dark); box-shadow: inset 0 -2px var(--green); }
.product-detail-panel[hidden] { display: none !important; }
.product-richtext { display: grid; gap: 10px; color: #333b2f; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.product-richtext p, .product-richtext h1, .product-richtext h2, .product-richtext h3, .product-richtext ul, .product-richtext ol, .product-richtext blockquote, .product-richtext figure, .product-richtext pre { margin: 0; }
.product-richtext h1, .product-richtext h2, .product-richtext h3 { color: #20251c; line-height: 1.35; }
.product-richtext h1 { font-size: 20px; }.product-richtext h2 { font-size: 18px; }.product-richtext h3 { font-size: 16px; }
.product-richtext ul, .product-richtext ol { padding-left: 22px; }
.product-richtext li + li { margin-top: 4px; }
.product-richtext blockquote { padding: 10px 12px; border-left: 3px solid #b9d5a8; background: #f7faf4; color: #495043; }
.product-richtext a { color: #1f6bba; text-decoration: underline; text-underline-offset: 3px; }
.product-richtext mark { padding: 0 2px; background: #fff2a8; color: inherit; }
.product-richtext code { padding: 1px 4px; border-radius: 3px; background: #f1f2ef; font-size: .92em; }
.product-richtext pre { overflow-x: auto; padding: 10px; border-radius: 5px; background: #f1f2ef; white-space: pre-wrap; }
.product-richtext hr { width: 100%; margin: 4px 0; border: 0; border-top: 1px solid var(--line); }
.product-richtext img { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 5px; background: #f4f5f2; }
.product-richtext figcaption { margin-top: 6px; color: var(--muted); font-size: 12px; text-align: center; }
.product-richtext-table { max-width: 100%; overflow-x: auto; }
.product-richtext table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 13px; }
.product-richtext th, .product-richtext td { padding: 8px; border: 1px solid var(--line); vertical-align: top; }
.product-richtext th { background: #f5f7f2; font-weight: 700; }
.product-richtext .is-align-center { text-align: center; }
.product-richtext .is-align-right { text-align: right; }
.product-richtext .rt-size-12 { font-size: 12px; }.product-richtext .rt-size-14 { font-size: 14px; }.product-richtext .rt-size-16 { font-size: 16px; }.product-richtext .rt-size-18 { font-size: 18px; }.product-richtext .rt-size-20 { font-size: 20px; }.product-richtext .rt-size-24 { font-size: 24px; }.product-richtext .rt-size-28 { font-size: 28px; }.product-richtext .rt-size-32 { font-size: 32px; }

/* Combo picture cards (PR#10219; customer-mini docs/COMPONENTS.md 套餐图文卡片): names and amounts 500, the rest 400;
   one 4px radius, no shadow; the picked card is light grey with a check; only 到手价 takes the price colour. */
.combo-group { margin: 18px 0; padding: 0; border: 0; min-width: 0; }
.combo-group legend, .combo-head { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 10px; padding: 0; color: #787878; font-size: 15px; font-weight: 500; }
.combo-must { padding: 1px 6px; border-radius: 4px; background: #edf7e6; color: var(--dark); font-size: 12px; font-weight: 400; }
.combo-picked { margin-left: auto; color: #a5a5a5; font-size: 12px; font-weight: 400; }
.combo-fixed-row { display: flex; gap: 8px; margin: 0 -16px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.combo-fixed-row::-webkit-scrollbar { display: none; }
.combo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.combo-card { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 6px; border-radius: 4px; background: #fff; color: #141414; text-align: center; cursor: pointer; }
.combo-card[hidden] { display: none; }
.combo-card.is-fixed { flex: none; width: 76px; padding: 0; align-items: stretch; text-align: left; cursor: default; }
.combo-card.is-on { background: #f5f5f5; }
.combo-card > b { display: -webkit-box; margin-top: 6px; overflow: hidden; font-size: 13px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.combo-card > small { color: #787878; font-size: 12px; }
.combo-pick { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.combo-media { position: relative; display: block; width: 100%; aspect-ratio: 1; overflow: hidden; border-radius: 4px; background: #f0f0f0; }
.combo-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.combo-initial { position: absolute; inset: 0; display: grid; place-items: center; background: #eef2e7; color: #a2b191; font-size: 28px; font-weight: 600; font-style: normal; }
.combo-check { position: absolute; top: 4px; right: 4px; width: 18px; height: 18px; border-radius: 50%; background: #ffffffd9; box-shadow: inset 0 0 0 1px #c8c8c8; }
.combo-card.is-on .combo-check { background: var(--green); box-shadow: none; }
.combo-card.is-on .combo-check::after { content: ''; position: absolute; left: 6px; top: 3px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.combo-pick:focus-visible + .combo-media { outline: 2px solid var(--green); outline-offset: 2px; }
.combo-reason { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 0; background: #141414a6; color: #fff; font-size: 12px; font-style: normal; text-align: center; }
.combo-price { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px; margin-top: 2px; color: #787878; font-size: 12px; font-variant-numeric: tabular-nums; }
.combo-price s { color: #a5a5a5; }
.combo-card.is-off, .combo-card.is-blocked { cursor: not-allowed; }
.combo-card.is-off img, .combo-card.is-blocked img { opacity: .45; }
.combo-card.is-off > b, .combo-card.is-off .combo-price, .combo-card.is-blocked > b { color: #a5a5a5; }
.combo-step { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 6px; }
.combo-step button { width: 26px; height: 26px; padding: 0; border: 1px solid #c8c8c8; border-radius: 50%; background: #fff; color: #141414; font-size: 16px; line-height: 1; }
.combo-step button:disabled { color: #c8c8c8; border-color: #e6e6e6; }
.combo-step output { min-width: 16px; font-size: 13px; font-variant-numeric: tabular-nums; }
.combo-spec { width: 100%; min-height: 26px; margin-top: 6px; padding: 2px 6px; overflow: hidden; border: 1px solid #c8c8c8; border-radius: 4px; background: #fff; color: #787878; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.combo-spec[hidden] { display: none; }
.combo-spec.is-due { border-color: var(--green); color: var(--dark); }
.combo-more { display: block; width: 100%; min-height: 36px; margin-top: 8px; border: 0; background: none; color: #a5a5a5; font-size: 13px; }
.combo-more[hidden] { display: none; }
.combo-specs { position: fixed; inset: 0; z-index: 30; display: flex; align-items: flex-end; background: #14141473; }
.combo-specs[hidden] { display: none; }
/* Spec sheet and spec groups (PR#10239; customer-mini docs/COMPONENTS.md 规格组): height follows the content up to 70%,
   content 16px from the edges; head 56px picture, name 16/500, the current choice 13/400; 44px button on the 6px radius. */
.combo-specs-sheet { width: 100%; max-height: 70%; display: flex; flex-direction: column; padding: 0 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 4px 4px 0 0; background: #fff; }
.combo-specs-sheet .spec-head { display: flex; align-items: center; gap: 12px; padding: 16px 0 12px; border-bottom: 1px solid var(--line); }
.spec-head .combo-media { flex: none; width: 56px; height: 56px; }
.spec-head .combo-initial { font-size: 22px; }
.spec-head-copy { flex: 1; min-width: 0; }
.spec-head-copy h3 { margin: 0; overflow: hidden; font-size: 16px; font-weight: 500; line-height: 1.4; white-space: nowrap; text-overflow: ellipsis; }
.spec-head-copy p { display: flex; align-items: baseline; gap: 6px; min-width: 0; margin: 2px 0 0; color: #787878; font-size: 13px; }
.spec-head-copy p span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spec-head-copy p b { flex: none; color: #bf4521; font-weight: 400; font-variant-numeric: tabular-nums; }
.combo-specs-close { flex: none; align-self: flex-start; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; font-size: 22px; color: #787878; }
.combo-specs-body { overflow-y: auto; padding: 16px 0 12px; }
.spec-done, .dish-action-bar .primary { min-height: 44px; border-radius: 999px; font-size: 16px; font-weight: 500; }
.spec-done:disabled, .dish-action-bar .primary:disabled { background: #d9eccb; color: #fff; }
.spec-group { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.spec-group:first-child { margin-top: 0; }
.spec-group-head { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 0; color: #141414; font-size: 15px; font-weight: 500; }
.spec-group-head em { font-style: normal; }
.spec-group-head small { margin: 0; color: #a5a5a5; font-size: 13px; font-weight: 400; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.spec-chip { position: relative; max-width: 100%; }
.spec-chip input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.spec-chip span { display: inline-flex; align-items: baseline; gap: 4px; min-height: 34px; box-sizing: border-box; padding: 7px 16px; border-radius: 4px; background: var(--canvas); box-shadow: none; color: var(--text); font-size: 14px; font-weight: 400; line-height: 20px; overflow-wrap: anywhere; cursor: pointer; }
.spec-chip small { color: #787878; font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.spec-chip input:checked + span { background: #edf7e6; box-shadow: none; color: var(--green-pressed); }
.spec-chip input:checked + span small { color: var(--green-pressed); }
.spec-chip input:disabled + span { background: var(--canvas); box-shadow: none; color: #c4c4c4; text-decoration: line-through; cursor: not-allowed; }
.spec-chip input:disabled + span small { color: #a5a5a5; }
.spec-chip input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.combo-formula { display: flex; justify-content: center; align-items: flex-start; gap: 4px; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.combo-formula[hidden] { display: none; }
.combo-formula i { color: #a5a5a5; font-size: 13px; font-style: normal; line-height: 1.5; }
.combo-formula span { display: flex; flex-direction: column; align-items: center; }
.combo-formula b { color: #141414; font-size: 13px; font-weight: 500; line-height: 1.5; }
.combo-formula small { color: #a5a5a5; font-size: 11px; }
.combo-formula .is-total b { color: #e46c22; }

@keyframes dish-card-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }

@media (max-width: 360px) {
  #dish-form .dialog-image.food-placeholder { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { #dish-dialog[open] #dish-form { animation: none; } }

.campaign-choices { display: grid; gap: 10px; }
.campaign-choices > button { width: 100%; white-space: normal; }

.app:has(.checkout-page) { padding-bottom: 0; }
.app:has(.checkout-page) > .nav { display: none; }
.checkout-page, .checkout-detail {
  --checkout-green: #65b018;
  --checkout-price: #e46c22;
  --checkout-caption: 400 13px/1.5 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --checkout-label: 600 16px/1.4 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
.checkout-page {
  min-height: 100dvh;
  padding-bottom: calc(124px + env(safe-area-inset-bottom));
  background: var(--canvas);
  color: var(--text);
}
/* White bar with a back chevron and the centred title (design 2.3 订单结算). */
.checkout-header { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; min-height: 52px; padding: env(safe-area-inset-top) 4px 0; background: #fff; color: var(--text); }
.checkout-header h1 { font-size: 17px; font-weight: 500; line-height: 1.4; letter-spacing: 0; text-align: center; }
.checkout-back { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: inherit; }
.checkout-page > .panel, .checkout-columns > div > .panel { margin: 12px 12px 0; padding: 16px; border: 0; border-radius: 8px; background: #fff; box-shadow: none; }
.checkout-page h2 { font: var(--checkout-label); }
/* Store card: name with a chevron to 门店信息, where the order is served, the scene on the right. */
.checkout-page > .checkout-context, .checkout-columns > div > .checkout-context { display: flex; align-items: center; gap: 12px; }
.checkout-place { flex: 1; min-width: 0; }
.checkout-store { display: flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px; padding: 0; background: transparent; color: inherit; font-size: 17px; font-weight: 500; text-align: left; }
.checkout-store > span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.checkout-place p { margin-top: 2px; color: var(--muted); font: var(--checkout-caption); }
.checkout-scene { flex-shrink: 0; padding: 4px 14px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; }
.checkout-page > .checkout-items, .checkout-columns > div > .checkout-items { padding: 16px; }
.checkout-items-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-items-head h2 { font-size: 17px; font-weight: 500; }
.checkout-items-head > div { display: flex; align-items: center; gap: 16px; }
.checkout-items-head > div > * { min-height: 32px; padding: 0; color: var(--muted); font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; }
.checkout-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(64px, max-content); align-items: start; gap: 12px; padding: 14px 0 0; }
.checkout-thumb { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 6px; background: var(--canvas); color: #c4c4c4; font-size: 20px; object-fit: cover; }
.checkout-line h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 15px; font-weight: 500; line-height: 1.4; }
.checkout-line p { margin-top: 2px; overflow: hidden; color: var(--muted); font: var(--checkout-caption); text-overflow: ellipsis; white-space: nowrap; }
.checkout-line p.error { color: #b83222; white-space: normal; }
.checkout-line div > span { display: block; margin-top: 2px; color: var(--muted); font: var(--checkout-caption); }
.checkout-line > strong { font-size: 15px; font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-more summary { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 40px; margin-top: 4px; color: var(--weak); font: var(--checkout-caption); cursor: pointer; list-style: none; }
.checkout-more summary::-webkit-details-marker { display: none; }
.checkout-more summary::after { content: ''; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.checkout-more[open] summary { order: 2; }
.checkout-more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.checkout-more[open] { display: flex; flex-direction: column; }
.checkout-more .checkout-more-close, .checkout-more[open] .checkout-more-open { display: none; }
.checkout-more[open] .checkout-more-close { display: inline; }
.checkout-page > .checkout-form, .checkout-columns > div > .checkout-form { padding-top: 4px; padding-bottom: 4px; }
.checkout-guest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.checkout-guest-row h2 { font-size: 15px; font-weight: 400; }
.checkout-tableware { display: flex; align-items: center; gap: 8px; min-height: 56px; border-bottom: 1px solid var(--line); font-size: 16px; }
.checkout-tableware small { flex: 1; min-width: 0; color: var(--muted); font: var(--checkout-caption); }
.checkout-tableware input { width: 64px; min-height: 36px; padding: 4px 8px; border: 1px solid #e8ebe4; border-radius: 5px; font-size: 16px; text-align: right; }
.checkout-pay { padding: 12px 0; }
.checkout-pay > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checkout-pay span { font-size: 15px; }
.checkout-pay strong { color: var(--muted); font-size: 14px; font-weight: 400; text-align: right; }
.checkout-pay p { margin-top: 4px; color: var(--muted); font: var(--checkout-caption); text-align: right; }
.checkout-guest-row .text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 0 6px 8px; color: var(--muted); font-size: 14px; text-decoration: none; }
.checkout-guest-row .text-button::after { content: '›'; color: var(--weak); font-size: 22px; }
.checkout-note summary { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; cursor: pointer; list-style: none; }
.checkout-note summary::-webkit-details-marker { display: none; }
.checkout-note summary > span:first-child { flex-shrink: 0; }
.checkout-note summary > span:last-child { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--weak); font-size: 14px; }
.checkout-note summary::after { content: '›'; color: var(--weak); font-size: 20px; }
/* 备注 (design 2.3.2): its own page with the text box, the count and 完成. */
.checkout-note-page { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; width: min(720px, 100%); margin: 0 auto; background: #fff; }
.checkout-note-box { position: relative; margin: 12px 16px 0; padding: 14px 16px 32px; border-radius: 8px; background: #f8f8f8; }
.checkout-note-box textarea { display: block; width: 100%; min-height: 140px; padding: 0; border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1.6; resize: none; }
.checkout-note-box textarea:focus { outline: none; }
.checkout-note-box > span { position: absolute; right: 14px; bottom: 10px; color: var(--weak); font-size: 12px; font-variant-numeric: tabular-nums; }
.checkout-note-done { margin: auto 16px calc(24px + env(safe-area-inset-bottom)); width: auto; border-radius: 999px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.checkout-form .form-error { min-height: 0; margin: 10px 0 0; }
.checkout-form .form-error:empty { display: none; }
.checkout-page .member-panel .section-heading { padding-bottom: 8px; margin-bottom: 8px; }
.checkout-page .member-panel .hint { font: var(--checkout-caption); }
/* Benefit entry rows in the amount card: name, what it takes off (or its state), an arrow. */
.checkout-campaign-picker summary, .checkout-entry { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font-size: 15px; line-height: 1.4; text-align: left; cursor: pointer; list-style: none; }
.checkout-campaign-picker summary::-webkit-details-marker { display: none; }
.checkout-campaign-picker summary > span, .checkout-entry > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkout-campaign-picker summary > strong, .checkout-entry > strong { flex-shrink: 0; max-width: 60%; overflow: hidden; color: var(--muted); font-size: 14px; font-weight: 400; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.checkout-campaign-picker summary > strong.is-off, .checkout-entry > strong.is-off { color: #d7262c; }
.checkout-campaign-picker summary::after, .checkout-entry::after { content: '›'; flex-shrink: 0; width: 10px; color: var(--weak); font-size: 20px; line-height: 1; text-align: right; }
.checkout-entry-plain { cursor: default; }
.checkout-entry-plain::after { visibility: hidden; }
.checkout-campaign-picker[open] summary::after { transform: rotate(90deg); }
.checkout-benefits:empty { display: none; }
.checkout-benefits { padding: 2px 0; }
.checkout-campaign-picker .hint { margin: 8px 0 12px; }
.checkout-campaign-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 12px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: inherit; font-size: 14px; text-align: left; }
.checkout-campaign-choice > span { min-width: 0; overflow-wrap: anywhere; }
.checkout-campaign-choice > strong { flex-shrink: 0; color: var(--muted); font-weight: 400; }
.checkout-campaign-choice[aria-pressed='true'] { border-color: var(--checkout-green); background: #f0f8e9; color: var(--dark); box-shadow: inset 3px 0 var(--checkout-green); }
.checkout-pricing-error { margin: 10px 0 0; color: var(--danger-text); font: var(--checkout-caption); }
.checkout-pricing-error .text-button { min-height: 28px; padding: 0 4px; color: var(--dark); font-size: 13px; }
.checkout-entitlements { margin-top: 8px; color: var(--muted); font: var(--checkout-caption); }
.checkout-entitlements summary { cursor: pointer; }
.checkout-entitlements p { margin-top: 4px; }
.checkout-items .checkout-amount { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.checkout-amount dl { margin: 0; }
.checkout-amount dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font: var(--checkout-caption); }
.checkout-amount dt { min-width: 0; overflow-wrap: anywhere; }
.checkout-amount dd { flex-shrink: 0; margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-amount .checkout-off dd { color: #d7262c; }
.checkout-amount dl > .checkout-amount-total { align-items: baseline; justify-content: flex-end; gap: 8px; margin-top: 6px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.checkout-amount-total dt { color: var(--muted); }
.checkout-amount-total dd { font-size: 18px; font-weight: 500; }
.checkout-items .checkout-total { margin-top: 0; padding-top: 0; border-top: 0; }
.checkout-items .checkout-total dl > .checkout-amount-total { margin-top: 6px; }
.checkout-detail .drawer-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.checkout-amount > p { margin-top: 8px; color: var(--muted); font: var(--checkout-caption); }
.checkout-submit-bar { position: fixed; z-index: 12; bottom: 0; left: 50%; transform: translateX(-50%); display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(720px, 100%); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.checkout-submit-bar > div { min-width: 0; }
.checkout-sum { display: flex; align-items: baseline; gap: 6px; }
.checkout-sum > span { color: var(--muted); font: var(--checkout-caption); }
.checkout-submit-bar strong { color: var(--text); font-size: 22px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checkout-saved { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0; background: transparent; color: #d7262c; font: var(--checkout-caption); }
.checkout-saved span { color: var(--muted); }
.checkout-saved span::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 4px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.checkout-submit-bar .primary { flex-shrink: 0; min-width: 120px; min-height: 46px; padding: 10px 24px; background: var(--green); color: #fff; border-radius: 999px; font-size: 16px; font-weight: 500; }
.checkout-empty { text-align: center; }
.checkout-page > .checkout-empty, .checkout-columns > div > .checkout-empty { padding: 40px 20px; }
.checkout-empty p { margin: 12px 0 24px; color: var(--muted); font: var(--checkout-caption); }
@media (max-width: 360px) {
  .checkout-page > .panel, .checkout-columns > div > .panel { margin-right: 10px; margin-left: 10px; padding-right: 12px; padding-left: 12px; }
  .checkout-line { gap: 8px; }
  .checkout-submit-bar { gap: 10px; padding-right: 12px; padding-left: 12px; }
  .checkout-submit-bar .primary { padding-right: 12px; padding-left: 12px; font-size: 14px; }
  .checkout-submit-bar strong { font-size: 21px; }
}

/* The order list's tabs carry on from the page title without a gap or line, and stay under it while the list scrolls. */
.compact-title + .order-tabs { margin-top: -12px; }
.compact-title:has(+ .order-tabs) { box-shadow: none; }

.order-detail {
  --order-green: #65b018;
  --order-muted: #999;
  --order-body: 400 16px/1.4 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --order-caption: 400 14px/1.4 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--canvas);
  color: #282d25;
  font: var(--order-body);
}
.order-detail-back { display: grid; place-items: center; width: 44px; height: 44px; margin: calc(4px + env(safe-area-inset-top)) 0 0 4px; color: #333; }
.order-detail-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.order-detail > .panel { margin: 10px 12px 0; padding: 16px 14px; background: #fff; border-radius: 8px; }
.order-detail > .panel:first-of-type { margin-top: 0; }
.order-detail .panel h2 { margin-bottom: 12px; font: var(--order-body); }
.order-hero h1 { font: 400 24px/1.35 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; overflow-wrap: anywhere; }
.order-hero.is-cancelled h1, .order-hero.is-cancelled .order-hero-code b { color: #b3b3b3; }
.order-hero-code { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.order-hero-code span, .order-hero-note { color: var(--order-muted); font: var(--order-caption); }
.order-hero-code b { font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.order-hero-note { margin-top: 4px; }
.order-pills { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.order-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #333; font: var(--order-caption); }
.order-pill.is-accent { border-color: var(--order-green); color: #3f7f0b; }
.order-detail dl { margin: 0; }
.order-detail dl > div { display: flex; align-items: flex-start; gap: 12px; padding: 5px 0; font: var(--order-caption); }
.order-card-info dt { flex: 0 0 64px; color: var(--order-muted); }
.order-card-info dd { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.order-card-info dd small { flex-basis: 100%; color: var(--order-muted); font: var(--order-caption); white-space: pre-line; }
.order-card-info dd > span { flex: 1 1 0; min-width: 0; }
.order-id { display: flex; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-id > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.order-id > span:last-child { flex-shrink: 0; white-space: pre; }
.order-card-info hr { margin: 8px 0; border: 0; border-top: 1px solid #eee; }
.order-copy { flex-shrink: 0; min-height: 24px; padding: 0 10px; border: 1px solid #ddd; border-radius: 999px; background: #fff; color: #333; font: 400 13px/1 Inter, 'PingFang SC', sans-serif; }
.order-detail .is-foldable:not(.is-open) .is-folded { display: none; }
.order-fold { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 36px; padding: 0; border: 0; background: none; color: #b3b3b3; font: var(--order-caption); }
.order-fold .is-open, .is-open > .order-fold .is-closed { display: none; }
.is-open > .order-fold .is-open { display: inline; }
.order-caret { flex-shrink: 0; width: 6px; height: 6px; margin-top: -3px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); }
.is-open > .order-fold .order-caret, .order-line-spec[open] .order-caret { margin-top: 3px; transform: rotate(-135deg); }
.order-store { display: flex; align-items: center; gap: 2px; margin-bottom: 4px; padding: 8px 10px; border-radius: 4px; background: #f5f5f5; font: var(--order-caption); }
.order-store span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-line { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; }
.order-line-image { flex: 0 0 56px; width: 56px; height: 56px; object-fit: cover; border-radius: 4px; background: #f5f5f5; }
.order-line-image.is-text { display: grid; place-items: center; color: var(--order-muted); font-size: 18px; }
.order-line-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.order-line-copy h3 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font: 500 16px/1.35 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
.order-line-copy > span, .order-line-spec { color: var(--order-muted); font: var(--order-caption); font-variant-numeric: tabular-nums; }
p.order-line-spec { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-line-spec summary { display: flex; align-items: center; gap: 4px; list-style: none; cursor: pointer; }
.order-line-spec summary::-webkit-details-marker { display: none; }
.order-line-spec summary span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order-line-spec[open] summary span { white-space: normal; }
.order-line-price { flex-shrink: 0; min-width: 64px; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.order-line-price strong { font-weight: 400; white-space: nowrap; }
.order-line-price s { color: #b3b3b3; font-size: 12px; white-space: nowrap; }
.order-price-rows { margin-top: 6px; padding-top: 10px; border-top: 1px solid #eee; }
.order-price-rows dt { flex: 1; min-width: 0; }
.order-price-rows dd { flex-shrink: 0; margin: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-price-rows .is-off dd { color: #e4393c; }
.order-price-hint { margin-top: 4px; color: var(--order-muted); font-size: 12px; }
.order-total { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #eee; }
.order-total span { flex: 1; }
.order-total em { color: #e4393c; font: var(--order-caption); font-style: normal; white-space: nowrap; }
.order-total strong { font-size: 18px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-total.is-muted strong { color: #b3b3b3; }
.order-card-payment dt { flex: 1; color: var(--order-muted); }
.order-card-payment dd { margin: 0; font-variant-numeric: tabular-nums; }
.order-detail-help { font: var(--order-caption); }
.order-detail-help summary { cursor: pointer; }
.order-detail-help p { margin-top: 12px; color: var(--muted); line-height: 1.7; }
.order-detail-actions .actions { margin: 0; }
.order-detail.has-paybar { padding-bottom: 64px; }
.order-paybar { position: fixed; right: 0; bottom: calc(56px + env(safe-area-inset-bottom)); left: 0; z-index: 20; display: flex; justify-content: flex-end; width: min(720px, 100%); margin: 0 auto; padding: 8px 16px; box-sizing: border-box; background: #fff; box-shadow: inset 0 1px 0 var(--line); }
.order-paybar .primary { min-height: 40px; padding: 0 20px; }
@media (max-width: 360px) {
  .order-detail > .panel { margin-right: 8px; margin-left: 8px; padding-right: 12px; padding-left: 12px; }
}

.payment-method-mark { position: relative; display: inline-flex; width: 24px; height: 24px; align-items: center; justify-content: center; vertical-align: middle; margin-right: 8px; }
.payment-method-icon { position: absolute; inset: 0; width: 24px; height: 24px; object-fit: contain; background: white; border-radius: 4px; }

.member-code { margin: 16px 0; text-align: center; }
.member-dynamic-code { display: block; width: 228px; height: 228px; max-width: 100%; object-fit: contain; image-rendering: pixelated; margin: 12px auto; background: white; }
.member-code-digits { margin: 0 0 8px; font-size: 22px; font-weight: 700; letter-spacing: .08em; font-variant-numeric: tabular-nums; }

.member-pin { margin-top: 14px; }.contact-form { display: grid; gap: 10px; margin-top: 12px; }.contact-row { display: flex; align-items: center; gap: 8px; }.contact-row input { flex: 1; min-width: 0; }.contact-form input, .contact-form select { min-height: 44px; padding: 8px 12px; border: 1px solid #d9ddd5; border-radius: 6px; font-size: 16px; background: #fff; color: inherit; }.contact-form input:focus, .contact-form select:focus { border-color: var(--green); }.contact-form .hint:empty { display: none; }
.guest-points { margin: 10px 0 14px; }.point-rows { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }.point-rows li { display: flex; align-items: baseline; gap: 8px; }.point-rows span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.point-rows time { color: var(--muted, #6b7068); font-size: 12px; }.point-rows strong { min-width: 3em; text-align: right; }

/* 排队取号 and 订座 (dining.js). */
.queue-ticket { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.queue-ticket-head { align-self: stretch; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.queue-ticket-head em, .reserve-state { font-style: normal; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--fill); color: var(--muted); }
.queue-ticket-active .queue-ticket-head em, .reserve-state-active { background: var(--green-soft); color: var(--dark); }
.queue-ticket-called .queue-ticket-head em, .reserve-state-pending { background: var(--warning-soft); color: var(--warning-text); }
.queue-number { margin-top: 8px; font-size: 48px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--text); }
.queue-ticket-ended .queue-number { color: var(--weak); }
.queue-lead { margin: 0; font-size: 16px; color: var(--text); }
.queue-ticket-called .queue-lead { color: var(--warning-text); }
.queue-ticket .secondary { margin-top: 12px; min-height: 36px; padding: 6px 16px; }
.queue-take h2 { margin: 0 0 12px; font-size: 16px; }
.queue-guests { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.queue-guests button { width: 44px; min-height: 44px; padding: 0; font-size: 20px; }
.queue-guests strong { min-width: 4em; text-align: center; font-size: 16px; font-variant-numeric: tabular-nums; }
.dining-foot { margin: 8px 16px 96px; text-align: center; }
.reserve-form fieldset.field { border: 0; padding: 0; }
.reserve-form fieldset.field legend { margin-bottom: 8px; padding: 0; }
.reserve-form .field input[type=date] { font: inherit; }
.reserve-list { padding: 0 16px; }
.reserve-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.reserve-row:last-child { border-bottom: 0; }
.reserve-row-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.reserve-row-head strong { font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.reserve-row .hint, .reserve-row .error { margin: 4px 0 0; font-size: 13px; }
.reserve-row .secondary, .reserve-row .primary { margin: 8px 8px 0 0; min-height: 36px; padding: 6px 16px; }
.reserve-deposit { margin: 4px 0 0; font-size: 13px; overflow-wrap: anywhere; }
.reserve-form .reserve-deposit { margin: 0 0 8px; }
/* With 排队 and 订座 the bottom navigation holds five labels: keep each on one line. */
.nav a { white-space: nowrap; padding-inline: 2px; }

.member-login { display: flex; gap: 10px; margin-top: 12px; }
.member-login > .secondary { flex: 1; }

/* Home (/): 扫码点餐 card, 附近门店 list and 我的 (home.js); the bottom bar is 首页 · 扫一扫 · 我的. */
.home { min-height: 100dvh; background: var(--canvas); }
.home-header { padding: calc(14px + env(safe-area-inset-top)) 16px 12px; background: #fff; }
.home-header h1 { font-size: 20px; font-weight: 600; line-height: 1.4; }
.home-scan { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 12px 0; padding: 20px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--green), var(--green-pressed)); color: #fff; }
.home-scan h2 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.home-scan p { margin-top: 4px; font-size: 13px; line-height: 1.5; opacity: .92; }
.home-scan .primary { flex-shrink: 0; background: #fff; color: var(--green-pressed); }
.home-scan .primary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.home-nearby { margin: 12px; padding: 4px 16px 4px; border-radius: 12px; background: #fff; }
.home-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 48px; }
.home-section-head h2 { font-size: 17px; font-weight: 500; }
.home-radius, .me-channel { display: flex; gap: 6px; }
.home-radius button, .me-channel button { min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--canvas); color: var(--muted); font-size: 12px; }
.home-radius button[aria-pressed="true"], .me-channel button[aria-pressed="true"] { background: #edf7e6; color: var(--green-pressed); }
.home-store { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.home-store-avatar { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; overflow: hidden; border-radius: 8px; background: var(--canvas); color: #c4c4c4; font-size: 22px; }
.home-store-avatar img { width: 100%; height: 100%; object-fit: cover; }
.home-store-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.home-store-name { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.home-store-name strong { overflow: hidden; font-size: 16px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.home-store-name small { flex-shrink: 0; color: var(--muted); font-size: 13px; }
.home-store-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; line-height: 18px; }
.home-store-meta em { color: var(--muted); font-style: normal; }
.home-store-meta em.is-open { color: var(--green-pressed); }
.home-store-meta i { padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-style: normal; }
.home-store-address { overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.home-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 12px; color: var(--muted); font-size: 14px; line-height: 1.5; text-align: center; }
.home-empty > svg { width: 40px; height: 40px; fill: none; stroke: var(--weak); stroke-width: 1.4; }
.home-empty strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; font-weight: 500; }
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.nav .nav-scan { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; padding: 0; background: transparent; color: #999; font-size: 11px; line-height: 1.2; }
.nav .nav-scan svg { width: 44px; height: 44px; margin-top: -20px; padding: 10px; border-radius: 50%; background: var(--green); stroke: #fff; box-shadow: 0 4px 12px rgba(76, 165, 21, .35); }
.scan-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: #000; }
.scan-layer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame { position: relative; width: min(68vw, 280px); aspect-ratio: 1; border-radius: 12px; outline: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .45); }
.scan-hint { position: absolute; top: calc(50% + min(34vw, 140px) + 20px); right: 0; left: 0; color: #fff; font-size: 14px; text-align: center; }
.scan-close { position: absolute; bottom: calc(32px + env(safe-area-inset-bottom)); left: 50%; min-height: 44px; padding: 0 28px; border-radius: 999px; background: rgba(255, 255, 255, .2); color: #fff; font-size: 15px; transform: translateX(-50%); }
.home-me-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
.home-me-grid > * { min-width: 0; }
.home-me-grid > .panel { margin: 0; padding: 16px; border: 0; border-radius: 12px; background: #fff; box-shadow: none; }
.home-me .page-title { margin-bottom: 0; }
.me-account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.me-account > div { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.me-account strong { font-size: 17px; font-weight: 500; }
.me-account small { color: var(--muted); font-size: 13px; }
.me-account.is-guest { flex-direction: column; align-items: stretch; }
.me-account.is-guest .member-login { margin-top: 4px; }
.me-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #edf7e6; }
.me-avatar svg { width: 26px; height: 26px; fill: none; stroke: var(--green-pressed); stroke-width: 1.6; }
.me-login { display: flex; flex-direction: column; gap: 10px; }
.me-login input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; }
.me-login .contact-row { display: flex; gap: 8px; }
.me-login .contact-row input { flex: 1; min-width: 0; }
.me-login .contact-row .secondary { flex-shrink: 0; min-width: 104px; }
.me-login .home-actions { justify-content: flex-start; }
.me-login .form-error:empty { display: none; }
.me-order { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.me-order-head, .me-order-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.me-order-head strong { overflow: hidden; font-size: 15px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.me-order-head em { flex-shrink: 0; color: var(--green-pressed); font-size: 13px; font-style: normal; }
.me-order-lines { overflow: hidden; color: var(--muted); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.me-order-foot small { color: var(--weak); font-size: 12px; }
.me-order-foot b { font-size: 15px; font-weight: 500; }
/* 我的 · platform identity: member cards (green, points and stored value) and coupons (price-coloured stubs) of every store. */
.me-cards, .me-coupons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-bottom: 4px; }
.me-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, var(--green), var(--green-pressed)); color: #fff; text-decoration: none; }
.me-card.is-off { background: var(--weak); }
.me-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.me-card-head strong { overflow: hidden; font-size: 16px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.me-card-head em { flex-shrink: 0; font-size: 12px; font-style: normal; }
.me-card > small { font-size: 12px; opacity: .9; }
.me-card-assets { display: flex; gap: 28px; margin-top: 8px; }
.me-card-assets > span { display: flex; align-items: baseline; gap: 4px; font-size: 12px; opacity: .92; }
.me-card-assets b { font-size: 18px; font-weight: 600; }
.me-coupon { display: flex; min-height: 76px; overflow: hidden; border: 1px solid var(--price-line); border-radius: 8px; background: var(--price-soft); color: inherit; text-decoration: none; }
.me-coupon-value { display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; width: 96px; padding: 8px 6px; border-right: 1px dashed var(--price-line); color: var(--price-strong); text-align: center; }
.me-coupon-value b { font-size: 20px; font-weight: 600; line-height: 1.2; }
.me-coupon-value small { font-size: 12px; }
.me-coupon-copy { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 8px 12px; }
.me-coupon-copy strong { overflow: hidden; font-size: 15px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.me-coupon-copy small { overflow: hidden; color: var(--muted); font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.me-coupon-copy small:empty { display: none; }

/* Wide screens (user 2026-11-16 「额外兼容HD」): the phone-sized components keep their size and more of them fit:
   product rows in columns, checkout in two columns, cards in a grid; from 1024px the cart stays open beside the menu. */
@media (min-width: 768px) {
  html, body { background: var(--canvas); }
  .app { max-width: 1280px; }
  .nav, .cart-bar, .checkout-submit-bar { width: min(1280px, 100%); }
  .nav { justify-content: center; }
  .nav a, .nav .nav-scan { flex: 0 1 140px; }
  .catalog { grid-template-columns: 120px minmax(0, 1fr); }
  .category { padding-left: 18px; }
  .dish-list { padding: 0 20px 22px; }
  .dish-list > section { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); align-content: start; column-gap: 24px; }
  .dish-list .publicity-banner { aspect-ratio: auto; height: clamp(160px, 20vw, 240px); }
  .dish-list > section > .menu-section-heading { grid-column: 1 / -1; }
  .menu-tools { padding-left: 20px; padding-right: 20px; }
  .store-header > .store { padding-left: 20px; padding-right: 20px; }
  .checkout-columns { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 0 16px; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
  .checkout-columns > div > .panel { margin: 16px 0 0; }
  .checkout-side { position: sticky; top: 16px; }
  .checkout-submit-bar { padding-right: max(16px, calc((100% - 1080px) / 2 + 16px)); padding-left: max(16px, calc((100% - 1080px) / 2 + 16px)); }
  #main:has(> .order-card), #main:has(> .panel ~ .panel) { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-content: start; align-items: start; gap: 0 16px; padding: 0 16px; }
  #main:has(> .order-card) > :not(.order-card), #main:has(> .panel ~ .panel) > :not(.panel) { grid-column: 1 / -1; }
  #main:has(> .order-card) > .page-title, #main:has(> .order-card) > .order-tabs, #main:has(> .panel ~ .panel) > .page-title { margin-right: -16px; margin-left: -16px; }
  #main:not(:has(> .panel ~ .panel)) > .panel, #main > .empty { max-width: 720px; margin-right: auto; margin-left: auto; }
  .home { max-width: 1280px; margin: 0 auto; align-content: start; }
  .home-me-grid:has(> :only-child) { grid-template-columns: minmax(0, 720px); justify-content: center; }
  .home-header { padding-left: 20px; padding-right: 20px; }
  .home-scan, .home-nearby { margin-left: 16px; margin-right: 16px; }
  .home-store-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); column-gap: 28px; }
  .home-me-grid { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); align-items: start; gap: 16px; padding: 16px; }
}
@media (min-width: 1024px) {
  body.cart-docked .app, body.cart-docked .app.has-cart-bar.has-cart-progress { max-width: none; margin: 0 360px 0 0; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  body.cart-docked #cart-bar { display: none; }
  body.cart-docked #cart-drawer { inset: 0 0 calc(57px + env(safe-area-inset-bottom)) auto; z-index: 3; width: 360px; max-width: none; height: auto; max-height: none; margin: 0; border-left: 1px solid var(--line); border-radius: 0; box-shadow: none; animation: none; }
  body.cart-docked #cart-drawer .drawer-handle { display: none; }
  body.cart-docked #cart-drawer .drawer-body { flex: 1; }
  body.cart-docked #cart-drawer [data-action="browse-menu"] { display: none; }
  body.cart-docked .catalog { grid-template-columns: 100px minmax(0, 1fr); }
  body.cart-docked .category { padding-left: 14px; }
  body.cart-docked .dish-list { padding-right: 16px; padding-left: 16px; }
  body.cart-docked #cart-drawer .cart-summary { cursor: default; }
  body.cart-docked #cart-drawer .cart-caret { display: none; }
  body.cart-docked #cart-drawer .drawer-header { padding-top: 14px; }
  body.cart-docked .nav { width: 100%; }
  .home:not(.home-me) { display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
  .home-header { grid-column: 1 / -1; }
  .home-scan { position: sticky; top: 16px; flex-direction: column; align-items: flex-start; margin-top: 16px; margin-right: 0; padding: 24px; }
  .home-nearby { margin-top: 16px; }
  .home:not(:has(.home-scan)) { grid-template-columns: minmax(0, 1fr); }
}
