/* Guest ordering page – bold, graphic, cobalt + white, orange only as accent. */
body { background: var(--white); } /* the footer leaves room for the floating cart button */
/* hotdog wallpaper from the brand deck, very light behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url('/brand/pattern-hotdogs.svg') 0 0 / 460px; opacity: 0.14;
}
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; }
::selection { background: var(--blaze); color: var(--white); }

h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; text-transform: uppercase; line-height: 0.95; margin: 0; }

/* hero */
.hero {
  position: relative;
  background: var(--cobalt) url('/brand/pattern-hotdogs-white.svg') center / 260px;
  padding: calc(28px + env(safe-area-inset-top)) 16px 28px;
  display: grid; place-items: center;
  overflow: hidden;
}
.hero::before { content: ''; position: absolute; inset: 0; background: var(--cobalt); opacity: 0.86; }
.hero-logo { position: relative; width: min(300px, 76vw); height: auto; }

/* closed banner */
.closed { display: flex; gap: 14px; align-items: center; background: var(--cobalt-soft); padding: 14px 16px; }
.closed[hidden] { display: none; }
.closed img { width: 46px; height: auto; flex: none; }
.closed strong { display: block; font-family: var(--display); font-size: 18px; }
.closed span { font-size: 14px; color: var(--muted); }

/* category tabs */
.tabs {
  position: sticky; top: 0; z-index: 10;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px; background: var(--white); border-bottom: 2px solid var(--cobalt);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: 2px solid var(--cobalt); background: var(--white); color: var(--cobalt);
  border-radius: 999px; padding: 8px 16px; font-family: var(--display); font-weight: 700; font-size: 14px; text-transform: uppercase;
}
.tab.active { background: var(--cobalt); color: var(--white); }

/* menu */
.menu { max-width: 760px; margin: 0 auto; padding: 8px 16px 24px; }
.loading { text-align: center; padding: 48px 0; color: var(--muted); }
.cat { scroll-margin-top: 72px; padding-top: 24px; }
.cat-title { font-size: clamp(40px, 12vw, 64px); margin-bottom: 16px; }

.dogs { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card {
  position: relative; display: flex; flex-direction: column; text-align: left; width: 100%;
  border: 2px solid var(--cobalt); border-radius: 18px; background: var(--white); padding: 0; overflow: hidden;
}
.card-img { aspect-ratio: 4 / 3; background: var(--cobalt); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-size: 26px; }
.desc { margin: 0; font-size: 14px; line-height: 1.4; color: var(--muted); }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }

.price { font-family: var(--display); font-weight: 700; font-size: 20px; white-space: nowrap; }
.price small { font-size: 0.6em; margin-left: 2px; }
.plus {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--cobalt); color: var(--white); font-size: 26px; line-height: 1; font-family: var(--display);
}

.rows { display: grid; gap: 10px; }
.row {
  display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; align-items: center; width: 100%; text-align: left;
  border: 2px solid var(--cobalt); border-radius: 16px; background: var(--white); padding: 10px;
}
.row-img { width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--cobalt); display: grid; place-items: center; }
.row-img img { width: 100%; height: 100%; object-fit: cover; }
.row-img img.mascot, .card-img img.mascot, .ps-image img.mascot { object-fit: contain; padding: 10%; }
.row h3 { font-size: 19px; margin-bottom: 4px; }
.row .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

.tag {
  display: inline-block; font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 999px; background: var(--blaze); color: var(--white); vertical-align: middle;
}
.card .tag { position: absolute; top: 12px; left: 12px; font-size: 12px; }
.in-cart {
  position: absolute; top: 12px; right: 12px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  background: var(--blaze); color: var(--white); border: 2px solid var(--white);
  font-family: var(--display); font-weight: 700; display: grid; place-items: center;
}
.row { position: relative; }
.row .in-cart { top: -10px; right: -6px; }

.soldout { opacity: 0.45; cursor: not-allowed; }
.soldout .plus { background: var(--line); }
.soldout-tag { background: var(--cobalt); }

.foot {
  margin-top: 24px; background: var(--cobalt); color: var(--white); padding: 32px 16px 120px;
  display: grid; place-items: center; gap: 10px; font-family: var(--display); font-weight: 700; letter-spacing: 0.12em; font-size: 13px;
}
.foot img { width: 170px; }

