/* home-modern.css — matches v5 reference design exactly.
   All colours via CSS custom properties. Token fallbacks ensure the page
   renders correctly before /api/style-vars.css loads. */

/* ── Page-level aliases ───────────────────────────────────────────────────── */
/* Brand tokens (--primary-color, --background-color, --muted-color, --border-color,
   etc.) are emitted by BuildThemeCss() as an inline <style> that runs before this
   file — no fallbacks needed here. nav-bar-* variables come from the async StylesUrl
   CDN stylesheet and fall back to the API-sourced counterparts in the critical CSS. */
:root {
    --panel-border: var(--border-color);
    --panel-surface: var(--surface-color);
    --panel-input-bg: color-mix(in srgb, var(--on-background-color) 5%, transparent);
    --trust-bg: var(--surface-color);

    /* Hero photo overlay — frosted-glass pill on a photographic hero image.
       Always dark/white regardless of brand; defined here so they can be
       overridden per-tenant via StylesUrl if needed. */
    --hero-pill-bg: rgba(0,0,0,0.38);
    --hero-pill-text: rgba(255,255,255,0.92);
    --hero-pill-border: rgba(255,255,255,0.18);

    /* Carousel caption/dots — photo-overlay colours like the pill above, not brand tokens. */
    --hero-caption-text: rgba(255,255,255,0.95);
    --hero-caption-shadow: rgba(0,0,0,0.45);
    --hero-dot-bg: rgba(255,255,255,0.5);
    --hero-dot-on-bg: rgba(255,255,255,0.95);

    /* Structural shadows and modal backdrops — not brand colours. */
    --shadow-sm: rgba(0,0,0,0.2);
    --shadow-md: rgba(0,0,0,0.35);
    --backdrop: rgba(0,0,0,0.5);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
/* The hidden attribute must win over any element's display rule (nav auth states,
   loyalty icon, feedback views, etc.). */
[hidden] { display: none !important; }
body {
    background: var(--background-color);
    color: var(--on-background-color);
    font-family: 'Segoe UI',system-ui,-apple-system,sans-serif;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer: fill at least the viewport so the footer sits at the
       bottom and any spare space appears above it, not below. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
#main-content { flex: 1 0 auto; }

/* ── Promo bar ────────────────────────────────────────────────────────────── */
.promo-bar {
    background: var(--primary-color);
    color: var(--on-primary-color);
    padding: 8px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
}
.promo-cta {
    background: rgba(var(--on-primary-color-rgb),0.2);
    border: 1px solid rgba(var(--on-primary-color-rgb),0.4);
    color: var(--on-primary-color);
    border-radius: 12px;
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.promo-close {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--on-primary-color);
    opacity: .55;
    cursor: pointer;
    font-size: 18px;
}
.promo-close:hover { opacity: 1; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.site-nav {
    background: var(--nav-bar-background-colour, var(--secondary-color));
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    position: relative;
}
.nav-logo-wrap {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
}
.nav-logo-link { display: flex; align-items: center; height: 100%; text-decoration: none; }
.nav-logo-img { height: 100%; width: auto; display: block; object-fit: contain; }
.nav-left,
.nav-right { display: flex; align-items: center; gap: 14px; min-width: 120px; }
.nav-right { justify-content: flex-end; }
.nav-link {
    font-size: 12px;
    /* Fallback mirrors styles-config.scss: --nav-bar-font-colour defaults to --on-secondary-color,
       which is guaranteed to contrast with the nav's --secondary-color background fallback. */
    color: var(--nav-bar-font-colour, var(--on-secondary-color));
    opacity: .55;
    text-decoration: none;
    /* Works whether rendered as <a> or <button> (Feedback trigger) */
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    cursor: pointer;
}
.nav-link:hover { opacity: .9; }
.nav-feedback-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-feedback-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-locations-link { display: inline-flex; align-items: center; gap: 6px; }
.nav-locations-icon { width: 18px; height: 18px; flex-shrink: 0; }
.nav-account-btn {
    background: var(--primary-color);
    color: var(--on-primary-color);
    border: none;
    border-radius: 22px;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.nav-join-btn {
    background: transparent;
    color: var(--nav-bar-font-colour, var(--on-secondary-color));
    border: 1.5px solid var(--primary-color);
    border-radius: 22px;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}
.nav-join-btn:hover {
    background: var(--primary-color);
    color: var(--on-primary-color);
}
.nav-loyalty-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(var(--primary-color-rgb),0.1);
    border: 1px solid rgba(var(--primary-color-rgb),0.2);
    border-radius: 20px;
    padding: 4px 12px 4px 8px;
    cursor: pointer;
    text-decoration: none;
}
.nav-loyalty-badge:hover { background: rgba(var(--primary-color-rgb),0.18); }
.nlb-icon { font-size: 16px; line-height: 1; }
.nlb-icon-img { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; display: block; }
.nlb-pts { font-size: 12px; font-weight: 800; color: var(--primary-color); white-space: nowrap; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
/* The image is a fixed-height 16:9 landscape panel that no longer sits behind the
   card. The aside fills the remaining width, so its whitespace grows with the screen
   while the image keeps its aspect ratio. */
.hero-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    /* Height grows with the viewport so the 16:9 image widens and the aside
       whitespace shrinks. Reserves ~480px for the card, clamped 440–760px. */
    height: clamp(440px, calc((100vw - 480px) * 9 / 16), 760px);
    overflow: hidden;
    background: var(--background-color);
}
.hero-section {
    position: relative;
    height: 100%;
    aspect-ratio: 16 / 9;          /* width derived from the fixed height → always 16:9 */
    flex: 0 0 auto;                /* image never stretches or squashes */
    overflow: hidden;
    background: var(--secondary-color);
}
.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
/* Carousel slides stack inside the fixed-geometry hero, so rotation never shifts layout. */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.hero-slide-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}
.hero-slide-caption {
    position: absolute;
    left: 44px;
    bottom: 96px;
    z-index: 5;
    max-width: 70%;
    color: var(--hero-caption-text);
}
.hero-slide-title {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    text-shadow: 0 2px 10px var(--hero-caption-shadow);
}
.hero-slide-subtext {
    font-size: 14px;
    margin-top: 4px;
    opacity: .93;
    text-shadow: 0 1px 6px var(--hero-caption-shadow);
}
.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 0;
    right: 0;
    display: flex;
    gap: 6px;
    justify-content: center;
    z-index: 6;
}
.hero-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--hero-dot-bg);
    cursor: pointer;
    transition: width .2s ease;
}
.hero-dot-on { background: var(--hero-dot-on-bg); width: 20px; border-radius: 999px; }

