/* Stores Hub Online — customer page. Its own small sheet (customer-facing brand, not the staff kit), using the
   kit's token NAMES and scale (--sh-*: ink/line/surface/radius/shadow) plus one brand accent. Mobile first. */
:root {
  --sh-ground: #F7F3EF; --sh-surface: #FFFFFF; --sh-surface-sunk: #F4EFEA;
  --sh-ink: #221A16; --sh-ink-2: #5A4E47; --sh-ink-3: #8A7D75;
  --sh-line: #E6DDD5; --sh-line-soft: #F0E9E3;
  --sh-accent: #6B2D1F; --sh-accent-ink: #5A2418; --sh-accent-wash: #F6E9E4;
  --sh-good: #12704A; --sh-good-wash: #E4F3EB; --sh-warn: #8A5A00; --sh-warn-wash: #FBF0DC;
  --sh-crit: #B92B22; --sh-crit-wash: #FBE9E7;
  --sh-r: 12px; --sh-r-sm: 8px; --sh-r-pill: 999px;
  --sh-ui: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sh-shadow: 0 1px 2px rgba(34, 26, 22, .06); --sh-shadow-pop: 0 -12px 32px -8px rgba(34, 26, 22, .25);
  --o-tap: 48px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sh-ground: #15110F; --sh-surface: #1F1A17; --sh-surface-sunk: #26201C;
    --sh-ink: #F1EAE5; --sh-ink-2: #C2B5AC; --sh-ink-3: #8E8178;
    --sh-line: #3A312B; --sh-line-soft: #2C2521;
    --sh-accent: #E9A48F; --sh-accent-ink: #F2BBA9; --sh-accent-wash: #3A2620;
    --sh-good: #57C08C; --sh-good-wash: #14301F; --sh-warn: #D9A441; --sh-warn-wash: #33260C;
    --sh-crit: #EC7A70; --sh-crit-wash: #351815;
    --sh-shadow: 0 1px 2px rgba(0,0,0,.4); --sh-shadow-pop: 0 -12px 32px -8px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--sh-ground); color: var(--sh-ink); font: 16px/1.4 var(--sh-ui); }
body.no-scroll { overflow: hidden; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--sh-accent); outline-offset: 2px; }