/* cart bar */
.cart-bar {
  position: fixed; z-index: 20; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--cobalt); color: var(--white); border: 0; border-radius: 999px; padding: 10px 22px 10px 10px;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  box-shadow: 0 10px 30px rgba(1, 51, 213, 0.35);
}
.cart-bar[hidden] { display: none; }
.cart-count { min-width: 40px; height: 40px; border-radius: 999px; background: var(--blaze); color: var(--white); display: grid; place-items: center; }
.cart-bar span:nth-child(2) { flex: 1; text-align: left; }
.bump { animation: bump 0.35s ease; }
@keyframes bump { 40% { transform: scale(1.05); } }

/* sheets */
.sheet-backdrop { position: fixed; inset: 0; z-index: 30; background: rgba(0, 20, 105, 0.5); }
.sheet-backdrop[hidden], .sheet[hidden] { display: none; }
.sheet {
  position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto;
  max-width: 620px; margin: 0 auto; background: var(--white); border-radius: 24px 24px 0 0;
  padding-bottom: env(safe-area-inset-bottom); animation: up 0.22s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-close {
  display: grid; place-items: center; padding: 0;
  position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--cobalt); background: var(--white); color: var(--cobalt);
  font-size: 24px; line-height: 1;
}
.sheet-body { padding: 20px 16px 20px; }
.sheet h2 { font-size: 34px; margin-bottom: 8px; padding-right: 48px; }
.ps-image { aspect-ratio: 16 / 10; background: var(--cobalt); overflow: hidden; display: grid; place-items: center; }
.ps-image:empty { display: none; }
.ps-image img { width: 100%; height: 100%; object-fit: cover; }
.ps-desc { margin: 0 0 8px; color: var(--muted); line-height: 1.45; }

.opt { border: 0; margin: 18px 0 0; padding: 0; }
.opt legend { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 15px; margin-bottom: 10px; padding: 0; }
.opt legend small { font-family: var(--body); font-weight: 500; text-transform: none; color: var(--muted); margin-left: 6px; }
.opt-error legend { color: var(--blaze); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 9px 14px; border-radius: 999px; border: 2px solid var(--cobalt); font-size: 14px; cursor: pointer;
}
.chip input:checked + span { background: var(--cobalt); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--blaze); outline-offset: 2px; }