.hero-brand-content { position: absolute; bottom: 44px; left: 44px; z-index: 10; }
.hero-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--hero-pill-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--hero-pill-border);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--hero-pill-text);
}
.hero-brand-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 8px rgba(var(--primary-color-rgb),.9);
    flex-shrink: 0;
}

/* ── Order card region ───────────────────────────────────────────────────── */
/* Fills the height of the image and all the space to its right. The card is
   centred inside it, so the surrounding whitespace grows as the screen widens. */
.hero-aside {
    flex: 1 1 0;                   /* takes all remaining width — the growing whitespace */
    min-width: 0;
    height: 100%;                  /* fills the full height of the image */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--background-color);
    z-index: 20;
}
.hero-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    background: var(--background-color);
    border-radius: 22px;
    overflow: hidden;
}
.order-panel { padding: 32px 30px; display: flex; flex-direction: column; gap: 18px; }
.order-panel-title {
    /* Holds at 22px on smaller/standard screens, grows slightly (max 26px) on large ones. */
    font-size: clamp(22px, 1.2vw + 8px, 26px);
    font-weight: 900;
    color: var(--on-background-color);
    letter-spacing: -.02em;
    line-height: 1.2;
}
.order-panel-header { display: flex; flex-direction: column; gap: 4px; }
.order-panel-tagline { font-size: 13px; color: var(--muted-color); line-height: 1.55; }

/* Occasion cards */
.order-type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.order-type-card {
    border: 2px solid var(--panel-border);
    border-radius: 14px;
    padding: 14px 12px;
    cursor: pointer;
    background: var(--panel-input-bg);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    text-align: left;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.order-type-card:hover { border-color: var(--primary-color); }
.order-type-card.active {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb),.08);
}
.order-type-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 11px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--on-primary-color);
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.otc-icon { font-size: 22px; }
.otc-label { font-size: 13px; font-weight: 800; color: var(--on-background-color); }
.otc-desc { font-size: 11px; color: var(--muted-color); }