.o-app { max-width: 640px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.o-head { position: sticky; top: 0; z-index: 5; background: var(--sh-accent); color: #fff; text-align: center;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
@media (prefers-color-scheme: dark) { .o-head { background: #4A1F15; } }
.o-head__brand { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.o-head__mall { font-size: 24px; font-weight: 800; line-height: 1.15; }
.o-head__hours { font-size: 12px; opacity: .85; margin-top: 2px; min-height: 1em; }
.o-main { flex: 1; padding: 12px 16px 24px; }
body.has-bar .o-main { padding-bottom: 104px; }
.o-foot { text-align: center; font-size: 12px; color: var(--sh-ink-3); padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
body.has-bar .o-foot { padding-bottom: 104px; }
.o-foot a { color: inherit; }

.o-panel { background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r); padding: 14px; box-shadow: var(--sh-shadow); margin: 0 0 12px; }
.o-empty { text-align: center; padding: 28px 18px; }
.o-empty h2 { margin: 0 0 8px; font-size: 20px; }
.o-muted { color: var(--sh-ink-3); }
.o-small { font-size: 13px; }
.o-loading { text-align: center; color: var(--sh-ink-3); padding: 48px 0; }
.o-h1 { font-size: 22px; margin: 4px 0 2px; }
.o-where { color: var(--sh-ink-2); margin: 0 0 12px; font-size: 15px; }
.o-link { background: none; border: 0; padding: 10px 0; min-height: var(--o-tap); color: var(--sh-accent); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.o-err { background: var(--sh-crit-wash); color: var(--sh-crit); border-radius: var(--sh-r-sm); padding: 10px 12px; margin-top: 10px; font-weight: 600; }
.o-warn { background: var(--sh-warn-wash); color: var(--sh-warn); border-radius: var(--sh-r-sm); padding: 10px 12px; margin-top: 12px; font-weight: 600; }
.o-pre { white-space: pre-wrap; text-align: left; background: var(--sh-surface-sunk); border-radius: var(--sh-r-sm); padding: 10px; font-size: 12px; overflow-x: auto; }

/* buttons */
.o-btn { min-height: var(--o-tap); padding: 0 18px; border-radius: var(--sh-r-pill); border: 1px solid var(--sh-line); background: var(--sh-surface); font-weight: 700; transition: transform .08s; }
.o-btn:active { transform: scale(.98); }
.o-btn--primary { background: var(--sh-accent); border-color: var(--sh-accent); color: #fff; }
@media (prefers-color-scheme: dark) { .o-btn--primary { color: #22140F; } }
.o-btn--block { width: 100%; font-size: 17px; }
.o-btn[aria-disabled="true"] { opacity: .55; }

/* bottom bar */
.o-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: var(--sh-surface); border-top: 1px solid var(--sh-line);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: var(--sh-shadow-pop); }
.o-bar > * { max-width: 608px; margin: 0 auto; display: block; }

/* menu */
.o-tabs { position: sticky; top: var(--o-headh, 78px); z-index: 4; display: flex; gap: 8px; overflow-x: auto; padding: 8px 16px; margin: -12px -16px 8px;
  background: var(--sh-ground); border-bottom: 1px solid var(--sh-line-soft); scrollbar-width: none; }
.o-tabs::-webkit-scrollbar { display: none; }
.o-tabs a { flex: none; padding: 8px 14px; border-radius: var(--sh-r-pill); background: var(--sh-surface); border: 1px solid var(--sh-line); color: var(--sh-ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.o-sec { scroll-margin-top: 140px; }
.o-sec__h { font-size: 19px; margin: 18px 0 8px; }
.o-item { display: flex; gap: 12px; width: 100%; text-align: left; background: var(--sh-surface); border: 1px solid var(--sh-line); border-radius: var(--sh-r);
  padding: 12px; margin: 0 0 10px; align-items: center; min-height: 88px; transition: transform .08s; }
.o-item:active { transform: scale(.98); }
.o-item__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.o-item__name { font-weight: 700; font-size: 16px; }
.o-item__desc { color: var(--sh-ink-3); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.o-item__price { font-weight: 700; color: var(--sh-accent); }
.o-item__img { width: 84px; height: 84px; border-radius: var(--sh-r-sm); object-fit: cover; flex: none; background: var(--sh-surface-sunk); }

/* item sheet */
.o-sheet-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 10; }
.o-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 640px; margin: 0 auto; max-height: 92vh; display: flex; flex-direction: column;
  background: var(--sh-surface); border-radius: 18px 18px 0 0; box-shadow: var(--sh-shadow-pop); }
.o-sheet__head { position: relative; flex: none; }
.o-sheet__img { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 18px 18px 0 0; }
.o-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 24px; line-height: 1; }
.o-sheet__head:not(:has(img)) { min-height: 56px; }
.o-sheet__body { overflow-y: auto; padding: 4px 16px 12px; -webkit-overflow-scrolling: touch; }
.o-sheet__title { margin: 12px 0 4px; font-size: 22px; }
.o-sheet__foot { flex: none; display: flex; gap: 12px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sh-line); }
.o-sheet__foot .o-btn { flex: 1; }
.o-group { border: 0; padding: 0; margin: 14px 0 0; }
.o-group legend { font-weight: 700; padding: 0; margin-bottom: 6px; display: flex; gap: 8px; align-items: baseline; width: 100%; }
.o-req { font-size: 12px; font-weight: 700; color: var(--sh-accent); background: var(--sh-accent-wash); border-radius: var(--sh-r-pill); padding: 1px 8px; }
.o-group legend .o-muted { font-size: 13px; font-weight: 400; }
.o-opt { display: flex; align-items: center; gap: 12px; min-height: var(--o-tap); border-bottom: 1px solid var(--sh-line-soft); }
.o-opt input { width: 22px; height: 22px; accent-color: var(--sh-accent); flex: none; margin: 0; }
.o-opt span:nth-child(2) { flex: 1; }
.o-opt__p { color: var(--sh-ink-2); font-size: 14px; }
.o-qty { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.o-qty__b { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--sh-line); background: var(--sh-surface); font-size: 20px; line-height: 1; }
.o-qty--sm .o-qty__b { width: 36px; height: 36px; font-size: 16px; }
.o-qty--sm { gap: 6px; }

/* cart / lines */
.o-line { display: flex; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--sh-line-soft); }
.o-line__main { flex: 1; min-width: 0; }
.o-line__name { font-weight: 700; }
.o-line__sub { color: var(--sh-ink-3); font-size: 13px; }
.o-line__p { font-weight: 700; min-width: 64px; text-align: right; }
.o-sum { display: flex; justify-content: space-between; padding: 6px 0; color: var(--sh-ink-2); }
.o-sum--total { color: var(--sh-ink); font-weight: 800; font-size: 18px; border-top: 1px solid var(--sh-line); margin-top: 6px; padding-top: 10px; }

/* forms */
.o-form { display: flex; flex-direction: column; gap: 14px; }
.o-field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
.o-field .o-muted { font-weight: 400; }
.o-input { min-height: var(--o-tap); border: 1px solid var(--sh-line); border-radius: var(--sh-r-sm); padding: 0 12px; background: var(--sh-surface); font-size: 16px; width: 100%; }
select.o-input { appearance: auto; }
.o-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--sh-ink-2); padding: 4px 0; }
.o-check input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--sh-accent); }

/* confirm */
.o-confirm { text-align: center; padding: 28px 16px; }
.o-confirm__q { color: var(--sh-ink-3); font-weight: 600; }
.o-confirm__store { font-size: 18px; font-weight: 700; margin-top: 6px; }
.o-confirm__mall { font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--sh-accent); }
.o-confirm__ask { font-size: 20px; font-weight: 700; margin-top: 16px; }

/* tip */
.o-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin-bottom: 12px; }
.o-chip { min-height: 60px; border-radius: var(--sh-r-sm); border: 1px solid var(--sh-line); background: var(--sh-surface); font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.o-chip small { font-weight: 400; color: var(--sh-ink-3); }
.o-chip.is-on { border-color: var(--sh-accent); background: var(--sh-accent-wash); color: var(--sh-accent-ink); box-shadow: inset 0 0 0 1px var(--sh-accent); }

/* pay */
.o-pay #card { min-height: 90px; }
.o-apple { -webkit-appearance: -apple-pay-button; -apple-pay-button-type: plain; -apple-pay-button-style: black; height: 48px; width: 100%; margin-bottom: 10px; cursor: pointer; }
#google-pay { min-height: 0; }
.o-or { text-align: center; color: var(--sh-ink-3); font-size: 13px; margin: 12px 0; }

/* status */
.o-status { text-align: center; padding: 26px 16px; }
.o-status__no { color: var(--sh-ink-3); font-weight: 600; }
.o-status__big { font-size: 34px; font-weight: 800; margin: 6px 0; }
.o-status.is-ready { background: var(--sh-good-wash); border-color: var(--sh-good); }
.o-status.is-ready .o-status__big { color: var(--sh-good); }
.o-status.is-bad .o-status__big { color: var(--sh-crit); }
.o-track { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.o-track span { padding: 6px 14px; border-radius: var(--sh-r-pill); background: var(--sh-surface-sunk); color: var(--sh-ink-3); font-weight: 700; font-size: 14px; }
.o-track span.on { background: var(--sh-accent); color: #fff; }

/* store list */
.o-list { display: flex; flex-direction: column; gap: 10px; }
.o-store { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--sh-r); background: var(--sh-surface); border: 1px solid var(--sh-line); text-decoration: none; color: var(--sh-ink); }
.o-store__name { font-size: 13px; color: var(--sh-ink-3); text-transform: uppercase; letter-spacing: .06em; }
.o-store__mall { font-size: 22px; font-weight: 800; }

/* legal */
.o-legal h2 { font-size: 17px; margin: 18px 0 6px; }
.o-legal p, .o-legal li { color: var(--sh-ink-2); }
.o-btn--review { display: flex; align-items: center; justify-content: center; width: 100%; margin: 12px 0 4px; text-decoration: none; color: inherit; background: var(--sh-surface); border-color: var(--sh-accent); }
.o-hint { display:block; font-size:12px; color: var(--sh-muted, #6b5a52); margin-top:4px; font-weight:400; }
