/* ============================================================
   Poké Go — ordering app styles
   Component anatomy mirrors the MZ NOVA POS Self-Order kiosk:
   category rail with color dots (black selected pill), square
   photo tiles with accent-tinted borders, floating black cart,
   option chip grids with accent selection rings, black add bar.
   ============================================================ */

body { background: var(--bg); }

.order-shell {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- pickup strip ---------- */

.pickup-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0 4px;
}

.pickup-strip h1 { font-size: clamp(24px, 3vw, 32px); font-weight: 900; letter-spacing: -0.03em; margin-right: auto; }

.pill-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink-2);
}

.pill-info .icn { width: 16px; height: 16px; color: var(--teal); }

.pill-info.warn { background: rgba(199, 46, 51, 0.08); border-color: rgba(199, 46, 51, 0.25); color: var(--red); }

.pill-info.warn .icn { color: var(--red); }

/* ---------- layout: rail + menu ---------- */

.order-layout {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-top: 16px;
}

.cat-rail {
  position: sticky;
  top: calc(84px + env(safe-area-inset-top));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 10px;
  display: grid;
  gap: 6px;
  max-height: calc(100vh - 108px);
  overflow: auto;
}

.cat-rail button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  padding: 12px 13px;
  border-radius: var(--r-sm);
  color: var(--ink);
  transition: background 0.15s ease;
}

.cat-rail button .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.cat-rail button:hover { background: var(--surface-2); }

.cat-rail button.active { background: var(--ink); color: #fff; }

/* mobile horizontal category bar */

.cat-bar {
  display: none;
  position: sticky;
  top: calc(58px + env(safe-area-inset-top));
  z-index: 30;
  background: var(--bg);
  margin: 0 -20px;
  padding: 10px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
}

.cat-bar::-webkit-scrollbar { display: none; }

.cat-bar .inner { display: flex; gap: 8px; padding: 0 6px; }

.cat-bar button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 800;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
}

.cat-bar button .dot { width: 8px; height: 8px; border-radius: 50%; }

.cat-bar button.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- menu sections & item tiles ---------- */

.menu-flow { display: grid; gap: 44px; padding-bottom: 140px; min-width: 0; }

.menu-section { scroll-margin-top: 128px; }

.menu-section > header { margin-bottom: 16px; }

.menu-section h2 {
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}


.menu-section .blurb { color: var(--ink-2); font-size: 15px; margin-top: 3px; }

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
  gap: 14px;
}

.item-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid var(--tile-line, var(--line));
  overflow: hidden;
  text-align: left;
  padding: 0;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: var(--shadow-sm);
}

.item-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.item-tile:active { transform: scale(0.985); }

/* Every menu photo is shown in full, centered on white — never cover-cropped */
.item-tile .photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: contain; object-position: center;
  background: #fff;
}

/* Tall product shots (drink cups) — show the whole cup, centered on the
   photo's own white backdrop, instead of cover-cropping lid and boba. */
