/* ==========================================================================
   pontun-ui.css  —  Pontún diner ordering UI kit (mobile)
   Recreated from computed styles of a live Pontún ordering site (Oct 2026).
   Every class is prefixed pu-. Every site is white; only --pu-accent changes.
   Load the font once per page:
   <link href="https://fonts.googleapis.com/css2?family=Urbanist:wght@400;500;600;700;800&display=swap" rel="stylesheet">
   ========================================================================== */

.pu-root, .pu-iphone, .pu-frameless, .pu-cutout {
  /* ---- brand: the ONLY value that changes per restaurant ---- */
  /* Set --pu-accent (and optionally --pu-on-accent) on this wrapper OR any ancestor. */
  --pu-a: var(--pu-accent, #c2552b);
  --pu-on-a: var(--pu-on-accent, #ffffff);
  --pu-accent-soft: color-mix(in srgb, var(--pu-a) 10%, #ffffff);

  /* ---- neutrals (captured) ---- */
  --pu-bg: #ffffff;
  --pu-ink: #222222;          /* headings, item names, prices in cart/summary */
  --pu-ink-2: #595959;        /* secondary text, option labels, inactive chip text */
  --pu-muted: #9eb1c4;        /* slate: inactive toggle text, store address, Edit link, disabled button fill, item dividers */
  --pu-line: #a5b8cb;         /* input / card / outline-chip borders */
  --pu-fill: #f3f4f6;         /* image placeholder, share button */
  --pu-shadow-tint: #c9d9e8;  /* the soft blue-gray "neumorphic" shadow */

  /* ---- shadows (captured) ---- */
  --pu-shadow: 8px 8px 16px 0 rgba(201, 217, 232, .75);
  --pu-shadow-sheet: 8px 8px 16px 0 #c9d9e8, -8px -8px 16px 0 rgba(201, 217, 232, .5);
  --pu-shadow-drawer: -8px -8px 16px 0 #c9d9e8;

  /* ---- radii (captured) ---- */
  --pu-r-pill: 9999px;
  --pu-r-chip: 24px;
  --pu-r-sheet: 24px;
  --pu-r-btn: 12px;           /* add to cart, coupon, apply, tip pills, qty card */
  --pu-r-btn-wide: 8px;       /* checkout, login (full-width) */
  --pu-r-card: 8px;           /* pickup card, summary card, textarea, cart thumb */
  --pu-r-check: 6px;

  /* ---- type ---- */
  --pu-font: "Urbanist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --pu-fs-xs: 13px; --pu-fs-sm: 14px; --pu-fs-md: 16px; --pu-fs-lg: 18px;
  --pu-fs-xl: 20px; --pu-fs-2xl: 24px; --pu-fs-3xl: 30px;

  --pu-gutter: 16px;
  font-family: var(--pu-font);
  color: var(--pu-ink);
}

/* ---------- reset scoped to the kit ---------- */
.pu-iphone, .pu-frameless, .pu-cutout, .pu-root { box-sizing: border-box; }
:where(.pu-root, .pu-iphone, .pu-frameless, .pu-cutout) *,
:where(.pu-root, .pu-iphone, .pu-frameless, .pu-cutout) *::before,
:where(.pu-root, .pu-iphone, .pu-frameless, .pu-cutout) *::after { box-sizing: border-box; }
:where(.pu-root, .pu-iphone, .pu-frameless, .pu-cutout) :where(p, h1, h2, h3, ul, figure) { margin: 0; padding: 0; }
:where(.pu-root, .pu-iphone, .pu-frameless, .pu-cutout) ul { list-style: none; }
:where(.pu-root, .pu-iphone, .pu-frameless, .pu-cutout) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: default; }
:where(.pu-root, .pu-iphone, .pu-frameless, .pu-cutout) img { display: block; max-width: 100%; }
.pu-ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: block; }
.pu-ico--sm { width: 20px; height: 20px; }
.pu-ico--xs { width: 16px; height: 16px; }

/* ==========================================================================
   SCALE: one variable. Set --pu-scale on the outermost kit wrapper
   (.pu-iphone, .pu-frameless or .pu-cutout). It uses CSS `zoom`, so layout
   shrinks/grows too (not just paint). Never nest two scaled wrappers.
   0.5 = small website embed, 1 = 1:1 logical points, 2-2.6 = ad canvases.
   ========================================================================== */
.pu-iphone, .pu-frameless, .pu-cutout { --pu-scale: 1; zoom: var(--pu-scale); }

/* ==========================================================================
   iPhone-style device frame (pure CSS, no Apple artwork). Default for website.
   Screen = 393 x 852 logical points (iPhone 15/16/17 class).
   ========================================================================== */
.pu-iphone {
  position: relative; flex: none;
  width: 417px; padding: 12px;               /* 393 + 2x12 even bezel */
  border-radius: 67px;
  background: #0b0b0d;
  box-shadow:
    0 0 0 1.5px #8d9096,                     /* metal edge */
    0 0 0 3px #3a3c40,
    0 40px 80px -30px rgba(16, 24, 40, .45),
    0 18px 36px -18px rgba(16, 24, 40, .30);
}
.pu-iphone::before, .pu-iphone::after {      /* side buttons */
  content: ""; position: absolute; width: 4px; border-radius: 2px; background: #5d6066;
}
.pu-iphone::before { left: -6px; top: 190px; height: 64px; box-shadow: 0 84px 0 #5d6066; }
.pu-iphone::after  { right: -6px; top: 236px; height: 104px; }
.pu-iphone__screen, .pu-frameless {
  position: relative; width: 393px; height: 852px; overflow: hidden; background: var(--pu-bg);
}
.pu-iphone__screen { border-radius: 55px; }
.pu-frameless { flex: none; }
.pu-frameless--rounded { border-radius: 40px; box-shadow: 0 30px 60px -24px rgba(16, 24, 40, .35); }
.pu-island {
  position: absolute; z-index: 40; top: 11px; left: 50%; transform: translateX(-50%);
  width: 126px; height: 37px; border-radius: 20px; background: #000;
}
.pu-statusbar {
  position: relative; z-index: 35; height: 54px; padding: 19px 30px 0 46px;
  display: flex; justify-content: space-between; align-items: flex-start;
  font-family: -apple-system, "SF Pro Text", var(--pu-font); font-size: 17px; font-weight: 600; line-height: 22px; color: #000;
  background: var(--pu-bg);
}
.pu-statusbar--clear { background: transparent; }
.pu-statusbar--light { color: #fff; }
.pu-statusbar__icons { display: flex; gap: 6px; align-items: center; height: 22px; }
.pu-sig { display: flex; gap: 2px; align-items: flex-end; height: 12px; }
.pu-sig i { display: block; width: 3px; border-radius: 1px; background: currentColor; }
.pu-sig i:nth-child(1) { height: 4px; } .pu-sig i:nth-child(2) { height: 6px; }
.pu-sig i:nth-child(3) { height: 9px; } .pu-sig i:nth-child(4) { height: 12px; }
.pu-wifi { width: 16px; height: 12px; display: block; }
.pu-batt { position: relative; width: 25px; height: 12px; border: 1.2px solid currentColor; border-radius: 4px; opacity: .95; }
.pu-batt::before { content: ""; position: absolute; inset: 1.5px; right: 5px; border-radius: 2px; background: currentColor; }
.pu-batt::after { content: ""; position: absolute; right: -3.5px; top: 3.5px; width: 1.5px; height: 4px; border-radius: 0 1px 1px 0; background: currentColor; opacity: .5; }
.pu-homebar { position: absolute; z-index: 40; left: 50%; bottom: 8px; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: #000; }
.pu-homebar--light { background: #fff; }

/* A screen fills the device below the status bar (clipped, no real scroll) */
.pu-screen {
  position: relative;
  height: calc(100% - 54px);
  overflow: hidden;
  background: var(--pu-bg);
  font-size: var(--pu-fs-md); line-height: 24px;
}
.pu-screen--full { height: 100%; }
.pu-scroll { position: absolute; inset: 0; overflow: hidden; }
.pu-scroll__inner { transform: translateY(calc(var(--pu-scroll, 0) * -1px)); transition: transform .6s ease; }
.pu-pad { padding: 0 var(--pu-gutter); }

/* ==========================================================================
   CUTOUT: one isolated component on any background (ads, tutorials).
   Carries the tokens + white surface; pick a modifier.
   ========================================================================== */
.pu-cutout {
  flex: none; width: 361px; background: var(--pu-bg); color: var(--pu-ink);
  font-size: var(--pu-fs-md); line-height: 24px; position: relative;
}
.pu-cutout--card { border-radius: 20px; padding: 4px 16px; box-shadow: 0 24px 48px -20px rgba(16, 24, 40, .35); }
.pu-cutout--panel { width: 393px; border-radius: 24px; overflow: hidden; box-shadow: 0 24px 48px -20px rgba(16, 24, 40, .35); }
.pu-cutout--sheet { width: 393px; background: transparent; }
.pu-cutout--sheet .pu-sheet { position: relative; }
.pu-cutout--msg { width: 361px; background: transparent; }
.pu-cutout--bare { background: transparent; }

/* ==========================================================================
   Header (back, sign in, bag)
   ========================================================================== */
.pu-header { display: flex; align-items: center; justify-content: space-between; padding: 8px var(--pu-gutter) 0; height: 66px; }
.pu-header__back { width: 36px; height: 36px; border-radius: var(--pu-r-pill); border: 1.1px solid var(--pu-line); display: grid; place-items: center; color: var(--pu-ink-2); }
.pu-header__actions { display: flex; gap: 22px; align-items: flex-end; }
.pu-header__action { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--pu-ink); }
.pu-header__label { font-size: var(--pu-fs-sm); font-weight: 800; line-height: 20px; text-transform: uppercase; }
.pu-badge {
  position: absolute; top: -8px; right: -10px; min-width: 24px; height: 24px; padding: 0 6px;
  border-radius: var(--pu-r-pill); background: var(--pu-a); color: var(--pu-on-a);
  font-size: var(--pu-fs-md); font-weight: 700; line-height: 24px; text-align: center;
}

/* Restaurant wordmark placeholder (never a real logo) */
.pu-wordmark {
  margin: 10px auto 18px; width: 132px; height: 88px; border-radius: 50%;
  border: 2px solid var(--pu-a); display: grid; place-items: center; text-align: center;
  color: var(--pu-a); font-weight: 800; font-size: 15px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase;
}
.pu-wordmark small { display: block; font-size: 9px; font-weight: 600; letter-spacing: .14em; color: var(--pu-ink-2); margin-top: 4px; }

/* ==========================================================================
   Segmented order-type toggle (Pick up / Delivery / Dine in)
   ========================================================================== */
.pu-segment {
  position: relative; display: flex; margin: 0 auto; width: 286px; height: 40px; padding: 2px;
  border-radius: var(--pu-r-pill); background: var(--pu-bg);
  box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--pu-muted);
}
.pu-segment__thumb {
  position: absolute; top: 2px; left: 2px; bottom: 2px; width: calc((100% - 4px) / 3);
  border-radius: var(--pu-r-pill); background: var(--pu-a);
  transform: translateX(calc(var(--pu-seg, 0) * 100%)); transition: transform .3s ease;
}
.pu-segment__opt {
  position: relative; z-index: 1; flex: 1; display: grid; place-items: center;
  font-size: var(--pu-fs-sm); font-weight: 600; line-height: 16px; text-transform: uppercase; color: var(--pu-muted);
}
.pu-segment__opt.is-active { color: var(--pu-on-a); }

/* Store + time block */
.pu-store { text-align: center; margin-top: 14px; }
.pu-store__name { font-size: var(--pu-fs-lg); font-weight: 700; line-height: 28px; color: var(--pu-muted); text-transform: capitalize; }
.pu-store__addr { font-size: var(--pu-fs-md); color: var(--pu-muted); display: inline-flex; gap: 6px; align-items: center; }
.pu-store__addr .pu-ico { color: var(--pu-a); }
.pu-time { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; font-size: var(--pu-fs-md); }
.pu-time__label { font-weight: 700; text-transform: uppercase; color: var(--pu-a); }
.pu-time__caret { color: var(--pu-ink-2); font-size: 12px; }
.pu-time__value { color: var(--pu-muted); }
.pu-time .pu-ico { color: var(--pu-a); }

/* Search */
.pu-search {
  margin: 22px var(--pu-gutter) 0; height: 48px; padding: 0 8px 0 24px; display: flex; align-items: center; gap: 10px;
  border-radius: var(--pu-r-pill); background: var(--pu-bg); box-shadow: var(--pu-shadow);
}
.pu-search .pu-ico { color: var(--pu-a); }
.pu-search__text { font-size: var(--pu-fs-md); font-weight: 500; color: var(--pu-muted); }

/* ==========================================================================
   Category tabs (chips, horizontal scroll)
   ========================================================================== */
.pu-cats { display: flex; gap: 12px; padding: 16px var(--pu-gutter); overflow: hidden; white-space: nowrap; }
.pu-cat {
  flex: none; padding: 8px 20px; border-radius: var(--pu-r-chip); border: 1.1px solid var(--pu-line);
  background: var(--pu-bg); color: var(--pu-ink-2);
  font-size: var(--pu-fs-md); font-weight: 800; line-height: 24px; text-transform: uppercase;
  transition: background-color .2s, color .2s, border-color .2s;
}
.pu-cat.is-active { background: var(--pu-a); border-color: var(--pu-a); color: var(--pu-on-a); }

/* ==========================================================================
   Menu list + item card
   ========================================================================== */
.pu-section-title { font-size: var(--pu-fs-2xl); font-weight: 700; line-height: 32px; text-transform: uppercase; color: var(--pu-ink); padding: 24px var(--pu-gutter) 0; }
.pu-items { padding: 0 var(--pu-gutter); }
.pu-item { display: flex; gap: 20px; padding: 16px 0; border-bottom: 1.1px solid var(--pu-muted); min-height: 130px; }
.pu-item__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-width: 0; }
.pu-item__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pu-item__name { font-size: var(--pu-fs-lg); font-weight: 600; line-height: 28px; text-transform: uppercase; color: var(--pu-ink); }
.pu-item__desc { font-size: var(--pu-fs-sm); line-height: 20px; color: var(--pu-ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pu-item__fav { color: var(--pu-a); flex: none; margin-top: 4px; }
.pu-item__fav.is-on .pu-ico { fill: var(--pu-a); }
.pu-item__price { font-size: var(--pu-fs-lg); font-weight: 700; line-height: 28px; color: var(--pu-a); }
.pu-item__thumb { width: 110px; height: 110px; flex: none; border-radius: var(--pu-r-card); overflow: hidden; }
.pu-item.is-flash { animation: pu-flash .9s ease; }
@keyframes pu-flash { 0%,100% { background: transparent; } 40% { background: var(--pu-accent-soft); } }

/* Neutral image placeholders (never client food photos) */
.pu-ph { position: relative; background: var(--pu-fill); display: grid; place-items: center; width: 100%; height: 100%; }
.pu-ph--plate::before {           /* the platform's own "no image" plate */
  content: ""; width: 58%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px solid #8a8f98; box-shadow: inset 0 0 0 7px var(--pu-fill), inset 0 0 0 8.5px #b8bcc4;
}
.pu-ph--plate::after {            /* fork + knife strokes */
  content: ""; position: absolute; width: 74%; height: 34%;
  background:
    linear-gradient(#8a8f98, #8a8f98) left 3% center / 1.5px 100% no-repeat,
    linear-gradient(#8a8f98, #8a8f98) right 3% center / 1.5px 100% no-repeat;
}
.pu-ph--food::before {            /* soft abstract "dish" for marketing */
  content: ""; width: 62%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 36%, #fff 0 18%, #e6e8ec 19% 54%, #d9dce2 55% 100%);
  box-shadow: 0 6px 14px rgba(16, 24, 40, .08);
}

/* ==========================================================================
   Item detail bottom sheet
   ========================================================================== */
.pu-backdrop {
  position: absolute; inset: 0; z-index: 10;
  background: rgba(255, 255, 255, .2); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, .1);
  transition: opacity .3s;
}
.pu-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 11;
  background: var(--pu-bg); border-radius: var(--pu-r-sheet) var(--pu-r-sheet) 0 0; box-shadow: var(--pu-shadow-sheet);
  padding: 16px var(--pu-gutter) 16px;
  transform: translateY(var(--pu-sheet-y, 0)); transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.pu-sheet__bar { display: flex; justify-content: space-between; align-items: center; }
.pu-iconbtn { width: 32px; height: 32px; border-radius: var(--pu-r-pill); display: grid; place-items: center; color: var(--pu-ink); }
.pu-iconbtn--ring { border: 1.1px solid var(--pu-ink); }
.pu-iconbtn--fill { background: var(--pu-fill); border: 1.1px solid var(--pu-fill); }
.pu-sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.pu-sheet__title { font-size: var(--pu-fs-3xl); font-weight: 700; line-height: 36px; color: var(--pu-ink); }
.pu-sheet__price { font-size: var(--pu-fs-2xl); font-weight: 700; line-height: 32px; color: var(--pu-ink); white-space: nowrap; }
.pu-sheet__desc { margin-top: 6px; font-size: var(--pu-fs-sm); line-height: 20px; color: var(--pu-ink-2); }

.pu-group { margin-top: 22px; }
.pu-group__head { display: flex; justify-content: space-between; align-items: baseline; }
.pu-group__title { font-size: var(--pu-fs-xl); font-weight: 600; line-height: 28px; text-transform: uppercase; color: var(--pu-ink); }
.pu-group__rule { font-size: var(--pu-fs-xs); font-weight: 600; color: var(--pu-ink-2); text-transform: uppercase; letter-spacing: .02em; }
.pu-group__rule.is-required { color: var(--pu-a); }
.pu-opt { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.pu-opt__label { flex: 1; font-size: var(--pu-fs-md); font-weight: 500; line-height: 20px; color: var(--pu-ink-2); text-transform: capitalize; }
.pu-opt__price { font-size: var(--pu-fs-md); font-weight: 700; color: var(--pu-ink-2); }
.pu-check, .pu-radio {
  width: 20px; height: 20px; flex: none; border: 1.1px solid var(--pu-a); background: var(--pu-bg);
  display: grid; place-items: center; transition: background-color .2s;
}
.pu-check { border-radius: var(--pu-r-check); }
.pu-radio { border-radius: 50%; }
.pu-check.is-on { background: var(--pu-a); }
.pu-check.is-on::after { content: ""; width: 10px; height: 5px; border: 2px solid var(--pu-on-a); border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.pu-radio.is-on::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pu-a); }
.pu-textarea {
  margin-top: 12px; height: 82px; padding: 16px; border: 1.1px solid var(--pu-line); border-radius: var(--pu-r-card);
  font-size: var(--pu-fs-md); font-weight: 500; color: var(--pu-muted);
}
.pu-sheet__foot { display: flex; gap: 16px; margin-top: 24px; }
.pu-qtycard {
  width: 144px; height: 76px; flex: none; padding: 12px 16px; border-radius: var(--pu-r-btn);
  background: var(--pu-bg); box-shadow: var(--pu-shadow); display: flex; align-items: center; justify-content: space-between;
}

/* Stepper (two sizes) */
.pu-step-btn { width: 36px; height: 36px; padding: 2px; border-radius: var(--pu-r-pill); background: var(--pu-a); color: var(--pu-on-a); display: grid; place-items: center; }
.pu-step-btn .pu-ico { stroke-width: 2.5; width: 18px; height: 18px; }
.pu-step-val { font-size: var(--pu-fs-lg); font-weight: 600; color: var(--pu-ink); min-width: 16px; text-align: center; }
.pu-stepper--mini { display: flex; align-items: center; gap: 14px; }
.pu-stepper--mini .pu-step-btn { width: 22px; height: 22px; }
.pu-stepper--mini .pu-step-btn .pu-ico { width: 14px; height: 14px; }
.pu-stepper--mini .pu-step-val { font-size: var(--pu-fs-md); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.pu-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: var(--pu-r-btn); padding: 12px 16px; box-shadow: var(--pu-shadow);
  font-size: var(--pu-fs-lg); font-weight: 700; line-height: 28px; text-transform: uppercase; text-align: center;
  transition: transform .15s, background-color .2s;
}
.pu-btn--primary { background: var(--pu-a); color: var(--pu-on-a); }
.pu-btn--disabled { background: var(--pu-muted); color: #fff; }
.pu-btn--ghost { background: var(--pu-bg); color: var(--pu-ink-2); border: 1.1px solid #fff; }
.pu-btn--wide { width: 100%; border-radius: var(--pu-r-btn-wide); padding: 14px 16px; min-height: 56px; }
.pu-btn--grow { flex: 1; }
.pu-btn__sub { font-size: var(--pu-fs-lg); font-weight: 700; line-height: 24px; text-transform: none; }
.pu-btn.is-pressed { transform: scale(.97); }
.pu-link { font-size: var(--pu-fs-sm); font-weight: 800; color: var(--pu-a); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Cart drawer
   ========================================================================== */
.pu-drawer { position: absolute; inset: 0; background: var(--pu-bg); box-shadow: var(--pu-shadow-drawer); display: flex; flex-direction: column; }
.pu-drawer__head { position: relative; height: 64px; display: flex; align-items: center; justify-content: center; }
.pu-drawer__head .pu-iconbtn { position: absolute; left: var(--pu-gutter); }
.pu-drawer__title { font-size: var(--pu-fs-xl); font-weight: 700; line-height: 28px; text-transform: uppercase; color: var(--pu-ink); }
.pu-drawer__body { flex: 1; padding: 16px var(--pu-gutter) 0; overflow: hidden; }
.pu-drawer__foot { padding: 0 var(--pu-gutter) 16px; }
.pu-line { display: flex; gap: 16px; padding-bottom: 20px; }
.pu-line + .pu-line { padding-top: 20px; border-top: 1px solid var(--pu-fill); }
.pu-line__thumb { width: 80px; height: 80px; flex: none; border-radius: var(--pu-r-card); overflow: hidden; }
.pu-line__main { flex: 1; min-width: 0; }
.pu-line__name { font-size: var(--pu-fs-lg); font-weight: 600; line-height: 24px; text-transform: uppercase; color: var(--pu-ink); }
.pu-line__mods { font-size: var(--pu-fs-sm); line-height: 20px; color: var(--pu-ink-2); margin: 2px 0 8px; }
.pu-line__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pu-line__price { font-size: var(--pu-fs-md); font-weight: 600; color: var(--pu-ink); }
.pu-line__edit { font-size: var(--pu-fs-sm); font-weight: 500; color: var(--pu-muted); text-decoration: underline; text-underline-offset: 2px; }
.pu-trash { width: 40px; height: 40px; padding: 4px; border-radius: var(--pu-r-pill); box-shadow: var(--pu-shadow); display: grid; place-items: center; color: var(--pu-ink); }
.pu-row { display: flex; justify-content: space-between; align-items: center; }
.pu-row--subtotal { padding: 12px 0 16px; font-size: var(--pu-fs-lg); font-weight: 600; line-height: 28px; text-transform: uppercase; color: var(--pu-ink); }

/* ==========================================================================
   Checkout
   ========================================================================== */
.pu-card { border: 1.1px solid var(--pu-line); border-radius: var(--pu-r-card); padding: 16px; background: var(--pu-bg); }
.pu-pickup { display: flex; gap: 14px; margin: 8px var(--pu-gutter) 0; }
.pu-pickup > .pu-ico { color: var(--pu-ink-2); margin-top: 2px; }
.pu-pickup__main { flex: 1; }
.pu-pickup__head { display: flex; justify-content: space-between; align-items: center; }
.pu-pickup__kind { font-size: var(--pu-fs-lg); font-weight: 700; line-height: 28px; color: var(--pu-a); }
.pu-pickup__store { margin-top: 6px; font-size: var(--pu-fs-xl); font-weight: 600; line-height: 28px; text-transform: uppercase; color: #000; }
.pu-pickup__addr { font-size: var(--pu-fs-md); color: var(--pu-ink); margin-top: 4px; }
.pu-pickup__time { display: flex; gap: 20px; align-items: center; margin-top: 12px; font-size: var(--pu-fs-sm); font-weight: 600; }
.pu-pickup__time b { color: var(--pu-a); text-transform: uppercase; font-weight: 600; }
.pu-pickup__time .pu-ico { color: var(--pu-a); }
.pu-h3 { font-size: var(--pu-fs-xl); font-weight: 600; line-height: 28px; color: var(--pu-ink); }
.pu-block { padding: 24px var(--pu-gutter) 0; }
.pu-tips { display: flex; gap: 8px; margin-top: 12px; }
.pu-tip {
  flex: 1; height: 50px; padding: 12px; border: 1.1px solid var(--pu-line); border-radius: var(--pu-r-btn);
  display: grid; place-items: center; font-size: var(--pu-fs-md); font-weight: 600; color: var(--pu-ink);
  transition: background-color .2s, border-color .2s, color .2s;
}
.pu-tip.is-selected { border-color: var(--pu-a); background: var(--pu-a); color: var(--pu-on-a); }
.pu-coupon { display: flex; gap: 12px; margin-top: 20px; }
.pu-coupon__input { flex: 1; height: 56px; padding: 8px 12px; border: 1.1px solid var(--pu-line); border-radius: var(--pu-r-btn); display: flex; align-items: center; font-weight: 500; color: var(--pu-muted); }
.pu-coupon .pu-btn { width: 120px; padding: 0 16px; text-transform: capitalize; }
.pu-summary__head { display: flex; justify-content: space-between; }
.pu-summary__line { display: flex; gap: 14px; padding-top: 12px; font-size: var(--pu-fs-md); font-weight: 600; color: var(--pu-ink); }
.pu-summary__line span:first-child { color: var(--pu-ink-2); }
.pu-summary__line span:nth-child(2) { flex: 1; text-transform: uppercase; }
.pu-totals { padding: 16px var(--pu-gutter) 0; }
.pu-totals .pu-row { padding: 6px 0; }
.pu-totals__sub { font-size: var(--pu-fs-xl); font-weight: 600; line-height: 28px; text-transform: uppercase; color: var(--pu-ink); }
.pu-totals__minor { font-size: var(--pu-fs-md); font-weight: 500; color: var(--pu-ink-2); }
.pu-totals__total { font-size: var(--pu-fs-xl); font-weight: 800; line-height: 28px; text-transform: uppercase; color: var(--pu-ink); }
.pu-dock { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px var(--pu-gutter) 16px; background: linear-gradient(rgba(255,255,255,0), #fff 30%); }

/* ==========================================================================
   Order status / tracking   (built in the captured visual language)
   ========================================================================== */
.pu-status { padding: 8px var(--pu-gutter) 0; }
.pu-status__eyebrow { font-size: var(--pu-fs-sm); font-weight: 800; text-transform: uppercase; color: var(--pu-a); letter-spacing: .02em; }
.pu-status__title { margin-top: 4px; font-size: var(--pu-fs-3xl); font-weight: 700; line-height: 36px; color: var(--pu-ink); }
.pu-status__eta { margin-top: 6px; font-size: var(--pu-fs-md); color: var(--pu-ink-2); }
.pu-status__eta b { color: var(--pu-ink); font-weight: 700; }
.pu-progress { --pu-progress: .5; margin-top: 20px; height: 8px; border-radius: var(--pu-r-pill); background: var(--pu-fill); overflow: hidden; }
.pu-progress__bar { height: 100%; width: calc(var(--pu-progress) * 100%); border-radius: inherit; background: var(--pu-a); transition: width .6s ease; }
.pu-steps { margin-top: 22px; }
.pu-step { position: relative; display: flex; gap: 14px; padding-bottom: 22px; }
.pu-step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--pu-fill); }
.pu-step:last-child::before { display: none; }
.pu-step.is-done::before { background: var(--pu-a); }
.pu-step__dot { position: relative; z-index: 1; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 2px solid var(--pu-line); background: var(--pu-bg); display: grid; place-items: center; color: var(--pu-on-a); }
.pu-step__dot .pu-ico { width: 14px; height: 14px; stroke-width: 3; opacity: 0; }
.pu-step.is-done .pu-step__dot { background: var(--pu-a); border-color: var(--pu-a); }
.pu-step.is-done .pu-step__dot .pu-ico { opacity: 1; }
.pu-step.is-active .pu-step__dot { border-color: var(--pu-a); box-shadow: 0 0 0 5px var(--pu-accent-soft); }
.pu-step.is-active .pu-step__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--pu-a); position: absolute; }
.pu-step__label { font-size: var(--pu-fs-lg); font-weight: 600; line-height: 28px; color: var(--pu-ink); }
.pu-step__meta { font-size: var(--pu-fs-sm); color: var(--pu-ink-2); }
.pu-step:not(.is-done):not(.is-active) .pu-step__label { color: var(--pu-muted); }

/* ==========================================================================
   Loyalty points / reward   (built)
   ========================================================================== */
.pu-points { margin: 12px var(--pu-gutter) 0; padding: 20px; border-radius: 16px; background: var(--pu-a); color: var(--pu-on-a); }
.pu-points__label { font-size: var(--pu-fs-sm); font-weight: 700; text-transform: uppercase; opacity: .85; }
.pu-points__value { font-size: 44px; font-weight: 800; line-height: 48px; margin-top: 4px; }
.pu-points__value small { font-size: var(--pu-fs-lg); font-weight: 600; margin-left: 4px; }
.pu-points__track { --pu-progress: .8; margin-top: 16px; height: 8px; border-radius: var(--pu-r-pill); background: rgba(255,255,255,.3); overflow: hidden; }
.pu-points__fill { height: 100%; width: calc(var(--pu-progress) * 100%); background: var(--pu-on-a); border-radius: inherit; transition: width .8s ease; }
.pu-points__next { margin-top: 10px; font-size: var(--pu-fs-sm); font-weight: 600; }
.pu-rewards { padding: 0 var(--pu-gutter); }
.pu-reward { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1.1px solid var(--pu-fill); }
.pu-reward__icon { width: 48px; height: 48px; flex: none; border-radius: var(--pu-r-btn); background: var(--pu-accent-soft); color: var(--pu-a); display: grid; place-items: center; }
.pu-reward__main { flex: 1; }
.pu-reward__name { font-size: var(--pu-fs-md); font-weight: 700; text-transform: uppercase; color: var(--pu-ink); }
.pu-reward__cost { font-size: var(--pu-fs-sm); color: var(--pu-ink-2); }
.pu-reward__cta { padding: 6px 14px; border-radius: var(--pu-r-chip); border: 1.1px solid var(--pu-line); font-size: var(--pu-fs-sm); font-weight: 800; text-transform: uppercase; color: var(--pu-ink-2); }
.pu-reward.is-ready .pu-reward__cta { background: var(--pu-a); border-color: var(--pu-a); color: var(--pu-on-a); }
.pu-toast {
  position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); white-space: nowrap;
  padding: 10px 14px; border-radius: var(--pu-r-pill); background: rgba(17, 24, 39, .95); color: #fff;
  font-size: var(--pu-fs-xs); font-weight: 600; line-height: 16px; letter-spacing: .01em; box-shadow: 0 10px 25px rgba(15, 23, 42, .35);
}

/* ==========================================================================
   Account prompt (captured: Hello / Login / Create account / Guest)
   ========================================================================== */
.pu-auth { padding: 24px var(--pu-gutter) 0; }
.pu-field { margin-top: 18px; border-bottom: 1.1px solid var(--pu-line); padding: 8px 0; }
.pu-field__label { font-size: var(--pu-fs-md); font-weight: 500; color: var(--pu-ink-2); text-transform: capitalize; }
.pu-or { text-align: center; margin: 18px 0; font-size: var(--pu-fs-xl); font-weight: 700; color: var(--pu-ink-2); }
.pu-center { text-align: center; }
.pu-link--plain { text-decoration: none; font-size: var(--pu-fs-md); text-transform: uppercase; }

/* ==========================================================================
   SMS / push messages (built, OS-styled; restaurant-sent)
   ========================================================================== */
.pu-msgs { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-family: -apple-system, "SF Pro Text", var(--pu-font); }
.pu-msgs__sender { text-align: center; font-size: 12px; color: #8e8e93; margin-bottom: 6px; }
.pu-msgs__sender b { display: block; font-size: 13px; color: #1c1c1e; font-weight: 600; }
.pu-bubble { max-width: 78%; padding: 9px 13px; border-radius: 19px; font-size: 16px; line-height: 21px; }
.pu-bubble--in { align-self: flex-start; background: #e9e9eb; color: #000; border-bottom-left-radius: 6px; }
.pu-bubble--out { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.pu-bubble__link { color: #0a64d6; text-decoration: underline; }
.pu-bubble--typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.pu-bubble--typing i { width: 7px; height: 7px; border-radius: 50%; background: #8e8e93; animation: pu-typing 1.2s infinite; }
.pu-bubble--typing i:nth-child(2) { animation-delay: .15s; }
.pu-bubble--typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pu-typing { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
.pu-push {
  display: flex; gap: 10px; padding: 12px 14px; border-radius: 22px; width: 100%;
  background: rgba(245, 245, 247, .82); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12); font-family: -apple-system, "SF Pro Text", var(--pu-font); color: #000;
}
.pu-push__icon { width: 38px; height: 38px; flex: none; border-radius: 9px; background: var(--pu-a); color: var(--pu-on-a); display: grid; place-items: center; font-weight: 800; font-size: 13px; letter-spacing: .02em; font-family: var(--pu-font); }
.pu-push__main { flex: 1; min-width: 0; }
.pu-push__top { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; line-height: 20px; }
.pu-push__top time { font-size: 13px; font-weight: 400; color: #6b6b70; }
.pu-push__body { font-size: 15px; line-height: 20px; }
.pu-lock { position: absolute; inset: 0; background: linear-gradient(160deg, #e7e9ee, #c9ced8); padding: 70px 12px 0; display: flex; flex-direction: column; gap: 10px; }
.pu-lock__time { text-align: center; font-family: -apple-system, "SF Pro Display", var(--pu-font); font-size: 82px; font-weight: 600; line-height: 1; color: rgba(255,255,255,.95); margin-bottom: 24px; }
.pu-lock__date { text-align: center; font-family: -apple-system, var(--pu-font); font-size: 19px; font-weight: 600; color: rgba(255,255,255,.95); margin-bottom: -14px; }

/* ==========================================================================
   CONTENT SLOTS: per-restaurant content. Mark with data-pu-slot="...".
   Logo / hero / item-photo slots accept the neutral placeholder or an <img>.
   ========================================================================== */
.pu-logo { margin: 10px auto 18px; width: 132px; height: 88px; display: grid; place-items: center; }
.pu-logo > img { width: 100%; height: 100%; object-fit: contain; }
.pu-logo .pu-wordmark { margin: 0; }
.pu-hero { position: relative; height: 168px; margin: 0 var(--pu-gutter) 8px; border-radius: 16px; overflow: hidden; }
.pu-hero > img { width: 100%; height: 100%; object-fit: cover; }
.pu-ph--hero { background: linear-gradient(135deg, var(--pu-fill), #e4e7ec); }
.pu-ph--hero::before { content: ""; width: 46%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 38%, #fff 0 16%, #eceef2 17% 52%, #dfe2e8 53%); box-shadow: 0 8px 20px rgba(16,24,40,.08); }
.pu-item__thumb > img, .pu-line__thumb > img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   TUTORIAL / AD STATES: stable hooks for highlight, tap and callouts.
   ========================================================================== */
.pu-is-focused { position: relative; z-index: 20; outline: 3px solid var(--pu-a); outline-offset: 4px; }
.pu-is-spotlit { position: relative; z-index: 20; box-shadow: 0 0 0 9999px rgba(17, 24, 39, .45); }
.pu-is-tapped { transform: scale(.96); filter: brightness(.95); transition: transform .12s, filter .12s; }
.pu-is-dimmed { opacity: .35; transition: opacity .3s; }
.pu-is-hidden { visibility: hidden; }

/* Tap indicator: inside a position:relative/absolute parent; set --x / --y */
.pu-tap {
  position: absolute; z-index: 50; left: var(--x, 50%); top: var(--y, 50%); width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: rgba(17, 24, 39, .28); border: 2px solid rgba(255, 255, 255, .95);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25); pointer-events: none;
}
.pu-tap::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(17, 24, 39, .35); animation: pu-ripple 1.4s ease-out infinite; }
.pu-tap--static::after { display: none; }
@keyframes pu-ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }

/* Callout: numbered step label with an arrow. Position with --x / --y; pick an arrow side. */
.pu-callout {
  position: absolute; z-index: 60; left: var(--x, 50%); top: var(--y, 50%);
  display: inline-flex; align-items: center; gap: 10px; max-width: 250px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: #111827; color: #fff;
  font-family: var(--pu-font); font-size: 15px; font-weight: 600; line-height: 20px; box-shadow: 0 12px 28px rgba(15, 23, 42, .35);
}
.pu-callout__num { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--pu-a); color: var(--pu-on-a); display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.pu-callout::after { content: ""; position: absolute; width: 12px; height: 12px; background: inherit; transform: rotate(45deg); border-radius: 2px; }
.pu-callout--down::after  { left: 24px; bottom: -5px; }
.pu-callout--up::after    { left: 24px; top: -5px; }
.pu-callout--left::after  { left: -5px; top: calc(50% - 6px); }
.pu-callout--right::after { right: -5px; top: calc(50% - 6px); }
.pu-callout--light { background: #fff; color: var(--pu-ink); }

@media (prefers-reduced-motion: reduce) {
  .pu-tap::after, .pu-bubble--typing i, .pu-item.is-flash { animation: none; }
}
