/* Styles ported from the kiosk app (android_app, branch new-design):
   pages/index/index.vue (menu, customize sheet, order bar, cart) and
   pages/index/postOrder.vue (checkout). The kiosk sizes in rpx (750 = screen width);
   here --u is one rpx, with minimum sizes so text stays readable on phones. */
:root {
  --u: calc(min(100vw, 640px) / 750);
  --cream: #f6efe3;
  --cream-2: #faf7ef;
  --blue: #495bb4;
  --navy: #3a4786;
  --deep: #215aa7;
  --badge: #677ad8;
  --red: #c94c4c;
  --red-ink: #b33d3d;
  --ink: #1b2352;
  --muted: #6a759c;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(73, 91, 180, 0.08), transparent 28%),
    radial-gradient(circle at bottom right, rgba(73, 91, 180, 0.05), transparent 26%),
    var(--cream);
  background-attachment: fixed;
  color: var(--blue);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; cursor: pointer; border: 0; }
button:disabled { cursor: not-allowed; }
img { max-width: 100%; }
main { max-width: 640px; margin: 0 auto; }
.loading, .error-page { padding: 80px 24px; text-align: center; font-weight: 900; letter-spacing: 1px; }
.error-page { color: var(--red-ink); }

/* ---------- menu hero ---------- */
.menu-shell { padding: max(16px, calc(var(--u) * 32)) max(12px, calc(var(--u) * 24)) 0; }
.menu-hero { display: flex; align-items: flex-start; margin-bottom: max(14px, calc(var(--u) * 28)); }
.menu-hero__copy { flex: 0 0 62%; max-width: 62%; padding-right: max(12px, calc(var(--u) * 24)); }
.menu-hero__logo { display: block; width: 100%; }
.menu-hero__machine { display: block; margin-top: 8px; font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(73, 91, 180, 0.72); }
.menu-hero__switch { flex: 1; display: flex; flex-direction: column; gap: 7px; }

.switch-pill {
  display: flex; align-items: center; justify-content: center;
  height: max(30px, calc(var(--u) * 58)); padding: 0 8px;
  border: 1.5px solid var(--blue); border-radius: 999px;
  background: rgba(255, 255, 255, 0.66); color: var(--blue);
  font-size: max(11px, calc(var(--u) * 18)); font-weight: 800; line-height: 1.2; text-align: center; white-space: nowrap;
}
.switch-pill--active { background: var(--blue); color: var(--cream); }
.switch-pill:disabled { opacity: 0.4; }

.menu-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; gap: 6px; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 10px) 12px 8px;
  background: rgba(246, 239, 227, 0.96); box-shadow: 0 4px 11px rgba(73, 91, 180, 0.1);
}
.menu-header .switch-pill { flex: 1; max-width: 200px; }

/* ---------- sections and cards ---------- */
.menu-section { scroll-margin-top: 64px; }
.menu-section + .menu-section { margin-top: max(14px, calc(var(--u) * 28)); }
.menu-section--seasonal {
  margin-bottom: max(16px, calc(var(--u) * 30)); padding: max(12px, calc(var(--u) * 22)) 0 0;
  border: 2px solid var(--blue); border-radius: max(14px, calc(var(--u) * 28)); background: rgba(73, 91, 180, 0.06);
}
.menu-section__title {
  margin: 0 0 max(14px, calc(var(--u) * 28)); text-align: center; text-transform: uppercase;
  font-size: max(18px, calc(var(--u) * 34)); line-height: 1.2; font-weight: 900; letter-spacing: 1px;
}
.menu-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; }
.menu-card { position: relative; margin-bottom: max(20px, calc(var(--u) * 40)); text-align: center; min-width: 0; }
.menu-card__visual {
  display: flex; align-items: center; justify-content: center; min-height: max(118px, calc(var(--u) * 222));
  background: none; padding: 0; width: 100%;
}
.menu-card__image {
  width: max(118px, calc(var(--u) * 320)); height: max(88px, calc(var(--u) * 240)); object-fit: contain;
  filter: drop-shadow(0 8px 10px rgba(63, 36, 12, 0.16));
}
.menu-card__image.photo { width: max(110px, calc(var(--u) * 214)); height: max(110px, calc(var(--u) * 214)); border-radius: 50%; object-fit: cover; }
.menu-card__title {
  display: block; margin-top: 4px; padding: 0 4px;
  font-size: max(14px, calc(var(--u) * 25)); line-height: 1.1; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase;
}
.menu-card__price-row { margin: 6px 0 4px; }
.menu-card__price { font-size: max(13px, calc(var(--u) * 20)); font-weight: 800; }
.menu-card__price--secondary { margin-left: 4px; opacity: 0.72; }
.menu-card__actions { position: relative; display: flex; justify-content: center; margin-top: 7px; }
.menu-card__count {
  position: absolute; top: -8px; right: calc(50% - max(62px, calc(var(--u) * 110))); z-index: 2;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--badge); color: var(--cream); font-size: 12px; font-weight: 800; line-height: 22px;
}
.menu-card__button {
  min-width: max(112px, calc(var(--u) * 178)); height: max(34px, calc(var(--u) * 54)); padding: 0 14px;
  border-radius: 999px; background: var(--blue); color: var(--cream);
  font-size: max(12px, calc(var(--u) * 22)); font-weight: 800;
  box-shadow: 0 6px 10px rgba(73, 91, 180, 0.12);
}
.menu-card__button--disabled { background: rgba(73, 91, 180, 0.35); box-shadow: none; }
.menu-empty { padding: 40px 0 60px; text-align: center; }
.menu-empty b { display: block; font-size: 18px; font-weight: 900; letter-spacing: 1px; }
.menu-spacer { height: 120px; }
.test-notice {
  margin: 0 0 12px; padding: 7px 14px; border-radius: 999px; text-align: center;
  background: rgba(201, 76, 76, 0.14); color: var(--red-ink); font-size: 12px; font-weight: 700;
}