.item-tile .photo--tall,
.item-sheet .side .photo--tall {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.item-tile .photo-ph {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-tile .photo-ph .icn { width: 40px; height: 40px; opacity: 0.55; }

.item-tile .meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 12px 12px;
  flex: 1;
}

.item-tile .name {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-tile .row {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 5px;
}

.item-tile .price { font-size: 16px; font-weight: 800; }

.item-tile .add {
  width: 27px;
  height: 27px;
  color: var(--tile-accent, var(--teal));
}

.item-tile .add .icn { width: 100%; height: 100%; }

.badge-popular {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-popular .icn { width: 12px; height: 12px; color: var(--orange); }

.item-tile[data-soldout] { opacity: 0.55; pointer-events: none; }

.raw-note { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }

/* ---------- overlay & sheets ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(16, 22, 26, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  /* visibility:hidden as well as opacity:0 — iOS Safari's status-bar colour
     sampler still hit-tests an opacity-0 layer and would blend this scrim
     over the page (grey strip above the white header). */
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.overlay.show { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity 0.22s ease, visibility 0s; }

.sheet {
  background: var(--bg);
  border-radius: var(--r-xl);
  width: min(880px, 100%);
  max-height: min(86vh, 780px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(0.985);
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.overlay.show .sheet { transform: none; }

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.sheet-close .icn { width: 17px; height: 17px; }

/* ---- item sheet ---- */

.item-sheet { position: relative; }

.item-sheet .split { display: flex; min-height: 0; flex: 1; }

.item-sheet .side {
  width: 290px;
  flex: none;
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 22px;
  overflow: auto;
}

.item-sheet .side .photo {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain; object-position: center; background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
}

.item-sheet .side .photo-ph {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-sheet .side .photo-ph .icn { width: 56px; height: 56px; opacity: 0.55; }

.item-sheet .side h2 { font-size: 21px; font-weight: 800; margin-top: 16px; letter-spacing: -0.01em; }

.item-sheet .side .base-price { margin-top: 6px; font-size: 16px; font-weight: 800; color: var(--ink-2); }

.item-sheet .side .desc { margin-top: 10px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }

.item-sheet .groups {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 22px 22px 16px;
  display: grid;
  gap: 26px;
  align-content: start;
}

.opt-group header {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.opt-group h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }

.opt-group .tag { font-size: 12.5px; font-weight: 800; }

.opt-group .tag.req { color: var(--orange); }

.opt-group .tag.done { color: var(--green); }

.opt-group .tag.opt { color: var(--ink-3); font-weight: 700; }

.opt-group .gnote { font-size: 13px; color: var(--ink-3); width: 100%; }

.chip-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.chip-grid.text-only { grid-template-columns: repeat(auto-fill, minmax(138px, 1fr)); }

.opt-chip {
  position: relative;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 0;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
  transition: border-color 0.13s ease, box-shadow 0.13s ease;
}

.opt-chip img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; object-position: center; background: #fff; }

.opt-chip .c-label {
  padding: 9px 11px 10px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  justify-content: center;
  min-height: 44px;
}

.opt-chip .c-price { font-size: 12.5px; font-weight: 800; color: var(--ink-3); }

.opt-chip:hover { border-color: var(--sheet-accent, var(--teal)); }

.opt-chip.sel {
  border-color: var(--sheet-accent, var(--teal));
  border-width: 2.5px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sheet-accent, var(--teal)) 14%, transparent);
}

.opt-chip .sel-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  color: var(--sheet-accent, var(--teal));
  display: none;
  box-shadow: var(--shadow-sm);
}

.opt-chip .sel-badge .icn { width: 100%; height: 100%; }

.opt-chip.sel .sel-badge { display: block; }

/* counter chips */

.opt-chip .stepper {
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 9px;
}

.opt-chip.counting .stepper { display: flex; }

.st-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.st-btn .icn { width: 13px; height: 13px; }

.st-qty { font-size: 15px; font-weight: 800; min-width: 24px; text-align: center; }

/* confirm sheet (extra-portion charge notice) — sits above the item sheet */

.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 18, 22, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.14s ease, visibility 0s linear 0.14s;
}

.confirm-overlay.show { opacity: 1; visibility: visible; transition: opacity 0.14s ease, visibility 0s; }

.confirm-card {
  width: min(400px, 100%);
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px;
  transform: translateY(8px) scale(0.98);
  transition: transform 0.16s ease;
}

.confirm-overlay.show .confirm-card { transform: none; }

.confirm-card h3 { font-size: 19px; font-weight: 900; margin: 0 0 8px; }

.confirm-card p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }

.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.confirm-actions .btn { padding: 12px 18px; font-size: 15px; }

/* special instructions + add bar */

.si-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 15px;
  padding: 12px 14px;
  min-height: 74px;
  resize: vertical;
  color: var(--ink);
}

.si-field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }

