/* ALAJMAAN ordering website (public/order/). Loaded AFTER /css/style.css: every component (header, logo, cards,
   buttons, chips, search, veg marks, menu items, quantity stepper, payment methods, pills, stats, warnings, sheets,
   toasts, confirm dialog, credit) is the DineLedger design system's own. This file only lays the shop out and adds
   the few pieces the staff screens have no need for (dish photo, bill rows, order steps, the map picker), built
   from the same tokens. Keep it that way: a new look belongs in style.css, for every screen. */

/* =====================================================================
   Customer brand layer: saffron & ember (direction: .impeccable/surfaces/order.md).
   The design system's tokens re-pointed for the shop only (html.shop-site is set on the shop's pages), so every
   shared component takes the ALAJMAAN colours without a copy of it. Saffron = the mandi rice (the shop-front field),
   ember = the kuzhi pit (actions), charcoal brown = ink. Contrast checked: ink on saffron 9.5:1, white on ember 5.2:1,
   muted on ground 5.9:1. Where style.css hard-codes the staff blue, it is overridden just below.
   ===================================================================== */
html.shop-site {
  --bg: #f7f4ef;
  --surface-2: #faf8f5;
  --surface-3: #f1ece5;
  --text: #231815;
  --text-2: #4a3a33;
  --muted: #6b5b52;
  --faint: #a3948a;
  --border: #ebe4db;
  --border-strong: #ddd3c7;
  --primary: #c2410c;
  --primary-600: #a8370a;
  --primary-700: #8f2f09;
  --primary-50: #fff1e8;
  --primary-100: #ffe0cc;
  --primary-ring: rgba(194, 65, 12, .24);
  --saffron: #f3b53b;
  --saffron-deep: #e39a12;
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); /* on-screen movement (tab pill); --ease in style.css stays the ease-out */
  --shadow: 0 1px 2px rgba(35, 24, 21, .05), 0 2px 8px rgba(35, 24, 21, .05);
  --shadow-lg: 0 24px 56px rgba(35, 24, 21, .18), 0 6px 16px rgba(35, 24, 21, .08);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  accent-color: var(--primary);
  caret-color: var(--primary);
}
html.shop-site ::selection { background: var(--saffron); color: var(--text); }
html.shop-site * { scrollbar-color: rgba(194, 65, 12, .3) transparent; }
html.shop-site ::-webkit-scrollbar-thumb { background: rgba(194, 65, 12, .26); }
html.shop-site :focus-visible { outline: 3px solid var(--primary-ring); outline-offset: 2px; }
/* Hard-coded staff blue in style.css, re-pointed for the shop */
html.shop-site .btn.primary { background: var(--primary); border-color: var(--primary-600); box-shadow: 0 1px 2px rgba(143, 47, 9, .3), inset 0 1px 0 rgba(255, 255, 255, .14); }
html.shop-site .btn.primary:hover:not(:disabled) { background: var(--primary-600); border-color: var(--primary-700); }
html.shop-site .sb-logo.has-img { background: #fff; overflow: hidden; padding: 0; box-shadow: 0 6px 16px rgba(35, 24, 21, .18); } /* the uploaded logo fills the square */
html.shop-site .sb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
html.shop-site .sb-logo:not(.has-img) { background: var(--text); box-shadow: 0 6px 16px rgba(35, 24, 21, .25), inset 0 1px 0 rgba(255, 255, 255, .12); color: var(--saffron); }
html.shop-site .menu-item.in-cart { border-color: #f5c3a3; }
html.shop-site .chip.active { background: var(--text); border-color: var(--text); }
html.shop-site .stat.accent { background: var(--text); border-color: var(--text); }
html.shop-site .chips.scroll { scrollbar-color: rgba(194, 65, 12, .4) transparent; }
/* Phones (mobile-native): 16px inputs so iOS does not zoom the page on focus; no double-tap delay on controls */
html.shop-site input, html.shop-site textarea, html.shop-site select { font-size: 16px; }
html.shop-site button, html.shop-site a, html.shop-site .chip { touch-action: manipulation; }
html.shop-site body { overscroll-behavior-y: none; }
html.shop-site .btn, html.shop-site .chip, html.shop-site .add-btn { -webkit-user-select: none; user-select: none; }

/* ---------- Shop front: the poster card, then the promise band ----------
   An ember card, the colour of the shop's buttons (--primary, owner's choice 2026-10-01), with the page's own white
   text on the left, and the admin's poster photo (Admin > Online ordering, /api/shop/poster) on the right, fading
   into the card from the left, so the words never sit on the photo itself: white on ember is 5.2:1, the softer lines
   are 90% white (4.8:1; 78% would drop under 4.5). No poster: the same card with a faint light lattice. */
.storefront {
  --sf-card: #c2410c;
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-rows: 1fr auto; gap: .9rem;
  min-height: clamp(188px, 50vw, 300px);
  padding: 1.15rem 1.15rem 1.1rem;
  border-radius: 20px; /* the shop's one card radius: dish cards and the promise band use it too */
  border: 1px solid rgba(143, 47, 9, .35);
  background: linear-gradient(135deg, var(--sf-card) 0%, var(--sf-card) 55%, #a8370a 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(143, 47, 9, .3), 0 14px 32px rgba(194, 65, 12, .25);
}
/* Arabian 8-point star lattice (no poster only), drawn in SVG, very faint, fading in from the right */
.storefront::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='1.2'%3E%3Cpath d='M28 6l6.2 15.8L50 28l-15.8 6.2L28 50l-6.2-15.8L6 28l15.8-6.2z'/%3E%3Crect x='16' y='16' width='24' height='24' transform='rotate(45 28 28)'/%3E%3Cpath d='M0 0l6 6M56 0l-6 6M0 56l6-6M56 56l-6-6'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 40%, #000 100%);
}
.storefront.has-poster::before { content: none; }
/* The photo takes the right part of the card and melts into it: transparent at its left edge, solid by 68%, eased
   (several stops) so a dark photo fades through warm tones instead of showing a grey band. */
.sf-poster {
  position: absolute; top: 0; right: 0; bottom: 0; z-index: -2;
  width: 62%; height: 100%; object-fit: cover; object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 18%, rgba(0, 0, 0, .55) 36%, rgba(0, 0, 0, .88) 54%, #000 68%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, .18) 18%, rgba(0, 0, 0, .55) 36%, rgba(0, 0, 0, .88) 54%, #000 68%);
  opacity: 0; transform: scale(1.04); transform-origin: right center;
  transition: opacity 500ms var(--ease), transform 900ms cubic-bezier(0.23, 1, 0.32, 1);
}
.sf-poster.is-loaded { opacity: 1; transform: none; }

.sf-open {
  position: absolute; top: .95rem; right: .95rem;
  display: inline-flex; align-items: center; gap: .45rem;
  height: 30px; padding: 0 .75rem; border-radius: 999px;
  background: rgba(255, 255, 255, .94); border: 1.5px solid #3fbf6a;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(80, 25, 5, .25);
  color: var(--text); font-size: .76rem; font-weight: 600;
}
@media (prefers-reduced-transparency: reduce) { .sf-open { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.sf-open::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22a456; box-shadow: 0 0 0 3px rgba(34, 164, 86, .2); }
/* Live: a slow ring breathes out of the dot while orders are being taken (it is real state, not decoration) */
.sf-open:not(.closed)::before { animation: live 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(34, 164, 86, .45); } 70%, 100% { box-shadow: 0 0 0 6px rgba(34, 164, 86, 0); } }
.sf-open.closed { border-color: #e26b6b; }
.sf-open.closed::before { background: #d43d3d; box-shadow: 0 0 0 3px rgba(212, 61, 61, .2); }
/* Text keeps to the left of the photo's solid part */
.sf-name { align-self: start; max-width: min(62%, 30rem); padding-top: .1rem; }
.storefront h1 { margin: 0; font-size: clamp(1.7rem, 7.6vw, 2.7rem); font-weight: 700; line-height: 1; letter-spacing: -.03em; color: #fff; }
.storefront .sf-dishes { margin: .5rem 0 0; font-size: clamp(.8rem, 3.4vw, .95rem); font-weight: 400; color: rgba(255, 255, 255, .9); text-wrap: balance; }
.storefront .sf-place { display: flex; align-items: center; gap: .4rem; margin: .45rem 0 0; font-size: clamp(.78rem, 3.3vw, .9rem); color: rgba(255, 255, 255, .94); }
.storefront .sf-place .i { width: 15px; height: 15px; color: #fff; }
/* The facts sit in a white pill with ember text (owner's choice; ember on white 5.2:1): legible on the card and,
   on a narrow phone, where they reach over the photo. */
.sf-facts {
  justify-self: start; display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 0;
  margin: 0; padding: .35rem .75rem; list-style: none; border-radius: 999px;
  background: #fff; box-shadow: 0 2px 10px rgba(80, 25, 5, .2);
  font-size: clamp(.78rem, 3.3vw, .92rem); font-weight: 600; color: var(--primary); font-variant-numeric: tabular-nums;
}
.sf-facts li { display: inline-flex; align-items: center; gap: .4rem; }
.sf-facts li + li { margin-left: .85rem; padding-left: .85rem; border-left: 1px solid rgba(194, 65, 12, .3); }
.sf-facts .i { width: 18px; height: 18px; }
/* Wider cards (tablet, laptop): the mockup's sizes. After the base rules so it wins. */
@media (min-width: 640px) {
  .sf-poster { width: 58%; }
  .storefront .sf-dishes { font-size: 1.05rem; margin-top: .65rem; }
  .storefront .sf-place { font-size: .98rem; margin-top: .7rem; }
  .storefront .sf-place .i { width: 18px; height: 18px; }
  .sf-facts { font-size: .98rem; }
  .sf-facts .i { width: 20px; height: 20px; }
  .sf-open { top: 1.2rem; right: 1.2rem; height: 34px; padding: 0 .9rem; font-size: .85rem; }
}/* The promise: three plain facts of ordering direct, on a light saffron band, side by side even on a phone */
.sf-promise {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: .75rem 0 0; padding: .7rem .25rem; list-style: none;
  border-radius: 20px; background: #fdefcf; color: var(--text);
  border: 1px solid rgba(227, 154, 18, .2);
  box-shadow: 0 1px 2px rgba(143, 47, 9, .04), 0 6px 18px rgba(227, 154, 18, .1);
}
.sf-promise li { display: grid; justify-items: center; align-content: start; gap: .05rem; padding: 0 .2rem; text-align: center; }
.sf-promise li + li { border-left: 1px solid rgba(227, 154, 18, .32); }
.sf-promise .pi { width: 34px; height: 34px; margin-bottom: .3rem; display: grid; place-items: center; border-radius: 50%; background: #f9d98f; color: var(--text); }
.sf-promise .pi .i { width: 17px; height: 17px; }
/* Sized with the screen so each title stays on one line on a 360-400 px phone (three columns of ~100 px) */
.sf-promise strong { font-size: clamp(.72rem, 3.2vw, .86rem); font-weight: 600; line-height: 1.25; white-space: nowrap; }
.sf-promise span:last-child { font-size: clamp(.72rem, 3.05vw, .8rem); line-height: 1.3; color: var(--text-2); text-wrap: balance; }
.sf-promise .nb { white-space: nowrap; }
@media (min-width: 640px) {
  .storefront { padding: 1.4rem 1.7rem 1.4rem; }
  .sf-promise { padding: .9rem .75rem; }
  .sf-promise strong { font-size: .92rem; }
  .sf-promise span:last-child { font-size: .8rem; }
}
.sf-closed { margin: 1rem 0 0; }

/* First visit only (order.js heroHtml): the card's words rise in reading order, then the promise band. 45 ms apart,
   strong ease-out, under half a second in all; the page is usable throughout (nothing waits for it). Reduced motion:
   a plain fade, no movement. */
@keyframes sf-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes sf-fade { from { opacity: 0; } to { opacity: 1; } }
.sf-enter .sf-name > *, .sf-enter .sf-facts, .sf-enter .sf-open, .sf-promise.sf-enter {
  animation: sf-rise 420ms cubic-bezier(0.23, 1, 0.32, 1) both;
}
.sf-enter .sf-name > :nth-child(1) { animation-delay: 40ms; }
.sf-enter .sf-name > :nth-child(2) { animation-delay: 85ms; }
.sf-enter .sf-name > :nth-child(3) { animation-delay: 130ms; }
.sf-enter .sf-facts { animation-delay: 175ms; }
.sf-enter .sf-open { animation-delay: 220ms; }
.sf-promise.sf-enter { animation-delay: 200ms; }
@media (prefers-reduced-motion: reduce) {
  .sf-enter .sf-name > *, .sf-enter .sf-facts, .sf-enter .sf-open, .sf-promise.sf-enter { animation-name: sf-fade; animation-duration: 200ms; }
  .sf-poster { transform: none; transition: opacity 300ms var(--ease); }
  .sf-open:not(.closed)::before { animation: none; }
}

/* ---------- Signature: adding a dish (cart bar springs in, count ticks, row confirms) ---------- */
.cart-bar { transition: transform .45s cubic-bezier(.34, 1.56, .64, 1), opacity .2s ease; }
.cart-bar.enter { transform: translateY(110%); opacity: 0; }
.cart-summary .tick { display: inline-block; animation: tick .38s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes tick { 0% { transform: translateY(60%); opacity: 0; } 100% { transform: none; opacity: 1; } }
.cart-bar.bump .cart-icon { animation: bump .42s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 40% { transform: scale(1.18) rotate(-6deg); } 100% { transform: none; } }
.menu-item.just-added { animation: added .6s ease-out; }
@keyframes added { 0% { box-shadow: 0 0 0 0 var(--primary-ring); } 40% { box-shadow: 0 0 0 6px var(--primary-ring); } 100% { box-shadow: var(--shadow-xs); } }
@media (prefers-reduced-motion: reduce) {
  .cart-bar { transition: opacity .2s ease; }
  .cart-bar.enter { transform: none; }
  .cart-summary .tick, .cart-bar.bump .cart-icon, .menu-item.just-added { animation: none; }
}


.shop { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.shop .content { padding-bottom: 7rem; } /* room for the cart bar */

/* Header: logo + name, "Deliver to" under it (tap to change), orders and account on the right */
.shop .app-header .sb-logo { width: 38px; height: 38px; }
/* On wide screens the header lines up with the centred page (.content.narrow is 1100px) instead of the window edges */
@media (min-width: 1180px) { .shop .app-header { padding-inline: calc((100vw - 1100px) / 2 + var(--gutter)); } }
.loc-btn { display: flex; align-items: center; gap: .25rem; max-width: 100%; padding: 0; border: 0; background: none; color: var(--muted); font-size: .78rem; text-align: left; }
.loc-btn .i { width: 14px; height: 14px; color: var(--primary); }
.loc-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-btn:hover span { color: var(--text); }

/* Shop front */
.shop-grid { display: grid; gap: 1.25rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.shop-grid > * { min-width: 0; } /* the sideways category row must not widen the page on phones */
@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .cart-col { position: sticky; top: calc(var(--header-h) + 1rem); }
  .cart-bar { display: none !important; } /* the cart column is on screen */
}
@media (max-width: 1023px) { .cart-col { display: none; } }


.menu-tools { position: sticky; top: var(--header-h); z-index: 30; margin: 1rem calc(-1 * var(--gutter)) 0; padding: .75rem var(--gutter) .1rem; background: var(--bg); }
.menu-tools .search-row { display: flex; gap: .6rem; }
.menu-tools .search { margin: 0; flex: 1; min-height: 50px; border-radius: 999px; border-color: var(--border); padding-left: 2.8rem; background-position: 1rem 50%; box-shadow: var(--shadow-xs); }
.menu-tools .search::placeholder { text-overflow: ellipsis; }
.menu-tools #vegBtn { flex: none; min-height: 50px; padding: 0 .9rem; font-weight: 600; color: var(--text); box-shadow: var(--shadow-xs); }
.menu-tools .chips { display: block; overflow-x: auto; padding: .8rem 0; margin: 0; scrollbar-width: none; }
.menu-tools .cats .chip { min-height: 42px; padding: .45rem 1.15rem; border-color: transparent; background: var(--surface-3); color: var(--text-2); font-size: .9rem; }
/* Category tabs: the active pill is .cats-active, a copy of the row styled active and clipped to one tab
   (order.js setActiveCat). The clip slides between tabs; 250ms strong ease-in-out (moving on screen). */
.cats-track { position: relative; display: flex; gap: .5rem; width: max-content; }
.cats-active { position: absolute; inset: 0; display: flex; gap: .5rem; pointer-events: none; clip-path: inset(0 100% 0 0 round 999px); transition: clip-path 250ms var(--ease-in-out); }
.menu-tools .cats .cats-active .chip { background: var(--text); border-color: var(--text); color: #fff; scroll-snap-align: none; }
@media (prefers-reduced-motion: reduce) { .cats-active { transition: none; } }
.menu-tools .chips::-webkit-scrollbar { display: none; }
.menu-section { scroll-margin-top: calc(var(--header-h) + 9rem); margin-top: .5rem; }
.menu-section h2 { display: flex; align-items: baseline; gap: .7rem; margin: 1rem 0 .9rem; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; }
.menu-section h2 small { color: var(--muted); font-weight: 400; font-size: .85rem; letter-spacing: 0; }
.shop .menu-list { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
@media (min-width: 640px) { .shop .menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .shop .menu-list { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 1280px) { .shop .menu-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Dish card: photo on the left, then name, description, and price with the button along the bottom */
.shop .menu-item { align-items: stretch; gap: 1rem; padding: .8rem; border-radius: 20px; border-color: #efe8df; box-shadow: 0 1px 2px rgba(35, 24, 21, .04), 0 8px 22px rgba(35, 24, 21, .05); }
.shop .menu-item:not(.has-photo) { padding: 1rem 1rem .85rem; }
.dish-photo { width: 112px; height: 112px; flex: none; border-radius: 14px; object-fit: cover; background: var(--surface-3); display: block; }
.shop .menu-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.shop .menu-item .name { display: flex; align-items: flex-start; gap: .45rem; font-size: 1.02rem; font-weight: 600; line-height: 1.3; color: var(--text); }
.shop .menu-item .name .food-type { margin-top: .2rem; }
.shop .menu-item .desc { margin: .3rem 0 0; color: var(--muted); font-size: .82rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop .menu-item .buy { margin-top: auto; padding-top: .65rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.shop .menu-item .price { color: var(--text); font-weight: 600; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.shop .menu-item .add-btn { min-height: 40px; padding: 0 1.05rem; border-radius: 999px; border: 1px solid #f5c3a3; background: var(--primary-50); color: var(--primary); font-weight: 600; }
.shop .menu-item .add-btn:hover:not(:disabled) { background: var(--primary-100); }
.shop .qty { padding: 4px; border-radius: 999px; background: var(--surface-3); gap: .25rem; }
.shop .qty button { width: 34px; height: 34px; border-radius: 50%; }
.shop .qty .n { min-width: 1.6rem; font-size: 1rem; }

/* Cart bar (phones): the waiter app's cart bar, with the count on the bag and a round "View cart" */
.cart-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(35, 24, 21, .06);
  text-decoration: none; color: var(--text);
}
.cart-icon { position: relative; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex: none; }
.cart-badge { position: absolute; top: -6px; right: -6px; min-width: 21px; height: 21px; padding: 0 5px; border-radius: 999px; display: grid; place-items: center; background: var(--primary); color: #fff; border: 2px solid #fff; font-size: .7rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.cart-summary { flex: 1; min-width: 0; font-weight: 600; font-size: 1rem; line-height: 1.3; }
.cart-summary small { display: block; color: var(--muted); font-weight: 400; font-size: .82rem; }
.cart-bar .btn { min-width: 150px; min-height: 50px; padding: 0 1.4rem; border-radius: 999px; font-weight: 600; font-size: .98rem; }
.cart-bar .btn .i { order: 2; }

/* Cart lines (the waiter's review lines) and the bill */
.review-line { display: flex; align-items: center; gap: .75rem; padding: .55rem 0; border-top: 1px solid #eef1f6; }
.review-line:first-child { border-top: 0; }
.review-line .name { flex: 1; min-width: 0; display: flex; align-items: center; font-weight: 500; line-height: 1.35; }
.review-line .amt { min-width: 4.5rem; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.bill { display: grid; gap: .45rem; font-size: .9rem; }
.bill-row { display: flex; justify-content: space-between; gap: 1rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bill-row.muted { color: var(--muted); font-size: .82rem; }
.bill-row.total { margin-top: .35rem; padding-top: .65rem; border-top: 1px solid var(--border); color: var(--text); font-weight: 600; font-size: 1.02rem; }
.cart-col .card, .page .card { display: grid; gap: .85rem; }
.cart-col h2, .page .card > h2 { margin: 0; }
.card .label { margin: 0; display: flex; align-items: center; gap: .4rem; }
.card .label .i { color: var(--primary); }

/* Checkout, orders, account */
.page { max-width: 720px; margin: 0 auto; display: grid; gap: 1rem; }
.page .view-head { margin: 0; }
.addr-card { display: flex; gap: .75rem; align-items: flex-start; }
.addr-card > .i { color: var(--primary); margin-top: .2rem; }
.addr-card strong { display: block; }
.addr-card p { margin: .1rem 0 0; color: var(--muted); font-size: .86rem; }
.shop .methods { grid-template-columns: minmax(0, 1fr); }
.shop .method { grid-auto-flow: column; justify-content: start; gap: .75rem; min-height: 60px; padding: .7rem 1rem; text-align: left; cursor: default; }
.shop .method small { display: block; color: var(--muted); font-weight: 400; }
.addr-list { display: grid; gap: .6rem; }
.addr-item { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); }
.addr-item.selected { border-color: var(--primary); background: var(--primary-50); box-shadow: 0 0 0 3px var(--primary-ring); }
.addr-item.off { opacity: .6; }
.addr-item > .i { color: var(--primary); margin-top: .2rem; }
.addr-item .pick { flex: 1; min-width: 0; padding: 0; border: 0; background: none; text-align: left; color: inherit; }
.addr-item .pick p { margin: .1rem 0 0; color: var(--muted); font-size: .84rem; }
.orders-list { display: grid; gap: .75rem; }
.order-card { display: grid; gap: .4rem; color: var(--text); text-decoration: none; }
.order-card:hover { border-color: var(--border-strong); }
.order-card .row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.order-card .items { color: var(--muted); font-size: .86rem; }
.pill.DELIVERED { background: var(--available-bg); color: var(--available); }
.pill.PLACED { background: var(--primary-50); color: var(--primary); }
.pill.ACCEPTED { background: var(--occupied-bg); color: var(--occupied); }
.pill.OUT_FOR_DELIVERY { background: var(--ready-bg); color: var(--ready); }
.pill.REJECTED, .pill.FAILED { background: var(--danger-bg); color: var(--danger); }

/* Order tracking: the confirm dialog's icon + the steps */
.track-head { text-align: center; }
.track-head .confirm-icon { margin-bottom: .75rem; }
.track-head.good .confirm-icon { background: var(--available-bg); color: var(--available); }
.track-head.bad .confirm-icon { background: var(--danger-bg); color: var(--danger); }
.track-head h1 { font-size: 1.2rem; }
.track-head p { margin: .25rem 0 0; color: var(--muted); font-size: .9rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; }
.step { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: .75rem; position: relative; padding-bottom: 1rem; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--border-strong); }
.step:last-child::before { display: none; }
.step .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--faint); }
.step .dot .i { width: 14px; height: 14px; }
.step.done .dot { background: var(--available); color: #fff; }
.step.done::before { background: var(--available); }
.step.now .dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 5px var(--primary-ring); }
.step strong { display: block; line-height: 26px; font-weight: 500; }
.step.todo strong { color: var(--muted); }
.step small { display: block; color: var(--muted); font-size: .78rem; margin-top: -.2rem; }

/* Map picker (full screen): the map moves under a fixed pin, like the delivery apps */
.mapper { position: fixed; inset: 0; z-index: 90; background: var(--surface); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.mapper .app-header { position: relative; }
.mapper .map-search { position: relative; flex: 1; }
.mapper .map-search .search { margin: 0; }
.map-suggest { position: absolute; top: calc(100% + .4rem); left: 0; right: 0; margin: 0; padding: .35rem; list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 50vh; overflow: auto; z-index: 5; }
.map-suggest button { display: block; width: 100%; padding: .6rem .75rem; border: 0; border-radius: 10px; background: none; text-align: left; font-size: .88rem; }
.map-suggest button:hover, .map-suggest button:focus { background: var(--surface-3); }
.map-suggest small { display: block; color: var(--muted); font-size: .78rem; }
.map-canvas { position: relative; background: var(--surface-3); }
.map-canvas .empty { position: absolute; inset: 0; align-content: center; }
.map-pin { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -100%); z-index: 3; pointer-events: none; display: grid; justify-items: center; color: var(--primary); }
.map-pin .i { width: 42px; height: 42px; fill: #fff; filter: drop-shadow(0 4px 6px rgba(15, 23, 42, .25)); }
.map-pin .shadow { width: 10px; height: 4px; border-radius: 50%; background: rgba(15, 23, 42, .3); margin-top: -2px; }
.mapper[hidden] .map-pin, .mapper.no-map .map-pin { display: none; }
.locate-btn { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--panel-h, 300px) + .9rem); z-index: 3; white-space: nowrap; box-shadow: var(--shadow-lg); }
.mapper.no-map .locate-btn { bottom: auto; top: 50%; }
.map-panel { position: relative; z-index: 4; display: grid; gap: .25rem; max-height: 62vh; overflow-y: auto; padding: 1.1rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom)); background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 24px rgba(15, 23, 42, .08); }
.map-panel .warn, .map-panel .success-note { margin: 0 0 .75rem; justify-content: flex-start; text-align: left; }
.map-panel .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.map-panel .chips { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
@media (min-width: 768px) { .map-panel { max-width: 560px; width: 100%; justify-self: center; } }

/* Guest details sheet (order.js signIn): the form, then "or" and Sign in */
.guest-form { display: grid; gap: .1rem; }
.guest-form > .hint { margin: 0 0 .75rem; }
.guest-form .error-text:empty { display: none; }
.or-line { display: flex; align-items: center; gap: .75rem; margin: 1rem 0; color: var(--muted); font-size: .8rem; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--border); }
#sheetSignIn { width: 100%; }
.hint.center { text-align: center; margin: .6rem 0 0; }

/* Continue with Google (order.js googleButton): Google draws its own button into .g-btn; ours only centres it and
   holds its height while Google's script loads, so the sheet does not jump. */
.g-btn { display: flex; justify-content: center; min-height: 44px; }
.g-wait { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .85rem; }
.btn-spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.error-text.center { text-align: center; }
@media (prefers-reduced-motion: reduce) { .btn-spin { animation-duration: 1.6s; } }
