:root {
    --bg: #f4f6f9; --card: #fff; --ink: #1f2933; --muted: #6b7280;
    --line: #e2e8f0; --brand: #1d4ed8; --brand-d: #1e40af;
    --ok: #047857; --ok-bg: #d1fae5; --warn: #b45309; --warn-bg: #fef3c7;
    --err: #b91c1c; --err-bg: #fee2e2; --radius: 8px;
    --jump-nav-h: 5rem; /* pre-JS fallback for a 2-line quick-jump bar; script.js corrects this to the real measured height */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, Segoe UI, Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; row-gap: .5rem; background: #0f172a; color: #fff; padding: .55rem 1.25rem; }
.topbar .brand { color: #fff; font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: .65rem; }
.brand-logo { height: 120px; width: auto; display: block; filter: invert(1); }
.login-logo { height: 260px; width: auto; display: block; margin: 0 auto .75rem; }
.topbar nav { display: flex; gap: 1rem; align-items: center; }
.topbar nav a { color: #cbd5e1; }
.topbar nav a.on, .topbar nav a:hover { color: #fff; }
.topbar .sysnav { border-left: 1px solid #334155; padding-left: 1.25rem; }
/* "Order Online" nav CTA: a solid, clearly-visible pill even without
   hovering — was a near-invisible light-on-light ghost button before. */
.topbar nav a.topbar-cta { display: inline-block; padding: .35rem .9rem; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; }
.topbar nav a.topbar-cta:hover { background: var(--brand-d); color: #fff; text-decoration: none; }
.topbar nav a.topbar-cta-active { background: #fff; color: var(--brand-d); }
.topbar nav a.topbar-cta-active:hover { background: #fff; color: var(--brand-d); }
.topbar .user { margin-left: auto; color: #cbd5e1; font-size: .9rem; display: flex; align-items: center; gap: .5rem; }
.topbar .user a { color: #93c5fd; }
.muted-link { color: #94a3b8 !important; font-size: .85rem; }

.role { font-size: .7rem; padding: .1rem .4rem; border-radius: 4px; text-transform: uppercase; }
.role-admin { background: #7c3aed; color: #fff; }
.role-editor { background: #2563eb; color: #fff; }
.role-viewer { background: #475569; color: #fff; }

.container { max-width: 1080px; margin: 1.5rem auto; padding: 0 1.25rem; }
.foot { text-align: center; color: var(--muted); padding: 2rem; font-size: .85rem; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1.25rem; }
h1 { font-size: 1.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }

.stats { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; flex: 1; min-width: 140px; }
.stat .n { font-size: 1.8rem; font-weight: 700; color: var(--brand-d); }
.stat .l { color: var(--muted); font-size: .85rem; }

table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: #f8fafc; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* Preview deployments (system-release skill): loud, unmissable, never shown in production. */
.preview-banner { background: var(--warn-bg); color: var(--warn); border-bottom: 2px solid var(--warn); padding: .5rem 1.25rem; font-size: .9rem; text-align: center; }
.table-wrap { overflow-x: auto; }

.tag { display: inline-block; background: #eef2ff; color: var(--brand-d); font-size: .72rem; padding: .1rem .45rem; border-radius: 4px; margin: 0 .2rem .2rem 0; }
.badge-yes { color: var(--ok); font-weight: 600; }
.badge-no { color: var(--muted); }

.btn { display: inline-block; background: var(--brand); color: #fff; border: none; padding: .5rem .9rem; border-radius: 6px; cursor: pointer; font-size: .9rem; }
.btn:hover { background: var(--brand-d); text-decoration: none; }
.btn-sm { padding: .3rem .6rem; font-size: .8rem; }
.btn-ghost { background: #eef2f7; color: var(--ink); }
.btn-danger { background: var(--err); }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

form .field { margin-bottom: 1rem; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .25rem; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], select, textarea {
    width: 100%; padding: .55rem .6rem; border: 1px solid var(--line); border-radius: 6px; font-size: .95rem; font-family: inherit;
}
textarea { min-height: 90px; }
.show-password { display: flex; align-items: center; gap: .35rem; margin: .4rem 0 0; font-size: .8rem; color: var(--muted); }
.show-password input { width: auto; }
.inline { display: inline; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.flash { padding: .75rem 1rem; border-radius: 6px; margin-bottom: 1rem; }
.flash-success { background: var(--ok-bg); color: var(--ok); }
.flash-error { background: var(--err-bg); color: var(--err); }
.flash-info { background: var(--warn-bg); color: var(--warn); }

.toolbar { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.toolbar form { display: flex; gap: .5rem; flex-wrap: wrap; flex: 1; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; background: #0f172a; color: #e2e8f0; padding: .75rem; border-radius: 6px; word-break: break-all; }

.login-wrap { max-width: 360px; margin: 4rem auto; }
.pagination { display: flex; gap: .5rem; margin-top: 1rem; align-items: center; }

.toggle-row { display: flex; align-items: center; gap: .5rem; }
.toggle-row input { width: auto; }
.image-preview { max-width: 220px; max-height: 220px; border-radius: 6px; border: 1px solid var(--line); display: block; margin-bottom: .5rem; }

/* ---- Public storefront pages ---- */
body.public { background: #fff; }
.public-topbar .brand { font-size: 1.3rem; }
.public-topbar .brand-logo { height: 152px; }
.public-foot .brand-logo { height: 180px; margin: 0 auto .75rem; }
.hero { position: relative; border-radius: var(--radius); overflow: hidden; margin-bottom: 1.5rem; background: #0f172a; min-height: 280px; display: flex; align-items: flex-end; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .75; }
.hero-content { position: relative; padding: 2rem 1.5rem; color: #fff; }
.hero-content h1 { font-size: 2.1rem; margin: 0 0 .5rem; color: #fff; }
.hero-content p { margin: 0 0 1rem; font-size: 1.05rem; }
.location-card { display: flex; gap: 2rem; flex-wrap: wrap; }
.location-card .field-group { flex: 1; min-width: 200px; }
.location-card h3 { margin: 0 0 .4rem; font-size: .95rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.location-card .map-embed { flex: 1 1 100%; margin-top: .5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.location-card .map-embed iframe { display: block; width: 100%; }

/* Quick-jump bar for hopping straight to a section on Menu / Order Online —
   sticks under the topbar while scrolling so it's always one click away,
   not just something at the very top of a long page. Wraps onto its own
   lines (typically 2, at normal screen widths) instead of horizontally
   scrolling, so every section is visible with no scrollbar/arrow hint
   needed. Its actual rendered height varies with viewport width and section
   count, so a small script measures it and keeps --jump-nav-h (used below,
   and by .cart-panel's sticky offset) in sync — the value here is just the
   pre-JS/no-JS fallback. */
.section-jump-nav {
    position: sticky; top: 0; z-index: 30;
    display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .4rem;
    margin: 0 0 1.5rem; padding: .5rem .1rem;
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--line);
}
.section-jump-nav a {
    flex: 0 0 auto; padding: .35rem .85rem; border-radius: 999px;
    background: #f1f5f9; border: 1px solid var(--line); color: var(--ink);
    font-size: .8rem; font-weight: 600;
}
.section-jump-nav a:hover { background: #e0e7ff; border-color: #c7d2fe; text-decoration: none; }
.section-jump-nav a.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Lands an anchor jump just below the sticky quick-jump bar instead of
   right under it, hiding the section banner's top edge. */
.menu-section { scroll-margin-top: calc(var(--jump-nav-h) + .75rem); }
.menu-section { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.menu-section-banner {
    display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.5rem;
    padding: 1.25rem 1.5rem; border-radius: var(--radius);
    background: linear-gradient(135deg, #e0e7ff, #eef2ff);
    border: 1px solid #c7d2fe; border-left: 6px solid var(--brand);
    box-shadow: 0 3px 10px rgba(29, 78, 216, .1);
}
.menu-section-banner img { width: 68px; height: 68px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.15); flex-shrink: 0; }
.menu-section-banner .icon-fallback { width: 68px; height: 68px; border-radius: 50%; background: #fff; border: 2px solid #c7d2fe; display: flex; align-items: center; justify-content: center; font-size: 1.9rem; flex-shrink: 0; }
.menu-section-banner h2 { margin: 0; border: none; padding: 0; font-size: 1.75rem; color: var(--brand-d); }
.menu-section-banner .subtitle { color: var(--muted); font-size: .9rem; margin: .15rem 0 0; }

.menu-category { margin-bottom: 2rem; }
/* A lighter, smaller sibling of .menu-section-banner — same left-accent-bar
   language at a smaller scale, so a category visibly nests under its
   section instead of reading as plain text. */
.menu-category h2 {
    margin: 0 0 1.1rem; padding: .55rem 1rem; font-size: 1.15rem;
    background: linear-gradient(135deg, #f5f7ff, #f8fafc);
    border: 1px solid var(--line); border-left: 4px solid var(--brand);
    border-radius: 6px; color: var(--brand-d);
}

.addon-list-label { margin: 1.5rem 0 .5rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.addon-list { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .35rem 1.5rem; }
.addon-list li { padding: .35rem 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: .5rem; }
.addon-list .addon-price { color: var(--muted); font-size: .85rem; white-space: nowrap; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.menu-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-head { display: flex; align-items: center; gap: .75rem; padding: .85rem .85rem 0; }
.card-head img { width: 45%; aspect-ratio: 1 / 1; object-fit: cover; background: #f1f5f9; border-radius: 6px; flex-shrink: 0; }
.menu-card .body { padding: .5rem .85rem .85rem; display: flex; flex-direction: column; flex: 1; gap: .35rem; }
.menu-card .name { font-weight: 700; flex: 1; min-width: 0; }
.menu-card .desc { color: var(--muted); font-size: .85rem; flex: 1; }
.menu-card .price-row { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; margin-top: .4rem; }
.menu-card .price { font-weight: 700; color: var(--brand-d); min-width: 0; }

/* Size-tiered price display: each tier is its own chip, so a narrow card
   wraps between whole tiers ("S $5.75" / "M $6.25") instead of splitting one
   apart mid-tier. */
.price-tiers { display: inline-flex; flex-wrap: wrap; gap: .15rem .55rem; }
.price-tier { white-space: nowrap; }

/* Mutually-exclusive size choice on Order Online — native radios styled as pills. */
.size-picker, .temp-picker { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .1rem; }
.size-option { display: inline-flex; }
.size-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.size-option span {
    display: inline-block; padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--line);
    background: #f8fafc; font-size: .8rem; font-weight: 600; color: var(--ink); cursor: pointer;
}
.size-option input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.size-option input:focus-visible + span { outline: 2px solid var(--brand-d); outline-offset: 1px; }

/* Mutually-exclusive add-on choice (milk, sweetener, extras, ...) — one pill
   group per applicable add-on category, reusing the same .size-option pill. */
.addon-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; margin-top: .35rem; }
.addon-picker-label { font-size: .75rem; color: var(--muted); margin-right: .1rem; }

/* top offset clears the sticky .section-jump-nav above it on Order Online,
   so the cart doesn't scroll up underneath the jump bar. */
.cart-panel { position: sticky; top: calc(var(--jump-nav-h) + 1rem); }
.cart-line { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.cart-line .qty-controls { display: flex; align-items: center; gap: .35rem; }
.cart-line .qty-controls button { width: 1.8rem; height: 1.8rem; border-radius: 4px; border: 1px solid var(--line); background: #f8fafc; cursor: pointer; }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 700; padding-top: .6rem; margin-top: .4rem; border-top: 2px solid var(--line); }
#square-card-container { border: 1px solid var(--line); border-radius: 6px; padding: .6rem; margin-bottom: 1rem; background: #fff; }
.order-columns { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 800px) {
    .order-columns { grid-template-columns: 1fr; }
    /* .cart-panel's sticky positioning is meaningless once .order-columns
       stacks to one column here - worse, it actively breaks the "View cart"
       FAB's scrollIntoView({block:'start'}) call below, since sticky
       elements are a known source of scrollIntoView miscalculation on
       phone browsers (Safari iOS especially) - it was landing on the
       bottom of the cart instead of the top. Static on mobile fixes both. */
    /* scroll-margin-top clears the sticky .section-jump-nav bar (position:
       sticky, top:0, its own z-index above normal content) that otherwise
       covers whatever scrolls to y:0 - the same pattern .menu-section uses
       above. Without it, the "View cart" FAB's scrollIntoView landed
       "Your order" right behind the nav bar; depending on cart length that
       pushed the whole cart out of view too, down to the Checkout card. */
    .cart-panel { position: static; scroll-margin-top: calc(var(--jump-nav-h) + .75rem); }
}

/* Floating quick actions, bottom-right. "back to top" (.mobile-fab-top)
   shows at every screen size - the sticky .section-jump-nav (see above)
   covers the actual site topbar once you've scrolled past it on desktop
   too, not just on a phone, so getting back to Home/Menu/Order Online
   otherwise means scrolling all the way up regardless of screen size.
   "View cart" (.mobile-fab-cart, order.php only, hidden until the cart JS
   shows it) stays phone-only: at the <=800px breakpoint above,
   .order-columns stacks into one column so the cart panel lands after
   every menu item instead of beside them, which desktop's two-column/
   sticky-panel layout doesn't have a problem with. Both no-ops (harmless
   if clicked) with JS disabled since they're just buttons the page script
   wires up. */
.mobile-fab-row {
    display: flex; gap: .6rem; justify-content: flex-end;
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 40;
}
.mobile-fab {
    border: none; border-radius: 999px; font-weight: 700; cursor: pointer;
    box-shadow: 0 4px 16px rgba(15, 23, 42, .28);
}
.mobile-fab-cart {
    display: none; flex: 1; background: var(--brand); color: #fff; padding: .85rem 1.1rem; font-size: .9rem;
    align-items: center; justify-content: center; gap: .4rem;
}
.mobile-fab-top {
    flex: 0 0 auto; width: 3.1rem; height: 3.1rem; background: #0f172a; color: #fff; font-size: 1.1rem;
}
@media (max-width: 800px) {
    .mobile-fab-cart { display: flex; }
}
/* .mobile-fab-cart's own display:flex above has the same specificity as
   the browser's default [hidden]{display:none} rule, and author CSS
   always wins over that default - so without this, the cart FAB stays
   visible (empty) even while its hidden attribute is set. */
.mobile-fab[hidden] { display: none; }

.about-body, .history-body { white-space: pre-wrap; line-height: 1.6; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; margin-top: 1rem; }
.gallery-grid img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.public-foot { background: #0f172a; color: #cbd5e1; padding: 2rem 1.25rem; }
.public-foot p { margin: .2rem 0; }

/* ---- Order Online, "customize" layout ---------------------------------------
   A compact item list; tapping an item opens .cust (a <dialog>): full-screen on phones, a centered
   dialog on larger screens. Script: assets/order-customize.js. */

.item-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .6rem; }
.item-li { display: flex; align-items: stretch; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item-row { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 0; min-height: 84px; padding: .6rem .75rem; text-align: left; background: none; border: 0; font: inherit; color: inherit; cursor: pointer; }
.item-row:hover { background: #f8fafc; }
.item-row:focus-visible, .item-quick:focus-visible { outline: 2px solid var(--brand-d); outline-offset: -2px; }
.item-thumb { width: 64px; height: 64px; flex: none; border-radius: 10px; object-fit: cover; background: #eef2ff; }
.item-thumb-empty { display: block; }
.item-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.item-name { font-weight: 700; }
.item-desc { color: var(--muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-price { font-weight: 700; color: var(--brand-d); font-size: .9rem; }
.item-chevron { flex: none; color: var(--muted); font-size: 1.6rem; line-height: 1; }
.item-quick { flex: none; width: 52px; border: 0; border-left: 1px solid var(--line); background: #f8fafc; color: var(--brand-d); font-size: 1.6rem; cursor: pointer; }
.item-quick:hover { background: #e0e7ff; }

html.cust-open { overflow: hidden; }
dialog.cust { padding: 0; border: 0; border-radius: 16px; width: min(560px, 100%); max-height: 92vh; max-height: 92dvh; color: var(--ink); background: var(--card); box-shadow: 0 20px 50px rgba(15, 23, 42, .35); overflow: hidden; }
dialog.cust[open] { display: flex; flex-direction: column; }
dialog.cust::backdrop { background: rgba(15, 23, 42, .55); }
.cust-head { flex: none; display: flex; align-items: center; gap: .5rem; padding: .45rem .75rem .35rem .5rem; border-bottom: 1px solid var(--line); }
.cust-close { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #f1f5f9; color: var(--ink); font-size: 1.05rem; cursor: pointer; }
.cust-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .6rem 1rem .75rem; }
.cust-intro { display: flex; align-items: center; gap: .7rem; margin: 0 0 .15rem; }
.cust-thumb { flex: none; width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: #eef2ff; }
.cust-name { margin: 0; flex: 1; min-width: 0; font-size: 1.15rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-desc { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cust-group { border: 0; margin: .8rem 0 0; padding: 0; min-width: 0; }
.cust-legend { display: flex; align-items: baseline; justify-content: space-between; width: 100%; padding: 0; margin-bottom: .4rem; font-weight: 700; font-size: .95rem; }
.cust-hint { font-weight: 400; font-size: .78rem; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: .4rem; }
.tile { display: block; position: relative; cursor: pointer; margin: 0; font-size: 1rem; color: var(--ink); } /* override the global label style (small, muted, bottom margin) */
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; min-height: 52px; padding: .4rem .35rem; border: 2px solid var(--line); border-radius: 12px; text-align: center; }
.tile-label { font-weight: 700; }
.tile-sub { font-size: .8rem; color: var(--muted); }
.tile input:checked + .tile-face { border-color: var(--brand); background: #eef2ff; }
.tile input:checked + .tile-face .tile-sub { color: var(--brand-d); }
.tile input:focus-visible + .tile-face { outline: 2px solid var(--brand-d); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { position: relative; display: inline-flex; max-width: 100%; cursor: pointer; margin: 0; font-size: 1rem; color: var(--ink); }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-face { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: .35rem .8rem; border: 2px solid var(--line); border-radius: 999px; font-size: .92rem; line-height: 1.15; }
.chip-price { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.chip input:checked + .chip-face { border-color: var(--brand); background: #eef2ff; font-weight: 600; }
.chip input:checked + .chip-face .chip-price { color: var(--brand-d); }
.chip input[type="checkbox"]:checked + .chip-face::before { content: "\2713"; color: var(--brand-d); }
.chip input:focus-visible + .chip-face { outline: 2px solid var(--brand-d); outline-offset: 2px; }
.cust-foot { flex: none; display: flex; align-items: center; gap: .6rem; padding: .55rem .8rem calc(.55rem + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--card); }
.qty { flex: none; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 42px; height: 42px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--brand-d); border-radius: 50%; }
.qty button:disabled { color: #cbd5e1; cursor: default; }
.qty-n { min-width: 1.6rem; text-align: center; font-weight: 700; }
.cust-add { flex: 1; display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 46px; padding: .5rem 1.1rem; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.cust-add:hover { background: var(--brand-d); }
.cust-toast { position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 2rem); padding: .65rem 1.1rem; border-radius: 999px; background: #0f172a; color: #fff; font-size: .9rem; box-shadow: 0 6px 18px rgba(15, 23, 42, .3); }
.cust-toast[hidden] { display: none; }
@media (max-width: 640px) {
    .item-list { grid-template-columns: 1fr; }
    /* Phones: the customize screen is a full-screen sheet. */
    dialog.cust { width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border-radius: 0; }
}

/* If an item's options still overflow the screen, order-customize.js tightens things in two steps. */
dialog.cust.tight .cust-desc { display: none; }
dialog.cust.tight .cust-group { margin-top: .6rem; }
dialog.cust.tight .cust-legend { margin-bottom: .3rem; }
dialog.cust.tight .chips { gap: .3rem; }
dialog.cust.tight .chip-face { min-height: 38px; padding-top: .2rem; padding-bottom: .2rem; }
dialog.cust.tight .tile-face { min-height: 46px; }
dialog.cust.tighter .cust-intro { display: none; }
dialog.cust.tighter .cust-body { padding-top: .35rem; padding-bottom: .4rem; }
dialog.cust.tighter .cust-group { margin-top: .45rem; }
dialog.cust.tighter .chip-face { min-height: 34px; font-size: .86rem; padding-left: .65rem; padding-right: .65rem; }
dialog.cust.tighter .tile-face { min-height: 40px; }

/* Read-only item screen (Menu page, data-mode="view"): same look, nothing to choose. */
.cust-baseprice { margin: .6rem 0 0; font-weight: 700; color: var(--brand-d); }
.tiles-static .tile, .chips-static .chip { cursor: default; }
a.cust-add { justify-content: space-between; text-decoration: none; color: #fff; }
a.cust-add:hover { text-decoration: none; color: #fff; background: var(--brand-d); }
.cust-foot-view { justify-content: center; }
.cust-note { margin: 0; flex: 1; text-align: center; color: var(--muted); padding: .6rem 0; }