.add-bar {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.add-bar .qty-stepper {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 6px;
}

.add-bar .qty-stepper .st-btn { background: var(--surface); width: 36px; height: 36px; }

.add-bar .qty-stepper .st-qty { font-size: 17px; }

.add-bar .hint { font-size: 13px; font-weight: 700; color: var(--orange); flex: 1; min-width: 0; }

.add-bar .hint.ok { color: var(--ink-3); font-weight: 600; }

.btn-add {
  margin-left: auto;
  background: var(--ink);
  color: #fff;
  font-size: 16.5px;
  font-weight: 800;
  border-radius: var(--r-lg);
  padding: 16px 24px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-add:active { transform: scale(0.98); }

.btn-add[disabled] { background: #B9BEC4; cursor: not-allowed; }

.btn-add .sep { opacity: 0.55; }

/* ---------- floating cart (desktop) ---------- */

.cart-fab {
  position: fixed;
  right: 26px;
  bottom: calc(26px + env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  height: 60px;
  padding: 0 22px;
  font-weight: 800;
  box-shadow: var(--shadow-pill);
  transition: transform 0.16s ease;
}

.cart-fab:hover { transform: translateY(-2px); }

.cart-fab .icn { width: 20px; height: 20px; }

.cart-fab .count {
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
}

.cart-fab .total { font-size: 18px; font-weight: 900; }

.cart-fab[hidden] { display: none; }

/* mobile bottom cart bar */

.cart-bar {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  z-index: 50;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 15px 18px;
  display: none;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  box-shadow: var(--shadow-pill);
}

.cart-bar .count {
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  font-size: 13.5px;
  padding: 2px 10px;
}

.cart-bar .label { flex: 1; text-align: center; font-size: 16px; }

.cart-bar .total { font-size: 17px; font-weight: 900; }

/* ---------- cart panel ---------- */

.cart-sheet {
  width: min(430px, 100%);
  max-height: min(82vh, 720px);
}

.cart-sheet .c-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.cart-sheet .c-head h2 { font-size: 19px; font-weight: 800; }


.cart-sheet .c-head .count {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  padding: 3px 10px;
}

.cart-lines { overflow: auto; padding: 12px 14px; display: grid; gap: 10px; }

.cart-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 12px 13px;
}

.cart-row .top { display: flex; justify-content: space-between; gap: 10px; }

.cart-row .n { font-size: 15px; font-weight: 700; line-height: 1.3; }

.cart-row .opts { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }

.cart-row .line-total { font-size: 15px; font-weight: 800; white-space: nowrap; }

.cart-row .bottom { display: flex; align-items: center; gap: 12px; margin-top: 10px; }

.cart-row .st-qty { font-size: 15.5px; }

.cart-row .rm {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(199, 46, 51, 0.10);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-row .rm .icn { width: 15px; height: 15px; }

.cart-row .ed {
  margin-left: auto;
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 10%, #fff);
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
}

.cart-row .ed .icn { width: 14px; height: 14px; }

.cart-row .ed + .rm { margin-left: 8px; }

.cart-empty { padding: 44px 20px; text-align: center; color: var(--ink-3); font-weight: 700; }

.cart-empty .icn { width: 42px; height: 42px; margin: 0 auto 12px; opacity: 0.5; }

.cart-totals {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 16px 20px 18px;
  display: grid;
  gap: 8px;
}

.cart-totals .t-row { display: flex; justify-content: space-between; font-size: 14.5px; color: var(--ink-2); }

.cart-totals .t-row.grand { font-size: 18px; color: var(--ink); font-weight: 900; margin-top: 2px; }

.cart-totals .btn-checkout {
  margin-top: 10px;
  background: var(--ink);
  color: #fff;
  height: 56px;
  border-radius: var(--r-lg);
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cart-totals .btn-checkout[disabled] { background: #B9BEC4; }

/* ---------- checkout & confirmation views ---------- */

.view { display: none; }

.view.active { display: block; }

.co-wrap { max-width: 760px; margin: 0 auto; padding: 26px 0 120px; }

.co-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink-2);
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
}

.co-back:hover { background: var(--surface-2); }

.co-wrap h1 { font-size: clamp(26px, 3.4vw, 34px); font-weight: 900; letter-spacing: -0.03em; margin: 12px 0 2px; }

.co-wrap .co-sub { color: var(--ink-2); font-size: 15.5px; }

.co-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}

.co-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 14px; display: flex; align-items: center; gap: 9px; }

.co-card h3 .icn { width: 30px; height: 30px; padding: 7px; background: var(--teal-soft); color: var(--teal); border-radius: 50%; }

.field { display: grid; gap: 6px; margin-bottom: 14px; }

.field label { font-size: 14px; font-weight: 800; }

.field label .optional { color: var(--ink-3); font-weight: 600; }

.field input, .field textarea {
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 16px;
  padding: 13px 15px;
  color: var(--ink);
  width: 100%;
}

.field input:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }

.field .err { font-size: 13px; font-weight: 700; color: var(--red); display: none; }

/* SMS consent notice under the phone field (Twilio toll-free verification
   points at this exact spot as the opt-in). */
.field .hint { font-size: 12.5px; font-weight: 600; color: var(--ink-3); line-height: 1.45; }
.field .hint a { color: var(--teal); text-decoration: underline; font-weight: 700; }

.field.invalid input { border-color: var(--red); }

.field.invalid .err { display: block; }

.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 620px) { .f-row { grid-template-columns: 1fr; } }

