:root {
  color-scheme: light;
  font-family: "Segoe UI", "Aptos", Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --navy: #183044;
  --navy-deep: #102333;
  --gold: #d6ad50;
  --gold-pale: #f2e7ca;
  --paper: #f5f3ee;
  --white: #fff;
  --line: #d9d8d2;
  --muted: #68757d;
  --green: #2c7254;
  --red: #a83c34;
}
* { box-sizing: border-box; }
html, body { width: 100%; min-width: 320px; height: 100%; margin: 0; overflow: hidden; background: var(--paper); color: var(--navy); }
body { touch-action: manipulation; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
#app { width: 100%; height: 100%; }
.kiosk-shell { height: 100%; display: grid; grid-template-rows: 70px minmax(0, 1fr) 38px; background: var(--paper); }
.pos-header { display: flex; align-items: center; padding: 0 26px; gap: 22px; background: #fff; border-bottom: 1px solid var(--line); }
.brand-button { height: 58px; width: 210px; display: flex; align-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; }
.brand-button img { width: 100%; max-height: 52px; object-fit: contain; object-position: left center; }
.header-context { height: 42px; display: grid; align-content: center; gap: 3px; padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.header-context b { color: var(--navy); font-size: 13px; letter-spacing: .035em; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.sim-badge { color: #53615f; font-size: 10px; letter-spacing: .1em; font-weight: 750; }
.header-cart { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid #c5c9c4; background: #fff; font-weight: 750; letter-spacing: .06em; cursor: pointer; }
.header-cart b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; }
.bag-icon { font-size: 22px; }
.pos-body { min-height: 0; overflow: hidden; }
.pos-footer { display: flex; align-items: center; justify-content: space-between; padding: 0 26px; background: #fff; border-top: 1px solid var(--line); color: #8a918f; font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.footer-powered { color: #63766a; }

/* Physical kiosk attract display */
.attract { position: relative; height: 100%; min-height: 100svh; overflow: hidden; isolation: isolate; background: var(--navy-deep); color: #fff; cursor: pointer; }
.attract-photo { position: absolute; inset: 0; z-index: -2; background-image: url("/assets/corner-press-food-collage.png"); background-size: 200% 200%; background-repeat: no-repeat; transform: scale(1.015); transition: background-position .6s ease, opacity .5s ease; }
.attract[data-slot="pastrami"] .attract-photo { background-position: left top; }
.attract[data-slot="green"] .attract-photo { background-position: right top; }
.attract[data-slot="soup"] .attract-photo { background-position: left bottom; }
.attract[data-slot="cookie"] .attract-photo { background-position: right bottom; }
.attract-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(12,27,38,.93) 0%, rgba(12,27,38,.83) 33%, rgba(12,27,38,.13) 76%), linear-gradient(0deg, rgba(9,21,29,.76), transparent 24%); }
.attract-brand { position: absolute; top: 24px; left: 34px; display: grid; gap: 8px; }
.attract-brand img { width: 268px; height: 106px; padding: 6px 9px; background: rgba(255,255,255,.96); object-fit: contain; }
.attract-brand span { color: #f2e9d5; font-size: 9px; letter-spacing: .16em; font-weight: 750; }
.attract-copy { position: absolute; left: clamp(38px, 7vw, 110px); top: 50%; width: min(610px, 56vw); transform: translateY(-37%); }
.attract-kicker, .small-label { color: #a9863d; font-size: 11px; letter-spacing: .19em; font-weight: 800; }
.attract-kicker { color: #e5ca80; }
.attract-copy h1 { max-width: 630px; margin: 17px 0 11px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.2vw, 74px); line-height: 1.01; letter-spacing: -.045em; font-weight: 500; }
.attract-copy p { margin: 0; color: rgba(255,255,255,.88); font-size: clamp(18px, 1.75vw, 24px); }
.start-button { min-height: 68px; margin-top: 36px; display: inline-flex; align-items: center; gap: 16px; padding: 0 25px 0 15px; border: 1px solid var(--gold); background: var(--gold); color: var(--navy-deep); font-size: 14px; letter-spacing: .09em; font-weight: 850; cursor: pointer; transition: background .16s ease, color .16s ease; }
.start-button:hover { background: #f1d78f; }
.touch-ring { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(16,35,51,.45); border-radius: 50%; font-size: 21px; }
.slide-dots { display: flex; gap: 8px; margin-top: 24px; }
.slide-dots span { width: 24px; height: 3px; background: rgba(255,255,255,.38); }
.slide-dots span.active { background: var(--gold); }
.attract-footer { position: absolute; left: 34px; right: 34px; bottom: 22px; display: flex; justify-content: space-between; color: rgba(255,255,255,.7); font-size: 9px; letter-spacing: .16em; font-weight: 700; }
.reset-note { position: absolute; left: 50%; bottom: 68px; transform: translateX(-50%); padding: 11px 17px; background: #fff; color: var(--navy); }

/* Menu workspace */
.pos-body:has(.menu-layout), .pos-body:has(.customize-layout) { overflow: hidden; }
.menu-layout { height: 100%; display: grid; grid-template-columns: 176px minmax(0, 1fr) 330px; }
.category-rail { padding: 18px 11px; background: #efeee9; border-right: 1px solid var(--line); }
.category-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; margin-bottom: 5px; border: 0; border-left: 3px solid transparent; background: transparent; text-align: left; font-size: 13px; font-weight: 650; cursor: pointer; }
.category-button.selected { border-left-color: var(--gold); background: #fff; color: var(--navy); }
.category-button span { color: var(--muted); }
.rail-separator { margin: 16px 9px; border-top: 1px solid var(--line); }
.cart-nav { color: #52636c; }
.menu-workspace { min-width: 0; display: flex; flex-direction: column; padding: 21px 24px 19px; }
.menu-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.small-label { display: block; }
.menu-heading h1, .flow-heading h1 { margin: 5px 0 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 500; letter-spacing: -.035em; }
.search-box { width: min(320px, 44%); height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); background: #fff; color: #77838a; }
.search-box span { font-size: 23px; }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--navy); font-size: 14px; }
.search-box kbd { font-size: 15px; }
.product-grid { min-height: 0; overflow: auto; display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); align-content: start; gap: 13px; padding: 1px 2px 5px; }
.product-card { min-width: 0; min-height: 190px; padding: 0; display: flex; flex-direction: column; border: 1px solid #d9d8d2; background: #fff; text-align: left; cursor: pointer; transition: border-color .16s ease, transform .16s ease; }
.product-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.food-photo { display: block; width: 100%; height: 129px; background-image: url("/assets/corner-press-food-collage.png"); background-size: 200% 200%; background-repeat: no-repeat; }
.menu-photo { display: flex; width: 100%; height: 129px; align-items: center; justify-content: center; overflow: hidden; background: #ebe8df; }
.menu-photo img { width: 100%; height: 100%; object-fit: cover; }
.menu-photo img.contain { padding: 8px; object-fit: contain; }
.photo-pastrami { background-position: left top; }
.photo-green { background-position: right top; }
.photo-soup { background-position: left bottom; }
.photo-cookie { background-position: right bottom; }
.product-meta { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px 11px; }
.product-meta b { font-size: 13px; line-height: 1.18; }
.product-meta strong { white-space: nowrap; color: #344a37; font-size: 14px; }
.drink-illustration { height: 129px; display: grid; place-items: center; background: #ebe8df; color: #8d7343; font-size: 47px; }
.empty-menu { grid-column: 1 / -1; padding: 40px 12px; color: var(--muted); }
.cart-rail { min-height: 0; display: flex; flex-direction: column; padding: 20px 17px 16px; background: #fff; border-left: 1px solid var(--line); }
.cart-title { display: flex; align-items: center; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.cart-title h2, .checkout-summary h2 { margin: 0; font-size: 17px; }
.cart-title button { min-width: 40px; min-height: 40px; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.cart-lines { min-height: 0; flex: 1; overflow: auto; }
.cart-empty { height: 100%; min-height: 145px; display: grid; align-content: center; justify-items: center; text-align: center; color: #84908d; }
.cart-empty span { font-size: 27px; color: #a78c55; }
.cart-empty p { margin: 8px 0 3px; color: #4a5b5d; font-size: 13px; }
.cart-empty small { font-size: 11px; }
.cart-line { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; padding: 13px 0; border-bottom: 1px solid #ecebe6; }
.cart-line-copy { min-width: 0; display: grid; gap: 4px; }
.cart-line-copy b { font-size: 12px; line-height: 1.25; }
.cart-line-copy span { color: var(--muted); font-size: 10px; }
.cart-line-copy strong { padding-top: 3px; font-size: 12px; }
.quantity-stepper { display: flex; flex: 0 0 auto; align-items: center; gap: 6px; }
.quantity-stepper button { width: 34px; height: 34px; border: 1px solid #d0d2ce; background: #fff; font-size: 20px; cursor: pointer; }
.quantity-stepper b, .quantity-readonly { min-width: 18px; text-align: center; font-size: 12px; }
.total-rows { padding: 13px 0 9px; }
.total-rows > div { display: flex; justify-content: space-between; padding: 4px 0; font-size: 11px; }
.total-rows b { color: var(--navy); }
.tax-line { color: #7b8588; }
.grand-total { margin-top: 6px; padding-top: 11px !important; border-top: 1px solid var(--line); font-size: 14px !important; font-weight: 800; }
.checkout-button { width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: space-between; padding: 0 17px; border: 0; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .075em; cursor: pointer; }
.checkout-button span { color: var(--gold); font-size: 21px; }
.checkout-button:disabled { background: #c5c8c5; cursor: default; }

/* Customization and upsell */
.customize-layout { display: grid; grid-template-columns: minmax(220px, 36%) minmax(0, 1fr); gap: 22px; }
.customize-photo { width: 100%; min-height: 270px; background-image: url("/assets/corner-press-food-collage.png"); background-size: 200% 200%; background-repeat: no-repeat; }
.customize-drink { min-height: 240px; display: grid; place-items: center; background: #e7e5df; color: #8d7343; font: 25px Georgia, serif; }
.customize-options { display: flex; flex-direction: column; gap: 18px; }
.option-group h2 { margin: 0 0 9px; font-size: 16px; }
.helper { margin: -4px 0 9px; color: var(--muted); font-size: 11px; }
.choice-option { width: 100%; min-height: 47px; display: flex; align-items: center; gap: 10px; padding: 0 11px; border: 1px solid var(--line); border-bottom: 0; background: #fff; text-align: left; font-size: 12px; cursor: pointer; }
.choice-option:last-child { border-bottom: 1px solid var(--line); }
.choice-option b { margin-left: auto; }
.radio-dot { width: 17px; height: 17px; border: 1px solid #879294; border-radius: 50%; }
.choice-option.chosen .radio-dot { border: 5px solid var(--navy); }
.modifier-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.modifier-option { min-height: 52px; display: flex; align-items: center; gap: 7px; padding: 0 9px; border: 1px solid var(--line); background: #fff; font-size: 11px; cursor: pointer; }
.modifier-option b { margin-left: auto; white-space: nowrap; }
.modifier-option.chosen { border-color: var(--navy); background: #f0f1ef; }
.modifier-check { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid #b9bfbd; color: var(--green); font-size: 16px; }
.sticky-actions { position: absolute; left: 20px; right: 20px; bottom: 14px; display: flex; justify-content: flex-end; gap: 9px; }
.customize-screen { height: 100%; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.customize-main { min-width: 0; position: relative; padding: 21px 24px 78px; overflow: auto; }
.customize-main .flow-heading { margin-bottom: 17px; }
.secondary-button, .primary-button { min-height: 52px; padding: 0 20px; border: 1px solid var(--navy); font-size: 11px; letter-spacing: .07em; font-weight: 800; cursor: pointer; }
.secondary-button { background: #fff; color: var(--navy); }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--navy); color: #fff; }
.primary-button span { color: var(--gold); }
.upsell-screen { width: min(700px, 90%); height: 100%; overflow: auto; margin: auto; padding: 28px 0; }
.upsell-screen h1 { margin: 9px 0 6px; font: 500 36px Georgia, serif; }
.upsell-screen > p { margin: 0 0 18px; color: var(--muted); font-size: 13px; }
.offer-list { border-top: 1px solid var(--line); }
.offer-row { width: 100%; min-height: 59px; display: flex; align-items: center; gap: 13px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; }
.offer-plus { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #c8bd9d; color: #79632e; font-size: 20px; }
.offer-row b { font-size: 14px; }
.offer-row strong { margin-left: auto; white-space: nowrap; }
.cookie-offer { width: 100%; min-height: 76px; margin-top: 15px; display: flex; align-items: center; gap: 12px; padding: 7px; border: 1px solid #ded7c7; background: #fff; text-align: left; cursor: pointer; }
.cookie-offer .food-photo { width: 84px; height: 60px; flex: 0 0 84px; }
.cookie-offer > span:nth-child(2) { display: grid; gap: 5px; }
.cookie-offer b { font-size: 12px; }
.cookie-offer small { color: var(--muted); font-size: 10px; }
.cookie-offer strong { margin-left: auto; white-space: nowrap; }
.skip-button, .view-cart-button { width: 100%; min-height: 50px; margin-top: 12px; border: 1px solid var(--navy); background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .06em; cursor: pointer; }
.view-cart-button { border-color: var(--navy); background: var(--navy); color: #fff; }

/* Cart and customer details */
.cart-screen { height: 100%; max-width: 1000px; margin: auto; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 35px; padding: 27px 30px; overflow: auto; }
.flow-heading { margin-bottom: 13px; }
.flow-heading h1 { margin-top: 11px; }
.back-button { min-height: 48px; margin-bottom: 16px; padding: 0 10px 0 0; border: 0; background: transparent; color: #66757b; text-align: left; font-size: 10px; font-weight: 800; letter-spacing: .08em; cursor: pointer; }
.cart-review { min-height: 120px; border-top: 1px solid var(--line); }
.cart-review .cart-line { padding: 15px 4px; }
.cart-review .cart-line-copy b { font-size: 14px; }
.cart-review .cart-line-copy span { font-size: 11px; }
.cart-review .cart-line-copy strong { font-size: 14px; }
.cart-review-total { align-self: start; padding: 17px; background: #fff; border: 1px solid var(--line); }
.cart-review-total .checkout-button { margin-top: 8px; }
.customer-screen { height: 100%; overflow: auto; display: grid; grid-template-columns: minmax(420px, 1.15fr) minmax(300px, .85fr); gap: 28px; max-width: 1040px; margin: auto; padding: 24px 30px; }
.form-panel { max-width: 570px; }
.form-panel .flow-heading { margin-bottom: 16px; }
.form-panel .flow-heading > p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
#customer-form { display: grid; grid-template-columns: 1fr 1fr; gap: 11px 13px; }
#customer-form label { display: grid; gap: 6px; color: #43555f; font-size: 11px; font-weight: 700; }
#customer-form label:nth-of-type(4), .privacy-note, .form-error, .full-button { grid-column: 1 / -1; }
#customer-form input, #customer-form textarea { width: 100%; min-height: 48px; padding: 10px; border: 1px solid #c9cbc5; border-radius: 0; background: #fff; color: var(--navy); font-size: 13px; }
#customer-form textarea { resize: vertical; }
.optional { margin-left: 5px; color: #87918f; font-size: 8px; letter-spacing: .1em; }
.privacy-note { margin: 0; color: #77827e; font-size: 10px; }
.form-error { min-height: 16px; color: var(--red); font-size: 11px; }
.full-button { width: 100%; min-height: 56px; }
.checkout-summary { align-self: start; padding: 16px; border: 1px solid var(--line); background: #fff; }
.checkout-summary h2 { margin-bottom: 9px; }
.checkout-summary .cart-line { padding: 10px 0; }
.checkout-summary .cart-line-copy b { font-size: 11px; }
.checkout-summary .quantity-readonly { padding: 7px; }
.checkout-summary .summary-mark { display: block; margin-top: 13px; color: #7d8987; font-size: 9px; letter-spacing: .1em; }

/* QR payment and completion */
.payment-screen { height: 100%; max-width: 1100px; margin: auto; display: grid; grid-template-columns: minmax(350px, .9fr) minmax(400px, 1.1fr); align-items: center; gap: 35px; padding: 18px 30px; overflow: auto; }
.payment-left > h1 { margin: 8px 0 0; font: 500 54px Georgia, serif; letter-spacing: -.04em; }
.tax-caption { margin: 2px 0 12px; color: var(--muted); font-size: 11px; }
.mode-row { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; margin-bottom: 12px; }
.payment-mode-tag { display: inline-flex; min-height: 28px; align-items: center; padding: 0 9px; background: #eee6d4; color: #725d2f; font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.mode-switch { display: flex; gap: 3px; }
.mode-switch button { min-height: 30px; padding: 0 9px; border: 1px solid #d5d5ce; background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.mode-switch button.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.mode-lock { color: #818986; font-size: 8px; font-weight: 750; letter-spacing: .07em; }
.payment-methods { display: flex; gap: 5px; margin: 11px 0; }
.method-button { min-height: 48px; padding: 0 9px; border: 1px solid #cfd0ca; background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.method-button.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.method-button small { display: block; font-size: 7px; color: var(--gold-pale); }
.payment-status { min-height: 54px; display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 11px; border: 1px solid #d9dbd4; background: #fff; }
.status-led { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #bf9e55; }
.status-paid .status-led { background: var(--green); }
.status-failed .status-led, .status-expired .status-led, .status-cancelled .status-led { background: var(--red); }
.payment-status div { display: grid; gap: 3px; }
.payment-status b { font-size: 10px; letter-spacing: .08em; }
.payment-status small { color: var(--muted); font-size: 10px; }
.payment-error { color: var(--red); font-size: 11px; }
.retry-payment { min-height: 48px; margin-top: 10px; padding: 0 13px; border: 1px solid var(--navy); background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.payment-right { display: grid; justify-items: center; align-content: center; min-height: 0; }
.qr-frame { width: min(310px, 65vw, 39vh); aspect-ratio: 1; display: grid; place-items: center; padding: 10px; border: 1px solid #dbd9d1; background: #fff; }
.payment-qr { width: 100%; height: 100%; }
.qr-pending { display: grid; place-items: center; width: 100%; height: 100%; color: #69777d; font-size: 11px; text-align: center; }
.scan-instruction { max-width: 340px; margin: 12px 0 0; color: #53636a; font-size: 12px; text-align: center; }
.phone-link { display: flex; gap: 9px; margin-top: 10px; color: #77817d; font-size: 9px; }
.phone-link a { color: var(--navy); font-weight: 800; }
.hosted-payment-link { margin-bottom: 10px; color: var(--navy); font-size: 11px; font-weight: 800; }
.terminal-animation { width: min(360px, 90%); min-height: 240px; display: grid; align-content: center; justify-items: center; gap: 13px; border: 1px solid #d6d7d0; background: #fff; }
.terminal-animation span { color: #90753c; font-size: 60px; }
.terminal-animation b { font-size: 12px; letter-spacing: .09em; }
.terminal-animation small { color: var(--muted); }
.simulate-terminal { margin-top: 12px; min-width: 260px; justify-content: center; }
.warning-backdrop { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 16px; background: rgba(14,29,39,.58); }
.warning-dialog { width: min(440px, 95vw); padding: 26px; background: #fff; border-top: 4px solid var(--gold); }
.warning-dialog h2 { margin: 8px 0; font: 500 25px Georgia, serif; }
.warning-dialog p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.warning-dialog .primary-button, .warning-dialog .text-button { width: 100%; justify-content: center; margin-top: 8px; }
.text-button { min-height: 43px; border: 0; background: transparent; color: #68757d; font-size: 10px; font-weight: 800; cursor: pointer; }
.confirmed-screen { width: 100%; height: 100%; display: grid; grid-template-rows: 90px 1fr 50px; padding: 0 clamp(24px, 6vw, 90px); background: #f6f4ed; }
.confirmed-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.confirmed-top img { max-width: 220px; max-height: 62px; object-fit: contain; }
.confirmed-top span, .confirmed-footer { color: #64746f; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.confirmed-content { align-self: center; justify-self: center; width: min(520px, 100%); display: grid; justify-items: center; text-align: center; }
.success-check, .phone-check { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 15px; border: 1px solid #b9d0c1; border-radius: 50%; color: var(--green); font-size: 30px; }
.confirmed-content h1 { margin: 9px 0 14px; font: 500 clamp(34px, 4vw, 49px) Georgia, serif; letter-spacing: -.04em; }
.confirmed-number { font-size: 23px; }
.confirmed-amount { width: 100%; display: flex; justify-content: space-between; margin-top: 18px; padding: 15px 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.confirmed-amount span { color: var(--muted); font-size: 13px; }
.confirmed-amount b { font-size: 18px; }
.confirmed-content p { color: #566961; }
.return-countdown { min-height: 48px; margin-top: 15px; padding: 0 17px; border: 0; background: var(--navy); color: #fff; font-size: 11px; font-weight: 750; cursor: pointer; }
.confirmed-footer { display: flex; align-items: center; justify-content: center; }

/* Scanned phone page */
.phone-page { width: 100%; min-height: 100%; overflow: auto; display: grid; place-items: center; padding: 26px 16px 50px; background: #f1efe9; }
.phone-card { width: min(420px, 100%); padding: 25px 23px; display: grid; justify-items: center; border: 1px solid #dedcd4; background: #fff; text-align: center; }
.phone-card > img { width: 230px; height: 90px; object-fit: contain; }
.phone-mode { margin: 8px 0 17px; padding: 8px 10px; background: #f2e8d2; color: #74602f; font-size: 8px; letter-spacing: .1em; font-weight: 800; }
.phone-card .small-label { margin: 15px 0 5px; }
.phone-card h1 { margin: 5px 0 16px; font: 500 28px Georgia, serif; }
.phone-order { width: 100%; display: grid; gap: 9px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.phone-order span { color: var(--muted); font-size: 11px; }
.phone-order b { font-size: 14px; }
.phone-order strong { font-size: 22px; }
.phone-order small { color: #6b7875; font-size: 10px; text-transform: capitalize; }
.phone-pay-button { width: 100%; min-height: 52px; display: grid; place-items: center; margin-top: 16px; border: 0; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-decoration: none; cursor: pointer; }
.phone-cancel-button { width: 100%; min-height: 48px; margin-top: 7px; border: 1px solid var(--line); background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.phone-note, .phone-success, .phone-failed { color: #697672; font-size: 10px; line-height: 1.45; }
.phone-page footer { position: fixed; bottom: 12px; color: #85908b; font-size: 8px; letter-spacing: .15em; font-weight: 750; }
.phone-check { width: 45px; height: 45px; margin: 12px 0; font-size: 23px; }
.phone-success { color: var(--green); }
.phone-failed { color: var(--red); }
.fatal { height: 100%; display: grid; align-content: center; justify-items: center; gap: 12px; padding: 24px; text-align: center; }
.fatal img { width: min(330px, 90vw); }
.fatal h1 { font: 500 30px Georgia, serif; }
.fatal button { min-height: 52px; padding: 0 20px; background: var(--navy); color: white; border: 0; }

@media (min-width: 1600px) {
  .menu-layout { grid-template-columns: 210px minmax(0, 1fr) 390px; }
  .customize-screen { grid-template-columns: minmax(0, 1fr) 390px; }
  .product-grid { grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 16px; }
  .product-card { min-height: 232px; }
  .food-photo, .drink-illustration, .menu-photo { height: 165px; }
  .product-meta b { font-size: 15px; }
  .cart-rail { padding: 24px 21px; }
}
@media (max-width: 900px) {
  .kiosk-shell { grid-template-rows: 62px minmax(0,1fr) 31px; }
  .pos-header { padding: 0 13px; gap: 11px; }
  .brand-button { width: 145px; }
  .brand-button img { max-height: 43px; }
  .header-context { padding-left: 10px; }
  .header-right { gap: 7px; }
  .sim-badge { display: none; }
  .menu-layout { grid-template-columns: 124px minmax(0,1fr) 260px; }
  .category-rail { padding: 11px 7px; }
  .category-button { min-height: 49px; padding: 0 8px; font-size: 11px; }
  .menu-workspace { padding: 15px 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(130px,1fr)); gap: 8px; }
  .product-card { min-height: 155px; }
  .food-photo, .drink-illustration, .menu-photo { height: 100px; }
  .cart-rail { padding: 12px 10px; }
  .customize-screen { grid-template-columns: minmax(0,1fr) 260px; }
  .customize-main { padding: 15px 14px 76px; }
  .customize-layout { grid-template-columns: minmax(155px,32%) minmax(0,1fr); gap: 12px; }
  .customize-photo { min-height: 200px; }
  .modifier-grid { grid-template-columns: 1fr; }
  .payment-screen { grid-template-columns: 1fr 1fr; gap: 12px; padding: 13px 18px; }
  .payment-left > h1 { font-size: 43px; }
  .method-button { padding: 0 5px; font-size: 8px; }
  .qr-frame { width: min(270px, 60vw, 38vh); }
  .customer-screen { grid-template-columns: minmax(0,1fr) 280px; padding: 15px; gap: 15px; }
}
@media (max-width: 650px) {
  html, body { overflow: auto; }
  #app { min-height: 100%; height: auto; }
  .kiosk-shell { height: 100svh; min-height: 620px; grid-template-rows: 58px minmax(0,1fr) 29px; }
  .attract-brand { top: 12px; left: 16px; gap: 4px; }
  .attract-brand img { width: 168px; height: 68px; padding: 4px 6px; }
  .attract-brand span { font-size: 7px; letter-spacing: .1em; }
  .attract-copy { left: 24px; top: 48%; width: calc(100% - 48px); transform: translateY(-20%); }
  .attract-kicker { font-size: 8px; letter-spacing: .12em; }
  .attract-copy h1 { margin: 10px 0 7px; font-size: clamp(32px, 9vw, 42px); }
  .attract-copy p { font-size: 16px; }
  .start-button { min-height: 56px; gap: 10px; margin-top: 15px; padding: 0 14px 0 9px; font-size: 10px; }
  .touch-ring { width: 34px; height: 34px; }
  .slide-dots { margin-top: 12px; }
  .attract-footer { left: 14px; right: 14px; bottom: 9px; gap: 4px; font-size: 5px; letter-spacing: .08em; }
  .pos-header { padding: 0 10px; }
  .brand-button { width: 115px; }
  .header-context { display: none; }
  .header-cart { min-height: 43px; padding: 0 9px; gap: 6px; font-size: 9px; }
  .menu-layout { grid-template-columns: minmax(0,1fr); grid-template-rows: 53px minmax(0,1fr); }
  .category-rail { display: flex; overflow-x: auto; padding: 5px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .category-button { min-width: max-content; min-height: 48px; margin: 0 4px 0 0; padding: 0 11px; border: 0; border-bottom: 3px solid transparent; font-size: 10px; }
  .category-button.selected { border-bottom-color: var(--gold); background: #fff; }
  .rail-separator, .cart-nav { display: none; }
  .menu-workspace { min-height: 0; padding: 12px; }
  .menu-heading { margin-bottom: 10px; }
  .menu-heading h1 { font-size: 26px; }
  .small-label { font-size: 8px; }
  .search-box { width: 52%; height: 42px; }
  .search-box kbd { display: none; }
  .product-grid { overflow: auto; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-card { min-height: 145px; }
  .food-photo, .drink-illustration, .menu-photo { height: 95px; }
  .product-meta { min-height: 48px; padding: 6px; }
  .product-meta b, .product-meta strong { font-size: 10px; }
  .cart-rail { display: none; }
  .pos-footer { padding: 0 10px; font-size: 7px; }
  .customize-screen { grid-template-columns: 1fr; }
  .customize-main { padding: 10px 12px 67px; }
  .customize-layout { grid-template-columns: 110px minmax(0,1fr); }
  .customize-photo { min-height: 150px; }
  .option-group h2 { font-size: 13px; }
  .choice-option { min-height: 38px; font-size: 10px; }
  .modifier-option { min-height: 40px; }
  .sticky-actions { bottom: 7px; left: 10px; right: 10px; }
  .primary-button, .secondary-button { min-height: 47px; padding: 0 11px; font-size: 9px; }
  .cart-screen { display: block; padding: 12px; }
  .cart-review-total { margin-top: 12px; }
  .customer-screen { display: block; padding: 12px; }
  .checkout-summary { margin-top: 15px; }
  .payment-screen { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: auto; gap: 10px; padding: 8px 13px; }
  .payment-left > h1 { font-size: 36px; }
  .payment-right { min-height: 210px; }
  .qr-frame { width: min(220px, 52vw, 30vh); }
  .scan-instruction { margin-top: 7px; font-size: 10px; }
  .phone-link { margin-top: 3px; }
  .terminal-animation { min-height: 170px; }
  #customer-form { gap: 8px; }
  #customer-form input { min-height: 44px; }
  .confirmed-screen { grid-template-rows: 69px 1fr 40px; padding: 0 16px; }
  .confirmed-top img { max-width: 160px; }
  .confirmed-top span { font-size: 7px; }
  .confirmed-content h1 { font-size: 32px; }
}
@media (orientation: portrait) and (min-width: 651px) {
  .menu-layout { grid-template-columns: 145px minmax(0,1fr) 295px; }
  .product-grid { grid-template-columns: repeat(2,minmax(150px,1fr)); }
  .customer-screen { grid-template-columns: minmax(0,1fr) 300px; }
  .payment-screen { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }
