/* HawgWings brand: navy #00123B, blue #255286, sky #61BEF3, pink #FCB1A7, gold #FEC514 */
:root {
  --navy: #00123B; --blue: #255286; --sky: #61BEF3; --pink: #FCB1A7; --gold: #FEC514;
  --ink: #1b2233; --muted: #5b6478; --line: #d9dee8; --bg: #f4f7fb;
  --ok: #1f7a3a; --warn: #8a5a00; --bad: #b3261e;
}
* { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; }
.test-banner { background: var(--gold); color: var(--navy); text-align: center; font-weight: 600; padding: 4px 8px; font-size: .9rem; }
.top { background: var(--navy); padding: 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* "? Help" in the header, and the page tours (js/core/tour.js) */
.help-btn { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.75); border-radius: 20px; padding: 6px 14px;
  font-weight: 700; font-size: .95rem; cursor: pointer; white-space: nowrap; }
.help-btn:hover, .help-btn:focus-visible { background: rgba(255,255,255,.15); border-color: #fff; }
.tour-shade { position: fixed; inset: 0; z-index: 9000; background: transparent; }
.tour-shade.dim { background: rgba(10, 20, 40, .55); }
.tour-hole { position: fixed; z-index: 9001; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 4px var(--gold), 0 0 0 9999px rgba(10, 20, 40, .55); transition: all .15s ease; }
.tour-tip { position: fixed; z-index: 9002; background: #fff; border-radius: 12px; padding: 14px 16px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); color: var(--ink); }
.tour-tip .tour-count { color: var(--muted); font-size: .8rem; font-weight: 600; }
.tour-tip .tour-h { font-size: 1.1rem; margin: 2px 0 6px; color: var(--navy); }
.tour-tip p { margin: 0 0 8px; font-size: .95rem; line-height: 1.45; }
.tour-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; }
.tour-nav { display: flex; gap: 8px; }
.tour-nav .btn, .tour-nav .btn-secondary { margin: 0; padding: 8px 16px; }
.tour-skip { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 6px 0; font-size: .9rem; }
@media print { .help-btn, .tour-shade, .tour-hole, .tour-tip { display: none !important; } }
.top img { display: block; height: auto; max-width: 150px; }
.wrap { max-width: 920px; margin: 24px auto; padding: 0 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 20px 22px; margin-bottom: 18px; }
.card.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
h1 { font-size: 1.6rem; margin: 0 0 12px; color: var(--navy); }
h2 { font-size: 1.15rem; margin: 20px 0 8px; color: var(--blue); }
.card > h2:first-child, .row-between h2 { margin-top: 0; }
label { display: block; font-weight: 600; margin: 12px 0 4px; }
label.check { font-weight: 400; display: flex; gap: 8px; align-items: center; }
input[type=email], input[type=search], input[type=password], input[type=text], input[type=tel], input:not([type]) {
  width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff;
}
input:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }
.btn, .btn-secondary, .btn-danger { display: inline-block; border: 0; border-radius: 8px; padding: 10px 18px; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; margin-top: 16px; }
.btn { background: var(--blue); color: #fff; }
.btn:hover { background: var(--navy); }
.btn[aria-disabled=true] { opacity: .5; }
.btn-secondary { background: #e8eef7; color: var(--navy); margin-top: 0; }
.btn-danger { background: #fbe9e7; color: var(--bad); }
.btn-link { background: none; border: 0; color: var(--blue); cursor: pointer; text-decoration: underline; padding: 0 6px; font-size: .95rem; margin-top: 12px; }
.msg { padding: 10px 12px; border-radius: 8px; background: #e8eef7; }
.msg.error { background: #fde8e6; color: var(--bad); }
.msg.ok { background: #e5f4ea; color: var(--ok); }
.warn { background: #fff6d6; color: var(--warn); padding: 8px 12px; border-radius: 8px; }
.note { background: #fff1ee; border-left: 4px solid var(--pink); padding: 8px 12px; }
.hint, .muted { color: var(--muted); font-size: .92rem; }
.key { font-family: Consolas, "Courier New", monospace; font-size: 1.15rem; letter-spacing: .04em; background: #f0f4fa; padding: 10px 12px; border-radius: 8px; word-break: break-all; }
.codes { font-family: Consolas, "Courier New", monospace; font-size: 1.1rem; columns: 2; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
ul.plain { list-style: none; padding: 0; margin: 0; }
ul.plain li { padding: 8px 0; border-bottom: 1px solid var(--line); }
table.checks { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: .95rem; }
table.checks th, table.checks td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.state-pass .state { color: var(--ok); font-weight: 700; }
.state-warn .state { color: var(--warn); font-weight: 700; }
.state-fail .state { color: var(--bad); font-weight: 700; }
.state-fail { background: #fff5f4; }
@media print {
  .top, .test-banner, button, .btn, label.check, #msg { display: none !important; }
  .card { border: 0; }
}
select { width: 100%; padding: 10px 12px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
textarea.config { width: 100%; font-family: Consolas, "Courier New", monospace; font-size: .85rem; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fc; }
pre { background: #f0f4fa; padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-word; }
code { background: #f0f4fa; padding: 1px 5px; border-radius: 4px; word-break: break-all; }
.result { border-top: 1px solid var(--line); margin-top: 14px; }
.qr-wrap { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.qr-wrap canvas { border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 220px; height: auto; }
.qr-wrap > div { flex: 1 1 240px; }
.key a { color: var(--blue); }
/* stage 2: menu page */
.cat-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.items { list-style: none; padding: 0; margin: 0; }
.items > li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.items .nm { font-weight: 600; }
.items .pr { color: var(--navy); white-space: nowrap; }
.items .acts { display: flex; gap: 10px; align-items: center; }
/* Wide screens: the price and buttons stay on the right of every row, however long the
   description is (the text wraps instead). Phones still stack them under the text. */
@media (min-width: 760px) {
  .items > li { flex-wrap: nowrap; }
  .items > li > div:first-child { flex: 1 1 auto; min-width: 0; }
  .items > li > .it-main { flex: 1 1 auto; min-width: 0; }
  .items > li > .acts { flex: none; }
  .items .acts .pr { min-width: 8.5em; text-align: right; }
}
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: #e8eef7; color: var(--navy); margin-left: 6px; }
.badge.off { background: #fde8e6; color: var(--bad); }
.badge.warnb { background: #fff6d6; color: var(--warn); }
.sold { font-size: .9rem; display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 400; }
.btn-small { border: 0; border-radius: 8px; padding: 6px 12px; font-size: .92rem; font-weight: 600; cursor: pointer; background: var(--blue); color: #fff; }
.preview { position: sticky; bottom: 0; z-index: 10; background: #fff; max-height: 80vh; overflow-y: auto; box-shadow: 0 -4px 18px rgba(0,0,0,.12); border-top: 3px solid var(--blue); }  /* above the category tabs (z 5), below pop-ups (z 50) */
.pv-group { border-top: 1px solid var(--line); padding: 8px 0; }
.pv-group h3 { font-size: 1rem; margin: 4px 0; color: var(--navy); }
.pv-rule { font-weight: 400; color: var(--muted); font-size: .88rem; margin-left: 6px; }
.pv-opt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 3px 0; }
.pv-opt > label { display: flex; gap: 6px; align-items: center; font-weight: 400; margin: 0; min-width: 210px; }
.pv-opt select, .pv-opt input[type=number], .pv-line select { width: auto; padding: 4px 6px; font-size: .92rem; }
.pv-opt input[type=number], .pv-line input[type=number] { width: 4.5em; padding: 4px 6px; font-size: .95rem; border: 1px solid var(--line); border-radius: 6px; }
.pv-child { margin-left: 26px; border-left: 3px solid var(--line); padding-left: 10px; }
.pv-line { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.pv-line label { margin: 0; }
.pv-result table { width: 100%; border-collapse: collapse; font-size: .95rem; margin-top: 8px; }
.pv-result td { padding: 3px 6px; border-bottom: 1px solid var(--line); }
.pv-result td.n { text-align: right; white-space: nowrap; }
.pv-result tr.tot td { font-weight: 700; border-top: 2px solid var(--navy); }
.pv-result tr.sub td:first-child { padding-left: 22px; color: var(--muted); }
[hidden] { display: none !important; }
/* stage 2b: menu editor */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.btn-small.alt { background: #e8eef7; color: var(--navy); }
.btn-small.danger { background: #fbe9e7; color: var(--bad); }
.btn-icon { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 2px 8px; cursor: pointer; font-size: .9rem; color: var(--navy); }
.store-opts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.store-opts label.check { margin: 0; }
.cat-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.overlay { position: fixed; inset: 0; background: rgba(0, 18, 59, .45); overflow-y: auto; z-index: 50; padding: 12px; }
.overlay .editor { max-width: 980px; margin: 10px auto 40px; }
.ed-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.ed-actions .btn, .ed-actions .btn-secondary, .ed-actions .btn-danger { margin-top: 0; }
.ed-grid { overflow-x: auto; }
.ed-grid table { border-collapse: collapse; font-size: .92rem; }
.ed-grid th, .ed-grid td { border-bottom: 1px solid var(--line); padding: 4px 5px; text-align: left; vertical-align: middle; white-space: nowrap; }
.ed-grid th { font-size: .82rem; color: var(--muted); font-weight: 600; }
.ed-grid input[type=text] { padding: 5px 6px; font-size: .92rem; border: 1px solid var(--line); border-radius: 6px; }
.ed-grid input.money { width: 5.2em; text-align: right; }
.ed-grid input.nm { width: 12em; }
.ed-grid input.num { width: 3.6em; }
.ed-grid input.bad, .ed-field input.bad { border-color: var(--bad); background: #fff5f4; }
.ed-grid tr.fill td { background: #f7f9fc; }
.ed-field { margin: 10px 0; }
.ed-field label { margin: 0 0 4px; }
.ed-field textarea { width: 100%; min-height: 60px; padding: 8px 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.ed-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.ed-row label { margin: 0; }
.ed-row input.num { width: 4em; padding: 6px; border: 1px solid var(--line); border-radius: 6px; }
.ed-group { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.ed-group.on { border-color: var(--blue); background: #f7f9fc; }
.ed-group .sub { margin: 6px 0 0 26px; }
.ed-defaults { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.ed-defaults label { font-weight: 400; margin: 0; display: flex; gap: 5px; align-items: center; }
.days { display: flex; gap: 10px; flex-wrap: wrap; }
.days label { font-weight: 400; margin: 0; display: flex; gap: 4px; align-items: center; }
.ed-sugcats { margin: 4px 0 0 24px; }
.ed-sugcats .days label:has(input:disabled) { color: var(--muted, #777); }
.ed-section { font-size: 1.02rem; color: var(--navy); margin: 18px 0 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.ed-offered { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 2px 14px; margin: 4px 0 8px; }
.ed-offered label { font-weight: 400; margin: 0; display: flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.ed-group details { margin-top: 6px; }
.ed-group summary { cursor: pointer; color: var(--navy); font-size: .92rem; }
.add-col select { width: auto; max-width: 100%; font-size: .9rem; padding: 6px 8px; color: var(--muted); }
.ed-grid input.need { border: 2px solid var(--bad); background: #fff0ee; }
.need-note { color: var(--bad); font-weight: 600; margin: 6px 0; }
.items > li.needs-fix { background: #fffaf0; border-left: 4px solid var(--gold); padding-left: 10px; }
.warn ul li .btn-icon { margin-left: 6px; }
/* stage 2c: customer view */
.cv-note { background: var(--gold); color: var(--navy); padding: 8px 12px; border-radius: 8px; margin-bottom: 14px; font-size: .92rem; }
.cv-note a { color: var(--navy); font-weight: 700; margin-left: 6px; }
.cv-hero { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.cv-hero h1 { margin: 0 0 4px; }
.cv-hero .open { font-weight: 700; color: var(--ok); }
.cv-hero .closed { font-weight: 700; color: var(--bad); }
.cv-status { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; width: 100%; margin: 4px 0 0; padding: 8px 10px;
  background: #f6f8fb; border: 1px solid var(--line); border-radius: 10px; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.cv-status:hover, .cv-status:focus-visible { border-color: var(--blue); }
.cv-status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.cv-status.open .dot { background: var(--ok); } .cv-status.open strong { color: var(--ok); }
.cv-status.closed .dot { background: var(--bad); } .cv-status.closed strong { color: var(--bad); }
.cv-status.warn .dot { background: #d98e04; } .cv-status.warn strong { color: var(--warn); }
.cv-status .sub { color: var(--ink); }
.cv-status .more { margin-left: auto; color: var(--blue); font-weight: 600; text-decoration: underline; white-space: nowrap; }
/* 7n: restaurant info window (native <dialog>: Esc, focus and top layer come from the browser) */
.cv-about { padding: 0; border: 0; border-radius: 14px; width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px);
  box-shadow: 0 12px 40px rgba(10, 20, 40, .35); color: var(--ink); }
.cv-about::backdrop { background: rgba(10, 20, 40, .55); }
.cv-about { overflow-y: auto; overscroll-behavior: contain; }
.cv-about .ab-in { padding: 0 18px 16px; }
.ab-head { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 1; background: #fff;
  padding: 12px 0 8px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.ab-head h2 { margin: 0; flex: 1; font-size: 1.3rem; }
.ab-x { border: 0; background: transparent; font-size: 2rem; line-height: 1; padding: 0 6px; cursor: pointer; color: var(--muted); min-width: 44px; min-height: 44px; }
.ab-now { cursor: default; }
.cv-about h3 { margin: 16px 0 6px; font-size: 1.05rem; color: var(--navy); }
.ab-week { width: 100%; border-collapse: collapse; }
.ab-week th, .ab-week td { text-align: left; vertical-align: top; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.ab-week th { font-weight: 600; white-space: nowrap; width: 40%; }
.ab-week tr.today th, .ab-week tr.today td { font-weight: 800; background: #fff8e1; }
.ab-week .closed { color: var(--bad); }
.ab-line { margin: 4px 0; } .ab-closure { margin: 6px 0 0; color: var(--bad); } .ab-tz { margin: 6px 0 0; font-size: .9rem; }
.ab-foot { margin-top: 16px; text-align: right; }
.ab-foot .btn { min-width: 120px; min-height: 44px; }
html:has(.cv-about[open]) { overflow: hidden; }
.cv-tags span { display: inline-block; background: #e8eef7; color: var(--navy); border-radius: 12px; padding: 2px 10px; font-size: .85rem; margin: 6px 6px 0 0; }
.cv-nav { position: sticky; top: 0; z-index: 5; background: var(--bg); display: flex; gap: 8px; overflow-x: auto; padding: 8px 0; margin-bottom: 8px; }
.cv-nav a { white-space: nowrap; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 6px 14px; color: var(--navy); text-decoration: none; font-weight: 600; font-size: .92rem; }
.cv-cat { margin: 18px 0 8px; scroll-margin-top: 60px; }
.cv-cat h2 { margin: 0; color: var(--navy); font-size: 1.3rem; }
.cv-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.cv-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 4px; }
.cv-item:hover { border-color: var(--blue); }
.cv-item .nm { font-weight: 700; }
.cv-item .ds { color: var(--muted); font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cv-item .pr { color: var(--navy); font-weight: 600; margin-top: auto; }
.cv-item[disabled] { opacity: .55; cursor: default; }
.cv-item { display: grid; grid-template-columns: 1fr 96px; grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 4px; }
.cv-item > .nm, .cv-item > .ds, .cv-item > .pr { grid-column: 1; }
.cv-pic { grid-column: 2; grid-row: 1 / span 3; align-self: start; display: block; width: 96px; height: 96px; overflow: hidden; border-radius: 8px; background: #f4ede4; }
.cv-pic img, .cv-pic svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.cv-photo { margin: 0 0 10px; border-radius: 10px; overflow: hidden; background: #f4ede4; }
.cv-photo img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
/* Menu page: small photo next to each item, and the photo box in the item editor */
.it-main { display: flex; gap: 12px; align-items: flex-start; }
.it-main > div:last-child { min-width: 0; }
.it-thumb { flex: none; width: 64px; height: 48px; border-radius: 6px; overflow: hidden; background: #f4ede4; }
.it-thumb img, .it-thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-edit { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.ph-prev { width: 200px; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #f4ede4; border: 1px solid var(--line); }
.ph-prev img, .ph-prev svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-acts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; max-width: 320px; }
.ph-acts .btn-small { margin: 0; }
.cv-sheet { max-width: 640px; margin: 10px auto 40px; }
.cv-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.cv-sizes label { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; font-weight: 600; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.cv-sizes label.on { border-color: var(--blue); background: #eef4fb; }
.cv-addbar { position: sticky; bottom: 0; background: #fff; padding: 10px 0 2px; border-top: 1px solid var(--line); margin-top: 12px; }
.cv-addbar .btn { width: 100%; margin: 0; }
.cv-addbar .btn[disabled] { opacity: .5; cursor: default; }
.cv-qty { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.cv-qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; }
.cv-cartbtn { position: fixed; right: 16px; bottom: 16px; z-index: 40; background: var(--navy); color: #fff; border: 0; border-radius: 26px; padding: 12px 20px; font-size: 1rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.cv-line { border-bottom: 1px solid var(--line); padding: 8px 0; }
.cv-line .cv-top { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.cv-line .ch { color: var(--muted); font-size: .9rem; }
.cv-ticket { list-style: none; margin: 4px 0 2px; padding: 0; font-size: .92rem; color: var(--ink); }
.cv-ticket li { display: flex; justify-content: space-between; gap: 8px; padding: 1px 0; }
.cv-ticket li.nested { padding-left: 16px; }
.cv-ticket li.piece { font-weight: 700; margin-top: 4px; }                 /* 9x: "Taco 1" */
.cv-ticket li.inpiece { padding-left: 16px; }
.cv-ticket li.inpiece.nested { padding-left: 32px; }
.cv-ticket .removed { color: var(--red, #b42318); }
.cv-ticket .g { color: var(--muted); }
.cv-ticket .n { color: var(--muted); white-space: nowrap; }
.cv-info { max-width: 640px; margin: 0 auto 18px; }
.cv-info input, .cv-info select { width: 100%; }
.cv-info [aria-invalid] { border-color: var(--red, #b42318); }
.cv-ful { border: 0; padding: 0; margin: 8px 0 0; }
.cv-ful legend { font-weight: 600; margin-bottom: 4px; }
.cv-ful label { display: inline-flex; gap: 6px; align-items: center; margin: 0 18px 0 0; font-weight: 600;
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; cursor: pointer; }
.cv-ful label input { width: auto; }
.cv-csz { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 10px; }
.cv-phones { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cv-phoneset { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.cv-phoneset legend { font-weight: 600; padding: 0; }
.cv-phoneset legend .hint { font-weight: 400; }
@media (max-width: 480px) { .cv-csz { grid-template-columns: 1fr 1fr; } .cv-csz > div:first-child { grid-column: 1 / -1; } .cv-phones { grid-template-columns: 1fr; } }
.cv-infobar { margin-top: 18px; }
.cv-infobar .btn { width: 100%; }
.cv-infobar .btn-secondary { width: 100%; margin-top: 10px; }
.cv-remember { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.cv-remember input { width: auto; }
.field-err { color: var(--red, #b42318); font-size: .9rem; margin-top: 3px; }
.cv-who { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 12px; }
.cv-cust { border-bottom: 1px solid var(--line); padding: 4px 0 10px; font-size: .95rem; }
.cv-ask { font-weight: 600; margin: 0 0 6px; }
.cv-acts { display: flex; gap: 14px; align-items: center; margin-top: 6px; }
#ct-bar { display: flex; flex-direction: column; gap: 8px; }
#ct-bar .btn-secondary { width: 100%; margin: 0; }
.cv-kticket { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; background: #fff; border: 1px dashed #999;
  padding: 12px; max-width: 340px; margin: 10px auto; line-height: 1.35; }
.cv-kticket .kt-c { text-align: center; }
.cv-kticket .kt-hr { border-top: 1px dashed #777; margin: 6px 0; }
.cv-kticket .kt-b { font-weight: 700; }
.cv-kticket .kt-big { font-size: 1.15rem; font-weight: 800; }
.cv-kticket .kt-row { display: flex; justify-content: space-between; gap: 8px; }
.cv-kticket .kt-mod { padding-left: 14px; }
.cv-kticket .kt-nest { padding-left: 28px; }
.cv-kticket .kt-inpiece { padding-left: 28px; }                             /* 9x: under "Taco 1" */
.cv-kticket .kt-inpiece.kt-nest { padding-left: 42px; }
.cv-kticket .kt-no { font-weight: 700; }
.cv-bump[hidden] { display: none; }
.cv-bump { display: block; width: 100%; margin: 0 0 8px; padding: 10px 12px; border: 1px dashed var(--blue); border-radius: 8px;
  background: #f3f8ff; color: var(--blue); font-weight: 700; font-size: .95rem; cursor: pointer; text-align: center; }
.cv-sugg { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }
.cv-sg { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; background: #fff; }
.cv-sg .muted { font-size: .85rem; }
.cv-sg .pr { font-weight: 600; }
.cv-sg button { margin-top: auto; }
.cv-sg button[disabled] { opacity: .6; }
.up-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cv-tot { width: 100%; margin-top: 10px; border-collapse: collapse; }
.cv-tot td { padding: 3px 0; }
.cv-tot td.n { text-align: right; }
.cv-tot tr.t td { font-weight: 700; border-top: 2px solid var(--navy); padding-top: 6px; }
.cv-ins { width: 100%; min-height: 54px; padding: 8px 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.toolbar a.btn-small { text-decoration: none; display: inline-block; }
/* stage 2d: store settings */
input.short { max-width: 14em; }
.set-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 16px; }
.set-grid label { margin: 8px 0 0; }
.set-grid input { margin-top: 4px; }
#zip-table td { padding: 4px 6px; }
#zip-table input { width: 6.5em; }
.btn.btn-alt { background: #e8eef7; color: var(--navy); margin-left: 6px; }
/* public home page */
.home-hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; margin-bottom: 18px; }
.home-hero picture { flex: 1 1 260px; max-width: 380px; }
.home-hero img { width: 100%; height: auto; display: block; }
.home-hero > div { flex: 1 1 280px; }
.home-hero h1 { font-size: 2rem; margin-bottom: 8px; }
.home-lead { font-size: 1.1rem; color: var(--ink); }
.home-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.home-actions .btn, .home-actions .btn-secondary { margin-top: 0; }
.home-soon { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 800; border-radius: 20px; padding: 6px 16px; margin-top: 6px; }
.home-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .home-grid { grid-template-columns: 1fr 1fr; } }
.home-grid .card { margin: 0; }
.home-grid h2 { margin-top: 0; }
.pricing-faq { margin-top: 18px; }
.pricing-faq h3 { font-size: 1.05rem; margin: 18px 0 4px; color: var(--navy); }
.pricing-faq p { margin: 0 0 6px; }
.home-built { text-align: center; color: var(--muted); margin: 26px 0 10px; }
.home-built a { color: var(--blue); font-weight: 600; }
/* ---- Stage 3a: checkout, status page, Orders page, ordering settings ---- */
.co-when, .co-pay { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 12px; margin: 10px 0; }
.co-when legend, .co-pay legend { font-weight: 700; color: var(--navy); padding: 0 4px; }
.co-opt { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.co-opt input { margin-top: 4px; }
.co-pick { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 0 26px; }
.co-pick select { padding: 8px 10px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
textarea#co-notes { width: 100%; padding: 8px 10px; font: inherit; border: 1px solid var(--line); border-radius: 8px; }
.co-ts { margin: 10px 0; }
.os-card .os-store { color: var(--muted); margin: 0 0 4px; font-weight: 600; }
.os-steps { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; }
.os-step { padding: 4px 10px; border-radius: 20px; background: #eef1f6; color: var(--muted); font-size: .9rem; font-weight: 600; }
.os-step.done { background: #dcefe2; color: var(--ok); }
.os-step.now { background: var(--navy); color: #fff; }
.os-when { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 6px 0; }
.os-help { margin-top: 12px; }
.or-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.or-take { font-weight: 700; padding: 4px 10px; border-radius: 20px; }
.or-take.on { background: #dcefe2; color: var(--ok); }
.or-take.off { background: #fbe9e7; color: var(--bad); }
.or-pausebox { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.or-pausebox select, .or-pausebox input[type=time] { width: auto; padding: 4px 6px; font-size: .92rem; margin: 0; }
.or-pausebox .btn-small { margin: 0; }
.or-pausebox .pz-msg { color: var(--bad); font-size: .9rem; }
.or-pausebox .pz-msg:empty { display: none; }
.pz-settings { display: flex; margin: 10px 0 4px; }
/* 8r: Pickup wait (Kitchen busy) on the Orders page */
.or-busy { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 3px 8px; border-radius: 20px; }
.or-busy label { margin: 0; font-weight: 700; }
.or-busy select { width: auto; padding: 4px 6px; }
.or-busy.on { background: #fff4d6; }
.or-busy-until { font-size: .9rem; color: var(--muted, #555); }
.or-tabs { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.or-tab { border: 0; background: #fff; padding: 6px 14px; font-weight: 600; cursor: pointer; color: var(--navy); }
.or-tab.on { background: var(--navy); color: #fff; }
.or-card { border-left: 6px solid var(--line); }
.or-card.st-placed { border-left-color: var(--bad); background: #fffaf9; }
.or-card.st-accepted, .or-card.st-in_progress { border-left-color: var(--gold); }
.or-card.st-ready, .or-card.st-out_for_delivery { border-left-color: var(--ok); }
.or-card.st-completed, .or-card.st-cancelled, .or-card.st-rejected { opacity: .7; }
.or-card.or-new { animation: or-flash 1s ease-in-out 3; }
@keyframes or-flash { 50% { box-shadow: 0 0 0 4px var(--gold); } }
.or-card.or-remind { box-shadow: 0 0 0 3px #d97706; animation: or-remind 2s ease-in-out infinite; }
@keyframes or-remind { 50% { box-shadow: 0 0 0 6px #fbbf24; } }
.or-rem { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; margin: .4rem 0; padding: .45rem .7rem;
  background: #fef3c7; color: #78350f; border-radius: 8px; font-weight: 600; }
.or-rem.quiet { background: #f3f4f6; color: #4b5563; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .or-card.or-remind { animation: none; } }
.or-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.or-num { font-size: 1.5rem; color: var(--navy); }
.or-ful { font-weight: 800; padding: 2px 8px; border-radius: 6px; background: #e8eef7; color: var(--navy); }
.or-ful.delivery { background: #fff4d1; color: var(--warn); }
.or-st { font-weight: 700; color: var(--blue); }
.st-placed .or-st { color: var(--bad); }
.or-when { font-weight: 700; }
.or-when.sched { color: var(--warn); }
.or-cust a { font-weight: 600; }
.or-blocked { color: var(--bad); font-weight: 800; }
.or-note { color: var(--bad); font-weight: 600; }
.or-pay { margin: 8px 0; padding: 6px 10px; background: #fbe9e7; border-radius: 8px; color: var(--bad); font-weight: 600; }
.or-pay.paid { background: #dcefe2; color: var(--ok); }
.or-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.or-acts .btn { margin: 0; }
.or-time { display: inline-flex; gap: 6px; align-items: center; }
.or-time select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.or-reason { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; padding: 8px; background: #f7f8fb; border-radius: 8px; }
.or-reason input { flex: 1 1 220px; width: auto; }
#print-area { display: none; }
@media print {
  body.printing > *:not(main) { display: none !important; }
  body.printing main > *:not(#print-area) { display: none !important; }
  body.printing #print-area { display: block !important; }
  body.printing #print-area .cv-kticket { border: 0; max-width: 72mm; font-size: 11pt; margin: 0; padding: 0; }
  body.printing .wrap { margin: 0; padding: 0; }
}
.ord-link a { font-weight: 700; word-break: break-all; }
label.check.big { font-size: 1.1rem; font-weight: 700; }
.hr-day { display: flex; gap: 12px; align-items: flex-start; padding: 6px 0; border-bottom: 1px solid var(--line); }
.hr-day > strong { width: 100px; flex: none; padding-top: 6px; }
.hr-list { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hr-row { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hr-row input[type=time] { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.hr-row select.hr-ful { width: auto; padding: 6px 8px; font-size: .95rem; margin: 0; }
input[type=number].short, input[type=date] { padding: 8px 10px; font-size: 1rem; border: 1px solid var(--line); border-radius: 8px; }
.set-grid label > input, .set-grid label > select { display: block; margin-top: 4px; }
/* 8g: a label that wraps to two lines no longer pushes its box down: the words sit at the top, every box lines up at the bottom */
.set-grid > label { display: flex; flex-direction: column; gap: 4px; }
.set-grid > label > input, .set-grid > label > select { margin-top: auto; width: 100%; max-width: 100%; box-sizing: border-box; min-height: 42px; }
#o-max { max-width: 12em; }

/* ---- Coupons ---- */
.cp-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cp-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.1rem; color: var(--navy); margin-right: 10px; }
.cp-state { font-size: .8rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: #dcefe2; color: var(--ok); }
.cp-row:not(.st-on) .cp-state { background: #eef1f6; color: var(--muted); }
.cp-row:not(.st-on) .cp-code { color: var(--muted); }
.cp-acts { display: flex; gap: 6px; flex: none; }
.cp-kind { border: 0; padding: 0; margin: 10px 0; }
.cp-kind legend { font-weight: 600; padding: 0; }
.btn-link.danger { color: var(--bad); }
.cv-coupon { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.cv-coupon input { flex: 1 1 140px; width: auto; text-transform: uppercase; }
.cv-coupon .ok { color: var(--ok); font-weight: 700; }
.or-coupon { color: var(--ok); font-weight: 700; margin: 6px 0; }
/* ---- 3d: Orders page warnings, auto-print, settings problems ---- */
.or-print-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.or-print-row label { margin: 0; }
.or-print-row select { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.or-offline { font-weight: 700; }
.or-problems ul, .set-problems ul { margin: 6px 0 0 18px; padding: 0; }
.set-problems { margin-top: 10px; }
/* ---- 5a: Reports ---- */
.rp-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 10px; }
.rp-range select, .rp-range input[type=date] { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; background: #fff; }
.rp-tabs { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.rp-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f9fbfe; }
.rp-tile .l { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.rp-tile strong { display: block; font-size: 1.45rem; color: var(--navy); }
.rp-tile .s { display: block; color: var(--muted); font-size: .8rem; }
.rp-dates { font-weight: 700; color: var(--blue); margin: 0 0 6px; }
.rp-table { width: 100%; border-collapse: collapse; margin: 4px 0 12px; font-size: .95rem; }
.rp-table th { text-align: left; color: var(--muted); font-size: .8rem; font-weight: 700; border-bottom: 2px solid var(--line); padding: 4px 6px; }
.rp-table td { border-bottom: 1px solid var(--line); padding: 5px 6px; }
.rp-table .n { text-align: right; white-space: nowrap; }
.rp-table tr.b td { font-weight: 700; }
.rp-table tr.rp-cat td { background: #f2f5fa; color: var(--navy); }
.rp-bar { display: inline-block; width: 120px; height: 10px; background: #eef1f6; border-radius: 5px; vertical-align: middle; }
.rp-fill { display: block; height: 100%; background: var(--sky); border-radius: 5px; }
.rp-dls { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 600px) { .rp-bar { width: 50px; } .rp-table { font-size: .85rem; } }
.rp-range select { width: auto; }
/* stage 5b: order history + customers */
.hi-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 8px; }
.hi-filters input[type=search], .hi-filters input[type=password] { flex: 1 1 220px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; }
.hi-filters select { width: auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; background: #fff; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.check-inline input { width: auto; margin: 0; }
.hi-table tr.hi-row { cursor: pointer; }
.hi-table tr.hi-row:hover td, .hi-table tr.hi-row:focus td { background: #f2f7fd; }
.hi-table tr.st-cancelled td, .hi-table tr.st-rejected td { color: var(--muted); }
.hi-detail { border-left: 4px solid var(--sky); }
.hi-acts { display: inline-flex; gap: 8px; align-items: center; }
.hi-cust { margin: 6px 0 2px; }
.hi-clink { margin: 6px 0 10px; }
.hi-tl td { font-size: .88rem; }
.cu-note { margin: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.cu-note label { font-weight: 600; }
.cu-note textarea { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.cu-note .btn-small { align-self: flex-start; }
.cu-block { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 12px; }
.cu-block input { flex: 1 1 220px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; }
.cu-flag { color: var(--blue); }
.or-cnote { background: #fff6dd; border: 1px solid #f0d58a; border-radius: 8px; padding: 6px 8px; margin: 6px 0; font-weight: 600; }
.hi-scroll { overflow-x: auto; }
.hi-ph { display: block; color: var(--muted); font-size: .85rem; white-space: nowrap; }
.hi-table td { vertical-align: top; }
@media (max-width: 600px) { .hi-table .hi-m { display: none; } .hi-table { font-size: .88rem; } }
/* Reports > Compare */
#rp-range[hidden] { display: none; }
.cmp-controls .cmp-metric { margin-left: auto; }
.cmp-legend { display: flex; flex-wrap: wrap; gap: 18px; margin: 2px 0 4px; font-size: .9rem; color: var(--ink); }
.cmp-lg { display: inline-flex; align-items: center; gap: 6px; }
.cmp-key { display: inline-block; width: 18px; height: 0; border-top: 2px solid; }
.cmp-key-b { border-top-style: dashed; }
.cmp-chart { position: relative; }
.cmp-svg { width: 100%; height: auto; display: block; overflow: visible; }
.cmp-svg .cmp-grid { stroke: #e9edf3; stroke-width: 1; }
.cmp-svg .cmp-base { stroke: #c9d0dc; stroke-width: 1; }
.cmp-svg .cmp-ax { fill: var(--muted); font-size: 11px; }
.cmp-svg .cmp-end-v { fill: var(--ink); font-size: 12px; font-weight: 700; }
.cmp-svg .cmp-end-n { fill: var(--muted); font-size: 11px; }
.cmp-svg .cmp-hair { stroke: #8a93a3; stroke-width: 1; }
.cmp-svg .cmp-hit { cursor: crosshair; outline: none; }
.cmp-tip { position: absolute; top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px;
  box-shadow: 0 4px 14px rgba(0,18,59,.12); font-size: .85rem; pointer-events: none; min-width: 190px; }
.cmp-tip-h { color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.cmp-tip-r { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cmp-tip-r strong { color: var(--ink); }
.cmp-table { margin-top: 10px; }
.cmp-table summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.cmp-loading > * { opacity: .5; }
@media (max-width: 600px) { .cmp-controls .cmp-metric { margin-left: 0; } }
.cmp-tiles { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 600px) { .cmp-tiles .rp-tile strong { font-size: 1.2rem; } }
/* Menu page: category tabs */
.cat-tabs { position: sticky; top: 0; z-index: 5; display: flex; gap: 6px; overflow-x: auto; padding: 8px 2px; margin: 0 0 12px;
  background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.cat-tab { flex: 0 0 auto; border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: 6px 12px;
  font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.cat-tab:hover { border-color: var(--blue); }
.cat-tab.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat-tab.off { font-style: italic; }
.cat-n { font-size: .75rem; font-weight: 700; background: #eef1f6; color: var(--muted); border-radius: 999px; padding: 1px 7px; }
.cat-tab.on .cat-n { background: rgba(255,255,255,.2); color: #fff; }
.cat-fix { font-size: .75rem; font-weight: 800; background: #c0392b; color: #fff; border-radius: 999px; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; }
/* 5d: suggest with each choice */
.ed-suggest table { border-collapse: collapse; }
.ed-suggest td { padding: 3px 8px 3px 0; }
.ed-suggest select { max-width: 320px; }
.ed-match select { width: auto; max-width: 260px; }
.cv-sg .cv-sg-cat { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
/* 5e: Suggestions tab on the Menu page */
.cat-tab-sg { margin-left: 8px; border-style: dashed; }
.cat-tab-sg.on { border-style: solid; }
.sg-intro p { margin: 4px 0 10px; }
.sg-row { border-top: 1px solid var(--line); padding: 10px 0; }
.sg-row:first-of-type { border-top: 0; }
.sg-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.sg-line { line-height: 2; }
.sg-arrow { color: var(--muted); }
.sg-chip { display: inline-block; background: #eef4fb; border: 1px solid #cfe0f3; color: var(--navy); border-radius: 999px;
  padding: 1px 10px; margin: 0 4px 2px 0; font-size: .9rem; line-height: 1.6; }
.sg-chip.warn { background: #fff6dd; border-color: #f0d58a; }
.sg-chip em { font-style: normal; color: #8a5a00; font-size: .8rem; }
.sg-pairs { border-collapse: collapse; margin: 4px 0; }
.sg-pairs td { padding: 3px 10px 3px 0; vertical-align: middle; }
.sg-pairs select { max-width: 300px; }
.sg-none { margin: 2px 0; font-size: .9rem; }
.sg-note { margin: 4px 0 0; font-size: .85rem; color: #8a5a00; }
.sg-edit { background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.sg-edit .ed-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.sg-edit select { width: auto; max-width: 300px; }
@media (max-width: 600px) { .sg-head { flex-direction: column; } .sg-pairs select { max-width: 200px; } }
.sg-addgrp select { width: auto; max-width: 300px; margin-left: 4px; }

/* Kitchen devices (stage 6a) */
.kd-steps { margin: 0 0 10px 20px; padding: 0; }
.kd-steps li { margin: 4px 0; }
.kd-row { padding: 12px 0; border-bottom: 1px solid var(--line); }
.kd-row:last-child { border-bottom: 0; }
.kd-state { font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: .9rem; }
.kd-row.on .kd-state { background: #e5f4ea; color: var(--ok); }
.kd-row.off .kd-state { background: #fde8e6; color: var(--bad); }
.kd-new { font-size: .8rem; font-weight: 700; color: var(--navy); background: #e8eef7; padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.kd-issue { margin-top: 6px; }
.kd-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#kd-code { text-transform: uppercase; letter-spacing: 2px; font-size: 1.2rem; }

/* Header buttons: "? Help" (tour) and "FAQ" side by side */
.top-btns { display: flex; gap: 8px; align-items: center; }
a.help-btn { text-decoration: none; display: inline-block; }
/* Help & FAQ page (owner/help.php) */
.faq-toc { display: flex; flex-wrap: wrap; gap: 6px 8px; margin-top: 14px; }
.faq-toc a { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 4px 12px; color: var(--blue); text-decoration: none; font-size: .92rem; }
.faq-toc a:hover, .faq-toc a:focus-visible { border-color: var(--blue); }
.faq-sec { scroll-margin-top: 12px; }
details.faq { border-top: 1px solid var(--line); padding: 10px 0; }
details.faq > summary { cursor: pointer; font-weight: 600; color: var(--navy); list-style-position: outside; margin-left: 18px; }
details.faq > summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
details.faq[open] > summary { margin-bottom: 6px; }
.faq-a { margin-left: 18px; }
.faq-a p { margin: 6px 0; }
.faq-a ul, .faq-a ol { margin: 6px 0; padding-left: 22px; }
.faq-a code { background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; font-size: .9em; }
@media print { details.faq { break-inside: avoid; } .faq-toc, #faq-q, label[for="faq-q"] { display: none !important; } }

/* Copyright notice (Page::foot) */
.site-foot { max-width: 920px; margin: 8px auto 24px; padding: 0 16px; text-align: center; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.site-foot p { margin: 4px 0; }
.site-foot a { color: var(--blue); }
@media print { .site-foot { display: none !important; } }

/* Delivery drivers (stage 7a): driver.php on the driver's phone */
.dv-list { list-style: none; margin: 0; padding: 0; }
.dv-item { border-top: 1px solid var(--line); padding: 12px 0; }
.dv-item:first-child { border-top: 0; }
.dv-cust { margin: 6px 0; }
.dv-name { font-weight: 700; font-size: 1.05rem; }
.dv-notes { background: #fff8e1; border-radius: 6px; padding: 4px 8px; margin-top: 4px; }
.dv-acts, .dv-pay, .dv-move { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.dv-acts a { text-decoration: none; }
.dv-collect { color: #b45309; font-size: 1.05rem; }
.dv-paid { color: #1b7f3b; font-weight: 600; }
.dv-ready { color: #1b7f3b; font-weight: 700; }
.dv-done-btn { width: 100%; margin-top: 10px; }
.dv-head h1 { margin: 0; font-size: 1.4rem; }
/* Drivers on the owner pages */
.dr-row { border-top: 1px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.dr-link { word-break: break-all; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.or-driver { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.or-driver select { width: auto; padding: 4px 6px; }
#or-map { height: 320px; border-radius: 8px; border: 1px solid var(--line); }
.or-map-key { font-size: .85rem; color: var(--muted); }

/* Delivery tip choices (stage 7b) */
.co-tip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 10px; }
.co-tip-btn { border: 2px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: 1rem; cursor: pointer; min-width: 72px; }
.co-tip-btn.on { border-color: var(--blue); background: #e8f0fa; color: var(--navy); }
.co-tip-custom input { width: 6em; display: inline-block; }

/* 7d: "Your order" bar on the ordering page */
.cv-myorders { margin-top: .6rem; padding: .55rem .8rem; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 10px; color: #065f46; }
.cv-myorders div + div { margin-top: .25rem; }
.cv-myorders a { font-weight: 700; }
/* 8a: Store settings > Card payments */
.pay-test { background: var(--gold); color: var(--navy); font-weight: 700; border-radius: 12px; padding: 2px 10px; font-size: .85rem; }
.pay-state { font-weight: 600; margin: 8px 0; }
.pay-state.ok { color: var(--ok); } .pay-state.warn { color: var(--warn); } .pay-state.bad { color: var(--bad); }

/* 8b: Stripe's card box at checkout */
.co-card-head { font-weight: 700; color: var(--navy); margin: 14px 0 6px; }
.co-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; min-height: 60px; }
/* 8h: who sees the card */
.co-safe { margin: 10px 0 4px; padding: 8px 12px 8px 40px; border-radius: 10px; background: #eef7ef; border: 1px solid #cfe6d2; position: relative; font-size: .95rem; }
.co-safe::before { content: ""; position: absolute; left: 12px; top: 11px; width: 16px; height: 18px;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 18'%3E%3Crect x='1' y='8' width='14' height='10' rx='2' fill='%231f7a36'/%3E%3Cpath d='M4 8V5a4 4 0 0 1 8 0v3' fill='none' stroke='%231f7a36' stroke-width='2'/%3E%3C/svg%3E"); }
.co-safe p { margin: 2px 0; }
.co-safe .co-safe-h { font-weight: 700; color: #1f7a36; }
.co-tip-btn:disabled, .co-tip-custom input:disabled { opacity: .6; cursor: default; }
/* 8b: refund panel on the Orders page */
.or-refund input[type=text] { width: 7em; }
.or-refunded { color: var(--muted, #666); font-size: .92em; }
/* 8c: Square on Store settings */
.sq-box { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; }
.sq-box h3 { margin: 0; color: var(--navy); }
#sq-locs { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
/* 8f: refund check window */
.rf-ask .rf-check { margin: 0 0 8px; font-weight: 600; }
.rf-order { border: 2px solid var(--line); border-radius: 10px; padding: 8px 12px; background: #f7f8fb; }
.rf-order p { margin: 4px 0; }
.rf-order .rf-num { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.rf-order .rf-who { font-weight: 600; }
.rf-lines { margin: 4px 0; padding-left: 18px; }
.rf-total { font-weight: 600; }
.rf-what { font-weight: 700; color: var(--bad); margin: 12px 0 4px; }
.rf-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.rf-foot .btn-secondary, .rf-foot .btn-danger { margin-top: 0; min-height: 44px; }
.rf-err { flex-basis: 100%; margin: 4px 0 0; }
/* 8i: changed orders, add-ons, comps */
.or-flag { display: inline-block; font-weight: 800; font-size: .85rem; padding: 2px 8px; border-radius: 6px; background: #fff3cd; color: #7a4b00; letter-spacing: .02em; }
.or-flag.comp { background: #e7f5ea; color: #1f7a36; }
.cv-line.ch-gone > .cv-top span:first-child { text-decoration: line-through; color: var(--muted, #666); }
.ch-out { margin-top: 12px; }
.ch-out .ch-was { margin: 4px 0; }
.ex-n { width: 4.5em; display: inline-block; margin: 0 4px; }
.ex-list { list-style: none; padding: 0; margin: 8px 0; }
.ex-list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); }
.ex-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ex-add input { flex: 1 1 200px; width: auto; }
.os-add { display: inline-block; margin-top: 10px; }
/* 8j: pickup only / delivery only, said plainly */
.cv-only { margin: 8px 0; padding: 8px 12px; border-radius: 8px; background: #fff3cd; color: #7a4b00; font-weight: 700; }
/* 8k: contact form */
.contact-card { max-width: 640px; margin-left: auto; margin-right: auto; }
.contact-card textarea { width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--line); border-radius: 8px; box-sizing: border-box; }
.contact-card textarea:focus { outline: 3px solid var(--sky); outline-offset: 1px; border-color: var(--blue); }
.contact-card [aria-invalid="true"] { border-color: var(--bad); }
.contact-card #ct-human { margin: 12px 0 0; }
.contact-card #ct-done-text:focus { outline: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.home-contact { text-align: center; margin: 20px 0 0; }
/* 8n: HawgWings "Sign in as" support visit notice (every restaurant page while it lasts) */
.support-banner { background: #fff1c2; color: var(--navy); border-bottom: 2px solid var(--gold); padding: 8px 16px; text-align: center; }
.support-banner .btn-small { margin-left: 8px; }
.demo-banner a:not(.btn-small) { color: var(--navy); font-weight: 600; }
.demo-note { background: #fff1c2; color: var(--navy); }
.demo-note a:not(.btn-small) { color: var(--navy); font-weight: 600; }
.demo-note p { margin: 0; }
.demo-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px !important; }
.demo-links a.btn-small { text-decoration: none; display: inline-block; }
.demo-links a.btn-small.alt { background: #fff; }
.demo-intro h1 { margin-top: 0; }
.nobr { white-space: nowrap; }
.ct-ms { background: #f3f7fc; border-radius: 8px; padding: 8px 12px; margin: 12px 0; }   /* 9m */
.ct-ms .hint { margin: 4px 0 0; }   /* 9j: keeps a reference number like HW-7K3P2Q on one line */
/* 8p: HawgWings maintenance and announcement bars on restaurant pages */
.hw-notice { padding: 8px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.hw-notice.info-level { background: #e8f3fd; color: var(--navy); }
.hw-notice.warn-level { background: #fde8e6; color: var(--bad); }
.hw-notice .btn-small { margin-left: 8px; }
.hw-notice-body { display: inline; }
@media print { .hw-notice, .support-banner, .test-banner { display: none !important; } }
/* 8p1: Help & FAQ "Back to top" (a button bottom right after scrolling, and a link under each topic) */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700;
  border-radius: 22px; padding: 10px 16px; box-shadow: 0 4px 14px rgba(0, 18, 59, .25); }
.to-top:hover, .to-top:focus-visible { background: var(--blue); outline: 3px solid var(--sky); outline-offset: 2px; }
.faq-back { text-align: right; margin: 10px 0 0; font-size: .92rem; }
@media print { .to-top, .faq-back { display: none !important; } }

/* 8x: delivery tips (Drivers page > Tips, and the driver's phone > My tips) */
.tp-scroll { overflow-x: auto; }
.tp-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tp-table th, .tp-table td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tp-table th { color: var(--muted); font-weight: 600; font-size: .88rem; }
.tp-table tr.on td { background: #eef4fc; }
.tp-table tr.tp-total td { font-weight: 700; border-top: 2px solid var(--line); }
.tp-table .tp-strong { font-weight: 700; color: var(--navy); }
.tp-name { padding: 0; margin: 0; font-weight: 600; text-align: left; }
#tp-detail h3 { margin: 16px 0 6px; }
.dv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.dv-tabs button { border: 1px solid var(--line); background: #fff; color: var(--navy); border-radius: 18px; padding: 7px 12px; font-weight: 600; font-size: .92rem; cursor: pointer; }
.dv-tabs button[aria-selected=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
.dv-tip-sum { margin: 6px 0 10px; }
.dv-tip-line { display: flex; justify-content: space-between; gap: 10px; margin: 4px 0; }
.dv-tip-line.big { font-size: 1.3rem; }
.dv-tip-line.big strong { color: var(--navy); }
.dv-tip-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.dv-tip-ref { flex-basis: 100%; font-size: .85rem; }
#tp-period { width: auto; }
.dv-tip-row span:first-child { flex: 1 1 60%; }

/* 8y: tip payouts (Drivers page and the driver's phone) */
.po-form { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 10px 0; background: #fbfcfe; }
.po-form h3 { margin: 4px 0 8px; }
.po-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 14px; }
.po-grid input, .po-grid select { width: 100%; }
#po-card h3 { margin: 16px 0 6px; }
.tp-table tr.po-voided td { color: var(--muted); text-decoration: line-through; }
.tp-table tr.po-voided td.po-say { text-decoration: none; }
.tp-table tr.po-disputed td.po-say { color: var(--bad); font-weight: 600; }
.tp-table tr.po-confirmed td.po-say { color: var(--ok); }
.dv-tip-owed { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 6px 0 10px; background: #f4f8ff; }
.dv-tip-owed p.small { margin: 2px 0 0; }
#dv-tips-card h3 { margin: 14px 0 4px; font-size: 1rem; }
.dv-payout p { margin: 4px 0; }
.dv-po-voided .dv-tip-row { text-decoration: line-through; color: var(--muted); }
.dv-po-disputed p.small { color: var(--bad); }
.dv-po-btns { display: flex; gap: 8px; }

/* 9t: Your plan */
.pl-choices { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .pl-choices { grid-template-columns: 1fr 1fr; } }
.pl-choice { border: 1px solid #d8e0ec; border-radius: 10px; padding: 12px 14px; }
.pl-choice.is-current { border-color: var(--blue); }
.pl-choice h3 { margin: 0 0 4px; }
.pl-choice .btn-small { margin-top: 6px; }

/* 9v: store credit */
.cr-row { border-top: 1px solid #e3e8f0; padding: 10px 0; }
.cr-left { color: var(--good, #1b7f3b); }
.cr-hist { margin: 6px 0; }
.co-credit { border: 1px solid #d8e0ec; border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.co-credit .btn-small { margin-top: 6px; }
.co-credit input[type=text] { max-width: 9em; }
.acct-credit { font-size: 1.6rem; font-weight: 700; margin: 4px 0; }
.cv-account { display: inline-block; margin-top: 6px; font-weight: 600; }
.cv-logo { display: block; max-height: 88px; max-width: 220px; width: auto; height: auto; margin: 0 0 8px; }   /* 9an */
.cv-tagline { margin: 2px 0 4px; color: var(--muted, #5b6472); font-style: italic; }
/* 9ao: loyalty rewards */
.cv-loyalty { margin: 8px 0 2px; padding: 8px 10px; background: #fff7e0; border-radius: 8px; font-size: .95rem; }
.cv-loyalty a { white-space: nowrap; }
.co-reward { border: 1px solid #f0d58a; background: #fffbef; border-radius: 10px; padding: 10px 12px; margin: 12px 0; }
.co-reward .hint { margin: 4px 0 0; }
.co-forfeit { margin: 8px 0 2px; padding: 8px 10px; background: #fdecea; border-left: 4px solid #c0392b; border-radius: 6px; font-size: .92rem; }
.loy-modes { border: 0; padding: 0; margin: 6px 0 10px; }
.loy-modes .check { display: block; margin: 4px 0; }
.loy-say { font-weight: 600; }
#loy-card input[type=number] { width: 6em; padding: 6px; border: 1px solid var(--line); border-radius: 6px; }
#loy-card #loy-min { max-width: 8em; }
.os-loyalty { margin-top: 8px; }
.cv-home { display: inline-block; margin: 6px 0 0 14px; font-weight: 600; }   /* 9an */
.cv-home-how { margin-top: 8px; }

/* 9x: "Ask for each one": Taco 1, Taco 2... in the customer's item window, and the setting in the item editor */
.cv-piece { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 10px 0; }
.cv-piece-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cv-piece-head h3 { margin: 4px 0; }
.ed-each { border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; margin: 8px 0; }
.ed-each [hidden] { display: none; }

.ed-each input[type="text"]:not(.num) { width: 14em; max-width: 100%; }
/* 9af: Google's own Get it on Google Play badge, unchanged (their rules: no recoloring, legible, links to the Play page). */
.play-badge { display: inline-block; margin-top: 12px; line-height: 0; }
.play-badge img { display: block; height: 54px; width: auto; }
/* 9an: Store settings logo */
.brand-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.brand-logo { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
/* 9aq: notifications (Get specials, Tell me when it's ready) and the owner's Specials page */
.cv-push { margin-top: 6px; }
.cv-push-btn { font-weight: 600; }
.cv-push-note { margin-top: 6px; }
.os-push { margin: 12px 0; padding: 10px 12px; background: #f3f6fb; border-radius: 8px; }
.os-push-sp { display: block; margin-top: 8px; font-size: .95rem; }
.os-push .note { margin: 6px 0 0; }
.sp-count { font-weight: 600; }
.sp-preview { display: flex; gap: 10px; align-items: flex-start; max-width: 360px; padding: 10px 12px; margin-bottom: 8px;
  background: #f1f2f4; border-radius: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
.sp-preview img { border-radius: 8px; flex: none; }
.sp-preview strong { display: block; }
.sp-preview span { display: block; font-size: .92rem; overflow-wrap: anywhere; }
.sp-row { border-top: 1px solid #e3e8f0; padding: 10px 0; }
.sp-row p { margin: 4px 0; }
#sp-form textarea, #sp-form input[type=text] { width: 100%; max-width: 560px; box-sizing: border-box; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 8px; font: inherit; }
#sp-form label { display: block; font-weight: 600; margin: 10px 0 4px; }
/* 9ar: "Order faster next time" card above the menu (phones, not from the icon) */
.cv-homecard { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 12px; padding: 12px 14px;
  background: #fff7e0; border: 1px solid #f0d58a; border-radius: 12px; }
.cv-homecard[hidden] { display: none; }
.cv-homecard-icon { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; background: #fff; flex: none; }
.cv-homecard-txt strong { display: block; }
.cv-homecard-txt span { display: block; font-size: .95rem; margin-top: 2px; }
.cv-homecard-btns { display: flex; gap: 14px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.cv-homecard-how { margin: 8px 0 0; }
/* 9av: (?) help bubbles */
.tip-q { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0 4px;
  padding: 0; border: 1px solid #9fb0cc; border-radius: 50%; background: #eef3fb; color: var(--navy); font: 700 12px/1 inherit;
  cursor: pointer; vertical-align: middle; flex: none; }
.tip-q:hover, .tip-q[aria-expanded="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tip-q:focus-visible { outline: 2px solid #f0b429; outline-offset: 2px; }
.tip-pop { position: fixed; z-index: 9500; background: #fff; border: 1px solid #c8d3e6; border-radius: 10px;
  padding: 10px 12px 4px; box-shadow: 0 8px 24px rgba(0, 18, 59, .22); font-size: .92rem; line-height: 1.45; }
.tip-pop p { margin: 0 0 6px; }
@media print { .tip-q, .tip-pop { display: none !important; } }
.ed-top-btns { display: flex; gap: 8px; align-items: center; }
.ed-section .tip-q, th .tip-q { margin-left: 6px; }
/* 9ax (Larry, 2026-11-16): pickup orders red, delivery orders green, on the Orders page and the kitchen tablet.
   The whole card is tinted by type and the tag is big and solid; the left edge still shows the status
   (red = new, gold = being made, green = ready), and a new order still flashes. */
.or-card.ful-pickup, .or-card.ful-pickup.st-placed { background: #fdeceb; }
.or-card.ful-delivery, .or-card.ful-delivery.st-placed { background: #e8f5ec; }
.or-card .or-ful { font-size: 1.15rem; letter-spacing: .03em; padding: 4px 12px; border-radius: 8px; }
.or-card.ful-pickup .or-ful { background: var(--bad); color: #fff; }
.or-card.ful-delivery .or-ful { background: var(--ok); color: #fff; }
.or-card.st-placed { border-left-width: 10px; }
/* 9bf: rotating banners. 9bg (Larry): always beside the logo, a phone too (the logo smaller there). No logo: full width. */
.cv-top { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.cv-top .cv-logo { margin: 0; align-self: flex-start; object-fit: contain; }   /* 9bi: a column flex stretched it (Larry: "logo is smashed") */
.cv-banners { position: relative; width: 100%; aspect-ratio: 8 / 3; border-radius: 12px; overflow: hidden; background: #e9edf3; }
.cv-btrack { display: flex; height: 100%; transition: transform .5s ease; will-change: transform; }
.cv-bslide { position: relative; flex: 0 0 100%; height: 100%; padding: 0; margin: 0; border: 0; background: none; display: block; text-align: left; font: inherit; color: inherit; }
button.cv-bslide { cursor: pointer; }
.cv-bslide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cv-bover { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 22px; display: flex; flex-direction: column; gap: 2px;
  background: linear-gradient(to top, rgba(0,0,0,.72), rgba(0,0,0,.35) 65%, rgba(0,0,0,0)); color: #fff; }
.cv-bhead { font-size: 1.35rem; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.cv-bsub { font-size: 1rem; line-height: 1.3; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.cv-bgo { margin-top: 4px; font-weight: 700; color: var(--gold, #ffc72c); }
.cv-bdots { position: absolute; right: 10px; bottom: 6px; display: flex; gap: 6px; }
.cv-bdot { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.9); background: rgba(255,255,255,.35); cursor: pointer; }
.cv-bdot.on { background: #fff; }
.cv-bdot:focus-visible, .cv-bslide:focus-visible { outline: 3px solid var(--gold, #ffc72c); outline-offset: -3px; }
/* 9bk (Larry): the logo as tall as the banner, in its own shape. Both grow from 0: the logo by its width/height (--la,
   set by customer.js) over the banner's (8/3, or 4/3 on a phone), the banner by 1, so their heights come out the same.
   A very wide logo stops at 40% of the row (then it is shorter than the banner, centered beside it). */
.cv-top.has-banners.has-logo { flex-direction: row; align-items: center; gap: 12px; }
.cv-top.has-banners.has-logo .cv-logo { flex: calc(var(--la, 1) / 2.6667) 1 0; min-width: 0; width: 0; max-width: 40%; height: auto; max-height: none; align-self: center; }
.cv-top.has-banners.has-logo .cv-banners { flex: 1 1 0; min-width: 0; }
@media (min-width: 900px) {
  .cv-top.has-banners.has-logo { gap: 20px; }
}
/* a phone: a taller banner and smaller text, so a two-line headline fits */
@media (max-width: 600px) {
  .cv-banners { aspect-ratio: 16 / 9; }
  .cv-bover { padding: 18px 12px 18px; }
  .cv-bhead { font-size: 1.1rem; }
  .cv-bsub { font-size: .9rem; }
  .cv-bgo { font-size: .9rem; }
  /* beside the logo the banner is narrower: a little taller and smaller text, the dots out of the text's way */
  .has-logo .cv-banners { aspect-ratio: 4 / 3; }
  .cv-top.has-banners.has-logo .cv-logo { flex-grow: calc(var(--la, 1) / 1.3333); max-width: 45%; }
  .has-logo .cv-bover { padding: 14px 8px 16px; }
  .has-logo .cv-bhead { font-size: .95rem; }
  .has-logo .cv-bsub { font-size: .8rem; -webkit-line-clamp: 2; }
  .has-logo .cv-bgo { font-size: .8rem; margin-top: 2px; }
  .has-logo .cv-bdots { bottom: 4px; right: 6px; gap: 5px; }
  .has-logo .cv-bdot { width: 8px; height: 8px; }
}
/* 9bi: a text banner: no picture, the words centered on a solid color */
.cv-bslide.cv-btext .cv-bover { top: 0; justify-content: center; align-items: center; text-align: center; padding: 14px 22px 24px; background: none; gap: 6px; }
.cv-btext .cv-bhead { font-size: 1.9rem; text-shadow: none; }
.cv-btext .cv-bsub { font-size: 1.1rem; text-shadow: none; }
.cv-c-navy { background: #0b1f4b; color: #fff; }
.cv-c-red { background: #b3261e; color: #fff; }
.cv-c-green { background: #1b6e3a; color: #fff; }
.cv-c-gold { background: #ffc72c; color: #1a1a1a; }
.cv-c-black { background: #151515; color: #fff; }
.cv-c-brown { background: #6b3e1f; color: #fff; }
.cv-btext.cv-c-gold .cv-bover { color: #1a1a1a; }
.cv-btext.cv-c-gold .cv-bgo { color: #0b1f4b; }
.cv-btext.cv-c-red .cv-bgo, .cv-btext.cv-c-brown .cv-bgo { color: #fff; text-decoration: underline; }
@media (min-width: 601px) and (max-width: 899px) { .has-logo .cv-btext .cv-bhead { font-size: 1.5rem; } }
@media (max-width: 600px) {
  .cv-btext .cv-bhead { font-size: 1.35rem; }
  .cv-btext .cv-bsub { font-size: .95rem; }
  .has-logo .cv-btext .cv-bover { padding: 8px 8px 16px; }
  .has-logo .cv-btext .cv-bhead { font-size: 1.05rem; -webkit-line-clamp: 3; }
  .has-logo .cv-btext .cv-bsub { font-size: .8rem; }
}
.bn-preview .cv-btext .cv-bhead { font-size: 1.25rem; }
.bn-preview .cv-btext .cv-bsub { font-size: .9rem; }
.ps-days > div, #ps-days { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ps-day { margin: 4px 0; }
.ps-name { font-size: 1.05rem; margin-right: 8px; }
.ps-days, .ps-free { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px 10px; margin: 14px 0 6px; }
.ps-free-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ps-free-row label.ps-inline { margin: 0; font-weight: 400; }
.ps-free-row select { width: auto; margin: 0; }
.cv-ticket .special { color: var(--ok, #1b7f3b); font-weight: 700; }    /* 9bl: "Special: Wednesday Sub Day (save $2.00)" in the cart */
.cv-item .sp { display: block; margin-top: 2px; color: var(--ok, #1b7f3b); font-weight: 700; font-size: .9rem; }
.cv-sizes .sp { color: var(--ok, #1b7f3b); font-weight: 700; }
/* 9bm: item tags and the Featured row */
.cv-item { position: relative; }
.cv-item.hl { border-width: 2px; }
.cv-item.hl-red { border-color: #b3261e; }
.cv-item.hl-gold { border-color: #e0a800; }
.cv-item.hl-green { border-color: #1b6e3a; }
.cv-item.hl-navy { border-color: #0b1f4b; }
.cv-item.hl-orange { border-color: #d9480f; }
.cv-item.hl-purple { border-color: #6a2c91; }
.cv-badge { position: absolute; top: -1px; left: 12px; transform: translateY(-50%); padding: 2px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 800; letter-spacing: .02em; line-height: 1.5; color: #fff; white-space: nowrap; z-index: 1; }
.bc-red { background: #b3261e; }
.bc-gold { background: #ffc72c; color: #1a1a1a; }
.bc-green { background: #1b6e3a; }
.bc-navy { background: #0b1f4b; }
.bc-orange { background: #d9480f; }
.bc-purple { background: #6a2c91; }
.cv-featured { background: #fff8e1; border: 1px solid #f3dc8b; border-radius: 14px; padding: 6px 12px 14px; margin: 0 0 18px; }
.cv-featured h2::before { content: "\2605  "; color: #e0a800; }
.cv-items { padding-top: 10px; }
/* 9bn: Reports > Menu engineering */
.eng-chip { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .75rem; font-weight: 800; color: #fff; vertical-align: middle; }
.eng-star { background: #1b6e3a; }
.eng-plowhorse { background: #0b5394; }
.eng-puzzle { background: #b45f06; }
.eng-dog { background: #8a1c1c; }
.eng-cost { background: #777; }
.eng-tile strong { margin-top: 4px; }
.eng-head { margin-top: 10px; align-items: center; }
.eng-head h2 { margin: 6px 0; }
.eng-item { min-width: 220px; }
.eng-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.eng-acts a.btn-small { text-decoration: none; }
.eng-nophoto { color: #b45f06; font-weight: 700; font-size: .85rem; }
.eng-table { display: block; overflow-x: auto; }
.eng-costcell { white-space: nowrap; }
.eng-cost-b { display: block; margin: 2px 0 0 auto; font-size: .82rem; padding: 0; }
.eng-cost-in { width: 70px; padding: 4px 6px; margin-right: 4px; text-align: right; }
.eng-cp { background: #eef6ee; border: 1px solid #b9dcbc; border-radius: 10px; padding: 10px 12px; margin: 4px 0 12px; }
/* 9bs: the category list in the category editor */
/* 9bt: what's wrong, how to fix it, and the spot outlined */
.fix-list { margin: 8px 0 0; padding-left: 20px; }
.fix-line { margin: 0 0 10px; }
.fix-how { margin-top: 3px; color: var(--ink); }
.fix-how strong { color: var(--ok, #1b7f3b); }
.fix-acts { display: flex; gap: 8px; margin-top: 5px; flex-wrap: wrap; }
.ed-bad { outline: 3px solid var(--bad, #b3261e) !important; outline-offset: 2px; background-color: #fff3f2 !important; border-radius: 6px; animation: ed-bad-pulse 1.2s ease-in-out 2; }
@keyframes ed-bad-pulse { 50% { outline-color: #ffb4ab; } }
@media (prefers-reduced-motion: reduce) { .ed-bad { animation: none; } }
.cat-list { margin: 4px 0 6px; padding-left: 26px; max-height: 360px; overflow-y: auto; }
.cat-list li { padding: 3px 0; }
.cat-list li.on > .cat-top .cat-nm { font-weight: 700; color: var(--blue); }
/* 9bu: open a category to see its items; arrows move it */
.cat-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 2px 0; }
.cat-tog { background: none; border: 0; padding: 4px 0; font: inherit; color: inherit; text-align: left; cursor: pointer; flex: 1; }
.cat-caret { display: inline-block; width: 1.1em; color: var(--muted, #666); }
.cat-acts { display: flex; gap: 4px; flex: none; }
.cat-items { margin: 2px 0 6px; padding-left: 26px; list-style: disc; }
.cat-items li { padding: 1px 0; font-weight: 400; color: var(--ink); }
.cat-list li.moved > .cat-top { background: #eef6ee; transition: background 1s; }
.cat-list li.new { font-style: italic; }
.hl-switch { font-size: 1.05rem; margin: 6px 0; }
.hl-table .cv-badge { position: static; transform: none; display: inline-block; }
#hl-list .cv-badge { position: static; transform: none; display: inline-block; vertical-align: middle; }
.hl-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.hl-swatch { width: 32px; height: 32px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.hl-swatch.on { box-shadow: 0 0 0 3px var(--navy, #0b1f4b); }
.hl-preview { margin: 10px 0 4px; min-height: 26px; }
.hl-preview .cv-badge { position: static; transform: none; display: inline-block; }
.bn-clabel { font-weight: 600; margin: 12px 0 4px; }
.bn-colors { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.bn-color { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; padding: 0; }
.bn-color.on { box-shadow: 0 0 0 3px var(--navy, #0b1f4b); }
.bn-add-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0; }
.cv-bhead, .cv-bsub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .cv-btrack { transition: none; } }
/* 9bf: Store settings > Banners */
.bn-row { display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.bn-row.off .bn-preview { opacity: .45; }
.bn-preview { align-self: start; }
.bn-preview .cv-bhead { font-size: 1rem; }
.bn-preview .cv-bsub { font-size: .85rem; }
.bn-preview .cv-bover { padding: 14px 10px 10px; }
.bn-fields input[type=text], .bn-fields select { width: 100%; }
.bn-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
@media (max-width: 640px) { .bn-row { grid-template-columns: 1fr; } }
