/*
  OrderEmpire visual system.
  Customer storefront: editorial, high-contrast takeaway design.
  Merchant dashboard: calm operational interface retained below.
*/

:root {
  --oe-ink: #201a17;
  --oe-ink-muted: #746b64;
  --oe-paper: #fffdf9;
  --oe-cream: #f5efe7;
  --oe-surface: #ffffff;
  --oe-border: #e8ded3;
  --oe-primary: #ef4d2f;
  --oe-primary-dark: #d83c21;
  --oe-primary-ink: #ffffff;
  --oe-accent: #f5b942;
  --oe-success: #218754;
  --oe-radius-sm: 12px;
  --oe-radius-md: 20px;
  --oe-radius-lg: 30px;
  --oe-shadow-sm: 0 10px 30px rgba(47, 32, 20, .08);
  --oe-shadow-md: 0 22px 60px rgba(47, 32, 20, .15);
  --oe-font-sans: "Manrope", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --oe-font-display: "DM Serif Display", Georgia, serif;
  --oe-dash-bg: #f4f5f7;
  --oe-dash-surface: #ffffff;
  --oe-dash-ink: #1c2029;
  --oe-dash-border: #e2e5ea;
  --oe-dash-accent: #2c5cf0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .001ms !important;
  }
}

html { scroll-behavior: smooth; }
body { font-family: var(--oe-font-sans); color: var(--oe-ink); background: var(--oe-cream); }
a { color: var(--oe-primary-dark); }
a:hover { color: #b82d17; }
button, input, select, textarea { font: inherit; }

.oe-public-body { background: var(--oe-cream); min-width: 320px; }
.oe-skip-link { position: fixed; z-index: 2000; top: -5rem; left: 1rem; padding: .75rem 1rem; border-radius: 0 0 .75rem .75rem; background: var(--oe-ink); color: #fff; font-weight: 800; }
.oe-skip-link:focus { top: 0; color: #fff; }
.oe-page-shell { overflow: hidden; }
.oe-display { font-family: var(--oe-font-display); letter-spacing: -.045em; }
.oe-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: var(--oe-primary); font-size: .73rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.oe-eyebrow::before { content: ""; width: 1.8rem; height: 2px; background: currentColor; }
.oe-section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.oe-section--paper { background: var(--oe-paper); }
.oe-section-heading { max-width: 42rem; margin-bottom: 2.75rem; }
.oe-section-heading h2 { margin: .55rem 0 .8rem; font-family: var(--oe-font-display); font-size: clamp(2.25rem, 4vw, 4.2rem); line-height: .98; letter-spacing: -.055em; }
.oe-section-heading p { max-width: 34rem; margin: 0; color: var(--oe-ink-muted); font-size: 1.02rem; line-height: 1.75; }

/* Header and navigation */
.oe-topline { background: #211b18; color: rgba(255,255,255,.76); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.oe-topline .container { min-height: 34px; }
.oe-topline i { color: var(--oe-accent); }
.oe-site-header { position: sticky; top: 0; z-index: 1020; background: rgba(255,253,249,.92); border-bottom: 1px solid rgba(232,222,211,.7); backdrop-filter: blur(18px); }
.oe-navbar { min-height: 78px; }
.oe-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--oe-ink); font-size: 1.15rem; font-weight: 900; letter-spacing: -.045em; text-decoration: none; }
.oe-brand:hover { color: var(--oe-ink); }
.oe-brand-mark { display: grid; width: 2.45rem; height: 2.45rem; place-items: center; border-radius: 12px; background: var(--oe-primary); box-shadow: 0 8px 20px rgba(239,77,47,.28); color: #fff; font-size: 1.08rem; }
.oe-nav-link { position: relative; color: var(--oe-ink) !important; font-size: .84rem; font-weight: 800; }
.oe-nav-link::after { position: absolute; right: .5rem; bottom: .1rem; left: .5rem; height: 2px; background: var(--oe-primary); content: ""; transform: scaleX(0); transform-origin: right; transition: transform .25s ease; }
.oe-nav-link:hover::after, .oe-nav-link:focus::after { transform: scaleX(1); transform-origin: left; }
.oe-header-order { padding: .7rem 1rem !important; border-radius: 999px; background: var(--oe-ink); color: #fff !important; box-shadow: 0 8px 20px rgba(32,26,23,.18); }
.oe-header-order:hover { background: var(--oe-primary); }

/* Buttons, inputs, and supporting UI */
.btn-oe-primary, .btn-oe-dark, .btn-oe-outline, .oe-menu-card .btn, .oe-config-form .btn-primary {
  border-radius: 999px; font-weight: 900; letter-spacing: -.015em; padding: .78rem 1.15rem; transition: transform .22s ease, background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.btn-oe-primary, .oe-config-form .btn-primary { border-color: var(--oe-primary); background: var(--oe-primary); color: #fff; box-shadow: 0 10px 22px rgba(239,77,47,.25); }
.btn-oe-primary:hover, .btn-oe-primary:focus, .oe-config-form .btn-primary:hover, .oe-config-form .btn-primary:focus { border-color: var(--oe-primary-dark); background: var(--oe-primary-dark); color: #fff; transform: translateY(-2px); }
.btn-oe-dark { border-color: var(--oe-ink); background: var(--oe-ink); color: #fff; }
.btn-oe-dark:hover, .btn-oe-dark:focus { border-color: var(--oe-primary); background: var(--oe-primary); color: #fff; transform: translateY(-2px); }
.btn-oe-outline { border: 1.5px solid rgba(255,255,255,.65); background: rgba(255,255,255,.06); color: #fff; }
.btn-oe-outline:hover, .btn-oe-outline:focus { border-color: #fff; background: #fff; color: var(--oe-ink); transform: translateY(-2px); }
.form-control, .form-select { border: 1px solid var(--oe-border); border-radius: 12px; background: #fff; padding: .72rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--oe-primary); box-shadow: 0 0 0 4px rgba(239,77,47,.13); }

/* Hero */
.oe-hero { position: relative; isolation: isolate; min-height: min(710px, calc(100vh - 34px)); background: #211b18; color: #fff; }
.oe-hero::before { position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(20,17,15,.98) 0%, rgba(20,17,15,.84) 38%, rgba(20,17,15,.16) 72%, rgba(20,17,15,.22) 100%), linear-gradient(0deg, rgba(20,17,15,.4), transparent 55%), url("../images/storefront-hero-burger.jpg") center / cover no-repeat; content: ""; }
.oe-hero .container { display: flex; min-height: min(710px, calc(100vh - 34px)); align-items: center; }
.oe-hero-content { max-width: 650px; padding: 5.5rem 0 8rem; }
.oe-hero .oe-eyebrow { color: var(--oe-accent); }
.oe-hero h1 { max-width: 10ch; margin: .75rem 0 1.2rem; font-family: var(--oe-font-display); font-size: clamp(3.2rem, 7.3vw, 6.4rem); line-height: .91; letter-spacing: -.065em; }
.oe-hero-copy { max-width: 35rem; color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.75; }
.oe-hero-points { display: flex; flex-wrap: wrap; gap: 1rem 1.35rem; margin-top: 1.75rem; color: rgba(255,255,255,.88); font-size: .83rem; font-weight: 800; }
.oe-hero-points i { margin-right: .35rem; color: var(--oe-accent); }
.oe-order-panel { position: absolute; right: max(1rem, calc((100% - 1320px) / 2)); bottom: -54px; width: min(460px, calc(100% - 2rem)); border: 1px solid rgba(255,255,255,.72); border-radius: 22px; background: rgba(255,253,249,.95); box-shadow: var(--oe-shadow-md); color: var(--oe-ink); backdrop-filter: blur(16px); }
.oe-order-panel .card-body { padding: 1.35rem; }
.oe-order-panel h2 { margin: 0; font-family: var(--oe-font-display); font-size: 1.8rem; }
.oe-order-panel .form-select { min-height: 48px; }

/* Navigation chips / menu */
.oe-category-rail { position: sticky; top: 78px; z-index: 1010; padding: 1rem 0; border-bottom: 1px solid var(--oe-border); background: rgba(255,253,249,.94); backdrop-filter: blur(14px); }
.oe-category-scroll { display: flex; gap: .6rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
.oe-category-scroll::-webkit-scrollbar { display: none; }
.oe-category-chip { flex: 0 0 auto; border: 1px solid var(--oe-border); border-radius: 999px; background: #fff; color: var(--oe-ink); font-size: .8rem; font-weight: 900; padding: .6rem .95rem; text-decoration: none; transition: .2s ease; }
.oe-category-chip:hover, .oe-category-chip:focus { border-color: var(--oe-primary); background: var(--oe-primary); color: #fff; }
.oe-menu-section { scroll-margin-top: 145px; }
.oe-category-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--oe-border); }
.oe-category-title h2 { margin: 0; font-family: var(--oe-font-display); font-size: clamp(2rem, 3.8vw, 3.6rem); letter-spacing: -.055em; }
.oe-category-title p { max-width: 30rem; margin: 0; color: var(--oe-ink-muted); font-size: .9rem; }
.oe-menu-card { position: relative; overflow: hidden; height: 100%; display: flex; flex-direction: row-reverse; align-items: flex-start; gap: .9rem; border: 1px solid var(--oe-border); border-radius: 16px; background: #fff; box-shadow: 0 1px 0 rgba(32,26,23,.03); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.oe-menu-card:hover { border-color: rgba(239,77,47,.45); box-shadow: var(--oe-shadow-sm); transform: translateY(-3px); }
.oe-menu-card-image { flex: 0 0 auto; width: 84px; height: 84px; margin: .9rem .9rem 0 0; border-radius: 12px; background: #fff0eb; display: grid; place-items: center; overflow: hidden; }
.oe-menu-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.oe-menu-card-image .oe-menu-icon { background: transparent; font-size: 1.4rem; width: auto; height: auto; }
.oe-menu-card-body { display: flex; flex: 1 1 auto; min-width: 0; min-height: 0; flex-direction: column; padding: 1rem 1.1rem 1.1rem 1.1rem; }
.oe-menu-icon { display: grid; width: 2.75rem; height: 2.75rem; place-items: center; border-radius: 12px; background: #fff0eb; color: var(--oe-primary); font-size: 1.18rem; }
.oe-menu-card h3 { margin: 0 0 .4rem; font-size: 1rem; font-weight: 900; letter-spacing: -.025em; }
.oe-menu-card-description { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.7rem; color: var(--oe-ink-muted); font-size: .82rem; line-height: 1.4; }
.oe-menu-card-footer { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--oe-border); }
@media (max-width: 575.98px) {
  .oe-menu-card { flex-direction: column; }
  .oe-menu-card-image { width: 100%; height: 140px; margin: 0; border-radius: 16px 16px 0 0; }
  .oe-menu-card-body { padding: 1rem; }
}

/* Meal Deal card on the storefront grid — dark by default, an
   optional Owner-uploaded background image sits behind a dark
   gradient (readable regardless of the photo). Previously had no
   dedicated background at all, so its white "From £X" text rendered
   almost invisible on the default white .oe-menu-card background. */
.oe-deal-card { flex-direction: column; background: linear-gradient(150deg, #2a1f18, #1c1512); color: #fff; background-size: cover; background-position: center; }
.oe-deal-card .oe-menu-card-body { padding: 1.4rem; }
.oe-deal-card h3 { color: #fff; }
.oe-deal-card .oe-menu-card-description { color: rgba(255,255,255,.72); -webkit-line-clamp: 2; }
.oe-deal-card .oe-menu-icon { background: rgba(255,255,255,.12); color: var(--oe-accent); margin-bottom: .6rem; }
.oe-deal-card .oe-price { color: #fff; }

/* Meal Deal configuration page */
.oe-deal-hero { background-size: cover; background-position: center; }
.oe-deal-choice { border: 1px solid var(--oe-border); border-radius: 14px; padding: .85rem 1rem; transition: border-color .15s ease, background .15s ease; }
.oe-deal-choice--selected { border-color: rgba(239,77,47,.5); background: rgba(239,77,47,.04); }
.oe-deal-choice-header { display: flex; align-items: center; gap: .6rem; cursor: pointer; margin: 0; }
.oe-deal-choice-mods { margin-top: .75rem; padding-top: .75rem; border-top: 1px dashed var(--oe-border); }
.oe-deal-mod-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .15rem .5rem; }
.oe-price { font-family: var(--oe-font-display); font-size: 1.43rem; font-weight: 700; letter-spacing: -.04em; }
.oe-price small { font-family: var(--oe-font-sans); font-size: .7rem; font-weight: 800; letter-spacing: 0; }
.oe-card-action { display: inline-grid; width: 2.65rem; height: 2.65rem; place-items: center; border: 0; border-radius: 50%; background: var(--oe-ink); color: #fff; font-size: 1.15rem; transition: .2s ease; }
.oe-card-action:hover, .oe-card-action:focus { background: var(--oe-primary); color: #fff; transform: rotate(8deg); }
.oe-deal-card { border: 0; background: linear-gradient(135deg, #3a241d, #211b18); color: #fff; }
.oe-deal-card::after { position: absolute; top: -30px; right: -25px; width: 125px; height: 125px; border: 25px solid rgba(245,185,66,.22); border-radius: 50%; content: ""; }
.oe-deal-card .oe-menu-icon { background: rgba(245,185,66,.15); color: var(--oe-accent); }
.oe-deal-card .oe-menu-card-description { color: rgba(255,255,255,.7); }
.oe-deal-card .oe-card-action { background: var(--oe-accent); color: var(--oe-ink); }
.oe-unavailable { color: #9a8f86; font-size: .78rem; font-weight: 900; }

/* Trust and editorial banner */
.oe-trust-strip { background: #211b18; color: rgba(255,255,255,.75); }
.oe-trust-item { display: flex; gap: .75rem; align-items: center; padding: 1.35rem 0; }
.oe-trust-item i { color: var(--oe-accent); font-size: 1.15rem; }
.oe-trust-item strong { display: block; color: #fff; font-size: .84rem; }
.oe-trust-item span { display: block; font-size: .73rem; }
.oe-story-card { position: relative; overflow: hidden; border-radius: 28px; background: #211b18; color: #fff; }
.oe-story-card::before { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(33,27,24,.96), rgba(33,27,24,.42)), url("../images/storefront-hero-burger.jpg") right / cover no-repeat; content: ""; }
.oe-story-content { position: relative; max-width: 38rem; padding: clamp(2rem, 6vw, 5rem); }
.oe-story-content h2 { margin: .55rem 0 1rem; font-family: var(--oe-font-display); font-size: clamp(2.25rem, 4vw, 4.2rem); letter-spacing: -.055em; }
.oe-story-content p { max-width: 31rem; color: rgba(255,255,255,.78); line-height: 1.75; }

/* Basket and configuration */
.oe-basket-trigger { border: 1px solid var(--oe-border); border-radius: 999px; background: #fff; color: var(--oe-ink); font-weight: 900; padding: .62rem .8rem; }
.oe-basket-trigger:hover { border-color: var(--oe-primary); color: var(--oe-primary); }
.oe-basket-badge { display: inline-grid; width: 1.45rem; height: 1.45rem; place-items: center; border-radius: 50%; background: var(--oe-primary); color: #fff; font-size: .67rem; }
.oe-basket-mobile { position: fixed; z-index: 1025; right: 1rem; bottom: 1rem; left: 1rem; display: flex; align-items: center; justify-content: space-between; border-radius: 18px; background: var(--oe-ink); box-shadow: 0 16px 35px rgba(33,27,24,.28); color: #fff; padding: .8rem 1rem; }
.oe-basket-mobile:hover { color: #fff; }
.oe-basket-mobile span { font-size: .73rem; font-weight: 800; }
.oe-basket-mobile strong { display: block; font-size: .92rem; }

/* Add-to-basket confirmation toast — deliberately rendered OUTSIDE
   .oe-page-shell (which has overflow:hidden — nesting a position:fixed
   toast inside it clipped the toast out of view once the customer
   scrolled, which was the actual root cause of "confirmation only
   visible near the top"). Bottom-right on desktop; bottom-center,
   above the mobile basket bar, on small screens. */
.oe-toast-container { position: fixed; z-index: 1085; right: 1.25rem; bottom: 1.25rem; left: auto; }
@media (max-width: 767.98px) {
  .oe-toast-container { right: 1rem; left: 1rem; bottom: 5.75rem; }
  .oe-toast-container .toast { width: 100%; }
}
.oe-config-form fieldset { border: 0; padding: 0; }
.oe-config-form legend { font-size: 1rem; font-weight: 900; }
.oe-choice { position: relative; display: block; border: 1px solid var(--oe-border); border-radius: 12px; margin: .55rem 0; padding: .85rem 1rem .85rem 2.7rem; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.oe-choice:hover { border-color: rgba(239,77,47,.6); background: #fff8f5; }
.oe-choice .form-check-input { position: absolute; top: 1rem; left: 1rem; }
.oe-choice-price { float: right; color: var(--oe-primary-dark); font-size: .82rem; font-weight: 900; }
.oe-quantity-control { display: inline-flex; overflow: hidden; border: 1px solid var(--oe-border); border-radius: 12px; }
.oe-quantity-control .btn { border: 0; border-radius: 0; background: #fff8f5; color: var(--oe-primary); }
.oe-quantity-control .form-control { width: 3rem; border: 0; border-radius: 0; box-shadow: none; }
.oe-config-total { border-radius: 15px; background: var(--oe-cream); padding: .85rem 1rem; }
.oe-config-total output { display: block; color: var(--oe-primary-dark); font-family: var(--oe-font-display); font-size: 1.8rem; letter-spacing: -.05em; }
.oe-modal .modal-content, .modal-content { border: 0; border-radius: 24px; overflow: hidden; }
.modal-header { border-bottom-color: var(--oe-border); }

/* Checkout, basket and status shared cards */
.oe-subpage-hero { background: radial-gradient(circle at 85% 0, rgba(245,185,66,.23), transparent 31%), #211b18; color: #fff; padding: 4rem 0 3.5rem; }
.oe-subpage-hero h1 { margin: .5rem 0 0; font-family: var(--oe-font-display); font-size: clamp(2.75rem, 6vw, 4.75rem); letter-spacing: -.065em; }
.oe-subpage-hero p { max-width: 36rem; margin: .75rem 0 0; color: rgba(255,255,255,.72); }
.oe-order-card { border: 1px solid var(--oe-border); border-radius: 20px; background: #fff; box-shadow: var(--oe-shadow-sm); }
.oe-order-card .card-body { padding: 1.35rem; }
.oe-basket-line h2 { font-size: 1.05rem; font-weight: 900; }
.oe-basket-summary { position: sticky; top: 108px; border-radius: 20px; background: var(--oe-ink); box-shadow: var(--oe-shadow-md); color: #fff; padding: 1.4rem; }
.oe-basket-summary .small { color: rgba(255,255,255,.62) !important; }
.oe-basket-summary .oe-price { color: var(--oe-accent); }
.oe-empty-state { border: 1px dashed #d9c8b9; border-radius: 24px; background: rgba(255,255,255,.55); padding: 4rem 1rem; text-align: center; }
.oe-empty-state i { display: block; margin-bottom: 1rem; color: var(--oe-primary); font-size: 2.4rem; }

/* Public Reviews page */
.oe-reviews-summary { text-align: center; }
.oe-reviews-stars i, .oe-review-stars i { color: var(--oe-accent); }
.oe-reviews-stars .bi-star, .oe-review-stars .bi-star { color: rgba(255,255,255,.25); }
.oe-review-card .oe-review-stars .bi-star { color: var(--oe-border); }
.oe-review-card { border: 1px solid var(--oe-border); border-radius: 18px; background: #fff; padding: 1.35rem 1.5rem; box-shadow: var(--oe-shadow-sm); max-width: 100%; }
.oe-review-stars { font-size: 1rem; letter-spacing: .1rem; }
.oe-verified-badge { background: rgba(33,135,84,.12); color: var(--oe-success); font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: .35rem .6rem; }
.oe-review-response { border-left: 3px solid var(--oe-accent); padding-left: .9rem; background: var(--oe-cream); border-radius: 0 10px 10px 0; padding: .75rem .9rem; }
.oe-rating-bar { height: .5rem; border-radius: 99px; background: var(--oe-cream); overflow: hidden; }
.oe-rating-bar-fill { height: 100%; background: var(--oe-accent); border-radius: 99px; }
.oe-demo-reviews-section { border-top: 1px dashed var(--oe-border); padding-top: 2rem; margin-top: 1rem; }
.oe-review-card--demo { background: repeating-linear-gradient(135deg, #fff, #fff 12px, #fdf6ee 12px, #fdf6ee 24px); border-style: dashed; }
.oe-demo-badge { background: rgba(245,185,66,.22); color: #8a5a06; font-weight: 700; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; padding: .35rem .6rem; }
@media (max-width: 575.98px) {
  .oe-review-card { padding: 1.1rem 1.15rem; }
}

/* Auth pages (login / signup) */
.oe-auth-main { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 34px); padding: 3rem 1rem; background: radial-gradient(circle at 12% -10%, rgba(245,185,66,.28), transparent 38%), radial-gradient(circle at 90% 0%, rgba(239,77,47,.14), transparent 45%), var(--oe-cream); }
.oe-auth-shell { width: 100%; max-width: 26rem; }
.oe-auth-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: 1.25rem; color: var(--oe-ink-muted); font-size: .82rem; font-weight: 800; text-decoration: none; }
.oe-auth-back:hover { color: var(--oe-primary-dark); }
.oe-auth-card { border: 1px solid var(--oe-border); border-radius: var(--oe-radius-lg); background: var(--oe-surface); box-shadow: var(--oe-shadow-md); padding: 2.5rem 2.25rem; }
.oe-auth-brand { display: flex; justify-content: center; margin-bottom: 1.5rem; }
.oe-auth-card h1 { font-family: var(--oe-font-display); font-size: 2rem; letter-spacing: -.045em; margin-bottom: .35rem; text-align: center; }
.oe-auth-sub { color: var(--oe-ink-muted); font-size: .92rem; text-align: center; margin-bottom: 1.75rem; }
.oe-auth-card label.form-label { font-size: .82rem; font-weight: 800; color: var(--oe-ink); margin-bottom: .35rem; }
.oe-auth-row-between { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.oe-auth-forgot { font-size: .82rem; font-weight: 700; text-decoration: none; }
.oe-auth-card .btn-oe-primary { padding: .75rem 1rem; font-weight: 800; letter-spacing: -.01em; }
.oe-auth-divider { display: flex; align-items: center; gap: .85rem; margin: 1.6rem 0; color: var(--oe-ink-muted); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.oe-auth-divider::before, .oe-auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--oe-border); }
.oe-auth-foot { text-align: center; color: var(--oe-ink-muted); font-size: .88rem; margin-top: 1.75rem; }
.oe-auth-foot a { font-weight: 800; }
.oe-auth-error { border-radius: 12px; }
.oe-auth-help { font-size: .78rem; color: var(--oe-ink-muted); margin-top: .35rem; }
.oe-auth-help ul { margin: .25rem 0 0; padding-left: 1.1rem; }
#g_id_signin_wrap { display: flex; justify-content: center; }
@media (max-width: 420px) {
  .oe-auth-card { padding: 2rem 1.35rem; border-radius: var(--oe-radius-md); }
}

/* Customer account dashboard */
.oe-account-order-row { display: flex; align-items: center; gap: 1rem; border: 1px solid var(--oe-border); border-radius: 16px; background: #fff; padding: 1rem 1.15rem; color: var(--oe-ink); transition: .2s ease; }
.oe-account-order-row:hover { border-color: rgba(239,77,47,.4); box-shadow: var(--oe-shadow-sm); transform: translateY(-2px); }
.oe-account-order-icon { display: grid; flex: 0 0 auto; width: 2.9rem; height: 2.9rem; place-items: center; border-radius: 12px; background: #fff0eb; color: var(--oe-primary); font-size: 1.15rem; }
.oe-account-order-main { flex: 1 1 auto; min-width: 0; }
.oe-account-order-total { flex: 0 0 auto; }
.oe-status-badge { display: inline-block; padding: .18rem .6rem; border-radius: 99px; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; background: var(--oe-cream); color: var(--oe-ink-muted); }
.oe-status-badge--accepted, .oe-status-badge--preparing, .oe-status-badge--out_for_delivery, .oe-status-badge--ready_for_collection { background: rgba(245,185,66,.22); color: #8a5a06; }
.oe-status-badge--delivered, .oe-status-badge--collected { background: rgba(33,135,84,.14); color: var(--oe-success); }
.oe-status-badge--rejected, .oe-status-badge--cancelled { background: rgba(239,77,47,.12); color: var(--oe-primary-dark); }

/* Footer */
.oe-footer { background: #171210; color: rgba(255,255,255,.68); }
.oe-footer h2 { color: #fff; font-family: var(--oe-font-display); font-size: 2rem; }
.oe-footer a { color: rgba(255,255,255,.7); text-decoration: none; }
.oe-footer a:hover { color: var(--oe-accent); }
.oe-footer-label { color: var(--oe-accent); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }

/* Order status page: allergen note styling */
.oe-order-allergen-note { background: #fff8e6; border: 1px solid #f5d68a; border-radius: 10px; padding: .5rem .75rem; font-size: .83rem; color: #7a5c00; }

/* Order status page: waiting spinner + ticking timeline */
.oe-spinner { width: 3rem; height: 3rem; margin: 0 auto; border-radius: 50%; border: 4px solid #f0e4dd; border-top-color: var(--oe-primary, #ef4d2f); animation: oe-spin 0.9s linear infinite; }
@keyframes oe-spin { to { transform: rotate(360deg); } }
.oe-order-timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.oe-order-timeline li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; color: #9c9088; font-weight: 600; font-size: .92rem; position: relative; }
.oe-order-timeline li:not(:last-child)::before { content: ""; position: absolute; left: 1.1rem; top: 2.4rem; width: 2px; height: calc(100% - 1rem); background: var(--oe-border, #e9e0d8); }
.oe-order-timeline-dot { flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 2px solid var(--oe-border, #e9e0d8); display: grid; place-items: center; background: #fff; position: relative; transition: background .25s ease, border-color .25s ease; }
.oe-order-timeline li.is-done { color: #2f2620; }
.oe-order-timeline li.is-done .oe-order-timeline-dot { background: var(--oe-primary, #ef4d2f); border-color: var(--oe-primary, #ef4d2f); }
.oe-order-timeline li.is-done .oe-order-timeline-dot::after { content: "\2713"; color: #fff; font-size: .95rem; font-weight: 900; line-height: 1; }
.oe-order-timeline li.is-current:not(.is-done) .oe-order-timeline-dot { border-color: var(--oe-primary, #ef4d2f); box-shadow: 0 0 0 4px rgba(239,77,47,.15); }
.oe-order-timeline li.is-done:not(:last-child)::before { background: var(--oe-primary, #ef4d2f); }

/* Checkout: sectioned layout + accessible selectable fulfilment cards */
.oe-checkout-section { border-top: 1px solid rgba(0,0,0,.08); padding-top: 1.5rem; }
.oe-checkout-section:first-of-type { border-top: none; padding-top: 0; }
.oe-checkout-section--dim { opacity: .55; }
.oe-fulfilment-card { position: relative; border: 2px solid rgba(0,0,0,.12); border-radius: 14px; padding: 1rem 1.1rem; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.oe-fulfilment-card input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.oe-fulfilment-card-body { display: block; padding-right: 1.75rem; }
.oe-fulfilment-card-title { display: block; font-weight: 700; }
.oe-fulfilment-card-sub { display: block; font-size: .85rem; opacity: .7; margin-top: .15rem; }
.oe-fulfilment-card-check { position: absolute; top: 1rem; right: 1rem; opacity: 0; color: var(--oe-accent, #2c5cf0); transition: opacity .15s ease; }
.oe-fulfilment-card:hover { border-color: rgba(0,0,0,.28); }
.oe-fulfilment-card:has(input:checked) { border-color: var(--oe-accent, #2c5cf0); background: rgba(44,92,240,.06); }
.oe-fulfilment-card:has(input:checked) .oe-fulfilment-card-check { opacity: 1; }
.oe-fulfilment-card:has(input:focus-visible) { outline: 3px solid rgba(44,92,240,.35); outline-offset: 2px; }

/* Modern on/off toggle switch for every settings checkbox — applies
   directly off the checkbox itself, so it renders correctly regardless
   of whether the surrounding template wraps it in Bootstrap's own
   .form-switch container (many of our settings forms use a plain
   {% for field in form %} loop without that wrapper). */
.oe-dash-body input[type="checkbox"].form-check-input,
.oe-dash-body input[type="checkbox"][role="switch"] {
  appearance: none; -webkit-appearance: none;
  width: 2.75rem; height: 1.5rem; border-radius: 999px;
  background: #d8dbe3; border: 1px solid #c7cbd6;
  position: relative; cursor: pointer; flex-shrink: 0;
  transition: background .18s ease, border-color .18s ease;
  vertical-align: middle;
}
.oe-dash-body input[type="checkbox"].form-check-input::before,
.oe-dash-body input[type="checkbox"][role="switch"]::before {
  content: ""; position: absolute; top: 1px; left: 1px;
  width: 1.25rem; height: 1.25rem; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s ease;
}
.oe-dash-body input[type="checkbox"].form-check-input:checked,
.oe-dash-body input[type="checkbox"][role="switch"]:checked {
  background: var(--oe-dash-accent); border-color: var(--oe-dash-accent);
}
.oe-dash-body input[type="checkbox"].form-check-input:checked::before,
.oe-dash-body input[type="checkbox"][role="switch"]:checked::before {
  transform: translateX(1.25rem);
}
.oe-dash-body input[type="checkbox"].form-check-input:focus-visible,
.oe-dash-body input[type="checkbox"][role="switch"]:focus-visible {
  outline: 3px solid rgba(44,92,240,.35); outline-offset: 2px;
}

/* Existing merchant dashboard shell */
.oe-dash-body { background: var(--oe-dash-bg); color: var(--oe-dash-ink); }
.oe-dash-nav { min-height: 100vh; border-right: 1px solid var(--oe-dash-border); background: var(--oe-dash-surface); }
.oe-dash-nav .oe-brand-logo { width: 100%; max-width: 180px; height: auto; display: block; }
.oe-dash-footer { border-top: 1px solid var(--oe-dash-border); color: var(--oe-dash-ink); opacity: .6; }
.oe-dash-nav .oe-brand { font-size: 1.05rem; padding: .4rem .2rem; }
.oe-dash-nav .nav-link { border-radius: var(--oe-radius-sm); color: var(--oe-dash-ink); font-weight: 600; font-size: .89rem; padding: .6rem .85rem; transition: background .16s ease, color .16s ease; }
.oe-dash-nav .nav-link:hover:not(.disabled):not(.active) { background: var(--oe-dash-bg); }
.oe-dash-nav .nav-link.active { background: var(--oe-dash-accent); color: #fff; box-shadow: 0 6px 16px rgba(44,92,240,.25); }
.oe-dash-nav .nav-link.disabled { color: #b7bcc7; }
.oe-dash-nav .nav-item.border-top { border-color: var(--oe-dash-border) !important; }
.oe-dash-topbar { border-bottom: 1px solid var(--oe-dash-border); background: var(--oe-dash-surface); }
.oe-dash-card { border: 1px solid var(--oe-dash-border); border-radius: var(--oe-radius-md); background: var(--oe-dash-surface); box-shadow: var(--oe-shadow-sm); padding: 1.5rem; transition: box-shadow .2s ease, transform .2s ease; }
.oe-badge-role { border-radius: 999px; background: rgba(44,92,240,.1); color: var(--oe-dash-accent); font-size: .72rem; font-weight: 700; letter-spacing: .02em; padding: .28rem .7rem; }

/* Dashboard forms: Bootstrap-classed inputs rendered via BootstrapFormMixin */
.oe-dash-body .form-control, .oe-dash-body .form-select {
  border: 1px solid var(--oe-dash-border);
  border-radius: 10px;
  padding: .62rem .85rem;
  background: #fff;
  font-size: .92rem;
}
.oe-dash-body .form-control:focus, .oe-dash-body .form-select:focus {
  border-color: var(--oe-dash-accent);
  box-shadow: 0 0 0 4px rgba(44,92,240,.12);
}
.oe-dash-body .form-check-input:checked { background-color: var(--oe-dash-accent); border-color: var(--oe-dash-accent); }
.oe-dash-body .form-label { font-weight: 600; font-size: .85rem; color: var(--oe-dash-ink); margin-bottom: .35rem; }
.oe-dash-body .btn-oe-primary, .oe-dash-body .btn-primary {
  border-radius: 10px; font-weight: 700; letter-spacing: 0; padding: .6rem 1.25rem;
  border-color: var(--oe-dash-accent); background: var(--oe-dash-accent); box-shadow: 0 8px 18px rgba(44,92,240,.22);
}
.oe-dash-body .btn-oe-primary:hover, .oe-dash-body .btn-primary:hover {
  border-color: #1e46c9; background: #1e46c9; transform: translateY(-1px);
}
.oe-dash-card.shadow-sm, .oe-dash-body .card.shadow-sm { border: 1px solid var(--oe-dash-border) !important; border-radius: var(--oe-radius-md) !important; box-shadow: var(--oe-shadow-sm) !important; }

/* Merchant live order queue: compact cards */
.oe-order-tabs .nav-link { font-weight: 700; font-size: .85rem; color: var(--oe-dash-ink); border-radius: 99px; padding: .4rem .9rem; }
.oe-order-tabs .nav-link.active { background: var(--oe-dash-accent); color: #fff; }
.oe-order-tabs .badge { color: inherit; }
.oe-order-row { border: 1px solid var(--oe-dash-border); border-radius: var(--oe-radius-md); background: var(--oe-dash-surface); box-shadow: var(--oe-shadow-sm); padding: 1rem 1.1rem; height: 100%; }
.oe-order-row-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .35rem; }
.oe-order-row-meta { margin-bottom: .2rem; }
.oe-order-row-items { color: var(--oe-dash-ink); margin: .5rem 0; padding-top: .5rem; border-top: 1px dashed var(--oe-dash-border); }
.oe-allergy-pill { display: inline-flex; align-items: center; gap: .35rem; margin-top: .35rem; padding: .25rem .6rem; border-radius: 99px; background: rgba(220,53,69,.1); color: #b3211a; font-size: .74rem; font-weight: 800; text-decoration: none; }
.oe-allergy-pill:hover { background: rgba(220,53,69,.18); color: #b3211a; }
.oe-order-actions { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--oe-dash-border); }
.oe-order-eta { width: auto; min-width: 9.5rem; }
@media (max-width: 575.98px) {
  .oe-order-actions { flex-direction: column; align-items: stretch; }
  .oe-order-actions .btn, .oe-order-actions select, .oe-order-eta { width: 100%; }
}

/* Merchant order detail page */
.oe-order-detail-section { border: 1px solid var(--oe-dash-border); border-radius: var(--oe-radius-md); background: var(--oe-dash-surface); box-shadow: var(--oe-shadow-sm); padding: 1.5rem; margin-bottom: 1.25rem; }

/* Dashboard overview */
.oe-dash-order-row { display: block; border: 1px solid var(--oe-dash-border); border-radius: 12px; padding: .65rem .9rem; color: var(--oe-dash-ink); transition: .15s ease; }
.oe-dash-order-row:hover { border-color: rgba(239,77,47,.4); background: rgba(239,77,47,.03); }
.oe-order-detail-section h2 { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--oe-dash-ink); opacity: .65; margin-bottom: .9rem; }
.oe-allergy-callout { border: 1px solid rgba(220,53,69,.35); background: rgba(220,53,69,.08); border-radius: 14px; padding: 1rem 1.1rem; color: #7a1710; }
.oe-order-line { border-bottom: 1px solid var(--oe-dash-border); padding: .6rem 0; }
.oe-order-line:last-child { border-bottom: 0; }

/* Menu item form: sticky jump nav + compact variant table inputs */
.oe-form-jumpnav { position: sticky; top: 1.5rem; }
.oe-form-jumpnav a { color: var(--oe-dash-ink); text-decoration: none; display: block; padding: .2rem 0; }
.oe-form-jumpnav a:hover { color: var(--oe-dash-accent); }
#oe-section-pricing table .form-control, #oe-section-pricing table .form-select { padding: .35rem .5rem; font-size: .85rem; }
@media (max-width: 991.98px) { .oe-form-jumpnav { position: static; margin-bottom: 1rem; } }

/* Guest shell (login / not-authorized) */
.oe-icon-circle { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: rgba(44,92,240,.1); color: var(--oe-dash-accent); font-size: 1.4rem; }
body.oe-dash-body .oe-container .oe-card { border: 1px solid var(--oe-dash-border); border-radius: var(--oe-radius-md); background: var(--oe-dash-surface); box-shadow: var(--oe-shadow-md); padding: 2rem; }

/* Keyboard accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(239,77,47,.55); outline-offset: 3px; }

@media (max-width: 991.98px) {
  .oe-hero { min-height: 660px; }
  .oe-hero .container { min-height: 660px; }
  .oe-order-panel { position: relative; right: auto; bottom: auto; width: 100%; margin: -3rem auto 0; }
  .oe-category-rail { top: 69px; }
}

@media (max-width: 767.98px) {
  .oe-topline { display: none; }
  .oe-navbar { min-height: 68px; }
  .oe-brand { font-size: 1rem; }
  .oe-brand-mark { width: 2.15rem; height: 2.15rem; }
  .oe-hero { min-height: 590px; }
  .oe-hero::before { background: linear-gradient(90deg, rgba(20,17,15,.98) 0%, rgba(20,17,15,.77) 67%, rgba(20,17,15,.36) 100%), url("../images/storefront-hero-burger.jpg") 59% center / cover no-repeat; }
  .oe-hero .container { min-height: 590px; align-items: flex-start; }
  .oe-hero-content { padding: 4.2rem 0 2rem; }
  .oe-hero h1 { font-size: clamp(3.15rem, 15vw, 4.5rem); }
  .oe-hero-copy { font-size: .95rem; }
  .oe-hero-points { gap: .6rem 1rem; font-size: .72rem; }
  .oe-order-panel { margin-top: -1.5rem; }
  .oe-order-panel .card-body { padding: 1.05rem; }
  .oe-category-rail { top: 68px; }
  .oe-category-title { display: block; }
  .oe-category-title p { margin-top: .45rem; }
  .oe-basket-mobile { bottom: .8rem; }
  .oe-section { padding: 4rem 0; }
}

@media (min-width: 768px) { .oe-basket-mobile { display: none; } }
@media (max-width: 767.98px) { body.oe-public-body { padding-bottom: 5.7rem; } }

/* Local fallback for Bootstrap's off-canvas component. This keeps the basket
   drawer correct if a CDN stylesheet is delayed or unavailable. */
.offcanvas { position: fixed !important; z-index: 1045 !important; top: 0 !important; bottom: 0 !important; display: flex !important; width: min(100vw, 420px) !important; max-width: 100% !important; flex-direction: column !important; background: #fffdf9 !important; background-clip: padding-box; outline: 0; visibility: hidden !important; transition: transform .32s ease, visibility .32s ease; }
.offcanvas.offcanvas-end { right: 0 !important; left: auto !important; border-left: 1px solid var(--oe-border); transform: translateX(100%) !important; }
.offcanvas.showing, .offcanvas.show:not(.hiding) { visibility: visible !important; transform: none !important; }
.offcanvas-header { display: flex; align-items: flex-start; justify-content: space-between; }
.offcanvas-body { flex-grow: 1; overflow-y: auto; }
.offcanvas-backdrop { position: fixed; z-index: 1040; inset: 0; background: #000; opacity: 0; transition: opacity .2s linear; }
.offcanvas-backdrop.show { opacity: .44; }

/* Essential navigation fallback for the responsive customer shell. */
.navbar { display: flex; align-items: center; }
.navbar-toggler { margin-left: auto; color: var(--oe-ink); }
@media (min-width: 992px) { .navbar-expand-lg .navbar-toggler { display: none; } .navbar-expand-lg .navbar-collapse { display: flex !important; flex-basis: auto; } }
@media (max-width: 991.98px) { .navbar-collapse { width: 100%; } .navbar-collapse:not(.show) { display: none; } .navbar-collapse.show { display: block; padding: .5rem 0 1rem; } }

/* ==========================================================================
   Merchant dashboard polish
   Everything below is scoped to .oe-dash-body so the customer storefront is
   never affected. Provides: the .oe-muted helper (previously undefined, which
   is why most secondary text rendered at full strength), a tidy responsive
   shell (sticky sidebar that becomes a slide-in drawer on small screens),
   consistent stat cards, and the merchant sign-in screen.
   ========================================================================== */
.oe-dash-body {
  --oe-dash-muted: #6b7280;
  --oe-dash-soft: #eef1f6;
  --oe-dash-accent-dark: #1e46c9;
  font-family: var(--oe-font-sans);
  -webkit-font-smoothing: antialiased;
}
.oe-dash-body .oe-muted { color: var(--oe-dash-muted); }
.oe-dash-body a:not(.btn):not(.nav-link):not(.oe-stat):not(.oe-dash-order-row):not(.oe-allergy-pill) { color: var(--oe-dash-accent); text-decoration: none; }
.oe-dash-body a:not(.btn):not(.nav-link):not(.oe-stat):not(.oe-dash-order-row):not(.oe-allergy-pill):hover { color: var(--oe-dash-accent-dark); text-decoration: underline; }
.oe-dash-body :focus-visible { outline: 3px solid rgba(44,92,240,.4); outline-offset: 2px; }
.oe-dash-body .btn-outline-secondary { --bs-btn-color: #475069; --bs-btn-border-color: var(--oe-dash-border); --bs-btn-hover-bg: var(--oe-dash-soft); --bs-btn-hover-border-color: #cfd5df; --bs-btn-hover-color: var(--oe-dash-ink); --bs-btn-active-bg: var(--oe-dash-soft); --bs-btn-active-color: var(--oe-dash-ink); border-radius: 10px; font-weight: 600; }
.oe-dash-body .oe-eyebrow { color: var(--oe-dash-muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; }
.oe-dash-body .oe-eyebrow::before { display: none; }

/* Shell */
.oe-dash-shell { display: flex; min-height: 100vh; }
.oe-dash-body .oe-dash-nav { position: sticky; top: 0; align-self: flex-start; flex: 0 0 248px; width: 248px; height: 100vh; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 1.1rem .85rem 1.5rem; z-index: 1040; }
.oe-dash-nav .oe-brand { display: block; padding: .25rem .5rem 1.1rem; margin: 0 0 .5rem; border-bottom: 1px solid var(--oe-dash-border); }
.oe-dash-nav .oe-brand-logo { max-width: 170px; }
.oe-dash-nav .nav-link { display: flex; align-items: center; gap: .65rem; padding: .55rem .8rem; font-size: .88rem; line-height: 1.25; }
.oe-dash-nav .nav-link i { margin: 0 !important; width: 1.15rem; font-size: 1.02rem; text-align: center; opacity: .75; flex: 0 0 auto; }
.oe-dash-nav .nav-link.active i { opacity: 1; }
.oe-dash-nav .nav-link:hover:not(.active) { background: var(--oe-dash-soft); }
.oe-dash-nav .oe-nav-label { display: block; padding: 0 .8rem; margin: 1.15rem 0 .35rem; color: #9097a6; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.oe-dash-nav .nav-item.border-top { margin-top: 1rem !important; padding-top: 0 !important; }
.oe-dash-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.oe-dash-body .oe-dash-topbar { position: sticky; top: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1.5rem; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); }
.oe-dash-user { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.oe-dash-avatar { display: grid; flex: 0 0 auto; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: rgba(44,92,240,.12); color: var(--oe-dash-accent); font-size: .82rem; font-weight: 800; text-transform: uppercase; }
.oe-dash-user-email { overflow: hidden; color: var(--oe-dash-muted); font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.oe-dash-content { flex: 1 1 auto; width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.75rem 1.5rem 2.5rem; }
.oe-dash-navtoggle { display: none; border: 1px solid var(--oe-dash-border); border-radius: 10px; background: #fff; color: var(--oe-dash-ink); width: 2.4rem; height: 2.4rem; font-size: 1.2rem; line-height: 1; }
.oe-dash-backdrop { display: none; }
@media (max-width: 991.98px) {
  .oe-dash-body .oe-dash-nav { position: fixed; top: 0; bottom: 0; left: 0; width: 272px; max-width: 86vw; transform: translateX(-102%); transition: transform .24s ease; box-shadow: none; }
  .oe-dash-body.oe-dash-navopen .oe-dash-nav { transform: none; box-shadow: 0 0 60px rgba(15,20,35,.35); }
  .oe-dash-body.oe-dash-navopen { overflow: hidden; }
  .oe-dash-body.oe-dash-navopen .oe-dash-backdrop { display: block; position: fixed; inset: 0; z-index: 1035; background: rgba(15,20,35,.45); }
  .oe-dash-navtoggle { display: inline-grid; place-items: center; }
  .oe-dash-body .oe-dash-topbar { padding: .6rem 1rem; }
  .oe-dash-content { padding: 1.25rem 1rem 2rem; }
  .oe-dash-viewstore span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .oe-dash-body .oe-dash-nav { transition: none; } }

/* Page header */
.oe-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.5rem; }
.oe-page-header h1 { margin: 0; font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.oe-page-header p { margin: .2rem 0 0; color: var(--oe-dash-muted); font-size: .92rem; }

/* Cards */
.oe-dash-body .oe-dash-card { box-shadow: 0 1px 2px rgba(20,28,45,.04), 0 8px 24px rgba(20,28,45,.05); border-radius: 16px; padding: 1.35rem; }
.oe-card-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; color: var(--oe-dash-ink); font-size: .95rem; font-weight: 800; letter-spacing: -.005em; text-transform: none; }
.oe-card-title i { color: var(--oe-dash-accent); font-size: 1.05rem; }
.oe-card-title .oe-card-link { margin-left: auto; font-size: .8rem; font-weight: 700; }

/* Stat tiles */
.oe-stat { position: relative; display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: 1.1rem 1.15rem; border: 1px solid var(--oe-dash-border); border-radius: 16px; background: var(--oe-dash-surface); box-shadow: 0 1px 2px rgba(20,28,45,.04), 0 8px 24px rgba(20,28,45,.05); color: var(--oe-dash-ink); text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
a.oe-stat:hover { color: var(--oe-dash-ink); border-color: rgba(44,92,240,.35); box-shadow: 0 10px 28px rgba(44,92,240,.12); transform: translateY(-2px); text-decoration: none; }
.oe-stat-icon { display: grid; width: 2.2rem; height: 2.2rem; place-items: center; margin-bottom: .55rem; border-radius: 10px; background: rgba(44,92,240,.1); color: var(--oe-dash-accent); font-size: 1.05rem; }
.oe-stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.oe-stat-label { color: var(--oe-dash-muted); font-size: .82rem; font-weight: 600; }
.oe-stat--alert .oe-stat-icon { background: rgba(245,158,11,.16); color: #b45309; }
.oe-stat--alert.is-active { border-color: rgba(245,158,11,.5); }
.oe-stat--ok .oe-stat-icon { background: rgba(33,135,84,.12); color: var(--oe-success); }
.oe-stat--info .oe-stat-icon { background: rgba(14,165,233,.13); color: #0369a1; }

/* Overview extras */
.oe-dash-body .oe-dash-order-row { padding: .75rem .95rem; border-radius: 12px; }
.oe-dash-body .oe-dash-order-row:hover { border-color: rgba(44,92,240,.4); background: rgba(44,92,240,.03); }
.oe-empty { display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.5rem 1rem; border: 1px dashed var(--oe-dash-border); border-radius: 12px; color: var(--oe-dash-muted); font-size: .9rem; text-align: center; }
.oe-empty i { font-size: 1.5rem; opacity: .55; }
.oe-quick-actions { display: grid; gap: .5rem; }
.oe-quick-actions .btn { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; text-align: left; }
.oe-quick-actions .btn i { opacity: .8; }
.oe-kv { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--oe-dash-soft); font-size: .9rem; }
.oe-kv:last-child { border-bottom: 0; padding-bottom: 0; }
.oe-kv:first-child { padding-top: 0; }
.oe-dash-body .oe-dash-footer { margin-top: auto; padding: 1rem 1.5rem; font-size: .8rem; opacity: .7; }

/* Merchant sign-in (and other guest screens on the dashboard shell) */
body.oe-dash-body.oe-dash-guest { min-height: 100vh; background: radial-gradient(900px 420px at 12% -8%, rgba(44,92,240,.14), transparent 60%), radial-gradient(760px 380px at 100% 0%, rgba(239,77,47,.09), transparent 60%), var(--oe-dash-bg); }
.oe-dash-body .oe-container { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; width: 100%; padding: 2rem 1rem; }
.oe-dash-body .oe-container > * { width: 100%; max-width: 420px; }
.oe-dash-body .oe-container > .oe-signin-brand { display: block; width: 190px; max-width: 70%; height: auto; margin: 0 auto 1.5rem; mix-blend-mode: multiply; }
.oe-signin-card { padding: 2.1rem 2rem 2rem; border: 1px solid var(--oe-dash-border); border-radius: 20px; background: var(--oe-dash-surface); box-shadow: 0 2px 4px rgba(20,28,45,.04), 0 24px 60px rgba(20,28,45,.12); }
.oe-signin-card h1 { margin: 0 0 .3rem; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.oe-signin-sub { margin: 0 0 1.5rem; color: var(--oe-dash-muted); font-size: .92rem; line-height: 1.5; }
.oe-signin-card .form-control { padding: .72rem .9rem; }
.oe-signin-card .input-group .form-control { border-right: 0; }
.oe-signin-card .input-group .btn { border: 1px solid var(--oe-dash-border); border-left: 0; border-radius: 0 10px 10px 0; background: #fff; color: var(--oe-dash-muted); }
.oe-signin-card .input-group .form-control { border-radius: 10px 0 0 10px; }
.oe-signin-card .btn-oe-primary { width: 100%; padding: .75rem 1rem; font-size: .95rem; }
.oe-signin-card .alert { border-radius: 12px; font-size: .88rem; padding: .7rem .9rem; }
.oe-signin-note { margin-top: 1.1rem; color: var(--oe-dash-muted); font-size: .8rem; text-align: center; }
.oe-signin-note a { font-weight: 700; }
.oe-dash-body .oe-container .oe-card { width: 100%; max-width: 440px; border-radius: 20px; padding: 2rem; }
@media (max-width: 420px) { .oe-signin-card { padding: 1.6rem 1.25rem; border-radius: 16px; } }

/* Email settings: "where your email is going" panel */
.oe-email-state { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 800; white-space: nowrap; }
.oe-email-state i { font-size: .5rem; }
.oe-email-state--ready { background: rgba(33,135,84,.12); color: var(--oe-success); }
.oe-email-state--attention { background: rgba(220,53,69,.1); color: #b3211a; }
.oe-email-state--test_mode { background: rgba(245,158,11,.16); color: #92580a; }
.oe-route-list { display: block; margin: 0; }
.oe-route-row { display: grid; grid-template-columns: minmax(10rem, 13rem) 1fr; gap: .25rem 1.25rem; padding: .8rem 0; border-top: 1px solid var(--oe-dash-soft); }
.oe-route-row:first-child { border-top: 0; padding-top: 0; }
.oe-route-row dt { margin: 0; color: var(--oe-dash-muted); font-size: .85rem; font-weight: 600; }
.oe-route-row dd { margin: 0; min-width: 0; font-weight: 700; overflow-wrap: break-word; }
.oe-route-note { display: inline-block; margin-left: .5rem; color: var(--oe-dash-muted); font-size: .8rem; font-weight: 500; }
.oe-route-note::before { content: "\00b7\00a0"; }
.oe-route-note:empty { display: none; }
.oe-tip { display: flex; gap: .75rem; padding: .9rem 1rem; border: 1px solid rgba(245,158,11,.35); border-radius: 12px; background: rgba(245,158,11,.08); color: #6b4a0a; font-size: .86rem; line-height: 1.5; }
.oe-tip > i { flex: 0 0 auto; margin-top: .1rem; color: #b7791f; font-size: 1.05rem; }
@media (max-width: 575.98px) { .oe-route-row { grid-template-columns: 1fr; } }

/* Cookie notice + legal pages */
.oe-cookie-banner { position: fixed; z-index: 1080; left: 1rem; right: 1rem; bottom: 1rem; max-width: 34rem; margin: 0 auto; padding: 1rem 1.15rem; border-radius: 16px; background: #fff; color: #1d1b19; box-shadow: 0 12px 40px rgba(0,0,0,.28); border: 1px solid rgba(0,0,0,.08); }
.oe-cookie-banner[hidden] { display: none; }
.oe-legal { max-width: 46rem; margin: 0 auto; line-height: 1.7; }
.oe-legal p { margin-bottom: 1.1rem; white-space: pre-line; }

/* Toggle row: switch + label with a proper gap */
.oe-sw { display: flex; align-items: center; gap: .65rem; }
.oe-sw .form-check-input { float: none; margin: 0; flex: 0 0 auto; }
.oe-sw label { margin: 0; cursor: pointer; }

/* Staff access switches */
.oe-access-list { border: 1px solid var(--oe-dash-border); border-radius: 12px; overflow: hidden; }
.oe-access-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: .85rem 1rem; background: var(--oe-dash-surface); cursor: pointer; transition: background .15s ease; }
.oe-access-row + .oe-access-row { border-top: 1px solid var(--oe-dash-soft); }
.oe-access-row:hover { background: #f8f9fc; }
.oe-access-text { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.oe-access-title { font-weight: 700; font-size: .92rem; }
.oe-access-desc { color: var(--oe-dash-muted); font-size: .8rem; line-height: 1.4; }
.oe-sw-wrap { flex: 0 0 auto; }
.oe-sw-wrap .form-check-input { float: none; margin: 0; width: 2.6em; height: 1.4em; cursor: pointer; }
.oe-area-pill { display: inline-block; margin: .1rem .15rem .1rem 0; padding: .1rem .55rem; border-radius: 999px; background: var(--oe-dash-soft); color: #4b5565; font-size: .75rem; font-weight: 600; white-space: nowrap; }
.oe-dash-body .form-control-plaintext { padding: .35rem 0; }