.qty-row { display: flex; gap: 12px; align-items: center; margin-top: 24px; position: sticky; bottom: 0; background: var(--white); padding: 12px 0 4px; }
.stepper { display: flex; align-items: center; border: 2px solid var(--cobalt); border-radius: 999px; }
.stepper button { width: 44px; height: 48px; border: 0; background: none; color: var(--cobalt); font-size: 22px; }
.stepper output { min-width: 24px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.btn-primary {
  flex: 1; min-height: 52px; border: 0; border-radius: 999px; background: var(--cobalt); color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: 17px; padding: 0 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.btn-primary:disabled { opacity: 0.5; cursor: progress; }
.btn-block { width: 100%; justify-content: center; }
.btn-ghost { border: 2px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 12px 22px; font-family: var(--display); font-weight: 700; }

.cart-list { list-style: none; margin: 16px 0; padding: 0; }
.cart-list li { display: grid; grid-template-columns: 72px 1fr auto; gap: 6px 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-list .ci-img { grid-row: 1 / span 3; grid-column: 1; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: var(--cobalt); }
.cart-list .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-list .ci-img img.mascot { object-fit: contain; padding: 10%; }
.cart-list .ci-name { grid-column: 2; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 17px; }
.cart-list .ci-opts { grid-column: 2; font-size: 13px; color: var(--muted); }
.cart-list .stepper { grid-column: 2; justify-self: start; }
.cart-list .stepper button { height: 36px; width: 38px; }
.cart-list .price { grid-row: 1; grid-column: 3; font-size: 17px; }
.cart-list .cart-empty { grid-column: 1 / -1; display: block; }
.cart-empty { color: var(--muted); padding: 24px 0; text-align: center; }
.note span { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 14px; margin-bottom: 8px; }
.note textarea { width: 100%; border: 2px solid var(--cobalt); border-radius: 14px; padding: 12px; resize: vertical; font-size: 16px; }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 0 6px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.pay-hint { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.pay-hint:empty { display: none; }
.pay { border: 0; padding: 0; margin: 18px 0; }
.pay[hidden], .note[hidden] { display: none; }
.pay legend { font-family: var(--display); font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 10px; }
#payMethods { display: grid; gap: 8px; }
.pay-opt { display: flex; gap: 12px; align-items: center; border: 2px solid var(--cobalt); border-radius: 14px; padding: 14px; cursor: pointer; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--cobalt); margin: 0; flex: none; }
.pay-opt strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: 16px; }
.pay-opt small { color: var(--muted); font-size: 13px; }
.pay-opt:has(input:checked) { background: var(--cobalt-soft); }
.note input { width: 100%; border: 2px solid var(--cobalt); border-radius: 14px; padding: 12px; font-size: 16px; }
.note small { font-family: var(--body); font-weight: 500; text-transform: none; color: var(--muted); }
.note .hint { display: block; margin-top: 6px; font-size: 12px; }
#receiptField { margin-bottom: 16px; }
.error { color: var(--white); background: var(--blaze); padding: 10px 14px; border-radius: 12px; font-size: 14px; }

/* order status */
.status {
  position: fixed; inset: 0; z-index: 40; overflow-y: auto; background: var(--cobalt) url('/brand/pattern-hotdogs-white.svg') center / 260px; color: var(--white);
}
.status::before { content: ''; position: fixed; inset: 0; background: var(--cobalt); opacity: 0.9; }
.status[hidden] { display: none; }
.status-inner { position: relative; max-width: 520px; margin: 0 auto; padding: calc(32px + env(safe-area-inset-top)) 16px 48px; text-align: center; }
.status-mascot { width: 150px; height: auto; margin: 0 auto 12px; }
.status-label { margin: 0; font-family: var(--display); letter-spacing: 0.24em; font-size: 13px; }
.status-number { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(110px, 38vw, 180px); line-height: 0.9; letter-spacing: -0.04em; }
.status-title { font-size: 40px; margin: 18px 0 8px; }
.status-text { margin: 0 0 24px; font-size: 17px; line-height: 1.4; opacity: 0.9; }
.status.ready .status-number { color: var(--white); animation: pulse 1.2s ease-in-out infinite; }
.status.ready .status-title { font-size: 52px; }
/* the one big moment: the screen floods orange when the order is ready */
.status.ready { background-color: var(--blaze); }
.status.ready::before { background: var(--blaze); opacity: 0.92; animation: flood 0.6s cubic-bezier(.16, 1, .3, 1) both; }
.status.ready .status-items { border-color: rgba(255, 255, 255, 0.5); }
.status.ready .btn-ghost { color: var(--white); }
@keyframes flood { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes pulse { 50% { transform: scale(1.06); } }
.btn-notify {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin: 0 0 12px; min-height: 54px; border: 0; border-radius: 999px;
  background: var(--white); color: var(--cobalt); font-family: var(--display); font-weight: 700; font-size: 16px;
}
.btn-notify[hidden], .notify-hint[hidden] { display: none; }
.btn-notify:disabled { opacity: 0.6; }
.notify-hint { margin: 0 0 20px; font-size: 14px; opacity: 0.85; }
.status-items { list-style: none; margin: 0 auto; padding: 16px 0; border-top: 1px solid rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.3); text-align: left; font-size: 15px; }
.status-items li { padding: 4px 0; }
.status-items small { display: block; opacity: 0.75; }
.status-total { font-family: var(--display); font-weight: 700; font-size: 20px; margin: 16px 0 28px; }

.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 96px; transform: translateX(-50%);
  background: var(--cobalt-deep); color: var(--white); padding: 12px 18px; border-radius: 999px; font-size: 14px; white-space: nowrap;
}
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* allergen codes, small and orange like on the printed menu */
.allergens { font-family: var(--body); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--blaze); vertical-align: 0.5em; white-space: nowrap; }
.sheet h2 .allergens { font-size: 13px; }
.allergen-key { max-width: 760px; margin: 8px auto 0; padding: 0 16px; font-family: var(--display); font-weight: 700; font-size: 10px; line-height: 1.6; letter-spacing: 0.02em; color: var(--blaze); text-align: center; }
.allergen-key b { font-size: 13px; letter-spacing: 0.04em; }

/* SNAP checkerboard band, like the top and bottom of the printed menu */
.checker {
  --sq: 14px; height: calc(var(--sq) * 2); background-color: var(--white);
  background-image: conic-gradient(var(--cobalt) 25%, transparent 0 50%, var(--cobalt) 0 75%, transparent 0);
  background-size: calc(var(--sq) * 2) calc(var(--sq) * 2);
}
/* white squares on the order screen (blue while waiting, orange when ready) */
.checker-light { position: relative; z-index: 1; background-color: transparent; background-image: conic-gradient(var(--white) 25%, transparent 0 50%, var(--white) 0 75%, transparent 0); }
.foot { margin-top: 0; }
.allergen-key { margin-bottom: 24px; }