/* ---------- bottom order bar ---------- */
.order-wrap { position: fixed; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 12px); z-index: 30; max-width: 616px; margin: 0 auto; }
.order-wrap__notice {
  display: flex; justify-content: center; margin: 0 auto 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(201, 76, 76, 0.14); color: var(--red-ink); font-size: 12px; font-weight: 700; text-align: center;
}
.order-bar {
  display: flex; align-items: center; justify-content: space-between; padding: 4px;
  border: 1.5px solid var(--navy); border-radius: 999px; background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 17px rgba(73, 91, 180, 0.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.order-bar__summary { flex: 1; display: flex; align-items: center; gap: 10px; background: none; color: var(--blue); padding: 0 6px 0 2px; text-align: left; }
.order-bar__badge {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px;
  border-radius: 999px; background: var(--blue); color: var(--cream); font-size: 15px; font-weight: 900;
}
.order-bar__label { font-size: 15px; }
.order-bar__value { margin-left: 6px; font-size: 19px; font-weight: 900; }
.order-bar__cta {
  min-width: 132px; height: 46px; padding: 0 16px; border-radius: 999px;
  background: var(--blue); color: var(--cream); font-size: 16px; font-weight: 900; letter-spacing: 0.5px;
}
.order-bar__cta:disabled { background: rgba(73, 91, 180, 0.35); }

/* ---------- overlays (sheets) ---------- */
.overlay { position: fixed; inset: 0; z-index: 25; display: flex; align-items: flex-end; justify-content: center; background: rgba(12, 16, 40, 0.5); }
/* Customize sheet covers the order bar (its own footer has the button); the cart sheet
   sits under the bar, as on the kiosk, so CHECK OUT stays reachable. */
#spec-overlay { z-index: 40; }
.spec-modal, .cart-modal { width: 100%; max-width: 640px; }

/* customize sheet (kiosk .index-spec) */
.spec-modal { position: relative; padding-top: 140px; z-index: 40; }
.spec {
  position: relative; max-height: calc(100vh - 160px); overflow-y: auto; overflow-x: visible;
  padding: 0 16px calc(env(safe-area-inset-bottom) + 10px); border-radius: 18px 18px 0 0;
  background: var(--navy); color: #fff; box-shadow: 0 15px 40px rgba(15, 40, 92, 0.22);
}
.spec__close {
  position: absolute; top: 0; left: 50%; width: 44px; height: 44px; margin-left: -22px; z-index: 50;
  border-radius: 999px; background: #fff; color: var(--deep); font-size: 30px; line-height: 44px; font-weight: 600;
  box-shadow: 0 9px 24px rgba(13, 45, 94, 0.18);
}
.spec__hero {
  position: absolute; top: 52px; left: 50%; width: 190px; height: 116px; margin-left: -95px; z-index: 45;
  display: flex; align-items: center; justify-content: center; filter: drop-shadow(0 10px 11px rgba(14, 48, 95, 0.24));
}
.spec__hero img { max-width: 100%; max-height: 100%; object-fit: contain; }
.spec__hero img.photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; }
.spec__title { padding: 36px 0 0; text-align: center; text-transform: uppercase; font-size: 21px; line-height: 1.1; font-weight: 900; letter-spacing: 0.5px; }
.spec__price { margin-top: 6px; text-align: center; font-size: 15px; font-weight: 900; color: rgba(255, 255, 255, 0.86); }
.spec__price-unit { font-size: 12px; opacity: 0.72; }
.spec__options { margin-top: 16px; }
.spec__group { margin-top: 14px; }
.spec__group:first-child { margin-top: 0; }
.spec__group-title { font-size: 13px; font-weight: 900; letter-spacing: 0.5px; text-transform: uppercase; }
.spec__choice-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.spec__choice {
  min-width: 72px; min-height: 34px; padding: 7px 14px; border: 1.5px solid #fff; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 12px; font-weight: 900; line-height: 1.15; text-transform: uppercase;
}
.spec__choice--active { background: #fff; color: var(--deep); }
.spec__choice--disabled {
  border-color: rgba(255, 255, 255, 0.42); color: rgba(255, 255, 255, 0.48);
  background: repeating-linear-gradient(-45deg, rgba(255,255,255,.1) 0, rgba(255,255,255,.1) 4px, rgba(255,255,255,.02) 4px, rgba(255,255,255,.02) 8px);
}
.spec__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 10px 4px 6px; border-top: 1px solid rgba(255,255,255,.14); }
.spec__footer-label { font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.spec__footer-price { margin-left: 6px; font-size: 18px; font-weight: 900; }
.spec__footer-tax { font-size: 10px; font-weight: 900; margin-left: 2px; }
.spec__footer-button { min-width: 140px; height: 42px; padding: 0 20px; border-radius: 999px; background: #fff; color: var(--deep); font-size: 13px; font-weight: 900; letter-spacing: 0.5px; }
.spec__footer-button:disabled { opacity: 0.55; }
.stepper { display: inline-flex; align-items: center; height: 42px; padding: 0 6px; border-radius: 999px; background: #fff; }
.stepper button { width: 32px; height: 32px; border-radius: 999px; background: var(--deep); color: #fff; font-size: 20px; line-height: 32px; font-weight: 700; }
.stepper output { min-width: 40px; text-align: center; color: var(--deep); font-size: 16px; font-weight: 900; }

/* cart sheet (kiosk shopCartModal) */
.cart-modal { padding-bottom: calc(env(safe-area-inset-bottom) + 78px); background: var(--navy); border-radius: 14px 14px 0 0; color: #fff; }
.cart { max-height: 70vh; overflow-y: auto; padding: 16px 16px 8px; }
.cart__head { display: flex; justify-content: space-between; align-items: center; }
.cart__head b { font-size: 15px; }
.cart__clear { background: none; color: rgba(255, 255, 255, 0.6); font-size: 13px; }
.cart__close { display: block; margin: 0 auto 10px; width: 40px; height: 40px; border-radius: 999px; background: #fff; color: var(--deep); font-size: 26px; line-height: 40px; }
.cart__line { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.cart__line + .cart__line { border-top: 1px solid rgba(255, 255, 255, 0.14); }
.cart__img { flex: none; width: 70px; height: 70px; object-fit: contain; border-radius: 10px; }
.cart__img.photo { object-fit: cover; }
.cart__body { flex: 1; min-width: 0; }
.cart__name { font-size: 14px; font-weight: 700; }
.cart__option { margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, 0.6); }
.cart__price { margin-top: 5px; font-size: 16px; font-weight: 900; color: #fff; }
.cart__price small { font-size: 11px; color: rgba(255, 255, 255, 0.6); }
.cart__steps { display: flex; align-items: center; gap: 4px; }
.cart__steps button { width: 30px; height: 30px; border-radius: 999px; border: 1.5px solid #fff; background: none; color: #fff; font-size: 18px; line-height: 26px; }
.cart__steps output { min-width: 26px; text-align: center; font-size: 15px; font-weight: 700; }
.cart__empty { padding: 20px 0; text-align: center; color: rgba(255, 255, 255, 0.6); }

/* ---------- checkout (kiosk postOrder.vue) ---------- */
.checkout { min-height: 100vh; padding: 26px 18px calc(env(safe-area-inset-bottom) + 24px); background: var(--cream-2); color: var(--navy); }
.checkout__top { position: relative; display: flex; justify-content: center; padding: 6px 0 10px; margin-bottom: 8px; }
.checkout__back { position: absolute; left: -4px; top: 4px; width: 40px; height: 40px; background: none; color: var(--navy); font-size: 40px; line-height: 34px; }
.checkout__header { display: flex; flex-direction: column; align-items: center; }
.checkout__logo { width: 120px; margin-bottom: 8px; }
.checkout__title { font-size: 20px; font-weight: 900; letter-spacing: 1.5px; text-align: center; }
.checkout__list { padding-top: 12px; }
.checkout-line { display: flex; align-items: center; margin-top: 30px; padding-right: 16px; border-radius: 45px; background: var(--navy); min-height: 58px; }
.checkout-line__image { flex: none; width: 76px; height: 76px; margin: -24px -8px 0 -10px; display: flex; align-items: center; justify-content: center; }
.checkout-line__image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.checkout-line__image img.photo { width: 60px; height: 60px; border-radius: 18px; object-fit: cover; }
.checkout-line__body { flex: 1; min-width: 0; padding: 10px 0; text-align: left; }
.checkout-line--plain { margin-top: 10px; }
.checkout-line--plain .checkout-line__body { padding-left: 22px; }
.checkout-line__name { font-size: 15px; line-height: 1.2; font-weight: 900; color: var(--cream-2); text-transform: uppercase; }
.checkout-line__option { margin-top: 2px; font-size: 11px; font-weight: 700; color: rgba(250, 247, 239, 0.7); text-transform: uppercase; }
.checkout-line__price { margin-left: 10px; font-size: 14px; font-weight: 900; color: var(--cream-2); white-space: nowrap; }
.checkout-line__qty { margin-left: 10px; font-size: 12px; font-weight: 900; color: var(--cream-2); }
.checkout-summary { margin-top: 22px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.72); border: 1px solid rgba(58, 71, 134, 0.18); }
.checkout-summary__row { display: flex; justify-content: space-between; font-size: 14px; line-height: 1.7; font-weight: 900; }
.checkout-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 5px 5px 5px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--navy); box-shadow: 0 9px 16px rgba(58, 71, 134, 0.08); }
.checkout-total__amount { display: flex; flex-direction: column; }
.checkout-total__label { font-size: 12px; color: var(--muted); }
.checkout-total__price { margin-top: 2px; font-size: 19px; font-weight: 900; color: var(--ink); }
.checkout-submit { min-width: 130px; height: 46px; padding: 0 22px; border-radius: 999px; background: var(--navy); color: var(--cream-2); font-size: 15px; font-weight: 900; letter-spacing: 1px; box-shadow: 0 8px 15px rgba(58, 71, 134, 0.24); }
.checkout-submit:disabled { opacity: 0.6; }
.checkout__error { margin: 12px 4px 0; font-size: 13px; font-weight: 900; color: var(--red-ink); }
.checkout__note { margin: 12px 4px 0; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; }

/* ---------- order status ---------- */
.status { padding: 26px 18px 40px; color: var(--navy); text-align: center; }
.status__logo { width: 120px; margin: 0 auto 18px; display: block; }
.status__title { margin: 6px 0 6px; font-size: 24px; font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.status__text { margin: 0 auto; max-width: 340px; font-size: 14px; font-weight: 700; color: var(--muted); }
.status__code { display: inline-block; margin-top: 16px; padding: 8px 18px; border-radius: 999px; background: #fff; border: 1.5px solid var(--navy); font-size: 13px; font-weight: 700; }
.status__code b { font-size: 20px; letter-spacing: 3px; margin-left: 6px; color: var(--ink); }
.status__start { display: block; width: 100%; max-width: 340px; margin: 18px auto 10px; }
.steps { display: flex; gap: 6px; margin: 24px 0 8px; padding: 0; list-style: none; }
.steps li { flex: 1; font-size: 11px; font-weight: 900; text-transform: uppercase; color: rgba(58, 71, 134, 0.45); }
.steps li::before { content: ""; display: block; height: 6px; margin-bottom: 6px; border-radius: 3px; background: rgba(58, 71, 134, 0.15); }
.steps li.done { color: var(--blue); }
.steps li.done::before { background: var(--blue); }
.status .checkout-summary { text-align: left; }
.status__again { display: inline-block; margin-top: 20px; padding: 12px 24px; border-radius: 999px; background: var(--blue); color: var(--cream); font-size: 14px; font-weight: 900; text-decoration: none; letter-spacing: 0.5px; }

/* Terms and privacy pages, and the small links under checkout and order status. */
.legal { max-width: 640px; margin: 0 auto; padding: 32px 20px 64px; color: var(--ink); line-height: 1.55; font-size: 15px; }
.legal__logo { width: 120px; display: block; margin: 0 auto 20px; }
.legal h1 { margin: 0; color: var(--navy); font-size: 26px; font-weight: 900; text-transform: uppercase; letter-spacing: 1px; text-align: center; }
.legal__updated { margin: 6px 0 24px; text-align: center; color: var(--muted); font-size: 13px; }
.legal h2 { margin: 28px 0 8px; color: var(--navy); font-size: 17px; font-weight: 900; }
.legal ul { padding-left: 20px; margin: 8px 0; }
.legal li { margin: 6px 0; }
.legal a, .legal-links a, .checkout__note a { color: var(--deep); }
.legal__links, .legal-links { margin-top: 28px; text-align: center; font-size: 13px; color: var(--muted); }
