/* New-stall steps, setup checklist, photo notice and store deletion. */
.wizard { display: grid; gap: 14px; }
.wizard h2 { font-size: 24px; font-weight: 800; line-height: 1.15; text-wrap: balance; }
.wiz-sub { margin-top: -8px; color: var(--ink-2); }
.wiz-top { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.wiz-top .sm { flex: none; }
.wiz-bar { display: block; flex: 1; height: 6px; overflow: hidden; border-radius: 3px; background: var(--bg-2); }
.wiz-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width 240ms cubic-bezier(0.22, 1, 0.36, 1); }
.form-err { padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--danger) 12%, var(--bg)); color: var(--danger); font-size: 15px; font-weight: 650; }
.agree { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 15px; line-height: 1.4; cursor: pointer; }
.agree input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.agree a { color: var(--accent-ink); text-decoration: underline; }
.legal-links { display: flex; justify-content: center; gap: 18px; margin-top: 8px; font-size: 13px; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: underline; }

.setup { display: grid; gap: 10px; margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--bg); }
.setup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 17px; }
.setup .wiz-bar { flex: none; }
.setup ol { display: grid; gap: 2px; margin: 2px 0 0; padding: 0; list-style: none; }
.setup li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 44px; padding: 4px 0; color: var(--ink-2); font-weight: 600; }
.setup li .grow { min-width: 120px; }
.setup li.now { color: var(--ink); font-weight: 800; }
.setup li.done { color: var(--ink-2); font-weight: 500; text-decoration: line-through; }
.setup small { display: block; color: var(--ink-2); font-size: 13px; font-weight: 500; }
.setup .tick { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--bg-2); font-size: 13px; font-weight: 800; text-decoration: none; }
.setup li.now .tick { background: var(--accent); color: var(--on-accent); }
.setup li.done .tick { background: var(--ok); color: var(--on-ok); }
.setup-acts { display: flex; gap: 6px; }
.setup-acts .btn { text-decoration: none; }
.setup-code { display: flex; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.setup.ready { display: flex; align-items: center; gap: 12px; background: var(--accent-soft); }
.setup.ready .sm { display: block; }

.thumb-wrap { position: relative; display: block; flex: none; line-height: 0; }
.sample-tag { display: inline-block; padding: 2px 5px; border-radius: 5px; background: rgb(0 0 0 / 0.72); color: #fff; font-size: 10px; font-weight: 750; line-height: 1.2; }
.thumb-wrap .sample-tag { position: absolute; left: 3px; bottom: 3px; pointer-events: none; }
.sample-note { display: flex; align-items: center; gap: 6px; margin-top: 6px; }

.closing-strip { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 16px; background: var(--warn-soft); color: var(--warn-ink); font-size: 14px; font-weight: 700; }
.closing-panel { display: grid; gap: 8px; margin-top: 10px; padding: 14px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-ink); }
#delete-store { margin-top: 6px; }
.delete-list { display: grid; gap: 8px; padding-left: 20px; list-style: disc; }

/* One review: tap a dish photo to change it. */
.rv-photo { position: relative; display: block; width: 52px; height: 52px; padding: 0; border: 0; border-radius: 12px; background: none; }
.rv-cam { position: absolute; top: -5px; right: -5px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); color: var(--ink); box-shadow: 0 1px 4px rgb(0 0 0 / 0.3); }
.rv-cam .ic { width: 14px; height: 14px; }
.rv-line { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.rv-line .thumb { width: 52px; height: 52px; border-radius: 12px; }
.rv-line .grow { min-width: 0; }
.picker-acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Payment check: the amount to find in the bank app. */
.bank-check { display: grid; gap: 2px; justify-items: center; margin-top: 10px; padding: 14px 12px; border-radius: 14px; background: var(--warn-soft); color: var(--warn-ink); text-align: center; }
.bank-check b { font-size: 36px; font-weight: 850; line-height: 1.1; letter-spacing: -0.02em; }
.bank-check b.bank-ref { margin-top: 4px; font-size: 26px; letter-spacing: 0; }
.opt-line { min-height: 48px; gap: 6px; }
.opt-line .opt-name { flex: 1 1 0; width: 0; }
.opt-line .price-in input { width: 66px; }
.opt-line .icon-btn { flex: none; width: 40px; height: 40px; background: transparent; }
.opt-ideas { margin-top: 8px; }
.new-cat { display: grid; gap: 10px; margin-top: 14px; padding: 14px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--r-md); }
.new-cat > b { font-size: 17px; }
.new-cat input { min-width: 0; width: 0; flex: 1 1 0; }
.gone { padding: 2px 0; color: var(--ink-2); }
.gone .row { min-height: 44px; }
.gone .btn.sm { flex: none; color: var(--accent-ink); }
.gone-all { display: flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 650; cursor: pointer; }
.gone-all input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--accent); }
.opt-add { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--accent-ink); font-size: 15px; font-weight: 700; }
.cat-scan { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--accent); color: var(--on-accent); }
.cat-scan b { font-size: 18px; }
.cat-q { margin-top: 12px; }
.cat-group { border-bottom: 1px solid var(--line); }
.cat-group summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 58px; cursor: pointer; }
.cat-group summary::-webkit-details-marker { display: none; }
.cat-group summary b { font-size: 17px; }
.cat-group summary > .ic { color: var(--ink-2); transition: transform 180ms var(--ease); }
.cat-group[open] summary > .ic { transform: rotate(180deg); }
.cat-group summary .btn.sm { flex: none; min-height: 38px; padding: 0 12px; font-size: 14px; }
.cat-row { display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 5px 0; cursor: pointer; }
.cat-row + .cat-row { border-top: 1px solid var(--line); }
.cat-row .ph, .cat-row .thumb { flex: none; width: 46px; height: 46px; border-radius: 12px; }
.cat-row .ph .ic { width: 22px; height: 22px; }
.cat-row .grow { display: grid; gap: 1px; min-width: 0; }
.cat-row b { font-size: 16px; font-weight: 650; line-height: 1.2; overflow-wrap: anywhere; }
.tpl-start .lane { margin-top: 12px; }
.tpl-rail { display: flex; gap: 10px; min-height: 142px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
.tpl-rail::-webkit-scrollbar { display: none; }
.tpl { flex: none; display: grid; align-content: start; gap: 1px; width: 116px; padding: 0 0 9px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); text-align: center; scroll-snap-align: center; transition: transform 150ms var(--ease); }
.tpl:active { transform: scale(0.97); }
.tpl:disabled { opacity: 0.55; }
.tpl img, .tpl-none { display: grid; place-items: center; width: 100%; height: 84px; object-fit: cover; background: var(--bg-2); color: var(--ink-2); }
.tpl b { padding: 7px 6px 0; font-size: 15px; font-weight: 750; line-height: 1.15; }
.tpl span:last-child { font-size: 13px; color: var(--ink-2); }
.tpl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tpl-grid .tpl { width: auto; }
.place-chosen { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 10px 8px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); }
.place-chosen .ic, .place-opt .ic { color: var(--accent-ink); }
.place-chosen .grow, .place-opt .grow { display: grid; gap: 1px; text-align: left; }
.place-list { display: grid; gap: 6px; margin-top: 8px; }
.place-list:empty { display: none; }
.place-opt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 56px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); }
.save-ask { display: grid; gap: 6px; justify-items: center; padding: 24px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-ink); text-align: center; }
.save-ask b { font-size: 44px; font-weight: 850; line-height: 1; letter-spacing: -0.02em; }
.save-ask span { font-size: 16px; font-weight: 650; }
.save-what { margin-top: 16px; font-size: 18px; font-weight: 750; text-align: center; }
.save-note { justify-content: center; margin-top: 6px; }
.oc.pay.waiting { border-color: var(--line); }
.oc.pay.waiting .bank-check { background: var(--bg-2); color: var(--ink); }
.bank-opt { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.bank-opt + .bank-opt { margin-top: 12px; }
.bank-opt > .row b { font-size: 18px; }
.set-max { margin-top: 8px; }
.set-cat { margin-top: 12px; }
.set-cat .row { min-height: 44px; }
.set-cat .btn.sm { flex: none; color: var(--accent-ink); }
.set-picks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.set-pick { position: relative; cursor: pointer; }
.set-pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.set-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); font-size: 15px; font-weight: 650; }
.set-pick input:checked + span { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.set-pick input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }
.wizard h1 { font-size: 26px; font-weight: 800; line-height: 1.15; text-wrap: balance; }
.link-btn { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent-ink); font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.agree-note { color: var(--ink-2); font-size: 14px; line-height: 1.45; text-align: center; text-wrap: pretty; }
.agree-note a { color: var(--accent-ink); text-decoration: underline; }
.first-menu { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding-top: 16px; }
.first-menu > h2 { font-size: 26px; font-weight: 800; line-height: 1.15; }
.first-menu .scan-card { margin-top: 0; }
.first-menu .tpl-start .lane { margin-top: 4px; }
.menu-help { margin-top: 10px; color: var(--ink-2); font-size: 14px; line-height: 1.45; text-align: center; }
.menu-help a { color: var(--accent-ink); font-weight: 700; text-decoration: underline; overflow-wrap: anywhere; }
.ready-tick { display: grid; place-items: center; width: 60px; height: 60px; margin: 2px auto 12px; border-radius: 50%; background: var(--ok); color: var(--on-ok); }
.stall-code { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); }
.stall-code .grow { min-width: 0; }
.stall-code b, .stall-code .num, .stall-code small { display: block; overflow-wrap: anywhere; }
.stall-code small { color: var(--ink-2); font-size: 13px; }
.stall-code .btn { flex: none; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.page-tile { position: relative; margin: 0; }
.page-tile img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.page-tile figcaption { margin-top: 4px; color: var(--ink-2); font-size: 13px; font-weight: 650; text-align: center; }
.page-tile .icon-btn { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; background: var(--bg); box-shadow: 0 1px 4px rgb(0 0 0 / 0.25); }
.page-add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.page-add .btn { min-width: 0; padding-inline: 8px; font-size: 15px; }
.quick { display: grid; gap: 14px; }
.quick-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 10px; align-items: end; }
.quick-row input { width: 100%; }
.quick-foot { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.quick-h { margin: 18px 0 6px; font-size: 16px; font-weight: 800; }
.group-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.group-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--r-pill); background: var(--bg); color: var(--ink); font-size: 15px; font-weight: 650; }
.group-chip.new { border-style: dashed; color: var(--accent-ink); }
.group-chip[aria-checked="true"] { border-style: solid; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.group-pick input[name="new_group"] { width: 100%; margin-top: 8px; }
.dish-more { margin-top: 0; }