/* Meta row — ETA + loyalty side by side */
.meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.eta-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 20px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--on-surface-color);
}
.eta-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success-color);
    box-shadow: 0 0 5px rgba(var(--success-color-rgb),.55);
    flex-shrink: 0;
}
.loyalty-pill {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    max-width: 45%;
    /* Rendered as a <button> (opens the register flow) — strip the UA button chrome. */
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
}
.loyalty-pill:hover { opacity: .8; }
.loyalty-pill-icon { width: 16px; height: 16px; object-fit: contain; border-radius: 3px; }

/* CTA */
.cta-btn {
    width: 100%;
    background: var(--primary-color);
    color: var(--on-primary-color);
    border: none;
    border-radius: 14px;
    padding: 15px 20px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 20px rgba(var(--primary-color-rgb),.3);
    font-family: inherit;
    transition: transform .2s, opacity .2s;
}
.cta-btn:hover { opacity: .9; transform: translateY(-1px); }
.cta-btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.cta-arrow {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(var(--on-primary-color-rgb),.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.secure-checkout-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11px;
    color: var(--muted-color);
    margin-top: -6px;
}
.panel-divider { display: flex; align-items: center; gap: 12px; margin: -2px 0; }
.pdivline { flex: 1; height: 1px; background: var(--panel-border); }
.pdivtxt { font-size: 11px; font-weight: 600; color: var(--muted-color); }
#aw-order-form { display: flex; flex-direction: column; gap: 14px; }
.browse-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    border: 2px solid var(--panel-border);
    border-radius: 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--on-background-color);
    cursor: pointer;
    text-decoration: none;
    background: transparent;
    font-family: inherit;
}
.browse-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(var(--primary-color-rgb),.06);
}

/* ── Trust strip ──────────────────────────────────────────────────────────── */
.trust-strip {
    background: var(--trust-bg);
    border-top: 1px solid var(--panel-border);
    border-bottom: 1px solid var(--panel-border);
    padding: 22px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trust-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 300px;
}
.trust-divider { width: 1px; height: 42px; background: var(--panel-border); margin: 0 14px; flex-shrink: 0; }
.trust-icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(var(--primary-color-rgb),.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.trust-title { font-size: 13px; font-weight: 800; color: var(--on-background-color); margin-bottom: 2px; }
.trust-desc { font-size: 11px; color: var(--muted-color); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { background: var(--background-color); color: var(--on-background-color); padding: 36px 48px 24px; }
.ft-top {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 44px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--panel-border);
    margin-bottom: 5px;
}
.ft-col-title {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted-color);
    margin-bottom: 14px;
}
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ft-links li a {
    font-size: 13px;
    color: var(--on-background-color);
    text-decoration: none;
    cursor: pointer;
}
.ft-links li a:hover { color: var(--primary-color); }
.ft-secure-line {
    font-size: 11px;
    color: var(--on-background-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.ft-pay { display: flex; flex-wrap: wrap; gap: 5px; }
/* Official card-brand SVGs (shared with the Power Pages), chip treatment per local-landing.css. */
.ft-pay-logo {
    width: 44px;
    height: 28px;
    border: 1px solid var(--panel-border);
    border-radius: 6px;
    background: var(--panel-surface);
    display: inline-block;
    vertical-align: middle;
}
.ft-social { display: flex; gap: 8px; margin-bottom: 18px; }
.soc-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--on-surface-color);
    text-decoration: none;
}
.soc-btn svg { width: 16px; height: 16px; }
.soc-btn:hover { color: var(--primary-color); }
.ft-app-none { font-size: 12px; color: var(--on-background-color); margin-top: 4px; }
.ft-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--muted-color);
}
.ft-legal-link { color: var(--on-background-color); text-decoration: none; }
.ft-legal-link:hover { color: var(--primary-color); }
.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--on-background-color);
    font-size: 11px;
    text-decoration: none;
    cursor: pointer;
}
.powered-by img { 
    height: 46px;
    width: auto;
    display: block;
    margin-left: -13px;
 }

