/* Eight23 iPad menu: base look.
 *
 * HOW THIS IS ORGANIZED (for ChatGPT / any designer)
 *  1. :root holds every colour, font, radius and shadow as a variable. Change the look by changing these.
 *  2. Layout + components below use only those variables.
 *  3. Per-event looks live in css/themes/<name>.css. They loaded AFTER this file and only need to override
 *     the :root variables (and, optionally, a few component rules). See css/themes/_template.css.
 * Do not rename classes or ids: app.js and index.html depend on them (list in CHATGPT_BRIEF.md).
 */
:root {
  /* brand colours */
  --bg: #F9F5EF;            /* page background (cream) */
  --surface: #FFFFFF;       /* cards, sheets */
  --surface-2: #F3ECE1;     /* soft panels, chips */
  --ink: #1C1612;           /* main text (espresso) */
  --ink-2: #6B5E54;         /* secondary text */
  --line: #E5DCCF;          /* borders */
  --accent: #925A12;        /* buttons, highlights (amber) */
  --accent-ink: #FFFFFF;    /* text on accent */
  --accent-soft: #F6E7CC;   /* light accent tint */
  --good: #2E7D32;
  --bad: #B3261E;
  --overlay: rgba(28, 22, 18, 0.55);

  /* type */
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, 'Helvetica Neue', Arial, sans-serif;

  /* shape + depth */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 6px 24px rgba(28, 22, 18, 0.10);
  --shadow-lg: 0 18px 50px rgba(28, 22, 18, 0.25);

  /* sizing */
  --tap: 56px;              /* minimum touch target */
  --cart-width: 380px;
  --gap: 20px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
body.has-sheet, body.has-overlay { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }

/* ---------- page layout: menu on the left, order on the right (landscape); order docked at bottom in portrait ---------- */
.app {
  display: grid; min-height: 100vh;
  grid-template-columns: 1fr var(--cart-width);
  grid-template-rows: auto auto 1fr;
  grid-template-areas: "header cart" "tabs cart" "menu cart";
  column-gap: var(--gap);
}
.app-header { grid-area: header; padding: 22px 0 8px 28px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand-logo { height: 64px; width: auto; display: block; }
.brand-tagline { font-family: var(--font-display); font-size: 24px; color: var(--ink-2); }
.brand-welcome { flex-basis: 100%; color: var(--ink-2); }

.category-tabs {
  grid-area: tabs; position: sticky; top: 0; z-index: 5; background: var(--bg);
  display: flex; gap: 10px; padding: 12px 0 12px 28px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.category-tab {
  flex: none; min-height: var(--tap); padding: 0 26px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--surface);
  font-family: var(--font-display); font-size: 22px; font-weight: 500; color: var(--ink-2);
}
.category-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.menu { grid-area: menu; padding: 8px 0 120px 28px; }
.state-message { padding: 40px 0; color: var(--ink-2); font-size: 20px; }
.state-message[data-state="error"] { color: var(--bad); }
.menu-section { padding-top: 14px; scroll-margin-top: 90px; }
.menu-section-title { font-family: var(--font-display); font-size: 40px; font-weight: 500; margin: 8px 0 16px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--gap); }

.menu-item {
  display: flex; flex-direction: column; text-align: left; padding: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease;
}
.menu-item:active { transform: scale(.985); }
.menu-item.is-sold-out { opacity: .5; }
.menu-item-media { aspect-ratio: 4 / 3; background: var(--surface-2); }
.menu-item-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.menu-item-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-item-name { font-family: var(--font-display); font-size: 27px; font-weight: 500; line-height: 1.1; }
.menu-item-desc { color: var(--ink-2); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
.menu-item-price { font-weight: 700; font-size: 19px; }
.menu-item-add { background: var(--accent); color: var(--accent-ink); padding: 10px 22px; border-radius: var(--radius-pill); font-weight: 700; }
.is-sold-out .menu-item-add { background: var(--surface-2); color: var(--ink-2); }

/* ---------- order panel ---------- */
.cart {
  grid-area: cart; position: sticky; top: 0; align-self: start; max-height: 100vh; overflow-y: auto;
  background: var(--surface); border-left: 1px solid var(--line); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px;
}
.cart.is-flash { animation: cartFlash .5s ease; }
@keyframes cartFlash { 0% { background: var(--accent-soft); } 100% { background: var(--surface); } }
.cart-title { font-family: var(--font-display); font-size: 32px; font-weight: 500; }
.cart-empty { color: var(--ink-2); }
.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cart-line-name { font-weight: 700; }
.cart-line-mods { color: var(--ink-2); font-size: 14px; }
.cart-line .qty { grid-column: 1; }
.cart-line-price { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; align-self: start; }
.cart-footer { display: flex; flex-direction: column; gap: 12px; }
.cart-total-row, .pay-total-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.cart-total-grand, .pay-total-grand { font-weight: 700; font-size: 22px; border-top: 1px solid var(--line); padding-top: 10px; }
.fee-note { color: var(--ink-2); font-size: 13px; line-height: 1.45; }

/* ---------- buttons ---------- */
.btn {
  min-height: var(--tap); padding: 0 24px; border-radius: var(--radius-pill); border: 1.5px solid transparent;
  font-weight: 700; font-size: 18px; width: 100%;
}
.btn-pay, .btn-add { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: var(--surface); border-color: var(--ink); color: var(--ink); }
.btn-clear { background: transparent; color: var(--ink-2); font-weight: 500; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: var(--radius-pill); padding: 4px; }
.qty-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); font-size: 24px; line-height: 1; }
.qty-num { min-width: 34px; text-align: center; font-weight: 700; }
.qty-small .qty-btn { width: 38px; height: 38px; }