/* open orders bar – stays above the cart button until the order is picked up */
.active-orders {
  position: fixed; z-index: 19; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px;
}
.active-orders[hidden] { display: none; }
body.has-cart .active-orders { bottom: calc(84px + env(safe-area-inset-bottom)); }
.active-order {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--white); color: var(--cobalt); border: 2px solid var(--cobalt); border-radius: 999px;
  padding: 6px 16px 6px 6px; box-shadow: 0 8px 24px rgba(1, 51, 213, 0.18);
}
.ao-num { min-width: 52px; height: 40px; padding: 0 10px; border-radius: 999px; background: var(--cobalt); color: var(--white); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 18px; }
.ao-text { flex: 1; font-family: var(--display); font-weight: 700; font-size: 15px; line-height: 1.1; }
.ao-text small { display: block; font-family: var(--body); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; opacity: 0.75; }
.active-order .icon { font-size: 20px; }
.active-order.is-ready { background: var(--blaze); color: var(--white); border-color: var(--blaze); animation: bump 0.6s ease 3; }
.active-order.is-ready .ao-num { background: var(--white); color: var(--blaze); }
body.has-orders .foot { padding-bottom: 180px; }

/* footer links & infos */
.foot-social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
.foot-social:empty, .foot-info:empty { display: none; }
.foot-social a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--white); color: var(--white); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; text-transform: none;
}
.foot-social a:hover { background: var(--white); color: var(--cobalt); }
.foot-social .icon { font-size: 18px; }
.foot-info { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; justify-items: center; font-family: var(--body); font-weight: 500; letter-spacing: 0; font-size: 14px; text-align: center; }
.foot-info li { display: flex; align-items: center; gap: 8px; }
.foot-info a { color: inherit; }
.foot-legal { display: flex; gap: 16px; margin-top: 14px; font-family: var(--body); font-weight: 500; letter-spacing: 0.02em; font-size: 12px; opacity: 0.8; }
.foot-legal a { color: inherit; }

/* on top of the blue footer the floating buttons invert, so they stay visible */
.cart-bar, .active-order { transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
body.over-foot .cart-bar { background: var(--white); color: var(--cobalt); box-shadow: 0 10px 30px rgba(0, 20, 105, 0.45); }
body.over-foot .active-order:not(.is-ready) { border-color: var(--white); box-shadow: 0 10px 30px rgba(0, 20, 105, 0.45); }

/* "while you wait": reach & reviews on the order screen */
.engage { margin: 4px 0 24px; display: grid; gap: 12px; }
.engage[hidden] { display: none; }
.engage-label { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: 0.24em; font-size: 13px; }
.engage-tag {
  display: grid; gap: 4px; width: 100%; padding: 16px; border-radius: 20px; text-align: center;
  background: var(--white); color: var(--cobalt); border: 0;
}
.engage-tag small { font-size: 14px; }
.engage-tag b { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 8vw, 36px); letter-spacing: -0.02em; line-height: 1; word-break: break-word; }
.engage-tag span { display: inline-flex; justify-content: center; align-items: center; gap: 6px; font-size: 13px; color: var(--blaze); font-weight: 700; }
.engage-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.engage-btn {
  flex: 1 1 140px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border: 2px solid var(--white); border-radius: 999px; background: transparent; color: var(--white);
  font-family: var(--display); font-weight: 700; font-size: 15px; text-decoration: none;
}
.engage-btn .icon { font-size: 18px; }
.engage-main { background: var(--white); color: var(--cobalt); }
.engage-main .icon { color: var(--blaze); }

/* "notify me" switch in the cart – on by default */
.notify-opt { display: flex; gap: 12px; align-items: center; margin: 4px 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--cobalt-soft); cursor: pointer; }
.notify-opt[hidden] { display: none; }
.notify-opt input { appearance: none; flex: none; width: 46px; height: 28px; margin: 0; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background 0.15s; }
.notify-opt input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2); transition: transform 0.15s; }
.notify-opt input:checked { background: var(--cobalt); }
.notify-opt input:checked::after { transform: translateX(18px); }
.notify-opt strong { display: block; font-family: var(--display); text-transform: uppercase; font-size: 15px; }
.notify-opt small { font-size: 13px; color: var(--muted); }
