@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=DM+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --red: #b8271d;
  --dark-red: #921e17;
  --ink: #211915;
  --cream: #fff5e4;
  --paper: #f5ead9;
  --muted: #68564a;
  --yellow: #ffd033;
  --edge: #dccaaf;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; font: inherit; color: inherit; }
button:disabled { cursor: wait; opacity: .7; }
a { color: inherit; }
:focus-visible { outline: 3px solid #92530a; outline-offset: 3px; }
.hero :focus-visible, .masthead :focus-visible { outline-color: var(--yellow); }
.skip-link { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: 1rem; background: var(--cream); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.shell { width: min(1152px, calc(100% - 3rem)); margin-inline: auto; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, .menu-group > h3 { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; }

.masthead { background: var(--red); color: var(--cream); border-bottom: 1px solid #e87866; }
.masthead-inner { height: 74px; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: block; width: clamp(118px, 21vw, 178px); margin-right: auto; }
.masthead nav { display: flex; align-items: center; gap: clamp(.75rem, 3vw, 2rem); }
.view-link { text-decoration: none; padding-block: .65rem; white-space: nowrap; font-weight: 700; }
.view-link[aria-current="page"] { text-decoration: underline 2px var(--yellow); text-underline-offset: .4rem; }
.basket-button { padding: .55rem .65rem .55rem .9rem; background: var(--ink); color: var(--cream); border: 1px solid #f8dfbb50; border-radius: 5px; font-weight: 800; display: flex; align-items: center; gap: .65rem; }
.basket-button span { display: grid; place-items: center; min-width: 26px; height: 26px; background: var(--yellow); color: var(--ink); border-radius: 3px; }

.hero { background: #221713; color: var(--cream); border-bottom: 6px solid var(--red); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: stretch; }
.hero-copy { padding: 2.75rem 1.2rem 3.3rem 0; align-self: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .11em; font-size: .76rem; font-weight: 800; }
.hero .eyebrow { color: #edcfa6; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--yellow); border-radius: 50%; margin: 0 .32rem .09rem 0; }
.hero h1 { text-transform: uppercase; font-size: clamp(4.1rem, 8.1vw, 7.4rem); font-weight: 800; line-height: .85; letter-spacing: -.015em; margin: 1.1rem 0; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero-copy > p:not(.eyebrow) { max-width: 30ch; line-height: 1.53; color: #f2dcc6; font-size: clamp(1rem, 1.65vw, 1.19rem); }
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.hero-link { font-size: .95rem; font-weight: 700; text-underline-offset: 4px; }
.install-link { min-height: 42px; padding: .5rem .75rem; border: 1px solid currentColor; background: transparent; border-radius: 4px; font-size: .9rem; font-weight: 800; }
.install-link:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.hero .install-link { color: var(--cream); }
.hero .install-link:hover { color: var(--ink); }
.office-title .install-link { margin-top: .65rem; }
.install-help-content { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: .85rem; margin-top: 1rem; line-height: 1.48; }
.install-help-content img { border-radius: 18%; }
.client-demo-banner { padding: .48rem .75rem; background: var(--yellow); color: var(--ink); text-align: center; font-size: .86rem; font-weight: 800; }
.button { display: inline-flex; gap: .65rem; align-items: center; justify-content: center; border-radius: 4px; border: 1px solid #251a15; min-height: 44px; padding: .65rem 1rem; font-weight: 800; }
.yellow { background: var(--yellow); color: var(--ink); }
.yellow:hover { background: #ffdc60; }
.button strong { border-left: 1px solid #856400; padding-left: .65rem; }
.hero-food { position: relative; margin: 0; min-height: 385px; overflow: hidden; }
.hero-food::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #221713 0%, #22171300 16%); }
.hero-food img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.hero-food figcaption { position: absolute; z-index: 1; bottom: .75rem; right: .75rem; background: #211915ed; color: var(--cream); padding: .3rem .5rem; border-radius: 2px; font-size: .77rem; }

.menu { padding: 2.4rem 0 3.75rem; }
.menu-header { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.tagline { color: var(--dark-red); }
.menu-header h2, .staff h1 { font-size: clamp(3rem, 6vw, 4.6rem); line-height: .96; text-transform: uppercase; margin-top: .2rem; }
.preview-note { color: var(--muted); font-size: .875rem; line-height: 1.45; font-weight: 600; }
.filters { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .85rem 0; border-block: 1px solid var(--edge); }
.filters button { border: 1px solid #bea688; background: transparent; padding: .49rem .85rem; min-height: 42px; border-radius: 4px; font-weight: 700; font-size: .95rem; }
.filters button[aria-pressed=true] { color: var(--cream); border-color: var(--red); background: var(--red); }
.filters button[aria-pressed=false]:hover { background: var(--cream); }
.menu-group { padding-top: 1.4rem; }
.menu-group > h3 { margin-bottom: .65rem; font-size: 2rem; line-height: 1.05; text-transform: uppercase; }
.meal-grid, .item-grid, .queue-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.menu-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--edge); border-radius: 6px; background: var(--cream); }
.meal-photo { aspect-ratio: 1.53; background-color: #3b2119; background-image: url("./assets/meal-concepts.png"); background-size: 200% 200%; }
.photo-loaded-fries { background-image: url("./assets/loaded-fries.png"); background-size: cover; background-position: center; }
.photo-gravy { background-image: url("./assets/gravy-roll.png"); background-size: cover; background-position: center 56%; }
.photo-burger { background-position: left top; }
.photo-fried, .photo-two-chicken { background-image: url("./assets/two-piece.png"); background-size: cover; background-position: center; }
.photo-two-chicken { background-position: left center; }
.photo-sheet { background-image: url("./assets/menu-photos.png"); background-size: 400% 400%; background-position: var(--x) var(--y); }
.photo-dessert { background-image: url("./assets/desserts.png"); background-size: 300% 200%; background-position: var(--x) var(--y); }
.polar-packshot { display: grid; place-items: center; background: radial-gradient(ellipse at center, #fffdf8 20%, #f2e4d1 100%); min-height: 0; aspect-ratio: 1.62; }
.polar-packshot img { width: 100%; height: 100%; padding: .6rem; object-fit: contain; }
.pack-size { background: #f0e1ce; color: var(--dark-red); border-radius: 3px; font-size: .82rem; font-weight: 800; padding: .12rem .38rem; margin-top: .36rem; }
.item-grid .menu-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); }
.item-grid .meal-photo { aspect-ratio: 1; width: 100%; margin-top: .65rem; margin-left: .6rem; width: calc(100% - .6rem); border-radius: 3px; }
.item-grid .menu-card-title { gap: .25rem; }
.test-payment { background: var(--cream); border-color: #a48a6a; }
#yoco-note { margin-top: .35rem; }
#cash-field { display: grid; gap: .3rem; font-weight: 700; margin-top: .55rem; }
#cash-received { width: 100%; display:block; padding: .6rem; background: #fffaf0; font: inherit; border: 1px solid #b9a287; border-radius: 4px; }
.till-tools { margin-top: .7rem; }
.till-tools a { min-height: 42px; padding: .55rem .8rem; border: 1px solid var(--edge); border-radius: 4px; text-decoration: none; font-weight: 800; }
.till-tools a[aria-current] { background: var(--red); color: var(--cream); border-color: var(--red); }
#cash-due-count { display: inline-block; background: var(--yellow); color: var(--ink); padding: .1rem .38rem; border-radius: 3px; margin-left: .2rem; font-size: .8rem; }
.order-lookup { padding-top: 1.6rem; }
.lookup-tools { margin: .85rem 0 1rem; }
.lookup-tools label, #payment-form label { display: block; font-weight: 800; margin-block: .5rem .25rem; }
.lookup-tools input, #payment-cash { width: min(100%, 400px); display: block; padding: .68rem .75rem; font: inherit; color: var(--ink); border: 1px solid #a58b70; border-radius: 4px; background: #fffaf0; }
.lookup-filters { margin-top: .65rem; border-top: 0; padding-top: 0; }
.cash-due-ticket { border-top-color: #cb9000; }
#lookup-payment-result:not(:empty) { background: #f9e3aa; border: 1px solid var(--edge); padding: .6rem .8rem; margin-bottom: .7rem; border-radius: 4px; font-weight: 700; }
#payment-form .total { border-top: none; margin-block: .5rem; font-size: 1.15rem; }
#payment-change { font-weight: 800; margin-top: .65rem; }
.qr-layout { padding: 2.1rem 0 3rem; display: grid; justify-items: center; gap: .9rem; }
.qr-card { width: min(100%, 405px); text-align: center; padding: 1.15rem 1.25rem; border: 1px solid var(--edge); border-top: 6px solid var(--red); background: var(--cream); border-radius: 5px; }
.qr-card .qr-brand { width: min(70%, 205px); margin: 0 auto .55rem; }
.qr-card h1 { font-size: clamp(2.5rem, 8vw, 4rem); line-height: .9; text-transform: uppercase; }
.qr-card p { margin-top: .55rem; font-weight: 700; }
.menu-qr { width: min(100%, 266px); margin: .85rem auto; border: 1px solid var(--edge); }
.qr-actions { display: flex; justify-content: center; gap: .55rem; flex-wrap: wrap; }
.qr-actions .button { text-decoration: none; }
@media print {
  .qr-page .masthead, .qr-actions { display: none; }
  .qr-page, .qr-card { background: white; }
  .qr-card { page-break-inside: avoid; }
}
#cash-change { font-weight: 700; margin-top: .4rem; }
.form-error { color: var(--dark-red); font-weight: 700; margin-top: .55rem; }
.profile-button { color: var(--cream); background: transparent; border: 1px solid #f8dfbb80; border-radius: 4px; padding: .55rem .75rem; min-height: 42px; font-weight: 800; }
.profile-button:hover { background: var(--dark-red); }
#profile-dialog section { border-top: 1px solid var(--edge); margin-top: .9rem; padding-top: .65rem; }
#profile-dialog section > p { margin: .3rem 0 .55rem; }
#profile-dialog section h3 { font-size: 1.1rem; }
#profile-form { display: flex; align-items: end; gap: .55rem; margin: .72rem 0 .5rem; }
#profile-form label { font-weight: 800; flex: 1; min-width: 0; }
#profile-form input { display: block; width: 100%; height: 44px; margin-top: .28rem; padding: .45rem .6rem; border: 1px solid #a58b70; border-radius: 4px; background: #fffaf0; font: inherit; }
#profile-message { margin-top: .35rem; }
#stamp-card { display: flex; gap: .3rem; margin: .65rem 0 .45rem; }
#stamp-card span { display: grid; place-items: center; width: 38px; height: 38px; border: 1px dashed #9f7753; border-radius: 100%; font-weight: 800; color: var(--muted); }
#stamp-card .earned { background: var(--red); border-color: var(--red); color: var(--cream); }
#reward-balance { font-weight: 800; }
#profile-orders { padding: 0; list-style: none; margin: .2rem 0 0; }
#profile-orders li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; border-bottom: 1px solid var(--edge); padding: .35rem 0; }
#profile-orders button, .ready-banner button { background: transparent; border: none; padding: .25rem .15rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.cancel-order { color: var(--dark-red); }
.ready-banner { position: fixed; z-index: 3; left: 50%; top: max(.6rem, env(safe-area-inset-top)); width: min(465px, calc(100% - 1.25rem)); transform: translateX(-50%); background: var(--yellow); color: var(--ink); border: 1px solid var(--ink); border-radius: 5px; padding: .65rem .8rem; display: flex; justify-content: space-between; align-items: start; box-shadow: 0 5px 18px #25140c44; }
.ready-banner strong { display: block; }
#ready-dismiss { text-decoration: none; font-size: 1.45rem; line-height: 1; padding-inline: .35rem; }
#reward-choice { display: flex; gap: .38rem; align-items: center; font-weight: 800; margin: .45rem 0; }
#redeem-chips { width: 18px; height: 18px; accent-color: var(--red); }
.till-view .menu { padding-top: 1.5rem; }
.till-view .meal-grid .meal-photo { aspect-ratio: 2.1; }
.menu-card-content { padding: .85rem; display: flex; flex-direction: column; align-items: start; flex: 1; }
.menu-card-title { display: flex; justify-content: space-between; gap: .35rem; align-items: baseline; width: 100%; }
.menu-card h4 { font-size: 1.09rem; line-height: 1.2; font-weight: 800; }
.menu-card-title strong { color: var(--dark-red); font-size: 1.05rem; white-space: nowrap; }
.menu-card p { color: var(--muted); line-height: 1.45; margin: .38rem 0 .6rem; font-size: .97rem; }
.add { margin-top: auto; min-height: 42px; border: 1px solid var(--edge); border-radius: 4px; background: #f7ebd5; font-weight: 800; padding: .25rem .8rem; }
.add:hover { background: var(--yellow); border-color: #bb8d24; }

.footer { background: var(--ink); color: var(--cream); padding: 1.35rem 0; }
.footer .shell { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer img { width: 114px; }
.footer span { font-weight: 600; }
.footer small { margin-left: auto; color: #e2c7b3; }
.mobile-basket { display: none; }
.staff { padding: 3rem 0 5rem; min-height: 70vh; }
.staff > p:not(.eyebrow) { max-width: 55ch; margin: .7rem 0 1.5rem; color: var(--muted); line-height: 1.55; }
.queue-count { margin-bottom: 1rem; font-weight: 700; }
.kitchen-heading { display: flex; justify-content: space-between; align-items: end; gap: .75rem; flex-wrap: wrap; }
.kitchen-heading .button { text-decoration: none; }
#kitchen-feedback:empty { display: none; }
.kitchen-group + .kitchen-group { margin-top: 1.5rem; }
.kitchen-group > h2 { text-transform: uppercase; font-size: 1.35rem; margin-bottom: .5rem; }
.kitchen-ticket h3 { font-family: "Barlow Condensed", "Arial Narrow", Impact, sans-serif; font-size: 2rem; margin: 0; }
.kitchen-ticket .prep-outstanding { font-weight: 800; color: var(--dark-red); margin-top: .45rem; }
.kitchen-ticket .prep-complete { color: #246040; }
.kitchen-ticket .prep-item { align-items: center; padding: .55rem; border: 1px solid var(--edge); border-radius: 4px; }
.prep-item-status { display: block; color: var(--muted); font-size: .88rem; margin-top: .16rem; }
.kitchen-ticket .prep-item-done { background: #edf3e8; border-color: #bed2b5; }
.prep-item-done .prep-item-status { color: #246040; font-weight: 800; }
.prep-controls { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .3rem; flex: 0 0 auto; max-width: 54%; }
.prep-controls .button { min-height: 42px; padding-inline: .55rem; margin: 0; font-size: .85rem; }
.prep-controls .prep-undo { background: transparent; }
.order-tracker { padding-bottom: 2.8rem; }
.ticket { background: var(--cream); border: 1px solid var(--edge); border-top: 4px solid var(--red); padding: 1rem; border-radius: 5px; max-width: 580px; }
.ticket-title { display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .3rem; }
.ticket h2 { font-size: 2rem; line-height: 1; }
.ticket .eyebrow { color: var(--dark-red); }
.status { line-height: 1.15; background: var(--paper); padding: .42rem .55rem; border-radius: 3px; color: var(--dark-red); font-size: .875rem; font-weight: 800; }
.ticket ul { list-style-type: none; padding: 0; margin: 1rem 0; }
.ticket li { display: flex; gap: .4rem; justify-content: space-between; margin: .35rem 0; }
.ticket button { margin-top: .7rem; }

dialog { width: min(464px, calc(100% - 1.5rem)); max-height: 88dvh; padding: 1.15rem; background: var(--cream); color: var(--ink); border: 1px solid var(--edge); border-radius: 7px; }
dialog::backdrop { background: #19110ebf; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--edge); padding-bottom: .55rem; }
.dialog-header h2 { font-size: 2.5rem; text-transform: uppercase; line-height: 1; }
.icon-button { width: 44px; height: 44px; font-size: 1.65rem; background: var(--paper); border: 1px solid var(--edge); border-radius: 4px; }
.basket-line { display: flex; align-items: center; justify-content: space-between; gap: .55rem; border-bottom: 1px solid var(--edge); padding: .76rem 0; }
.basket-line h3 { margin-bottom: .2rem; font-size: 1.03rem; }
.basket-line > div > span { color: var(--muted); }
.stepper { display: flex; gap: .4rem; align-items: center; font-weight: 800; }
.stepper button { min-width: 42px; min-height: 44px; border: 1px solid var(--edge); border-radius: 4px; background: var(--paper); font-size: 1.2rem; }
.total { display: flex; justify-content: space-between; gap: 1rem; padding: .65rem 0 .35rem; border-top: 1px solid var(--edge); font-weight: 800; }
.basket-line:last-child { border-bottom: 0; }
.empty { padding: 1.3rem 0; color: var(--muted); }
.checkout { width: 100%; margin-top: .6rem; }

@media (max-width: 820px) {
  .shell { width: calc(100% - 2rem); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
  .hero-food { min-height: 340px; }
  .hero h1 { font-size: clamp(3.35rem, 9vw, 6rem); }
  .meal-grid { gap: .65rem; }
  .item-grid, .queue-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  body:has(.mobile-basket:not([hidden])) { padding-bottom: 4.4rem; }
  .masthead-inner { display: grid; grid-template-columns: 1fr auto auto; gap: .05rem .5rem; height: auto; padding-top: .35rem; }
  .masthead nav { grid-row: 2; grid-column: 1 / -1; gap: .72rem; font-size: .875rem; }
  .masthead .profile-button { grid-column: 2; grid-row: 1; min-height: 35px; padding: .35rem .45rem; font-size: .82rem; }
  .masthead .basket-button { grid-column: 3; grid-row: 1; }
  .brand { width: min(31vw, 125px); }
  .basket-button { padding: .38rem .43rem; gap: .35rem; font-size: .82rem; }
  .basket-button span { min-width: 21px; height: 21px; }
  .hero-grid { display: flex; flex-direction: column-reverse; width: 100%; }
  .hero-food { min-height: 0; aspect-ratio: 1.78; }
  .hero-food::after { background: linear-gradient(0deg, #221713 0%, #22171300 22%); }
  .hero-copy { padding: .65rem 1rem 1.55rem; align-self: stretch; }
  .hero h1 { font-size: clamp(3.65rem, 13vw, 4.6rem); margin: .6rem 0 .5rem; }
  .hero h1 br { display: none; }
  .hero-copy > p:not(.eyebrow) { max-width: 36ch; }
  .hero-actions { margin-top: .85rem; gap: .75rem; }
  .menu { padding-top: 1.55rem; }
  .menu-header { align-items: start; }
  .menu-header .preview-note { max-width: 12ch; padding-top: .15rem; text-align: right; }
  .filters { padding-block: .6rem; }
  .filters button { min-height: 40px; padding-inline: .62rem; font-size: .875rem; }
  .meal-grid, .item-grid, .queue-grid { grid-template-columns: 1fr; }
  .meal-grid .menu-card { display: grid; grid-template-columns: 36% minmax(0, 1fr); }
  .polar-packshot { aspect-ratio: auto; }
  .polar-packshot img { padding: .3rem; }
  .meal-photo { aspect-ratio: unset; }
  .menu-card-content { padding: .7rem; }
  .menu-card h4 { font-size: 1.02rem; }
  .menu-card p { font-size: .9rem; }
  .mobile-basket { display: flex; position: fixed; z-index: 2; inset: auto .5rem max(.5rem, env(safe-area-inset-bottom)) .5rem; min-height: 52px; align-items: center; justify-content: space-between; gap: .5rem; padding: .78rem 1rem; border: 1px solid #6a1a12; border-radius: 5px; color: var(--cream); background: var(--red); font-weight: 800; box-shadow: 0 5px 18px #25140c44; }
  .footer small { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.sold-out-label { margin-top: auto; padding: .5rem .65rem; border: 1px solid var(--edge); border-radius: 4px; color: var(--dark-red); background: var(--paper); font-weight: 800; }
.ticket-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.ticket-actions .button { font-size: .88rem; }
#till-ops { padding-top: 1.6rem; }
.till-unlock { margin-top: 1rem; }
.till-form { display: grid; gap: .65rem; margin-top: .8rem; }
.till-form label { display: grid; gap: .22rem; font-weight: 750; }
.till-form input, .till-form select { width: 100%; min-width: 0; padding: .55rem; border: 1px solid #a58b70; border-radius: 4px; background: #fffaf0; color: var(--ink); font: inherit; min-height: 42px; }
.till-form .button { justify-self: start; }
.till-form .till-check { display: flex; gap: .6rem; align-items: center; }
.till-check input { width: 1.2rem; min-height: 1.2rem; accent-color: var(--red); }
.order-edit-row { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; gap: .55rem; margin-bottom: .45rem; }
#till-dialog .dialog-header h2 { font-size: clamp(1.55rem, 6vw, 2.4rem); }
.availability-list, .cash-up-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.availability-list article, .saved-cash-up { display: flex; justify-content: space-between; gap: .55rem; align-items: center; }
.availability-list article { padding: .65rem; border: 1px solid var(--edge); border-radius: 4px; background: var(--cream); }
.availability-list article span { display: block; margin-top: .25rem; }
.availability-list .button { flex-shrink: 0; max-width: 52%; font-size: .86rem; }
.saved-cash-up { padding: .55rem 0; border-bottom: 1px solid var(--edge); }
.till-totals { display: grid; gap: .4rem; margin: .65rem 0; }
.till-totals div, .printable li { display: flex; justify-content: space-between; gap: .8rem; }
.till-totals dd { margin: 0; font-weight: 800; white-space: nowrap; }
.printable { padding-block: .85rem; }
.printable img { margin-bottom: .45rem; }
.printable ul { list-style: none; padding: .55rem 0; margin: .55rem 0; border-block: 1px solid var(--edge); }
.printable li + li { margin-top: .35rem; }
@media (max-width: 650px) {
  .availability-list, .cash-up-grid { grid-template-columns: 1fr; }
}

.counter-sale {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(1rem, 2.6vw, 2.1rem);
  align-items: start;
  padding-bottom: 2rem;
}
.counter-sale > .menu { width: 100%; min-width: 0; margin-inline: 0; }
#till-basket {
  position: sticky;
  top: 1rem;
  margin-top: 1.5rem;
  padding: 1rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  background: var(--cream);
  border: 1px solid var(--edge);
  border-top: 4px solid var(--red);
  border-radius: 6px;
}
#till-basket .dialog-header { align-items: center; gap: .5rem; }
#till-basket .dialog-header h2 { font-size: 2.05rem; }
#till-basket .dialog-header span { font-weight: 700; font-size: .9rem; color: var(--muted); }
#till-basket #checkout-note { margin-block: .35rem .65rem; }
#till-last-sale { display: flex; align-items: center; justify-content: space-between; gap: .55rem; padding-top: .65rem; }
#till-last-sale .button { flex: 0 0 auto; }
@media (max-width: 800px) {
  .counter-sale { display: block; padding-bottom: calc(var(--till-basket-height, 125px) + 2.5rem); }
  #till-basket {
    position: fixed;
    inset: auto .55rem max(.55rem, env(safe-area-inset-bottom)) .55rem;
    z-index: 2;
    margin: 0;
    max-height: 50dvh;
    padding: .7rem;
    box-shadow: 0 8px 24px #21191538;
  }
  #till-basket .dialog-header h2 { font-size: 1.6rem; }
  #till-basket .empty { padding-block: .7rem .2rem; }
  #till-basket #checkout-note { display: none; }
  #till-basket #basket-items { max-height: 17dvh; overflow-y: auto; }
  #till-basket .basket-line { padding-block: .4rem; }
}
@media print {
  body.printing-till { background: white; color: black; padding: 0; }
  body.printing-till > :not(#print-copy) { display: none !important; }
  body.printing-till #print-copy { display: block !important; }
  body.printing-till dialog::backdrop { display: none; }
  body.printing-till .printable { width: 74mm; max-width: 100%; padding: 0; font-size: 10pt; }
}