/* ---------- customize sheet ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 20; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  position: relative; width: min(760px, 100%); max-height: 92vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-lg);
}
.sheet-close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 28px; }
.sheet-body { overflow-y: auto; padding: 24px 26px 0; display: flex; flex-direction: column; gap: 16px; -webkit-overflow-scrolling: touch; }
.sheet-head { display: flex; gap: 18px; align-items: center; padding-right: 50px; }
.sheet-photo { width: 120px; height: 120px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.sheet-title { font-family: var(--font-display); font-size: 34px; font-weight: 500; line-height: 1.05; }
.sheet-desc { color: var(--ink-2); font-size: 15px; margin-top: 6px; }
.option-group { border: 0; padding: 0; margin: 0; min-width: 0; }
.option-group-title { font-weight: 700; padding: 0 0 8px; display: flex; align-items: center; justify-content: space-between; width: 100%; }
.option-group.is-optional { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0 16px; }
.option-group.is-optional > summary { list-style: none; min-height: var(--tap); padding: 0; cursor: pointer; }
.option-group.is-optional > summary::-webkit-details-marker { display: none; }
.option-group.is-optional > summary::after { content: '▾'; margin-left: 10px; color: var(--ink-2); }
.option-group.is-optional[open] > summary::after { content: '▴'; }
.option-group.is-optional .option-list { padding-bottom: 14px; }
.option-count { margin-left: auto; color: var(--accent); font-size: 14px; font-weight: 700; }
.option-list { display: flex; flex-wrap: wrap; gap: 10px; }
.option { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 20px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option.is-checked { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.option-price { opacity: .75; font-size: 14px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: 14px; align-items: center; padding: 16px 0 calc(18px + env(safe-area-inset-bottom)); background: var(--surface); }
.sheet-foot .btn-add { flex: 1; }

/* ---------- checkout / payment panel ---------- */
.pay-overlay { position: fixed; inset: 0; z-index: 30; background: var(--overlay); display: flex; align-items: center; justify-content: center; padding: 20px; }
.pay-panel {
  width: min(560px, 100%); max-height: 94vh; overflow-y: auto; background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); padding: 30px 28px; display: flex; flex-direction: column; gap: 14px; text-align: center;
}
.pay-title { font-family: var(--font-display); font-size: 36px; font-weight: 500; line-height: 1.05; }
.pay-text { color: var(--ink-2); font-size: 18px; }
.pay-spinner { width: 54px; height: 54px; margin: 6px auto; border-radius: 50%; border: 5px solid var(--line); border-top-color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pay-check, .pay-alert { width: 84px; height: 84px; margin: 4px auto; border-radius: 50%; display: grid; place-items: center; font-size: 46px; font-weight: 700; color: #fff; }
.pay-check { background: var(--good); animation: pop .4s ease; }
.pay-alert { background: var(--bad); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
.pay-order-label { color: var(--ink-2); text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.pay-order-number { font-family: var(--font-display); font-size: 84px; line-height: 1; font-weight: 600; color: var(--accent); }
.pay-thanks { color: var(--ink); font-size: 24px; }

.pay-panel[data-state="checkout"] { text-align: left; }
.pay-panel[data-state="checkout"] .pay-title { text-align: center; }
.pay-summary { display: flex; flex-direction: column; gap: 8px; max-height: 22vh; overflow-y: auto; padding: 10px 14px; background: var(--surface-2); border-radius: var(--radius-sm); }
.pay-summary-line { display: flex; justify-content: space-between; gap: 12px; }
.pay-summary-name { font-weight: 700; }
.pay-summary-mods { color: var(--ink-2); font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-weight: 700; }
.field-hint { color: var(--bad); font-size: 13px; }
.field input { min-height: var(--tap); padding: 0 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); font-size: 20px; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.name-field.is-missing input { border-color: var(--bad); }
.tip-title { font-weight: 700; }
.tip-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; }
.tip-btn { min-height: 64px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tip-btn-main { font-weight: 700; font-size: 19px; }
.tip-btn-sub { color: var(--ink-2); font-size: 13px; }
.tip-btn.is-active { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.tip-btn.is-active .tip-btn-sub { color: var(--bg); opacity: .8; }
.pay-totals { padding-top: 4px; }
.pay-fee-note { text-align: center; }
.pay-help { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

/* ---------- portrait iPad / narrow: order docks at the bottom ---------- */
@media (max-width: 1000px), (orientation: portrait) {
  .app { grid-template-columns: 1fr; grid-template-areas: "header" "tabs" "menu"; column-gap: 0; }
  .app-header, .category-tabs, .menu { padding-left: 20px; padding-right: 20px; }
  .cart {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; max-height: 46vh; z-index: 10;
    border-left: 0; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px rgba(28,22,18,.12);
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  }
  body:not(.has-order) .cart { display: none; }
  .menu { padding-bottom: 260px; }
}

/* Eight23 signature finish — responsive customer experience. */
:root { --radius: 20px; --radius-sm: 12px; --shadow: 0 2px 6px rgba(28,22,18,.035); --cart-width: 360px; --gap: 24px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
button, input, summary { touch-action: manipulation; }
.app { grid-template-columns: minmax(0,1fr) var(--cart-width); }
.app-header { padding: 32px 0 20px 32px; gap: 20px; }
.brand-logo { max-width: 210px; height: 72px; object-fit: contain; }
.brand-tagline { font-size: 23px; }
.category-tabs { padding-left: 32px; border-bottom: 1px solid var(--line); }
.category-tab { font-family: var(--font-body); font-size: 17px; font-weight: 700; }
.menu { padding: 12px 0 48px 32px; }
.menu-section-title { font-size: 42px; letter-spacing: -.025em; margin: 14px 0 22px; }
.menu-grid { grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr)); }
.menu-item { box-shadow: none; transition: transform 180ms ease; }
.menu-item-media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; }
.menu-item-media:empty::after { content: 'Eight23'; position: absolute; inset: 0; display: grid; place-items: center; font: italic 38px var(--font-display); color: var(--ink-2); }
.menu-item-photo { object-fit: contain; }
.menu-item-body { padding: 20px; gap: 10px; }
.menu-item-name { font-size: 29px; line-height: 1.12; overflow-wrap: anywhere; }
.menu-item-desc { font-size: 16px; line-height: 1.5; display: block; overflow: visible; }
.menu-item-add { min-height: 56px; display: inline-flex; align-items: center; background: var(--ink); color: var(--bg); }
.menu-item.is-sold-out { opacity: 1; }
.is-sold-out .menu-item-photo { filter: grayscale(1); opacity: .55; }
.cart { height: 100vh; height: 100dvh; overflow: hidden; padding: 28px 20px 20px; gap: 14px; }
.cart-title { font-size: 34px; }
.cart-lines { min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.cart-empty { padding: 24px 0; }
.cart-footer { flex-shrink: 0; margin-top: auto; }
.cart-line-info { min-width: 0; overflow-wrap: anywhere; }
.cart-line-mods { font-size: 15px; line-height: 1.5; }
.cart-line { padding: 18px 0; }
.cart-line-price, .menu-item-price, .pay-summary-price, .pay-total-row { font-variant-numeric: tabular-nums; }
.btn { border-radius: var(--radius-sm); min-height: 60px; padding: 12px 20px; }
.btn-pay, .btn-add { background: var(--ink); color: var(--bg); }
.qty { width: max-content; flex-shrink: 0; }
.qty-btn, .qty-small .qty-btn { width: 56px; height: 56px; }
.sheet-close { width: 56px; height: 56px; }
.sheet { max-height: 94dvh; }
.sheet-body { padding: 28px 28px 0; gap: 24px; }
.sheet-head { padding-right: 56px; }
.sheet-title { font-size: 38px; overflow-wrap: anywhere; }
.sheet-desc { font-size: 17px; line-height: 1.5; }
.option { padding: 12px 18px; border-radius: var(--radius-sm); }
.option:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.option-count { color: var(--ink-2); }
.sheet-foot { border-top: 1px solid var(--line); gap: 12px; }
.pay-panel { width: min(640px,100%); max-height: 94dvh; padding: 32px; gap: 18px; }
.pay-title { font-size: 40px; }
.pay-summary { max-height: 20dvh; padding: 16px; }
.pay-summary-line { padding: 8px 0; border-bottom: 1px solid var(--line); }
.pay-summary-info { min-width: 0; overflow-wrap: anywhere; }
.pay-summary-price { flex-shrink: 0; font-weight: 700; }
.tip-row { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 8px; }
.tip-btn { min-height: 76px; }
.tip-btn-sub { font-size: 14px; }
.pay-order-label { text-transform: none; letter-spacing: 0; font-size: 18px; }
.pay-order-number { color: var(--ink); font-size: clamp(64px,12vw,100px); overflow-wrap: anywhere; }
.pay-thanks { overflow-wrap: anywhere; }
.pay-tip-thanks { color: var(--good); }
.pay-panel[data-state='success'] { border-top: 8px solid var(--good); }
.pay-panel[data-state='error'], .pay-panel[data-state='canceled'] { border-top: 8px solid var(--bad); }
.pay-panel[data-state='check'], .pay-panel[data-state='reprice'], .pay-panel[data-state='demo'] { border-top: 8px solid var(--accent); }
.pay-panel[data-state='creating'], .pay-panel[data-state='waiting'], .pay-panel[data-state='confirming'] { padding-block: 48px; }
@media (max-width:1000px), (orientation:portrait) {
 .app { grid-template-columns:minmax(0,1fr); }
 .app-header,.category-tabs,.menu { padding-left:24px; padding-right:24px; }
 .cart { height:auto; max-height:40dvh; padding:16px 24px calc(16px + env(safe-area-inset-bottom)); gap:8px; }
 body:not(.has-order) .cart { display:flex; }
 .cart-title { font-size:27px; }
 .cart-empty { padding:0; }
 .cart-lines { flex:1 1 auto; }
 .cart-footer { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:8px 16px; }
 .cart-footer .btn-clear { grid-column:1; grid-row:2; }
 .cart-footer .btn-pay { grid-column:2; grid-row:1 / span 2; }
 .cart .fee-note:empty { display:none; }
 .menu { padding-bottom:calc(40dvh + 32px); }
}
@media (max-width:600px) {
 .app-header { padding:20px 16px 10px; gap:8px; }
 .brand-logo { height:58px; }
 .brand-tagline { font-size:20px; flex-basis:100%; }
 .category-tabs { padding:10px 16px; }
 .category-tab { padding:0 18px; }
 .menu { padding-left:16px; padding-right:16px; }
 .menu-grid { grid-template-columns:minmax(0,1fr); gap:18px; }
 .menu-item-media { aspect-ratio:4 / 3; }
 .cart { padding-inline:16px; max-height:44dvh; }
 .menu { padding-bottom:calc(44dvh + 32px); }
 .cart-footer .btn-clear { min-height:56px; padding:8px; text-align:left; }
 .sheet-body { padding:22px 16px 0; }
 .sheet-head { align-items:flex-start; gap:12px; }
 .sheet-photo { width:72px; height:90px; }
 .sheet-title { font-size:28px; }
 .sheet-foot { flex-wrap:wrap; }
 .sheet-foot .btn-add { min-width:150px; }
 .pay-overlay { padding:10px; }
 .pay-panel { padding:24px 16px; }
 .tip-row { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .pay-title { font-size:34px; }
}
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition:none !important; scroll-behavior:auto !important; } }

/* Refined menu direction: editorial photography and a quieter type scale. */
:root { --bg:#F4F1E9; --surface:#FFFEFA; --surface-2:#EAE5DA; --ink:#24362B; --ink-2:#5F665D; --line:#DCDDD2; --accent:#976626; --accent-soft:#F1E3C9; --radius:12px; --radius-sm:8px; --cart-width:340px; }
.app-header { padding-top:24px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.brand-logo { height:62px; }.brand-tagline { font-size:20px; }
.category-tabs { border:0; gap:8px; }.category-tab { font-size:14px; border-radius:8px; padding-inline:20px; }
.menu-section-title { font-size:34px; margin-block:16px 20px; }
.menu-item { border:0; background:transparent; overflow:visible; border-radius:0; }
.menu-item-media { border-radius:12px; background:#EAE5DA; overflow:hidden; }
.menu-item-body { padding:16px 2px 22px; gap:8px; }
.menu-item-name { font-size:25px; }.menu-item-desc { font-size:14px; line-height:1.55; }
.menu-item-price { font-size:17px; }.menu-item-add { font-size:14px; padding:10px 22px; border-radius:8px; }
.cart { background:#FFFEFA; padding-top:26px; }.cart-title { font-size:28px; }
.cart-line-name { font-size:15px; }.cart-line-mods { font-size:13px; }.cart-line-price { font-size:15px; }
.cart-total-grand { font-size:19px; }.btn { font-size:16px; }.cart-empty { font-size:15px; }
.sheet-title { font-size:31px; }.sheet-desc { font-size:15px; }.option { font-size:15px; }
.pay-title { font-size:32px; }.pay-text { font-size:16px; }.pay-summary-name { font-size:15px; }
@media(max-width:600px) {
 .brand-logo { height:52px; }.brand-tagline { font-size:18px; }.menu-section-title { font-size:30px; }
 .menu-item-name { font-size:25px; }.cart-title { font-size:23px; }.cart { gap:6px; }
 .sheet-title { font-size:26px; }.pay-title { font-size:29px; }
}

/* ---------- checkout fix (2026-11-08): never squash the order list; the panel scrolls instead ---------- */
.pay-panel > * { flex-shrink: 0; }
.pay-summary { max-height: 42dvh; overflow-y: auto; padding: 8px 18px; gap: 0; -webkit-overflow-scrolling: touch; }
.pay-summary-line { padding: 12px 0; align-items: flex-start; }
.pay-summary-line:last-child { border-bottom: 0; }
.pay-summary-name { font-size: 20px; line-height: 1.25; }
.pay-summary-mods { font-size: 16px; line-height: 1.35; margin-top: 3px; }
.pay-summary-price { font-size: 20px; }

/* ---------- welcome screen: full house menu, then "Ready to order" ---------- */
.welcome { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; background: var(--bg); }
.welcome[hidden] { display: none; }
.welcome-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; justify-content: center; align-items: flex-start; padding: 0; }
.welcome-menu { display: block; width: min(100%, 1000px); height: auto; }
.welcome-bar { flex: none; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(28,22,18,.08); display: flex; justify-content: center; }
.welcome-ready { width: min(560px, 100%); min-height: 68px; font-size: 24px; }
.app-header { position: relative; }
.btn.view-menu { position: absolute; top: 14px; right: 16px; width: auto; min-height: 48px; padding: 0 20px; font-size: 16px; margin: 0; }
@media (min-width: 1000px) and (orientation: landscape) { .welcome-menu { width: min(100%, 760px); } }

/* ---------- fixed one-screen menu (2026-11-08): the whole menu visible, no page scrolling ---------- */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.app { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "header cart" "menu cart"; }
.category-tabs { display: none; }
.app-header { padding: 14px 0 12px 32px; gap: 16px; flex-wrap: nowrap; }
.brand-logo { height: 46px; max-width: 160px; }
.brand-tagline { font-size: 20px; }
.brand-welcome { display: none; }
.menu { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow-y: auto; padding: 10px 0 18px 32px; -webkit-overflow-scrolling: touch; }
.menu-section { flex: var(--rows, 1) 1 0; min-height: calc(var(--rows, 1) * 150px + 44px); display: flex; flex-direction: column; padding-top: 0; }
.menu-section-title { font-size: 28px; margin: 0 0 8px; line-height: 1.1; flex: none; }
.menu-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 12px; }
.menu-item { min-height: 0; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: relative; }
.menu-item-media { flex: 1; min-height: 0; aspect-ratio: auto; border-radius: 0; }
.menu-item-media:empty::after { font-size: 26px; }
.menu-item-photo { object-fit: cover; }
.menu-item-body { flex: none; padding: 8px 12px 10px; gap: 4px; }
.menu-item-name { font-size: 20px; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: normal; }
.menu-item-desc { display: none; }
@media (max-width: 1100px) { .menu-item-name { font-size: 18px; } }
.menu-item-foot { padding-top: 0; margin-top: 0; }
.menu-item-price { font-size: 17px; }
.menu-item-add { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 8px; }
@media (max-width: 1000px), (orientation: portrait) {
  .app { display: flex; flex-direction: column; }
  .app-header { padding: 12px 20px 10px; }
  .menu { flex: 1; padding: 10px 20px 12px; }
  .cart { position: static; align-self: stretch; flex: none; height: auto; max-height: 34dvh; z-index: 1; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(28,22,18,.08); }
  .cart-title { font-size: 22px; }
  .cart-line { padding: 8px 0; }
  .cart .qty-btn, .cart .qty-small .qty-btn { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  .menu { padding-bottom: 12px; }
  .menu-grid { --cols: 2; }
  .menu-section { min-height: calc(var(--rows, 1) * 130px + 40px); }
}

/* ---------- welcome screen fits the iPad screen, no scrolling (2026-11-08) ---------- */
.welcome-scroll { overflow: hidden; min-height: 0; align-items: stretch; padding: 8px 12px 0; }
.welcome-menu { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.welcome-bar { padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); }
.welcome-ready { min-height: 64px; }
@media (min-width: 700px) and (orientation: landscape) {
  .welcome { flex-direction: row; }
  .welcome-scroll { flex: 1; padding: 10px 0 10px 16px; }
  .welcome-bar { flex: none; width: 340px; padding: 24px; align-items: center; border-top: 0; border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(28,22,18,.06); }
  .welcome-ready { width: 100%; min-height: 84px; font-size: 26px; }
}

/* ---------- fit the VISIBLE screen (JS sets --app-h from window.innerHeight; fixes iPad Safari cutting off the bottom) ---------- */
html, body { height: var(--app-h, 100%); }
.app { height: var(--app-h, 100vh); }
.cart { height: var(--app-h, 100vh); }
.welcome { inset: 0 0 auto 0; height: var(--app-h, 100vh); }
.welcome-scroll { position: relative; flex: 1; min-height: 0; overflow: hidden; padding: 0; display: block; }
.welcome-menu { position: absolute; left: 0; top: 6px; width: 100%; height: calc(100% - 12px); max-width: none; object-fit: contain; }
.welcome-bar { padding: 8px 20px calc(10px + env(safe-area-inset-bottom)); }
.welcome-ready { min-height: 60px; font-size: 22px; }
@media (min-width: 700px) and (orientation: landscape) {
  .welcome-scroll { padding: 0; }
  .welcome-menu { left: 12px; width: calc(100% - 12px); }
  .welcome-ready { min-height: 84px; font-size: 26px; }
}
@media (max-width: 1000px), (orientation: portrait) {
  .cart { height: auto; max-height: calc(var(--app-h, 100vh) * .34); }
}

/* ---------- card: price on the photo corner, full-width Add button (no crowding) ---------- */
.menu-item-price { position: absolute; top: 8px; right: 8px; z-index: 2; margin: 0; padding: 5px 12px; border-radius: 999px; background: rgba(255,254,250,.95); color: var(--ink); font-size: 17px; font-weight: 700; box-shadow: 0 1px 4px rgba(28,22,18,.18); }
.menu-item-foot { display: block; margin: 4px 0 0; padding: 0; }
.menu-item-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 0 12px; font-size: 16px; }
.menu-item-body { padding: 8px 10px 10px; gap: 4px; }

/* ---------- phones (under 600px wide): scrolling menu, 2 columns, square photos, tidy header ---------- */
@media (max-width: 600px) {
  .app-header { padding: 10px 16px; gap: 10px; flex-wrap: nowrap; align-items: center; }
  .brand-logo { height: 36px; max-width: 120px; }
  .brand-tagline { display: none; }
  .btn.view-menu { position: static; margin: 0 0 0 auto; min-height: 42px; padding: 0 16px; font-size: 15px; width: auto; }
  .menu { display: block; flex: 1; min-height: 0; overflow-y: auto; padding: 10px 14px 16px; }
  .menu-section { display: block; min-height: 0; margin-bottom: 18px; }
  .menu-section-title { font-size: 26px; margin: 0 0 10px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; gap: 12px; }
  .menu-item { height: auto; }
  .menu-item-media { flex: none; aspect-ratio: 1 / 1; }
  .menu-item-body { padding: 10px 10px 12px; gap: 8px; }
  .menu-item-name { font-size: 18px; min-height: 2.24em; }
  .menu-item-foot { margin: 0; }
  .cart { max-height: 40%; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .cart-title { font-size: 20px; }
  .fee-note { font-size: 12px; }
}

/* ---------- uniform cards: full square photos, same size, Add on the photo (layoutMenu() in app.js sets --card-w) ---------- */
.menu-section { flex: none; min-height: 0; display: block; }
.menu-grid { flex: none; display: grid; grid-template-columns: repeat(var(--cols, 4), var(--card-w, minmax(0, 1fr))); grid-auto-rows: auto; justify-content: center; gap: 12px; }
.menu-item { height: auto; position: relative; }
.menu-item-media { flex: none; width: 100%; aspect-ratio: 1 / 1; }
.menu-item-photo { object-fit: cover; object-position: center; }
.menu-item-body { flex: none; height: 58px; padding: 8px 10px; gap: 0; justify-content: flex-start; }
.menu-item-name { flex: none; height: 2.24em; min-height: 0; font-size: 18px; line-height: 1.12; -webkit-line-clamp: 2; }
.menu-item-foot { margin: 0; padding: 0; display: block; }
.menu-item-add { position: absolute; right: 8px; bottom: 66px; z-index: 2; width: auto; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 15px; box-shadow: 0 2px 8px rgba(28,22,18,.28); }
.is-sold-out .menu-item-add { box-shadow: none; }
@media (min-width: 601px) and ((max-width: 1000px) or (orientation: portrait)) {
  .cart { height: calc(var(--app-h, 100vh) * .24); min-height: 240px; max-height: none; overflow: hidden; }
  .cart .fee-note { display: none; }   /* the card-fee note is shown on the checkout screen */
  .cart-line { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 14px; }
  .cart-line .qty { grid-column: 2; grid-row: 1; }
  .cart-line-price { grid-column: 3; grid-row: 1; align-self: center; }
}
.menu-item-body { font-size: var(--name-fs, 18px); height: var(--body-h, 58px); padding: 8px 10px; }
.menu-item-name { font-size: 1em; height: 2.24em; }
.menu-item-add { bottom: calc(var(--body-h, 58px) + 8px); }
@media (min-width: 601px) and (max-height: 800px) and ((max-width: 1000px) or (orientation: portrait)) {
  .cart { height: auto; min-height: 0; max-height: 36%; }
}


/* ---------- welcome screen: true full bleed (no bar, no borders around "Ready to order") ---------- */
.welcome { background: #f9e8db; }
.welcome-scroll { position: absolute; inset: 0; padding: 0; overflow: hidden; }
.welcome-menu { position: absolute; left: 0; top: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.welcome-bar { position: absolute; left: 0; right: 0; bottom: 0; width: auto; background: transparent; border: 0; box-shadow: none; padding: 0 20px calc(18px + env(safe-area-inset-bottom)); pointer-events: none; }
.welcome-ready { pointer-events: auto; box-shadow: 0 10px 28px rgba(28,22,18,.35); }
@media (min-width: 1000px) and (orientation: landscape) {
  .welcome { flex-direction: column; }
  .welcome-bar { left: auto; right: 0; top: 0; bottom: 0; width: max(260px, calc((100vw - var(--app-h, 100vh) * 0.7722) / 2)); padding: 24px; align-items: center; border: 0; }
  .welcome-ready { width: 100%; }
}

/* The picture is taller or wider than the screen on some tablets: fill the leftover space with a blurred, enlarged copy of the same picture so it reads as one full-screen image (app.js sets --welcome-img). */
.welcome { overflow: hidden; }
.welcome::before { content: ''; position: absolute; inset: -60px; background: var(--welcome-img, none) center / cover no-repeat; filter: blur(34px) saturate(1.08); transform: scale(1.1); }
.welcome-scroll, .welcome-bar { z-index: 1; }

/* ---------- drink cards: nothing sits on the photo. Name, then price (left) and Add (right) underneath. ---------- */
.menu-item-body { display: flex; flex-direction: column; justify-content: space-between; gap: 4px; padding: 8px 10px 10px; }
.menu-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0; }
.menu-item-price { position: static; padding: 0; margin: 0; border-radius: 0; background: none; box-shadow: none; font-size: calc(var(--name-fs, 18px) * 1.02); font-weight: 700; white-space: nowrap; }
.menu-item-add { position: static; right: auto; bottom: auto; width: auto; flex: none; min-height: 38px; padding: 0 18px; border-radius: 999px; font-size: 15px; box-shadow: none; }
@media (max-width: 600px) {
  .menu-item-body { height: auto; }
  .menu-item-name { height: auto; min-height: 2.24em; }
}

/* ---------- order panel: grows to show every line (no little scroll box); the drink cards above shrink to make room ---------- */
@media (min-width: 601px) and ((max-width: 1000px) or (orientation: portrait)) {
  .cart { height: auto; min-height: 0; max-height: none; overflow: visible; }
  .cart-lines { overflow: visible; flex: none; }
}

/* keep price + Add inside narrow cards (cards shrink when the order panel grows) */
.menu-item-body { padding: 8px 8px 10px; }
.menu-item-foot { gap: 6px; min-width: 0; }
.menu-item-price { font-size: min(calc(var(--name-fs, 18px) * 1.02), 17px); }
.menu-item-add { min-height: 36px; padding: 0 12px; font-size: 14px; }

/* welcome: anchor the picture to the top so spare height sits at the bottom behind the button (no big band on top) */
.welcome-menu { object-position: center top; }


/* =====================================================================================================
   CLEAN LAYOUT (2026-11-09): one consistent card, header and order bar. These rules are the final word.
   Card = photo, name, price + small "+" marker. The whole card is the tap target (no cut-off buttons).
   ===================================================================================================== */
html, body { overflow-x: hidden; max-width: 100%; }

/* header: logo, tagline, "View full menu" in one tidy row */
.app-header { position: static; display: flex; align-items: center; flex-wrap: nowrap; gap: 16px; padding: 12px 24px; border-bottom: 1px solid var(--line); }
.app-header .brand-logo { height: 46px; width: auto; max-width: 150px; flex: none; }
.app-header .brand-tagline { flex: 1 1 auto; min-width: 0; margin: 0; font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .btn.view-menu { position: static; flex: none; width: auto; margin: 0 0 0 auto; min-height: 44px; padding: 0 18px; font-size: 15px; white-space: nowrap; }

/* the card */
.menu-item { display: flex; flex-direction: column; padding: 0; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: none; }
.menu-item-media { flex: none; width: 100%; aspect-ratio: 1 / 1; background: var(--surface-2); }
.menu-item-photo { width: 100%; height: 100%; object-fit: cover; }
.menu-item-body { flex: none; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; padding: 10px 12px 12px; }
.menu-item-name { flex: none; margin: 0; font-size: var(--name-fs, 18px); line-height: 1.15; height: 2.3em; -webkit-line-clamp: 2; }
.menu-item-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 0; }
.menu-item-price { position: static; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; font-size: 16px; font-weight: 700; white-space: nowrap; }
.menu-item-add { position: static; flex: none; display: grid; place-items: center; width: 30px; min-height: 0; height: 30px; padding: 0; border-radius: 50%; background: var(--ink); color: var(--bg); font-size: 20px; font-weight: 500; line-height: 1; box-shadow: none; }
.is-sold-out .menu-item-add { width: auto; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--surface-2); color: var(--ink-2); }

/* tablets (and anything wider than a phone): menu fills the width, section title lines up with the cards */
@media (min-width: 601px) {
  .menu { display: block; padding: 12px 24px 14px; overflow-y: auto; }
  .menu-section { display: block; width: calc(var(--cols, 4) * var(--card-w, 160px) + (var(--cols, 4) - 1) * 12px); max-width: 100%; margin: 0 auto 14px; min-height: 0; flex: none; }
  .menu-section-title { margin: 0 0 8px; font-size: 26px; }
  .menu-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), var(--card-w, minmax(0, 1fr))); justify-content: center; gap: 12px; }
  .menu-item-body { height: var(--body-h, 80px); }
}
@media (max-width: 600px) {
  .menu-item-name { height: auto; min-height: 2.3em; }
}

/* order bar (portrait/narrow): docked at the bottom, grows to show every line, tidy rows */
@media (min-width: 601px) and ((max-width: 1000px) or (orientation: portrait)) {
  .cart { padding: 14px 24px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(28,22,18,.08); }
  .cart-title { font-size: 22px; }
  .cart-line { padding: 8px 0; }
  .cart .qty-btn, .cart .qty-small .qty-btn { width: 40px; height: 40px; }
}

/* ---------- welcome screen, final: picture on top, brand-green "Ready to order" footer takes the leftover space ---------- */
.welcome { background: var(--ink); }
.welcome::before { content: none; }
.welcome-scroll { position: absolute; inset: 0; }
.welcome-menu { position: absolute; left: 0; top: 0; width: 100%; height: var(--w-img-h, 100%); object-fit: contain; object-position: center top; }
.welcome-bar { position: absolute; left: 0; right: 0; bottom: 0; top: auto; width: auto; height: var(--w-foot, 120px); display: flex; align-items: center; justify-content: center; padding: 0 28px calc(0px + env(safe-area-inset-bottom)); background: var(--ink); border: 0; box-shadow: none; pointer-events: auto; z-index: 2; }
.welcome-ready { width: min(560px, 100%); min-height: 68px; font-size: 24px; background: var(--bg); color: var(--ink); box-shadow: none; }
@media (min-width: 700px) and (orientation: landscape) {
  .welcome-menu { left: var(--w-img-x, 0); width: var(--w-img-w, 100%); height: 100%; object-position: left top; }
  .welcome-bar { left: auto; right: 0; top: 0; bottom: 0; width: var(--w-foot, 260px); height: auto; padding: 24px; }
  .welcome-ready { width: 100%; }
}


/* ---------- order bar + drawer (narrow screens): the order never squeezes the menu; "View order" opens it ---------- */
.cart-toggle, .cart-close { display: none; }
.cart-sheet { display: contents; }
.cart-head { display: block; }
@media (max-width: 1000px), (orientation: portrait) {
  .cart { position: fixed; left: 0; right: 0; top: auto; bottom: 0; height: auto; min-height: 0; max-height: none; overflow: visible; margin: 0; padding: 0; border: 0; box-shadow: none; background: transparent; display: block; z-index: 12; pointer-events: none; animation: none; }
  body:not(.has-order) .cart { display: none; }
  .cart > * { pointer-events: auto; }
  .cart.is-flash .cart-toggle { animation: barBump .45s ease; }
  @keyframes barBump { 0% { transform: scale(1); } 40% { transform: scale(1.025); } 100% { transform: scale(1); } }
  .cart-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 32px); margin: 0 16px calc(14px + env(safe-area-inset-bottom)); min-height: 64px; padding: 0 22px; border: 0; border-radius: 16px; background: var(--ink); color: var(--bg); font-size: 18px; font-weight: 700; box-shadow: 0 10px 28px rgba(28,22,18,.32); }
  .cart-toggle-label { display: inline-flex; align-items: center; }
  .cart-toggle-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; margin-left: 10px; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 15px; }
  .cart-toggle-total { font-variant-numeric: tabular-nums; }
  .cart-sheet { display: none; }
  body.cart-open .cart { top: 0; background: var(--overlay); display: flex; flex-direction: column; justify-content: flex-end; pointer-events: auto; }
  body.cart-open .cart-toggle { display: none; }
  body.cart-open .cart-sheet { display: block; background: var(--surface); border-radius: 20px 20px 0 0; padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); max-height: 82%; overflow-y: auto; box-shadow: var(--shadow-lg); }
  .cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
  .cart-close { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 10px; border: 1.5px solid var(--ink); background: var(--surface); font-weight: 700; font-size: 15px; }
  .menu, .menu { padding-bottom: 12px; }
  body.has-order .menu { padding-bottom: 96px; }
}


/* ===== guest (not one of our registered devices): menu picture only, no ordering ===== */
.welcome-guest-note { display: none; margin: 0; color: var(--bg); font-size: 20px; font-weight: 600; text-align: center; line-height: 1.3; }
body.guest .welcome-ready { display: none; }
body.guest .welcome-guest-note { display: block; }
body.guest #app, body.guest .pay-overlay, body.guest .sheet-backdrop, body.guest #sheetBackdrop { display: none !important; }

/* Thank-you screen: follow / review reminder with the two social icons (not links). */
.pay-remind { font-size: 17px; line-height: 1.4; }
.pay-stars { color: #E0A21B; letter-spacing: .12em; white-space: nowrap; font-size: 20px; }
.pay-socials { display: flex; justify-content: center; gap: 16px; }
.pay-social { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; }
/* Thank-you screen: the barista calls names, so no order number here; the thank-you is the headline. */
.pay-panel[data-state="success"] .pay-thanks { font-family: var(--font-display); font-size: 44px; font-weight: 500; line-height: 1.1; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 600px) { .pay-panel[data-state="success"] .pay-thanks { font-size: 34px; } }
.pay-panel[data-state="success"] .pay-tip-thanks { font-size: 19px; font-weight: 600; line-height: 1.35; }
.pay-panel[data-state="success"] .pay-remind { font-weight: 700; color: var(--ink); font-size: 19px; }
.pay-panel[data-state="success"] .pay-handle { text-align: center; font-weight: 700; font-size: 17px; color: var(--ink); margin: 0 0 6px; }
.pay-panel[data-state="success"] .pay-review-note { font-size: 15px; }
/* Brand colors: Instagram gradient, TikTok black with cyan/red glyph edges. */
.pay-social.pay-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.pay-social.pay-tt { background: #000; }
/* Checkout: optional phone number + text consent */
.pay-panel[data-state="checkout"] .sms-consent { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0 10px; font-size: 15px; line-height: 1.35; color: var(--ink-2); cursor: pointer; text-align: left; }
.pay-panel[data-state="checkout"] .sms-consent input { width: 26px; height: 26px; flex: 0 0 26px; margin: 0; accent-color: var(--ink); }
.pay-panel[data-state="checkout"] .sms-hint { margin: 0 0 8px; color: #b3261e; }
/* Checkout: promo code and discount line */
.pay-panel[data-state="checkout"] .promo-box { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 8px; }
.pay-panel[data-state="checkout"] .promo-link { width: auto; flex: none; align-self: flex-start; min-height: 44px; padding: 0 6px; font-size: 16px; font-weight: 600; text-decoration: underline; }
.pay-panel[data-state="checkout"] .promo-form { display: flex; gap: 8px; }
.pay-panel[data-state="checkout"] .promo-form input { flex: 1; min-width: 0; min-height: var(--tap); border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--surface); padding: 0 20px; font-size: 18px; text-transform: uppercase; letter-spacing: .04em; }
.pay-panel[data-state="checkout"] .promo-apply { width: auto; flex: none; }
.pay-panel[data-state="checkout"] .promo-msg { color: var(--bad); font-size: 14px; }
.pay-panel[data-state="checkout"] .promo-chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); font-weight: 700; }
.pay-panel[data-state="checkout"] .promo-remove { flex: none; background: none; border: 0; min-height: 44px; padding: 0 12px; font-weight: 600; text-decoration: underline; }
.pay-panel[data-state="checkout"] .pay-total-discount { color: var(--good); font-weight: 700; }
.pay-panel[data-state="waiting"] .pay-expect { font-weight: 700; }
.pay-panel[data-state="waiting"] .pay-expect-warn { font-size: 14px; color: var(--ink-2); }