/* ── Tablet 681–1159px — too narrow for image + card side-by-side, so stack ── */
@media (min-width: 681px) and (max-width: 1159px) {
    .hero-wrapper { flex-direction: column; height: auto; }
    .hero-section { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .hero-aside { flex: none; width: 100%; height: auto; padding: 24px 16px; }
    .hero-card { max-width: 560px; }
}
/* Narrow desktops keep the card on the right but the aside is tight — trim its
   padding so the order card has room. */
@media (min-width: 1160px) and (max-width: 1280px) {
    .hero-aside { padding: 16px; }
}
/* Portrait orientation: the hero <picture> loads the portrait image, so stack the
   card below it regardless of width (keeps layout and image source in sync). */
@media (orientation: portrait) {
    .hero-wrapper { flex-direction: column; height: auto; }
    .hero-section { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .hero-aside { flex: none; width: 100%; height: auto; padding: 24px 16px; }
    .hero-card { max-width: 560px; }
}

/* ── Mobile ≤680px ─────────────────────────────────────────────────────────── */
@media (max-width: 680px) {
    .promo-bar { padding: 9px 14px; font-size: 12px; justify-content: flex-start; }
    .promo-cta { display: none; }
    .promo-close { position: static; margin-left: auto; }
    .site-nav { height: 56px; padding: 0 16px; }
    .nav-left { min-width: 36px; gap: 0; }
    .nav-right { min-width: unset; gap: 8px; }
    .nav-link { display: none; }
    /* Keep the feedback trigger on mobile, icon-only (mirrors Angular's mobile icon button) */
    .nav-feedback-link { display: inline-flex; }
    .nav-feedback-text { display: none; }
    /* Locations stays reachable on phones, icon-only like Feedback */
    .nav-locations-link { display: inline-flex; }
    .nav-locations-text { display: none; }
    .nav-left { gap: 10px; }
    /* Mobile shows Sign In (and the Account chip when logged in); Join Free and the
       loyalty points pill are desktop-only */
    .nav-join-btn { display: none; }
    .nav-loyalty-badge { display: none; }
    .nav-account-btn { padding: 5px 12px; font-size: 11px; }
    /* Image stays 16:9 (so it's short) and the card is pulled up directly below it */
    .hero-wrapper { flex-direction: column; height: auto; }
    .hero-section { width: 100%; aspect-ratio: 16 / 9; height: auto; }
    .hero-brand-content { bottom: 16px; left: 16px; }
    .hero-aside { flex: none; width: 100%; height: auto; padding: 0; }
    .hero-card {
        max-width: none;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid var(--panel-border);
    }
    .order-panel { padding: 20px 16px; gap: 14px; }
    .order-panel-title { font-size: 18px; }
    .trust-strip { flex-direction: column; padding: 16px; gap: 0; align-items: stretch; }
    .trust-item { max-width: 100%; justify-content: flex-start; padding: 12px 0; }
    .trust-divider { width: 100%; height: 1px; margin: 0; }
    .site-footer { padding: 20px 16px 12px; }
    .ft-top { grid-template-columns: 1fr; gap: 16px; }
    .ft-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-slide-caption { left: 16px; bottom: 44px; max-width: 82%; }
    .hero-slide-title { font-size: 19px; }
    .hero-slide-subtext { font-size: 11.5px; }
    .hero-dots { bottom: 9px; }
    .aw-loyalty-promo { padding: 20px 16px; }
    .loyalty-promo-card { padding: 18px 16px; }
    .loyalty-promo-hero { width: calc(100% + 32px); margin: -18px -16px 8px; }
    .loyalty-promo-heading { font-size: 19px; }
    .menu-highlights { padding: 20px 16px; gap: 12px; }
    .mh-heading { font-size: 18px; }
    .mh-products { grid-template-columns: repeat(2, 1fr); }
    .custom-sections { padding: 20px 16px; gap: 12px; }
    /* Source order already puts the image first (leading) or last (trailing), so a plain
       column stack keeps the configured visual order on phones. */
    .cs-card { flex-direction: column; }
    .cs-media { flex: none; min-height: 0; aspect-ratio: 16 / 9; }
    .cs-body { padding: 16px; }
    .site-info { padding: 14px 16px; flex-direction: column; gap: 3px; }
    .site-info-divider { display: none; }
}
/* ── Loyalty marketing section (signed-out) ───────────────────────────────── */
.aw-loyalty-promo { padding: 36px 48px; display: flex; justify-content: center; }
.loyalty-promo-card {
    width: 100%;
    max-width: 720px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    border-radius: 18px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
/* Scheme hero — bleeds to the card edges above the copy (negative margins offset the
   card padding); intrinsic width/height attributes reserve the box before load. */
.loyalty-promo-hero {
    width: calc(100% + 56px);
    margin: -26px -28px 10px;
    height: auto;
    max-height: 240px;
    object-fit: cover;
    display: block;
}
.loyalty-promo-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--primary-color);
}
.loyalty-promo-heading {
    font-size: 24px;
    font-weight: 900;
    color: var(--on-surface-color);
    letter-spacing: -.02em;
    line-height: 1.2;
}
.loyalty-promo-about { font-size: 13px; color: var(--muted-color); line-height: 1.6; }
.loyalty-promo-welcome {
    align-self: flex-start;
    background: rgba(var(--primary-color-rgb),.1);
    border: 1px solid rgba(var(--primary-color-rgb),.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary-color);
}
.loyalty-tiers { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.loyalty-tier {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid var(--panel-border);
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 12px;
}
.loyalty-tier-top {
    border-color: var(--primary-color);
    background: rgba(var(--primary-color-rgb),.06);
}
.loyalty-tier-icon,
.loyalty-tier-icon-img {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    object-fit: contain;
}
.loyalty-tier-copy { display: flex; flex-direction: column; gap: 1px; }
.loyalty-tier-copy b { font-size: 12.5px; color: var(--on-surface-color); }
.loyalty-tier-copy span { font-size: 10.5px; color: var(--muted-color); }
.loyalty-tier-benefits {
    margin-left: auto;
    font-size: 10.5px;
    font-weight: 800;
    color: var(--success-color);
    text-align: right;
    max-width: 45%;
}
.loyalty-promo-actions { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.loyalty-promo-join {
    background: var(--primary-color);
    color: var(--on-primary-color);
    border: none;
    border-radius: 12px;
    padding: 11px 22px;
    font-size: 13px;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .15s;
}
.loyalty-promo-join:hover { opacity: .9; }
.loyalty-promo-terms {
    background: none;
    border: none;
    padding: 0;
    font-family: inherit;
    font-size: 12px;
    color: var(--muted-color);
    text-decoration: underline;
    cursor: pointer;
}
.loyalty-promo-terms:hover { color: var(--on-surface-color); }
.loyalty-terms-dialog {
    width: min(640px, 95vw);
    max-height: 85vh;
    margin: auto;
    border: none;
    border-radius: 18px;
    padding: 0;
    background: var(--background-color);
    color: var(--on-background-color);
    box-shadow: 0 32px 80px var(--shadow-md);
}
.loyalty-terms-dialog:not([open]) { display: none; }
.loyalty-terms-dialog::backdrop { background: var(--backdrop); }
.loyalty-terms-container { padding: 24px; display: flex; flex-direction: column; gap: 12px; position: relative; }
.loyalty-terms-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none; cursor: pointer;
    font-size: 24px; line-height: 1; color: var(--muted-color);
}
.loyalty-terms-close:hover { color: var(--on-background-color); }
.loyalty-terms-title { font-size: 17px; font-weight: 800; padding-right: 28px; }
.loyalty-terms-body { font-size: 13px; line-height: 1.6; color: var(--muted-color); overflow-y: auto; }

/* ── Menu highlights (deals + popular products) ───────────────────────────── */
.menu-highlights {
    padding: 36px 48px;
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.mh-heading {
    font-size: 22px;
    font-weight: 900;
    color: var(--on-background-color);
    letter-spacing: -.02em;
}
.mh-deals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}
.mh-deal {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    background: var(--panel-surface);
    color: var(--on-surface-color);
    text-decoration: none;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.mh-deal:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow-sm); }
.mh-deal-full { grid-column: 1 / -1; }
.mh-deal-img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
/* The full-row banner crops to a wider letterbox so it doesn't tower over the page. */
.mh-deal-full .mh-deal-img { aspect-ratio: 21 / 9; }
.mh-deal-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 15px;
}
.mh-deal-name { font-size: 14.5px; font-weight: 800; }
.mh-deal-from { font-size: 12px; font-weight: 800; color: var(--primary-color); white-space: nowrap; }
.mh-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px;
}
.mh-product {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--panel-border);
    border-radius: 14px;
    background: var(--panel-surface);
    color: var(--on-surface-color);
    text-decoration: none;
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
}
.mh-product:hover { transform: translateY(-2px); box-shadow: 0 8px 24px var(--shadow-sm); }
.mh-product-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.mh-product-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 11px;
}
.mh-product-name { font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.mh-product-price { font-size: 12px; font-weight: 800; color: var(--primary-color); }

/* ── Custom sections (Portal-configured) ──────────────────────────────────── */
.custom-sections {
    padding: 36px 48px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    align-items: center;
}
.cs-card {
    width: 100%;
    max-width: 920px;
    background: var(--panel-surface);
    border: 1px solid var(--panel-border);
    color: var(--on-surface-color);
    display: flex;
    align-items: stretch;
    overflow: hidden;
}
.cs-rounded { border-radius: 18px; }
.cs-square { border-radius: 0; }
.cs-media { flex: 0 0 38%; min-height: 180px; }
.cs-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-media-full { flex: 1 1 100%; min-height: 0; }
.cs-media-full img { height: auto; }
.cs-body { flex: 1 1 auto; padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.cs-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.cs-rich-text { font-size: 13.5px; line-height: 1.65; }
.cs-rich-text img { max-width: 100%; height: auto; }

/* ── Restaurant info strip (crawlable NAP) ────────────────────────────────── */
.site-info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 48px;
    border-top: 1px solid var(--panel-border);
    font-size: 12.5px;
    color: var(--muted-color);
    text-align: center;
}
.site-info-name { font-weight: 800; color: var(--on-background-color); }
.site-info-address { font-style: normal; display: inline; }
.site-info-phone { color: var(--on-background-color); text-decoration: none; }
.site-info-phone:hover { color: var(--primary-color); }

/* ── App download section ─────────────────────────────────────────── */
.app-section {
    background: var(--trust-bg);
    border-top: 1px solid var(--panel-border);
    padding: 44px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.app-eyebrow {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 10px;
}
.app-heading {
    font-size: 26px;
    font-weight: 900;
    color: var(--on-background-color);
    line-height: 1.2;
    letter-spacing: -.02em;
    margin-bottom: 12px;
}
.app-sub {
    font-size: 14px;
    color: var(--muted-color);
    line-height: 1.65;
    margin-bottom: 24px;
    max-width: 380px;
}
.app-badges { display: flex; gap: 12px; flex-wrap: wrap; }
/* Official store badge images (same assets as the Angular footer), 40px high like footer.component.scss. */
.app-badge {
    display: inline-flex;
    text-decoration: none;
    transition: opacity .15s;
}
.app-badge:hover { opacity: .85; }
.app-badge img { display: block; max-height: 40px; width: auto; }
.app-phone-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-shrink: 0;
}
.app-phone {
    width: 88px;
    height: 158px;
    border-radius: 18px;
    background: var(--on-background-color);
    overflow: hidden;
    box-shadow: 0 8px 32px var(--shadow-sm);
}
.app-phone--offset { opacity: .45; transform: translateY(12px); }
.app-phone-screen {
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.app-phone-bar { border-radius: 2px; background: rgba(var(--on-primary-color-rgb),.28); height: 4px; }
.app-phone-bar--wide { width: 50px; }
.app-phone-bar--narrow { width: 36px; background: rgba(var(--on-primary-color-rgb),.16); }

@media (max-width: 680px) {
    .app-section { flex-direction: column; padding: 22px 16px; gap: 16px; }
    .app-phone-wrap { display: none; }
}

/* ── Feedback modal (mirrors Angular feedback component) ───────────────────── */
.feedback-dialog {
    width: min(600px, 95vw);
    max-width: 95vw;
    margin: auto;                 /* restore dialog centring (global reset zeroes margins) */
    border: none;
    border-radius: 18px;
    padding: 0;
    background: var(--background-color);
    color: var(--on-background-color);
    box-shadow: 0 32px 80px var(--shadow-md);
}
.feedback-dialog:not([open]) { display: none; }
.feedback-dialog::backdrop { background: var(--backdrop); }
.feedback-container { display: flex; flex-direction: column; padding: 24px; gap: 4px; }
.feedback-view { display: flex; flex-direction: column; }
/* A display rule on .feedback-view would otherwise override the hidden attribute */
.feedback-view[hidden] { display: none; }
.feedback-header { position: relative; text-align: center; font-weight: 700; margin-bottom: 8px; }
.feedback-header h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.feedback-header p { font-size: 13px; color: var(--muted-color); font-weight: 400; }
.feedback-close-icon {
    position: absolute; top: -6px; right: -4px;
    background: none; border: none; cursor: pointer;
    font-size: 24px; line-height: 1; color: var(--muted-color);
}
.feedback-close-icon:hover { color: var(--on-background-color); }
.feedback-body { display: flex; flex-direction: column; }
.feedback-detail, .feedback-email {
    width: 100%; font-family: inherit; font-size: 14px;
    color: var(--on-background-color);
    background: var(--panel-input-bg);
    border: 2px solid var(--panel-border); border-radius: 12px;
    padding: 12px; outline: none; transition: border-color .15s;
}
.feedback-detail { resize: vertical; }
.feedback-detail:focus, .feedback-email:focus { border-color: var(--primary-color); }
.feedback-detail::placeholder, .feedback-email::placeholder { color: var(--muted-color); }
.feedback-counter { text-align: left; font-size: 12px; color: var(--muted-color); margin: 4px 0 16px; }
.feedback-email-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.feedback-label { font-size: 12px; font-weight: 600; color: var(--muted-color); }
.feedback-error { font-size: 12px; color: var(--error-color); }
.feedback-rating { display: flex; justify-content: center; gap: 24px; }
.feedback-rating-star {
    background: none; border: none; cursor: pointer;
    font-size: 30px; line-height: 1; padding: 0;
    color: var(--panel-border); transition: color .12s, transform .12s;
}
.feedback-rating-star:hover { transform: scale(1.12); }
.feedback-rating-star.selected { color: var(--primary-color); }
.feedback-footer { margin-top: 20px; display: flex; justify-content: flex-end; }
.feedback-send {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary-color); color: var(--on-primary-color);
    border: none; border-radius: 12px; padding: 12px 22px;
    font-size: 14px; font-weight: 800; cursor: pointer; font-family: inherit;
    transition: opacity .15s;
}
.feedback-send:hover { opacity: .9; }
.feedback-send:disabled { opacity: .45; cursor: not-allowed; }
.feedback-thank-you { align-items: center; text-align: center; gap: 12px; padding: 16px 0; }
.feedback-thank-you-icon {
    font-size: 64px; line-height: 1;
    color: var(--success-color);
}
.feedback-thank-you-title { font-size: 24px; font-weight: 800; }
.feedback-thank-you-detail { font-size: 14px; color: var(--muted-color); }
.feedback-loading { align-items: center; justify-content: center; padding: 48px 0; }
.lds-dual-ring { width: 48px; height: 48px; }
.lds-dual-ring::after {
    content: " "; display: block; width: 40px; height: 40px; margin: 4px;
    border-radius: 50%;
    border: 4px solid var(--primary-color);
    border-color: var(--primary-color) transparent var(--primary-color) transparent;
    animation: lds-dual-ring 1.1s linear infinite;
}
@keyframes lds-dual-ring { 0% { transform: rotate(0); } 100% { transform: rotate(360deg); } }

/* ── Iframe login modal (mirrors Angular's Iframe auth experience) ─────────── */
/* Transparent container — IdentityServer sets its own body transparent when framed,
   so only its login card paints. A transparent dialog lets the card float over the
   dimmed backdrop (no white box) and copes with the form growing during sign-up. */
.login-dialog {
    width: min(480px, 96vw);
    height: min(90vh, 760px);
    margin: auto;
    padding: 0;
    border: none;
    overflow: visible;
    background: transparent;
}
.login-dialog:not([open]) { display: none; }
.login-dialog::backdrop { background: var(--backdrop); }
.login-iframe { width: 100%; height: 100%; border: none; display: block; background: transparent; }

/* ── Loyalty status bar (signed-in; shell in _LoyaltyStatusBar.cshtml, values from home-customer.js) ── */
.alb-tier{display:inline-flex;align-items:center;gap:7px;font-size:13px;font-weight:800;color:var(--on-surface-color)}
.alb-tier-icon{width:24px;height:24px;object-fit:contain;border-radius:4px;display:block}
.alb-tier-emoji{font-size:18px;line-height:1}
.alb-bonus{font-size:11px;font-weight:800;color:var(--primary-color);background:rgba(var(--primary-color-rgb),.1);border:1px solid rgba(var(--primary-color-rgb),.2);border-radius:999px;padding:3px 10px;white-space:nowrap}
.alb-points{font-size:13px;font-weight:700;color:var(--on-surface-color);white-space:nowrap}
.alb-progress{font-size:12px;color:var(--muted-color)}
.alb-welcome{font-size:11px;font-weight:700;color:var(--primary-color);background:rgba(var(--primary-color-rgb),.08);border-radius:999px;padding:3px 10px;white-space:nowrap}

/* ── Order-card prefill (signed-in; chip + out-of-zone notice from home-customer.js) ── */
.prefill-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.prefill-change{background:none;border:none;padding:0 2px;font:inherit;font-size:12px;font-weight:700;color:var(--primary-color);text-decoration:underline;cursor:pointer}
.prefill-select{flex-basis:100%;max-width:280px;margin-top:6px;font:inherit;font-size:13px;padding:6px 8px;border:1px solid var(--border-color);border-radius:10px;background:var(--surface-color);color:var(--on-surface-color)}
.prefill-chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--success-color);background:color-mix(in srgb,var(--success-color) 10%,transparent);border:1px solid color-mix(in srgb,var(--success-color) 25%,transparent);border-radius:10px;padding:5px 10px}
.prefill-chip-muted{color:var(--muted-color);background:color-mix(in srgb,var(--on-background-color) 5%,transparent);border-color:var(--border-color)}
.prefill-notice{font-size:12px;color:var(--on-surface-color);background:var(--surface-color);border:1px solid var(--border-color);border-radius:10px;padding:8px 10px;line-height:1.5}

