/* 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;
}
.store-avatar { position: relative; flex-shrink: 0; }
.store-avatar img.store-logo { position: absolute; inset: 0; object-fit: cover; background: #fff; }
.store-avatar img[hidden] { display: none; }
.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 { min-width: 0; overflow: hidden; border-radius: 5px; 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 { display: flex; justify-content: flex-end; align-items: center; gap: 4px; min-height: 36px; padding: 0 4px; color: var(--muted); font-size: 12px; }
.publicity-controls button { min-width: 36px; min-height: 36px; padding: 4px 8px; border-radius: 3px; background: transparent; color: var(--dark); font-size: 14px; }
.publicity-controls [data-publicity-pause] { font-size: 12px; }
.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 > .store { display: block; padding: 16px 16px 12px; background: #fff; color: #222820; border-bottom: 1px solid #eef0ec; }
.app:has(.catalog) .store-header > .store { touch-action: pan-x pinch-zoom; }
.store-summary { display: flex; align-items: flex-start; gap: 8px; }
.store-header .store-identity { flex: 1; align-items: center; gap: 12px; }
.store-header .store-identity > div:last-child { min-width: 0; }
.store-header .store-logo { width: 68px; height: 68px; border: 1px solid #edf0e8; border-radius: 7px; background: #f2f7eb; }
.store-logo-fallback { display: grid; place-items: center; color: #527730; font-weight: 600; }
.store-copy { flex: 1; }
.store-name-row { display: flex; align-items: baseline; gap: 6px; }
.store-scene { flex-shrink: 0; padding: 2px 4px; background: #eef8ee; color: #228542; font-size: 12px; line-height: 1.4; font-weight: 600; border-radius: 3px; }
.store-header h1 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; color: #222820; font-size: 20px; font-weight: 600; line-height: 1.35; }
.store-table { display: flex; align-items: center; gap: 8px; min-height: 30px; padding: 0; background: transparent; color: #73786f; font-size: 14px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.store-table strong { color: #3c4436; font-weight: 500; }
.store-service { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; color: #8a8e85; font-size: 12px; line-height: 1.5; }
.store-service span { border-left: 1px solid #e3e6df; padding-left: 8px; }
.store-search { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 40px; margin: -4px -6px 0 0; padding: 6px; background: transparent; color: #363c32; }
.store-search svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; }
.store-offers { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 12px; }
.store-offers[hidden] { display: none; }
.offer-strip { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; touch-action: pan-x pinch-zoom; }
.offer-strip::-webkit-scrollbar { display: none; }
.offer-strip-note { padding: 8px 0; color: #8a8e85; font-size: 12px; white-space: nowrap; }
.offer-details { display: flex; align-items: center; gap: 4px; flex-shrink: 0; min-height: 36px; padding: 0; background: #fff; color: #7f837b; font-size: 12px; }
.offer-details span { font-size: 20px; }
.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 { --offer-color: #ce4536; --offer-fill: #fff1ed; --offer-line: #f0c9bf; }
.offer-chip { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-height: 32px; padding: 4px 8px; border: 1px solid var(--offer-line); border-radius: 4px; background: var(--offer-fill); color: var(--offer-color); white-space: nowrap; }
.offer-chip > span { font-size: 12px; padding-right: 6px; border-right: 1px solid var(--offer-line); }
.offer-chip strong { font-size: 14px; font-weight: 600; }
.offer-chip.offer-coupon { border-style: dashed; }
.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: 16px 16px 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; }
.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; } .store-header .store-logo { width: 56px; height: 56px; } .store-header .store-identity { gap: 8px; } .store-header h1 { font-size: 18px; } .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; }
.combo-choice .choice { margin-top: 4px; }

#shared-state[hidden] { display: none !important; }
body.dish-drawer-open { overflow: hidden; }

.dish { grid-template-columns: 78px minmax(0,1fr) 42px; align-items: stretch; }
.dish:has(.stepper) { grid-template-columns: 78px minmax(0,1fr) 88px; }
.dish:has(.add-options) { grid-template-columns: 78px minmax(0,1fr) max-content; }
.dish-media { position: relative; overflow: hidden; border-radius: 4px; }
.dish-detail { display: block; width: 100%; min-width: 0; }
.dish-controls { display: flex; align-items: flex-end; justify-content: flex-end; min-width: 32px; min-height: 32px; margin-bottom: 0; }
.dish .add { display: inline-grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; min-width: 32px; min-height: 32px; border-radius: 50%; background: #fff; color: var(--green); border: 1px solid #84c35e; line-height: 1; }
.dish .add:hover, .dish .add:active { background: #fff; color: var(--green); }
.dish .add-options { width: auto; min-width: 54px; height: 30px; padding: 0 8px; border-radius: 5px; font-size: 12px; }
.dish .stepper { width: 88px; margin-left: 0; justify-content: flex-end; }
.dish:has(.stepper) .price { max-width: none; }
.dish.is-sold-out { background: #f5f5f5; color: #8a8f84; }
.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 .dish-detail p,
.dish.is-sold-out .price,
.dish.is-sold-out .price small { color: #8a8f84; }
.sold-out-badge { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 4px; background: rgba(24,24,24,.56); color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0; }
.stock-state { display: inline-block; margin-top: 4px; color: #777; font-size: 12px; font-weight: 600; }

#dish-dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  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: flex-end; 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(720px,100%); height: 100vh; height: 100dvh; max-height: 100dvh; min-height: 0; margin: 0 auto; overflow: hidden; overflow: clip; background: #fff; border-radius: 0; box-shadow: none; transform: none; }
#dish-dialog[open] #dish-form { animation: dish-drawer-up 240ms 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: 1 / 1; object-fit: cover; border-radius: 0; }
#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: 18px 16px 12px; }
#dish-form .dialog-content h2, #dish-dialog > .dialog-content h2 { font-size: 20px; line-height: 1.25; margin-bottom: 8px; }
.dish-action-bar { flex-shrink: 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; box-shadow: 0 -8px 24px #16220e12; }
.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%; min-height: 50px; font-size: 16px; }

.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; }
.product-detail-tablist { display: flex; gap: 8px; margin: 0 0 12px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.product-detail-tablist::-webkit-scrollbar { display: none; }
.product-detail-tab { flex: 0 0 auto; min-width: 56px; min-height: 34px; padding: 6px 12px; border: 1px solid #dce6d3; border-radius: 5px; background: #f7f9f3; color: #4a5144; font-size: 13px; font-weight: 600; white-space: nowrap; }
.product-detail-tab[aria-selected='true'] { border-color: var(--green); background: #edf8e7; 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-group { margin: 18px 0; }
.combo-group legend { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.combo-group legend small { display: inline-flex; align-items: center; min-height: 22px; margin-left: 0; padding: 2px 8px; border-radius: 5px; background: #edf7e6; color: var(--dark); font-weight: 600; }
.combo-choice > label:not(.choice) { display: grid; gap: 8px; }
.combo-choice > label:not(.choice) > span,
.combo-choice > span { position: relative; display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 54px; border: 1px solid #e1e7d9; background: #fafbf7; border-radius: 7px; padding: 12px 42px 12px 12px; cursor: pointer; transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease; }
.combo-choice > span { background: #f5f7f2; border-style: dashed; }
.combo-choice input[name^='group-']:checked + span { border-color: var(--green); background: #eaf8df; box-shadow: inset 0 0 0 1px var(--green); }
.combo-choice input[name^='group-']:checked + span::before { content: ''; position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--green); transform: translateY(-50%); }
.combo-choice input[name^='group-']:checked + span::after { content: ''; position: absolute; right: 19px; top: 50%; width: 5px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-62%) rotate(45deg); }
.combo-choice input[name^='group-']:disabled + span { color: #8b9385; background: #f3f3f3; border-color: #e2e2e2; }
.combo-choice input[name^='group-']:disabled + span em { color: #8b9385; }

@keyframes dish-drawer-up { from { transform: translateY(100%); } to { transform: translateY(0); } }

@media (max-width: 360px) {
  .dish { grid-template-columns: 70px minmax(0,1fr) 38px; }
  .dish:has(.stepper) { grid-template-columns: 70px minmax(0,1fr) 82px; }
  .dish .stepper { width: 82px; }
  #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-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;
  min-height: 100dvh;
  padding-bottom: calc(124px + env(safe-area-inset-bottom));
  background: #ededed;
  color: #282d25;
}
.checkout-header { display: grid; grid-template-columns: 60px minmax(0, 1fr) 60px; align-items: center; min-height: 64px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: var(--checkout-green); color: #fff; }
.checkout-header h1 { font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: 0; text-align: center; }
.checkout-back { display: grid; place-items: center; width: 44px; height: 44px; }
.checkout-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.checkout-clear { min-height: 44px; padding: 8px; background: transparent; color: inherit; font-size: 14px; }
.checkout-header :focus-visible { outline-color: #fff; }
.checkout-page > .panel { margin: 12px 13px 0; padding: 16px; border: 0; border-radius: 8px; background: #fff; box-shadow: none; }
.checkout-page h2 { font: var(--checkout-label); }
.checkout-page > .checkout-context { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checkout-context > div:first-child { min-width: 0; }
.checkout-context h2 { margin: 3px 0; overflow-wrap: anywhere; }
.checkout-context p { color: var(--muted); font: var(--checkout-caption); }
.checkout-table { flex: 0 0 auto; max-width: 40%; padding-left: 20px; border-left: 1px solid var(--line); text-align: right; overflow-wrap: anywhere; }
.checkout-table strong { display: block; margin-top: 4px; font-size: 21px; line-height: 1.3; }
.checkout-page > .checkout-items { padding: 0 14px; }
.checkout-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.checkout-section-heading > span { flex-shrink: 0; color: var(--dark); font: var(--checkout-caption); }
.checkout-line { display: grid; grid-template-columns: minmax(0, 1fr) 36px minmax(64px, max-content); align-items: baseline; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.checkout-line h3 { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.checkout-line p { margin-top: 4px; color: var(--muted); font: var(--checkout-caption); overflow-wrap: anywhere; }
.checkout-line p.error { color: #b83222; }
.checkout-line > span { color: var(--muted); font: var(--checkout-caption); text-align: right; }
.checkout-line > strong { color: var(--checkout-price); font-size: 14px; font-weight: 500; text-align: right; }
.checkout-item-actions { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; }
.checkout-item-actions > * { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 0; color: var(--dark); font-size: 13px; text-decoration: none; }
.checkout-guest-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.checkout-guest-row .text-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 0 6px 8px; color: var(--dark); font-size: 14px; text-decoration: none; }
.checkout-guest-row .text-button::after { content: '›'; color: #9ba095; font-size: 22px; }
.checkout-note summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; }
.checkout-note summary::-webkit-details-marker { display: none; }
.checkout-note summary > span:first-child { flex-shrink: 0; font: var(--checkout-label); }
.checkout-note summary > span:last-child { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.checkout-note summary::after { content: '›'; color: #9ba095; font-size: 22px; }
.checkout-note[open] summary::after { transform: rotate(90deg); }
.checkout-note-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0 10px; }
.checkout-note-heading label { font: var(--checkout-label); }
.checkout-note-heading span { font: var(--checkout-caption); color: var(--muted); }
.checkout-form textarea { display: block; width: 100%; min-height: 84px; padding: 12px; border: 1px solid #e8ebe4; border-radius: 5px; background: #f7f8f5; color: inherit; font-size: 16px; line-height: 1.5; resize: vertical; }
.checkout-form textarea:focus { outline: 2px solid var(--checkout-green); outline-offset: 1px; }
.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); }
.checkout-campaign-picker summary { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; list-style: none; }
.checkout-campaign-picker summary::-webkit-details-marker { display: none; }
.checkout-campaign-picker summary > strong { flex-shrink: 0; font: var(--checkout-label); }
.checkout-campaign-picker summary > span { min-width: 0; margin-left: auto; overflow-wrap: anywhere; color: var(--dark); font-size: 14px; text-align: right; }
.checkout-campaign-picker summary::after { content: '›'; color: #9ba095; font-size: 22px; }
.checkout-campaign-picker[open] summary::after { transform: rotate(90deg); }
.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(--checkout-price); font-weight: 500; }
.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-campaign-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 6px; }
.checkout-campaign-foot > span { color: var(--muted); font: var(--checkout-caption); }
.checkout-campaign-foot .text-button { flex-shrink: 0; min-height: 36px; padding: 6px 0 6px 8px; color: var(--dark); font-size: 13px; text-decoration: none; }
.checkout-pricing-error { margin: 10px 0 0; color: #b83222; font: var(--checkout-caption); }
.checkout-amount dl { margin: 0; }
.checkout-amount dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 4px 0; font-size: 14px; }
.checkout-amount dt { min-width: 0; overflow-wrap: anywhere; }
.checkout-amount dd { flex-shrink: 0; }
.checkout-amount dd { margin: 0; color: var(--checkout-price); text-align: right; overflow-wrap: anywhere; }
.checkout-amount dl > .checkout-amount-total { align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-weight: 600; }
.checkout-amount-total dd { font-size: 24px; font-weight: 500; }
.checkout-amount > p { margin-top: 8px; color: var(--muted); font: var(--checkout-caption); }
.checkout-caption { margin: 14px 20px; color: var(--muted); font: var(--checkout-caption); text-align: center; }
.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: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #e3e7de; background: #fff; }
.checkout-submit-bar > div { min-width: 0; }
.checkout-submit-bar > div > span { display: block; color: var(--muted); font: var(--checkout-caption); }
.checkout-submit-bar strong { display: block; margin-top: 2px; color: var(--checkout-price); font-size: 26px; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.checkout-submit-bar .primary { flex-shrink: 0; min-height: 48px; padding: 12px 18px; background: var(--checkout-green); color: #fff; border-radius: 6px; font-size: 16px; font-weight: 600; }
.checkout-submit-bar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.checkout-empty { text-align: center; }
.checkout-page > .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 { 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: 23px; }
}

.order-detail {
  --order-green: #65b018;
  --order-price: #f07821;
  --order-muted: #999;
  --order-title: 700 32px/1.2 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --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: #ededed;
  color: #333;
  font: var(--order-body);
}
.order-detail-header { padding: calc(16px + env(safe-area-inset-top)) 24px 16px; background: var(--order-green); color: #fff; }
.order-detail-header.is-cancelled { background: #72776e; }
.order-detail-back { display: grid; place-items: center; width: 44px; height: 36px; margin-left: -12px; margin-bottom: 4px; }
.order-detail-back svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.order-detail-back:focus-visible { outline-color: #fff; }
.order-detail-context { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; }
.order-detail-context p { min-width: 0; overflow-wrap: anywhere; }
.order-detail-context > span { flex-shrink: 0; }
.order-detail-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.order-detail-heading > div { min-width: 0; }
.order-detail-heading h1 { font: var(--order-title); letter-spacing: 0; overflow-wrap: anywhere; }
.order-detail-heading .order-detail-state { margin: 10px 0 4px; color: inherit; font-size: 22px; font-weight: 600; line-height: 1.3; }
.order-detail-heading p { margin-top: 2px; font: var(--order-caption); }
.order-detail-status-icon { flex: 0 0 56px; width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 5; }
.order-detail > .panel { margin: 14px 13px 0; padding: 16px; background: #fff; border-radius: 9px; }
.order-detail > .order-detail-items { padding: 0 10px; }
.order-detail-line { display: flex; gap: 14px; padding: 16px 2px; }
.order-detail-line + .order-detail-line { border-top: 1px dashed #ddd; }
.order-detail-image { flex: 0 0 90px; width: 90px; height: 90px; object-fit: cover; border-radius: 0; }
.order-detail-placeholder { background: #ccc; }
.order-detail-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.order-detail-copy h2 { font: var(--order-body); overflow-wrap: anywhere; }
.order-detail-options { color: var(--order-muted); font: var(--order-caption); overflow-wrap: anywhere; }
.order-detail-line-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; }
.order-detail-line-bottom strong { color: var(--order-price); font-weight: 400; overflow-wrap: anywhere; }
.order-detail > .order-detail-amount { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; font: var(--order-caption); }
.order-detail-amount > p { margin-left: auto; }
.order-detail-amount > dl { flex-basis: 100%; margin: 0; }
.order-detail-amount dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; }
.order-detail-amount dt { min-width: 0; overflow-wrap: anywhere; }
.order-detail-amount dd { margin: 0; flex-shrink: 0; }
.order-detail-amount strong { margin-left: 8px; color: #111; font-size: 18px; font-weight: 400; }
.order-detail-info h2 { margin-bottom: 12px; font: var(--order-body); }
.order-detail-info dl { margin: 0; }
.order-detail-info dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 3px 0; }
.order-detail-info dt { flex-shrink: 0; }
.order-detail-info dd { min-width: 0; margin: 0; color: var(--order-muted); text-align: right; overflow-wrap: anywhere; }
.order-detail-info .order-detail-note { margin-top: 20px; }
.order-detail-note dd { white-space: pre-wrap; }
.order-detail-info .order-detail-payment-summary { margin-top: 24px; }
.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; }
@media (max-width: 360px) {
  .order-detail { --order-title: 700 28px/1.2 Inter, 'PingFang SC', 'Microsoft YaHei', sans-serif; }
  .order-detail-header { padding-right: 20px; padding-left: 20px; }
  .order-detail-status-icon { flex-basis: 44px; width: 44px; height: 44px; }
  .order-detail-image { flex-basis: 76px; width: 76px; height: 76px; }
  .order-detail-line { gap: 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; }

.scene-settings{margin:12px 16px;padding:14px}.scene-choices{display:flex;gap:10px}.scene-choices [aria-pressed="true"]{background:#247b28;color:#fff;border-color:#247b28}.scene-settings p{margin:8px 0 0}