.pay-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.pay-card {
  border: 2px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 18px;
  text-align: left;
  display: grid;
  gap: 6px;
  transition: border-color 0.15s ease;
}

.pay-card .icn { width: 40px; height: 40px; padding: 9px; border-radius: 50%; background: var(--surface-2); }

.pay-card b { font-size: 16px; }

.pay-card small { color: var(--ink-2); font-size: 13px; line-height: 1.4; }

.pay-card.sel { border-color: var(--ink); }

.pay-card.sel .icn { background: var(--ink); color: #fff; }

.pay-card[disabled] { opacity: 0.55; cursor: not-allowed; }

.pay-card .soon {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink-3);
  background: var(--surface-2);
  border-radius: 999px;
  padding: 2px 9px;
  justify-self: start;
}

/* Apple Pay (rendered only when the browser supports it) */

#apple-pay-btn {
  display: block;
  width: 100%;
  height: 50px;
  border-radius: var(--r-md);
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: order;
  -apple-pay-button-style: black;
  cursor: pointer;
}

.pay-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 700;
}

.pay-divider::before, .pay-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.card-entry { margin-top: 14px; }

/* Tip for online payments */
.tip-block { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tip-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.tip-head b { font-size: 15px; }
.tip-head span { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.tip-chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.tip-chip {
  border: 2px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 10px 6px; display: grid; gap: 2px; text-align: center; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.tip-chip:hover { border-color: var(--teal); }
.tip-chip b { font-size: 16px; font-weight: 900; }
.tip-chip small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tip-chip.sel { border-color: var(--teal); background: var(--teal); color: #fff; }
.tip-chip.sel small { color: rgba(255, 255, 255, 0.85); }
.tip-custom { margin-top: 10px; }
.tip-custom label { font-size: 13.5px; font-weight: 800; display: block; margin-bottom: 6px; }
.tip-input {
  display: flex; align-items: center; gap: 6px; max-width: 200px; height: 48px;
  border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; background: var(--surface);
}
.tip-input:focus-within { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.tip-input span { font-weight: 800; color: var(--ink-2); }
.tip-input input { border: 0; outline: 0; font: inherit; font-size: 17px; font-weight: 700; width: 100%; background: transparent; }


.card-entry label { display: block; font-size: 14px; font-weight: 800; margin-bottom: 8px; }

.card-entry #card-container { min-height: 46px; }

.card-entry #card-container.loading {
  border: 1.5px dashed var(--line);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 700;
  padding: 12px;
}

.card-entry .card-note {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
}

@media (max-width: 620px) { .pay-cards { grid-template-columns: 1fr; } }

.co-summary .s-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--surface-2); font-size: 14.5px; }

.co-summary .s-line:last-of-type { border-bottom: 0; }

.co-summary .s-line .q { color: var(--ink-3); font-weight: 800; min-width: 30px; }

.co-summary .s-line .nm { flex: 1; font-weight: 700; }

.co-summary .s-line .nm small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12.5px; }

.co-summary .s-line .amt { font-weight: 800; white-space: nowrap; }

.btn-place {
  width: 100%;
  height: 60px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.btn-place[disabled] { background: #B9BEC4; cursor: not-allowed; }

.btn-place .spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.co-alert {
  margin-top: 16px;
  border-radius: var(--r-sm);
  background: rgba(199, 46, 51, 0.08);
  border: 1px solid rgba(199, 46, 51, 0.25);
  color: var(--red);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 16px;
  display: none;
  align-items: flex-start;
  gap: 10px;
}

.co-alert.show { display: flex; }

.co-alert .icn { width: 19px; height: 19px; flex: none; margin-top: 1px; }

/* confirmation */

.confirm-wrap { max-width: 640px; margin: 0 auto; padding: 44px 0 120px; text-align: center; }

.confirm-wrap .big-check { display: block; width: 92px; height: 92px; color: var(--green); margin: 0 auto; }

.confirm-wrap .big-check .icn { width: 100%; height: 100%; }

.confirm-wrap h1 { font-size: clamp(30px, 4vw, 38px); font-weight: 900; margin-top: 14px; }


.confirm-wrap .on-label { margin-top: 22px; color: var(--ink-2); font-weight: 700; font-size: 17px; }

.confirm-wrap .order-number { font-size: clamp(56px, 10vw, 76px); font-weight: 1000; letter-spacing: -0.03em; line-height: 1.05; }

.confirm-wrap .cust { font-size: 20px; font-weight: 700; color: var(--ink-2); margin-top: 2px; }

.confirm-status {
  margin: 22px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(46, 153, 77, 0.12);
  color: #1E7A3B;
  font-size: 16.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 14px 24px;
}

.confirm-status .icn { width: 22px; height: 22px; }

.confirm-note { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }

.confirm-card {
  margin-top: 26px;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}

.confirm-cta { margin-top: 26px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- rewards account ---------- */

.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
  padding: 9px 15px;
  border-radius: 999px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
}

.account-chip .icn { width: 14px; height: 14px; color: var(--orange); flex: none; }

.account-chip:hover { background: #000; }

/* checkout rewards card (kiosk orange language) */

#rewards-block h3 .icn { background: rgba(237, 140, 38, 0.14); color: var(--orange); }

.rw-copy { font-size: 14.5px; color: var(--ink-2); margin-bottom: 14px; }

.rw-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.rw-btn { padding: 12px 20px; font-size: 15px; }

.rw-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 700;
}

.rw-points {
  background: rgba(237, 140, 38, 0.12);
  color: #B36311;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 900;
}

.rw-redeem {
  margin-top: 12px;
  width: 100%;
  border: 2px solid var(--orange);
  background: rgba(237, 140, 38, 0.08);
  border-radius: var(--r-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9A550E;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rw-redeem-main { display: inline-flex; align-items: center; gap: 9px; font-size: 15.5px; }

.rw-redeem-main .icn { width: 20px; height: 20px; }

.rw-redeem-sub { font-size: 12.5px; font-weight: 700; opacity: 0.8; }

.rw-redeem.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.rw-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

.cart-totals .t-row.discount span { color: var(--green); font-weight: 800; }

.confirm-loyalty {
  margin: 14px auto 0;
  display: inline-block;
  background: rgba(237, 140, 38, 0.10);
  color: #9A550E;
  font-size: 14.5px;
  font-weight: 800;
  border-radius: 999px;
  padding: 10px 18px;
}

/* auth + account sheets */

.auth-sheet, .account-sheet {
  width: min(430px, 100%);
  max-height: min(88vh, 700px);
  overflow: auto;
  padding: 26px 24px 24px;
  background: var(--surface);
  position: relative;
}

.auth-head h2, .acct-head h2 { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }

.auth-head p, .acct-head p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }

.auth-tabs {
  margin: 18px 0 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-2);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.auth-tab {
  border-radius: 999px;
  padding: 10px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink-2);
}

.auth-tab.active { background: var(--ink); color: #fff; }

.auth-form .field { margin-bottom: 12px; }

.auth-info {
  background: var(--teal-soft);
  border: 1px solid rgba(15, 127, 140, 0.25);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  border-radius: var(--r-sm);
  padding: 10px 13px;
  margin-bottom: 12px;
}

.auth-error {
  background: rgba(199, 46, 51, 0.08);
  border: 1px solid rgba(199, 46, 51, 0.25);
  color: var(--red);
  font-size: 13.5px;
  font-weight: 700;
  border-radius: var(--r-sm);
  padding: 10px 13px;
  margin-bottom: 12px;
}

#auth-submit, #reset-submit { margin-top: 4px; height: 54px; font-size: 16.5px; }

/* Forgot password */
#reset-form { margin-top: 18px; }
.forgot-row { margin: -4px 0 12px; text-align: right; }
.link-btn {
  background: none; border: 0; padding: 0; font: inherit;
  font-size: 13.5px; font-weight: 800; color: var(--teal);
  text-decoration: underline; cursor: pointer;
}
.btn-alt-wide {
  display: block; width: 100%; margin-top: 10px; height: 50px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface-2); color: var(--ink);
  font-size: 15.5px; font-weight: 800; cursor: pointer;
}
.btn-alt-wide:hover { background: var(--line); }
.btn-alt-wide[disabled] { opacity: 0.55; cursor: not-allowed; }
.auth-alt { margin-top: 14px; text-align: center; font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.reset-sent { font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; line-height: 1.45; }
.auth-form .field .hint { margin-top: 2px; }

.acct-balance {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.acct-balance > div {
  background: rgba(237, 140, 38, 0.10);
  border-radius: var(--r-md);
  padding: 16px;
  text-align: center;
}

.acct-balance b { display: block; font-size: 30px; font-weight: 900; color: #9A550E; }

.acct-balance span { font-size: 12.5px; font-weight: 700; color: #B36311; }

.acct-progress { margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }

.acct-sub { margin: 18px 0 8px; font-size: 15px; font-weight: 800; }

.acct-history { display: grid; gap: 6px; }

.acct-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  padding: 9px 12px;
  background: var(--surface-2);
  border-radius: 10px;
}

.acct-row .delta { font-weight: 900; }

.acct-row .delta.plus { color: var(--green); }

.acct-row .delta.minus { color: var(--red); }

.acct-row .when { color: var(--ink-3); font-weight: 600; }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%) translateY(8px);
  z-index: 80;
  background: var(--ink);
  color: #fff;
  font-weight: 800;
  font-size: 14.5px;
  border-radius: 999px;
  padding: 12px 22px;
  box-shadow: var(--shadow-pill);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 40px);
}

.toast.show { opacity: 1; transform: translateX(-50%); }

.toast .icn { width: 17px; height: 17px; color: #6FDD8B; }

/* ---------- responsive: mobile app chrome ---------- */

@media (max-width: 979px) {
  .order-layout { grid-template-columns: 1fr; gap: 0; padding-top: 4px; }
  .cat-rail { display: none; }
  .cat-bar { display: block; }
  .cart-fab { display: none; }
  .cart-bar.has-items { display: flex; }
  .menu-flow { padding-bottom: 120px; }
  .menu-section { scroll-margin-top: 122px; }

  .overlay { padding: 0; align-items: flex-end; }
  .sheet {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 92dvh;
    width: 100%;
    transform: translateY(40px);
  }
  .item-sheet .split { flex-direction: column; overflow: auto; }
  .item-sheet .side {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 18px 16px;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 14px;
    align-items: start;
    overflow: visible;
    flex: none;
  }
  .item-sheet .side .photo, .item-sheet .side .photo-ph { aspect-ratio: 1; border-radius: var(--r-md); }
  .item-sheet .side h2 { margin-top: 0; font-size: 19px; }
  .item-sheet .side .desc { grid-column: 1 / -1; margin-top: 0; }
  .item-sheet .groups { overflow: visible; flex: none; padding: 18px; }
  .chip-grid { grid-template-columns: repeat(auto-fill, minmax(126px, 1fr)); }
  .add-bar { flex-wrap: wrap; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .add-bar .hint { order: 3; width: 100%; flex: none; text-align: center; }
  .btn-add { flex: 1; justify-content: center; padding: 16px 18px; }
  .cart-sheet { max-height: 88dvh; }
  .toast { bottom: 96px; }
}

@media (max-width: 560px) {
  .item-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .item-tile .name { font-size: 13.5px; }
  .item-tile .price { font-size: 15px; }
  .item-tile .meta { padding: 9px 10px 10px; }
}

@media (min-width: 980px) {
  .cart-bar { display: none !important; }
}

/* ---------- start page: dine in / to go + table pick ---------- */

.start-wrap { max-width: 720px; margin: 0 auto; padding: 34px 0 70px; text-align: center; }

.start-kicker { font-size: 13.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); }

.start-wrap h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; letter-spacing: -0.03em; margin: 8px 0; }

.start-sub { color: var(--ink-3); font-size: 15.5px; font-weight: 600; }

.mode-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }

.mode-card {
  background: var(--surface);
  border: 2.5px solid var(--line);
  border-radius: var(--r-xl);
  padding: 26px 18px 22px;
  display: grid;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mode-card:hover { border-color: var(--teal); }

.mode-card.sel { border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 14%, transparent); }

.mode-card .mode-icn {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
}

.mode-card.sel .mode-icn { background: var(--teal); color: #fff; }

.mode-card .mode-icn .icn { width: 32px; height: 32px; }

.mode-card b { font-size: 22px; font-weight: 900; }

.mode-card small { font-size: 13.5px; font-weight: 600; color: var(--ink-3); line-height: 1.3; }

.table-panel {
  margin-top: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 22px 18px;
}

.table-panel h2 { font-size: 20px; font-weight: 900; }

.table-hint { color: var(--ink-3); font-size: 14px; font-weight: 600; margin-top: 4px; }

.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; margin-top: 16px; }

.table-chip {
  height: 64px;
  border-radius: var(--r-md);
  border: 2px solid var(--line);
  background: var(--surface);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.table-chip:hover { border-color: var(--teal); }

.table-chip.sel { border-color: var(--teal); background: var(--teal); color: #fff; }

.start-cta { margin-top: 22px; }

.start-cta .btn-place { margin-top: 0; }

.mode-pill { cursor: pointer; }

.mode-pill .chg { font-weight: 800; color: var(--teal); margin-left: 4px; }

@media (max-width: 560px) {
  .mode-cards { grid-template-columns: 1fr; }
  .start-wrap { padding-top: 18px; }
  .mode-card { padding: 20px 16px 18px; }
}

/* ---------- account: order history + Order Again ---------- */

.acct-hint { font-size: 13px; color: var(--ink-3); margin: -4px 0 10px; }

.acct-orders { display: grid; gap: 10px; }

.acct-order {
  background: var(--surface-2);
  border-radius: var(--r-md);
  padding: 12px 12px 12px;
  display: grid;
  gap: 8px;
}

.ao-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 14px; }

.ao-head b { font-weight: 900; font-size: 15px; }

.ao-head .when { color: var(--ink-3); font-weight: 600; font-size: 13px; }

.ao-head .amt { margin-left: auto; font-weight: 900; }

.ao-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }

.ao-items li { font-size: 13.5px; font-weight: 700; line-height: 1.3; }

.ao-items li small { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-3); }

.ao-again { justify-content: center; padding: 11px 14px; font-size: 14px; }

.ao-again .icn { width: 15px; height: 15px; }

.reorder-issues { display: grid; gap: 8px; margin-bottom: 14px; }

.ri-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(237, 140, 38, 0.10);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.ri-row > .icn { width: 18px; height: 18px; color: var(--orange); flex: none; }

.ri-row span { flex: 1; min-width: 0; }

.ri-row .ri-choose { padding: 8px 12px; font-size: 13px; flex: none; }