/* ── Repeat order (signed-in; shell in _RepeatOrder.cshtml, values from home-customer.js) ── */
.aw-repeat-order{padding:40px 48px}
.aro-card{margin:0 auto;width:100%;max-width:760px;background:var(--surface-color);border:1px solid var(--border-color);border-radius:18px;padding:22px 26px}
.aro-heading{font-size:18px;font-weight:900;color:var(--on-surface-color);margin-bottom:10px}
.aro-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.aro-summary{font-size:14px;font-weight:700;color:var(--on-surface-color)}
.aro-meta{font-size:12px;color:var(--muted-color);margin-top:2px}
.aro-cta{display:inline-flex;align-items:center;gap:8px;background:var(--primary-color);color:var(--on-primary-color);border-radius:999px;padding:10px 18px;font-size:13px;font-weight:800;text-decoration:none;white-space:nowrap}
.reorder-btn{border-color:var(--primary-color);color:var(--primary-color)}
@media(max-width:680px){.aw-repeat-order{padding:28px 16px}}

.pay-chip{background:var(--panel-surface,var(--surface-color));border:1px solid var(--panel-border,var(--border-color));border-radius:6px;padding:4px 8px;font-size:10px;color:var(--on-surface-color);font-weight:600}

/* Auth composition gating (html[data-auth] set by the _Modern boot script + home-auth.js).
   No attribute / "out" = signed-out default; "pending" shows .aw-skel skeletons; "in" swaps
   guest regions for user regions and suppresses the signed-out loyalty marketing. */
[data-auth-region="user"]{display:none}html[data-auth="in"] [data-auth-region="user"]{display:block}html[data-auth="in"] [data-auth-region="guest"],html[data-auth="pending"] [data-auth-region="guest"]{display:none!important}html[data-auth="in"] .aw-loyalty-promo,html[data-auth="pending"] .aw-loyalty-promo{display:none!important}.aw-skel{display:none}html[data-auth="pending"] .aw-skel{display:block;background:color-mix(in srgb,var(--on-background-color) 8%,transparent);border-radius:12px;animation:aw-skel-pulse 1.4s ease-in-out infinite}@keyframes aw-skel-pulse{50%{opacity:.55}}@media(prefers-reduced-motion:reduce){html[data-auth="pending"] .aw-skel{animation:none}}.nav-avatar{width:22px;height:22px;border-radius:50%;background:rgba(var(--on-primary-color-rgb),.22);display:inline-flex;align-items:center;justify-content:center;font-size:10px;font-weight:800;letter-spacing:.02em}
/* Loyalty status bar (signed-in) — geometry here so the slot/bar never shift the hero.
   Skeleton holds the slot during pending AND while signed-in hydration is unresolved;
   visual styling lives in home-modern.css. */
.aw-loyalty-bar-slot .aw-loyalty-bar-skel{min-height:46px;margin:10px 28px 0}html[data-auth="in"] .aw-loyalty-bar-slot:not([data-loyalty-resolved]) .aw-loyalty-bar-skel{display:block;background:color-mix(in srgb,var(--on-background-color) 8%,transparent);border-radius:12px}.aw-loyalty-bar{background:var(--surface-color);border-bottom:1px solid var(--border-color)}.alb-inner{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;min-height:46px;padding:8px 28px}@media(max-width:479px){.aw-loyalty-bar-slot .aw-loyalty-bar-skel{min-height:72px;margin:8px 12px 0}.alb-inner{min-height:72px;padding:8px 12px;display:grid;grid-template-columns:auto auto 1fr;align-items:center;column-gap:10px}.alb-progress{grid-column:1/3}.alb-welcome{grid-column:3;justify-self:end}}
