/* BestilMad design system, ported from mockups/_shared/bm.css (which stays the
   designers' reference). Components use the --bm-* tokens only, so a theme is
   just a different set of values. */

@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Lora:wght@400;500;600;700&family=Noto+Color+Emoji&family=Nunito:wght@400;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  /* Brand */
  --bm-primary: #E4572E;        /* tomato */
  --bm-primary-ink: #fff;
  --bm-primary-soft: #FDE8E1;
  --bm-primary-dark: #B83F1C;
  --bm-accent: #F2B33D;         /* saffron */
  --bm-accent-soft: #FDF1D8;
  --bm-green: #2E9E6A;          /* basil: open, success */
  --bm-green-soft: #DFF3E9;
  --bm-red: #D33A3A;            /* errors only, not brand */
  --bm-red-soft: #FBE3E3;
  --bm-blue: #2F6FDE;           /* info, links in backoffice */
  --bm-blue-soft: #E3ECFC;
  --bm-green-ink: #fff;         /* text on --bm-green */
  --bm-red-ink: #fff;           /* text on --bm-red */
  --bm-accent-ink: #8A5A00;     /* text on --bm-accent-soft */
  --bm-ink-strong: #000;        /* hover on dark buttons */

  /* Neutrals (warm) */
  --bm-bg: #FBF7F2;
  --bm-surface: #FFFFFF;
  --bm-surface-2: #F5EFE7;
  --bm-line: #EAE2D7;
  --bm-ink: #1F1A15;
  --bm-ink-2: #5B5248;
  --bm-ink-3: #8F857A;
  --bm-knob: #fff;              /* switch thumb */
  --bm-scrim: rgba(20, 17, 14, .45);
  --bm-scrim-strong: rgba(20, 17, 14, .5);
  --bm-map-bg: #E9EFE6;

  /* Illustrated food tiles (per dish, --bm-food-bg can be set inline) */
  --bm-food-bg: linear-gradient(135deg, #FFE1C7, #FBB98C);
  --bm-food-shine: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 55%), radial-gradient(circle at 80% 90%, rgba(0,0,0,.08), transparent 50%);
  --bm-food-drop: drop-shadow(0 10px 14px rgba(0,0,0,.18));
  /* Backgrounds a restaurant can pick for a dish illustration (BAGGRUNDE in src/shared/allergener.ts) */
  --bm-food-bg-pizza: linear-gradient(135deg, #FFE0C2, #F7A66B);
  --bm-food-bg-pasta: linear-gradient(135deg, #FFF1C9, #F4C55B);
  --bm-food-bg-salat: linear-gradient(135deg, #E3F5D8, #9AD38A);
  --bm-food-bg-starter: linear-gradient(135deg, #FCE3D9, #EE9C86);
  --bm-food-bg-dessert: linear-gradient(135deg, #F8E1F0, #E3A3CB);
  --bm-food-bg-drik: linear-gradient(135deg, #DDEFFB, #8EC3EC);
  --bm-food-bg-burger: linear-gradient(135deg, #FBE5C8, #E2A15E);
  --bm-food-bg-sushi: linear-gradient(135deg, #E5EEF7, #A9C2DE);
  --bm-frame: #1F1A15;          /* phone frame around previews */

  /* Shape and depth */
  --bm-r-sm: 8px;
  --bm-r-md: 12px;              /* inputs, small tiles */
  --bm-r: 14px;
  --bm-r-lg: 22px;
  --bm-r-pill: 999px;
  --bm-shadow-sm: 0 1px 2px rgba(31, 26, 21, .06), 0 1px 1px rgba(31, 26, 21, .04);
  --bm-shadow: 0 6px 20px rgba(31, 26, 21, .08), 0 2px 6px rgba(31, 26, 21, .05);
  --bm-shadow-lg: 0 24px 60px rgba(31, 26, 21, .16);

  --bm-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif, "Noto Color Emoji";
  --bm-gutter: 16px;
  --bm-max: 1180px;
  --bm-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Dark theme: kitchen display and anything with body.bm-dark */
.bm-dark {
  --bm-bg: #14110E;
  --bm-surface: #211C17;
  --bm-surface-2: #2B251F;
  --bm-line: #3A322A;
  --bm-ink: #F6F0E8;
  --bm-ink-2: #C9BEB1;
  --bm-ink-3: #8F857A;
  --bm-primary-soft: #4A2418;
  --bm-green-soft: #163A2A;
  --bm-accent-soft: #43341A;
  --bm-red-soft: #4A1D1D;
  --bm-blue-soft: #1B2A47;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--bm-font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--bm-ink);
  background: var(--bm-bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); font-weight: 800; }
h2 { font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
h4 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 1em; }
.bm-muted { color: var(--bm-ink-2); }
.bm-faint { color: var(--bm-ink-3); }
.bm-small { font-size: 14px; }
.bm-tiny { font-size: 12px; }
.bm-num { font-variant-numeric: tabular-nums; }
.bm-center { text-align: center; }
.bm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
.bm-container { width: 100%; max-width: var(--bm-max); margin: 0 auto; padding: 0 var(--bm-gutter); }
.bm-narrow { max-width: 640px; }
.bm-stack > * + * { margin-top: 12px; }
.bm-stack-lg > * + * { margin-top: 24px; }
.bm-row { display: flex; align-items: center; gap: 12px; }
.bm-row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bm-wrap { flex-wrap: wrap; }
.bm-grow { flex: 1; min-width: 0; }
.bm-grid { display: grid; gap: 16px; }
.bm-grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bm-grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bm-grid-4 { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .bm-grid-3, .bm-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .bm-grid-2, .bm-grid-3, .bm-grid-4 { grid-template-columns: 1fr; } }
.bm-section { padding: 56px 0; }
@media (max-width: 600px) { .bm-section { padding: 36px 0; } }

/* ---------- Buttons ---------- */
.bm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--bm-r-pill);
  border: 1.5px solid transparent; background: var(--bm-surface-2); color: var(--bm-ink);
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--bm-ease), background .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent; white-space: nowrap;
}
.bm-btn:hover { background: var(--bm-line); }
.bm-btn:active { transform: scale(.97); }
.bm-btn:focus-visible, .bm-input:focus-visible, .bm-chip:focus-visible { outline: 3px solid color-mix(in srgb, var(--bm-primary) 40%, transparent); outline-offset: 2px; }
.bm-btn-primary { background: var(--bm-primary); color: var(--bm-primary-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--bm-primary) 30%, transparent); }
.bm-btn-primary:hover { background: var(--bm-primary-dark); }
.bm-btn-dark { background: var(--bm-ink); color: var(--bm-bg); }
.bm-btn-dark:hover { background: var(--bm-ink-strong); }
.bm-btn-green { background: var(--bm-green); color: var(--bm-green-ink); }
.bm-btn-ghost { background: transparent; border-color: var(--bm-line); }
.bm-btn-ghost:hover { background: var(--bm-surface-2); }
.bm-btn-danger { background: var(--bm-red-soft); color: var(--bm-red); }
.bm-btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.bm-btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.bm-btn-block { width: 100%; }
.bm-btn-icon { width: 44px; min-height: 44px; padding: 0; border-radius: 50%; }
.bm-btn[disabled], .bm-btn.is-disabled { opacity: .45; pointer-events: none; }
.bm-btn-split { justify-content: space-between; }
.bm-link { color: var(--bm-primary); font-weight: 700; text-decoration: none; }
.bm-link:hover { text-decoration: underline; }

/* ---------- Cards and surfaces ---------- */
.bm-card { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); padding: 20px; box-shadow: var(--bm-shadow-sm); }
.bm-card-flat { background: var(--bm-surface); border-radius: var(--bm-r); padding: 20px; }
.bm-card-hover { transition: transform .2s var(--bm-ease), box-shadow .2s; cursor: pointer; }
.bm-card-hover:hover { transform: translateY(-2px); box-shadow: var(--bm-shadow); }
.bm-divider { height: 1px; background: var(--bm-line); border: 0; margin: 16px 0; }
.bm-list { list-style: none; margin: 0; padding: 0; }
.bm-list > li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--bm-line); }
.bm-list > li:last-child { border-bottom: 0; }
.bm-list-link { display: flex; align-items: center; gap: 12px; padding: 14px 4px; border-bottom: 1px solid var(--bm-line); text-decoration: none; }
.bm-list-link::after { content: "›"; margin-left: auto; color: var(--bm-ink-3); font-size: 22px; line-height: 1; }

/* ---------- Badges, chips, tags ---------- */
.bm-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--bm-r-pill); font-size: 12px; font-weight: 700; background: var(--bm-surface-2); color: var(--bm-ink-2); white-space: nowrap; }
.bm-badge-green { background: var(--bm-green-soft); color: var(--bm-green); }
.bm-badge-red { background: var(--bm-red-soft); color: var(--bm-red); }
.bm-badge-accent { background: var(--bm-accent-soft); color: var(--bm-accent-ink); }
.bm-badge-primary { background: var(--bm-primary-soft); color: var(--bm-primary-dark); }
.bm-badge-blue { background: var(--bm-blue-soft); color: var(--bm-blue); }
.bm-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }
.bm-dot-pulse { animation: bm-pulse 1.6s infinite; }
@keyframes bm-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.bm-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: var(--bm-r-pill); border: 1.5px solid var(--bm-line); background: var(--bm-surface); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.bm-chip.is-active, .bm-chip[aria-pressed="true"] { background: var(--bm-ink); border-color: var(--bm-ink); color: var(--bm-bg); }
.bm-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.bm-chips::-webkit-scrollbar { display: none; }

/* ---------- Segmented control ---------- */
.bm-seg { display: inline-flex; background: var(--bm-surface-2); border-radius: var(--bm-r-pill); padding: 4px; gap: 2px; }
.bm-seg button, .bm-seg a { border: 0; background: transparent; padding: 8px 18px; border-radius: var(--bm-r-pill); font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; color: var(--bm-ink-2); }
.bm-seg .is-active { background: var(--bm-surface); color: var(--bm-ink); box-shadow: var(--bm-shadow-sm); }
.bm-seg-block { display: flex; }
.bm-seg-block > * { flex: 1; text-align: center; }

/* ---------- Forms ---------- */
.bm-field { display: block; }
.bm-field + .bm-field { margin-top: 14px; }
.bm-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.bm-hint { font-size: 13px; color: var(--bm-ink-3); margin-top: 6px; }
.bm-input, .bm-select, .bm-textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--bm-r-md);
  border: 1.5px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink);
  transition: border-color .15s, box-shadow .15s;
}
.bm-textarea { min-height: 96px; resize: vertical; }
.bm-input:focus, .bm-select:focus, .bm-textarea:focus { outline: 0; border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-soft); }
.bm-input.is-error { border-color: var(--bm-red); }
.bm-input-group { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--bm-line); border-radius: var(--bm-r-md); background: var(--bm-surface); padding: 0 14px; min-height: 50px; }
.bm-input-group:focus-within { border-color: var(--bm-primary); box-shadow: 0 0 0 4px var(--bm-primary-soft); }
.bm-input-group.is-error { border-color: var(--bm-red); }
.bm-input-group input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; width: 100%; min-height: 46px; }
.bm-check { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--bm-line); border-radius: var(--bm-r-md); background: var(--bm-surface); cursor: pointer; }
.bm-check + .bm-check { margin-top: 8px; }
.bm-check:has(input:checked) { border-color: var(--bm-ink); box-shadow: inset 0 0 0 1px var(--bm-ink); }
.bm-check input { width: 20px; height: 20px; accent-color: var(--bm-primary); margin: 0; flex: none; }
.bm-switch { position: relative; width: 48px; height: 28px; flex: none; }
.bm-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.bm-switch span { position: absolute; inset: 0; background: var(--bm-line); border-radius: var(--bm-r-pill); transition: background .2s; cursor: pointer; }
.bm-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--bm-knob); box-shadow: var(--bm-shadow-sm); transition: transform .2s var(--bm-ease); }
.bm-switch input:checked + span { background: var(--bm-green); }
.bm-switch input:checked + span::after { transform: translateX(20px); }

/* Quantity stepper */
.bm-qty { display: inline-flex; align-items: center; gap: 4px; background: var(--bm-surface-2); border-radius: var(--bm-r-pill); padding: 4px; }
.bm-qty button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--bm-surface); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: var(--bm-shadow-sm); line-height: 1; }
.bm-qty output, .bm-qty span { min-width: 28px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Stepper (multi-step flows) */
.bm-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.bm-steps li { flex: 1; height: 6px; border-radius: 6px; background: var(--bm-line); }
.bm-steps li.is-done, .bm-steps li.is-active { background: var(--bm-primary); }
.bm-steps-label { font-size: 13px; font-weight: 700; color: var(--bm-ink-3); margin-bottom: 8px; }

/* ---------- Customer top bar ---------- */
.bm-topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bm-bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--bm-line); }
.bm-topbar-inner { display: flex; align-items: center; gap: 12px; height: 64px; }
.bm-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.bm-brand-mark { width: 36px; height: 36px; border-radius: var(--bm-r-md); display: grid; place-items: center; background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 19px; box-shadow: var(--bm-shadow-sm); }
.bm-topbar-title { font-weight: 800; font-size: 17px; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Centred title next to a back button (kundeTop): centred on the bar itself. */
.bm-topbar-inner.has-center-title { position: relative; }
.bm-topbar-title-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); flex: none; max-width: calc(100% - 2 * 64px); pointer-events: none; }
@media (min-width: 761px) { .bm-topbar-title-center { max-width: 34%; } }
.bm-back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; background: var(--bm-surface); border: 1px solid var(--bm-line); font-size: 20px; flex: none; }
.bm-nav-links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.bm-nav-links a { padding: 8px 14px; border-radius: var(--bm-r-pill); text-decoration: none; font-weight: 600; font-size: 15px; color: var(--bm-ink-2); }
.bm-nav-links a:hover, .bm-nav-links a.is-active { background: var(--bm-surface-2); color: var(--bm-ink); }
@media (max-width: 760px) { .bm-nav-links .bm-hide-mobile { display: none; } }

/* Cart pill in top bar */
.bm-cart-pill { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: var(--bm-r-pill); background: var(--bm-ink); color: var(--bm-bg); text-decoration: none; font-weight: 700; font-size: 14px; }
.bm-nav-links a.bm-cart-pill, .bm-nav-links a.bm-cart-pill:hover { background: var(--bm-ink); color: var(--bm-bg); }
.bm-cart-count { min-width: 22px; height: 22px; border-radius: var(--bm-r-pill); background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 12px; display: grid; place-items: center; padding: 0 6px; }

/* Customer bottom tab bar (mobile account area) */
.bm-tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: none; background: var(--bm-surface); border-top: 1px solid var(--bm-line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); }
.bm-tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; font-size: 11px; font-weight: 700; color: var(--bm-ink-3); padding: 6px 0; }
.bm-tabbar a .bm-ico { font-size: 22px; line-height: 1; }
.bm-tabbar a.is-active { color: var(--bm-primary); }
@media (max-width: 760px) { .bm-tabbar { display: flex; } body.has-tabbar { padding-bottom: 76px; } }

/* Sticky bottom action bar (cart, checkout CTA) */
.bm-actionbar { position: sticky; bottom: 0; z-index: 30; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to top, var(--bm-bg) 70%, transparent); }
.bm-actionbar-fixed { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--bm-gutter) calc(12px + env(safe-area-inset-bottom)); }

/* ---------- Food visuals (no photos: illustrated tiles) ---------- */
.bm-food { text-decoration: none; position: relative; aspect-ratio: 4 / 3; border-radius: var(--bm-r); overflow: hidden; display: grid; place-items: center; background: var(--bm-food-bg); }
.bm-food::before { content: ""; position: absolute; inset: 0; background: var(--bm-food-shine); }
.bm-food > .bm-food-emoji { position: relative; font-size: clamp(44px, 9vw, 72px); filter: var(--bm-food-drop); transform: rotate(-6deg); }
.bm-food-sq { aspect-ratio: 1; }
.bm-food-sm { width: 88px; flex: none; aspect-ratio: 1; border-radius: var(--bm-r-md); }
.bm-food-sm > .bm-food-emoji { font-size: 40px; }
.bm-food-xs { width: 52px; flex: none; aspect-ratio: 1; border-radius: var(--bm-r-sm); }
.bm-food-xs > .bm-food-emoji { font-size: 26px; }
.bm-food-hero { aspect-ratio: auto; min-height: 260px; border-radius: var(--bm-r-lg); }
.bm-food-hero > .bm-food-emoji { font-size: 120px; }
.bm-food-bg-pizza { --bm-food-bg: var(--bm-food-bg-pizza); }
.bm-food-bg-pasta { --bm-food-bg: var(--bm-food-bg-pasta); }
.bm-food-bg-salat { --bm-food-bg: var(--bm-food-bg-salat); }
.bm-food-bg-starter { --bm-food-bg: var(--bm-food-bg-starter); }
.bm-food-bg-dessert { --bm-food-bg: var(--bm-food-bg-dessert); }
.bm-food-bg-drik { --bm-food-bg: var(--bm-food-bg-drik); }
.bm-food-bg-burger { --bm-food-bg: var(--bm-food-bg-burger); }
.bm-food-bg-sushi { --bm-food-bg: var(--bm-food-bg-sushi); }
/* A photo replaces the illustration; v1 does not resize uploads, the tile crops them. */
.bm-food > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bm-food.has-photo::before { display: none; }

/* Menu item card */
.bm-item { display: flex; gap: 14px; padding: 14px; background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); text-decoration: none; transition: box-shadow .2s, transform .2s var(--bm-ease); }
.bm-item:hover { box-shadow: var(--bm-shadow); transform: translateY(-1px); }
.bm-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bm-item-name { font-weight: 700; font-size: 16px; }
.bm-item-desc { font-size: 14px; color: var(--bm-ink-2); margin: 2px 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bm-item-price { font-weight: 800; margin-top: auto; font-variant-numeric: tabular-nums; }
.bm-item-add { width: 36px; height: 36px; border-radius: 50%; background: var(--bm-primary); color: var(--bm-primary-ink); display: grid; place-items: center; font-size: 22px; font-weight: 700; margin-top: auto; border: 0; cursor: pointer; flex: none; align-self: flex-end; }
.bm-item.is-soldout { opacity: .55; }

/* ---------- Customer ordering page (/r/:slug) ----------
   Stable class names a restaurant's own CSS may target; see docs/TEMA.md. */
.bm-logo { width: 36px; height: 36px; border-radius: var(--bm-r-md); object-fit: cover; }
.bm-menu { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; padding-bottom: 56px; }
.bm-menu-head { padding: 20px 0 8px; }
.bm-menu-head h1 { margin-top: 4px; }
.bm-kategori-nav { position: sticky; top: 64px; z-index: 20; background: var(--bm-bg); margin: 0 calc(-1 * var(--bm-gutter)); padding: 10px var(--bm-gutter); border-bottom: 1px solid var(--bm-line); }
.bm-kategori { scroll-margin-top: 140px; padding-top: 24px; }
.bm-retter { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bm-ret { display: flex; gap: 12px; padding: 14px; background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); }
.bm-ret-tekst { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bm-ret-maerker { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.bm-ret-allergener { font-size: 12.5px; color: var(--bm-ink-3); margin: 0 0 8px; }
.bm-ret-navn { font-weight: 700; font-size: 16px; }
.bm-ret-beskrivelse { font-size: 14px; color: var(--bm-ink-2); margin: 0 0 8px; }
.bm-ret-pris { font-weight: 800; margin-top: auto; font-variant-numeric: tabular-nums; }
.bm-ret.is-udsolgt { opacity: .55; }
.bm-kurv { position: sticky; top: 84px; }
.bm-empty.bm-kurv-tom { padding: 16px 0; }
.bm-aabning { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 8px; font-size: 14px; color: var(--bm-ink-2); }
.bm-aabning-status { display: inline-flex; align-items: center; gap: 8px; color: var(--bm-ink); }
.bm-aabning-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bm-green); }
.bm-aabning.is-lukket .bm-aabning-status::before { background: var(--bm-red); }
.bm-aabningstider { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.bm-aabningstider td { padding: 4px 0; }
.bm-aabningstider td:last-child { text-align: right; }
@media (max-width: 960px) { .bm-menu { grid-template-columns: minmax(0, 1fr); } .bm-kurv { position: static; } }
@media (max-width: 640px) { .bm-retter { grid-template-columns: 1fr; } }

/* ---------- Ordering (customer) ---------- */
.bm-hero { margin-top: 20px; padding: 32px; border-radius: var(--bm-r-lg); background: linear-gradient(135deg, var(--bm-primary-soft) 0%, color-mix(in srgb, var(--bm-accent) 45%, var(--bm-primary-soft)) 60%, color-mix(in srgb, var(--bm-primary) 55%, var(--bm-primary-soft)) 100%); }
.bm-hero h1 { margin: 10px 0 4px; }
.bm-hero-adresse { margin: 0; color: var(--bm-ink-2); }
.bm-hero-maerker { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-hero-maerker .bm-badge { background: color-mix(in srgb, var(--bm-surface) 85%, transparent); color: var(--bm-ink); font-size: 13px; padding: 5px 12px; }
@media (max-width: 640px) { .bm-hero { padding: 22px 18px; } }
.bm-tidspunkt { margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.bm-tidspunkt legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.bm-tidspunkt-valg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bm-tidspunkt .bm-check { padding: 10px 14px; }
.bm-tidspunkt .bm-check + .bm-check { margin-top: 0; }
.bm-tidspunkt-kl { width: auto; }
.bm-tidspunkt-kl:disabled { opacity: .5; }

/* Pickup time page: "Hurtigst muligt" card and today's slot grid. */
.bm-tidsrum { max-width: 760px; margin: 0 auto; padding: 24px 0 0; }
.bm-tidsrum h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 6px; }
.bm-tidsrum-hurtigst { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 20px; padding: 18px 20px; border-radius: var(--bm-r); border: 1.5px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink); font: inherit; text-align: left; cursor: pointer; }
.bm-tidsrum-hurtigst strong { display: block; font-size: 17px; }
.bm-tidsrum-hurtigst small { font-size: 13px; color: var(--bm-ink-3); font-weight: 600; }
.bm-tidsrum-ikon { font-size: 26px; }
.bm-tidsrum-titel { margin: 28px 0 0; }
.bm-tidsrum-del { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--bm-ink-3); margin: 18px 0 8px; }
.bm-tidsrum-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.bm-tidsrum-slot { min-height: 52px; border-radius: var(--bm-r-md); border: 1.5px solid var(--bm-line); background: var(--bm-surface); color: var(--bm-ink); font: inherit; font-weight: 800; font-variant-numeric: tabular-nums; cursor: pointer; transition: transform .12s var(--bm-ease); }
.bm-tidsrum-slot:hover, .bm-tidsrum-hurtigst:hover { border-color: var(--bm-ink-2); }
.bm-tidsrum-slot:active { transform: scale(.96); }
.bm-tidsrum-slot:disabled { background: var(--bm-surface-2); color: var(--bm-ink-3); border-style: dashed; text-decoration: line-through; cursor: not-allowed; }
.bm-tidsrum-slot.is-active, .bm-tidsrum-hurtigst.is-active { background: var(--bm-primary); border-color: var(--bm-primary); color: var(--bm-primary-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--bm-primary) 30%, transparent); }
.bm-tidsrum-hurtigst.is-active small { color: var(--bm-primary-ink); }
.bm-tidsrum-bar { position: sticky; bottom: 0; padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); margin-top: 24px; background: linear-gradient(to top, var(--bm-bg) 75%, transparent); }

/* Closed-now page: when it opens again, pre-order or browse, the week's hours. */
.bm-lukket-side { max-width: 980px; padding-bottom: 40px; }
.bm-lukket { margin-top: 20px; padding: 48px 32px 40px; border-radius: var(--bm-r-lg); text-align: center; color: var(--bm-surface); background: linear-gradient(180deg, color-mix(in srgb, var(--bm-ink) 92%, var(--bm-primary)) 0%, color-mix(in srgb, var(--bm-ink) 70%, var(--bm-primary)) 100%); }
.bm-lukket h1 { color: inherit; margin: 0 0 6px; }
.bm-lukket p { margin: 0; font-size: 17px; color: color-mix(in srgb, var(--bm-surface) 85%, transparent); }
.bm-lukket strong { color: var(--bm-surface); }
.bm-lukket-maane { font-size: 72px; line-height: 1; margin-bottom: 16px; }
.bm-lukket-veje { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.bm-lukket-vej { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--bm-r); background: var(--bm-surface); border: 1px solid var(--bm-line); color: var(--bm-ink); text-decoration: none; }
.bm-lukket-vej:hover { box-shadow: var(--bm-shadow); }
.bm-lukket-vej strong { display: block; }
.bm-lukket-vej small { font-size: 13px; color: var(--bm-ink-3); }
.bm-lukket-vej.is-primaer { background: var(--bm-primary); border-color: var(--bm-primary); color: var(--bm-primary-ink); }
.bm-lukket-vej.is-primaer small { color: color-mix(in srgb, var(--bm-primary-ink) 80%, transparent); }
.bm-lukket-ikon { font-size: 28px; }
.bm-lukket-uge { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.bm-lukket-uge div { text-align: center; padding: 10px 2px; border-radius: var(--bm-r-md); background: var(--bm-surface-2); font-size: 12px; font-weight: 700; color: var(--bm-ink-2); font-variant-numeric: tabular-nums; }
.bm-lukket-uge b { display: block; font-size: 14px; color: var(--bm-ink); }
.bm-lukket-uge small { display: block; font-weight: 600; color: var(--bm-ink-3); }
.bm-lukket-uge div.is-naeste { background: var(--bm-primary-soft); color: var(--bm-primary-dark); box-shadow: inset 0 0 0 2px var(--bm-primary); }
@media (max-width: 760px) {
  .bm-lukket { padding: 32px 20px 28px; margin-top: 14px; }
  .bm-lukket-veje { grid-auto-flow: row; }
  .bm-lukket-uge { gap: 4px; }
  .bm-lukket-uge div { padding: 8px 0; font-size: 10px; }
  .bm-lukket-uge b { font-size: 11px; }
}

/* The dish name's link covers the card; the add button sits above it. */
.bm-ret { position: relative; }
a.bm-ret-navn { text-decoration: none; }
a.bm-ret-navn::after { content: ""; position: absolute; inset: 0; border-radius: var(--bm-r); }
.bm-ret-billede { position: relative; flex: none; align-self: flex-start; }
.bm-ret-billede:empty { display: none; }
.bm-ret-tilfoej { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; margin: 8px 0 0 auto; border: 0; border-radius: 50%; background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 22px; font-weight: 800; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: var(--bm-shadow-sm); transition: transform .2s var(--bm-ease); }
.bm-ret-tilfoej:hover { background: var(--bm-primary-dark); }
.bm-ret-tilfoej.is-tilfoejet { transform: scale(1.2); background: var(--bm-green); color: var(--bm-green-ink); }
.bm-food-sm + .bm-ret-tilfoej { position: absolute; right: 6px; bottom: 6px; margin: 0; }
.bm-menu-fod { margin-top: 28px; }

.bm-kurv-linje { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--bm-line); font-size: 14px; }
.bm-kurv-linje:last-child { border-bottom: 0; }
.bm-kurv-linje-navn { font-weight: 700; text-decoration: none; }
.bm-kurv-linje-valg { font-size: 13px; color: var(--bm-ink-2); }
.bm-kurv-linje-note { font-size: 13px; color: var(--bm-ink-3); font-style: italic; }
.bm-kurv-linje-fejl { font-size: 13px; font-weight: 700; color: var(--bm-red); margin-top: 4px; }
.bm-kurv-linje.is-fejl .bm-kurv-linje-beloeb, .bm-kurv-linje.is-fejl .bm-kurv-linje-valg { text-decoration: line-through; color: var(--bm-ink-3); }
.bm-kurv-linje-beloeb { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bm-kurv-linje-styr { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.bm-kurv-linje-styr .bm-qty button { width: 32px; height: 32px; font-size: 18px; }
.bm-kurv-linje-styr .bm-qty button[disabled] { opacity: .4; cursor: default; }
.bm-kurv-fjern { border: 0; background: transparent; color: var(--bm-ink-3); font-weight: 700; font-size: 13px; cursor: pointer; padding: 6px; border-radius: var(--bm-r-sm); }
.bm-kurv-fjern:hover { color: var(--bm-red); background: var(--bm-red-soft); }
.bm-kurv-total { margin-top: 12px; }
.bm-kurv-total tr.bm-kurv-moms td { font-size: 13px; color: var(--bm-ink-3); padding-top: 0; }
.bm-kurv-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px var(--bm-gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--bm-surface); border-top: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); }
@media (max-width: 960px) {
  .bm-kurv-bar:not([hidden]) { display: block; }
  .bm-side:has(.bm-kurv-bar:not([hidden])) { padding-bottom: 92px; }
}

.bm-trin { display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 18px; }
.bm-trin li { flex: 1; font-size: 12px; font-weight: 700; color: var(--bm-ink-3); }
.bm-trin li::before { content: ""; display: block; height: 6px; border-radius: var(--bm-r-sm); background: var(--bm-line); margin-bottom: 6px; }
.bm-trin li.is-done::before, .bm-trin li.is-active::before { background: var(--bm-primary); }
.bm-trin li.is-active { color: var(--bm-ink); }

.bm-kurv-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding: 24px 0 40px; max-width: 1080px; margin: 0 auto; }
.bm-kurv-side h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
.bm-kurv-linjer { padding: 4px 20px; }
.bm-kurv-opsummering { position: sticky; top: 88px; }
@media (max-width: 960px) { .bm-kurv-side { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 16px; } .bm-kurv-opsummering { position: static; } }
@media (max-width: 760px) { .bm-side:has(.bm-kurv-bar.bm-only-mobile) { padding-bottom: 92px; } }

/* Checkout after the pickup time: contact, payment, the summary beside them. */
.bm-kurv-side form h2 { font-size: 19px; margin: 28px 0 12px; }
.bm-kontakt-to { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.bm-kontakt-to .bm-field + .bm-field { margin-top: 0; }
.bm-kontakt-fejl { color: var(--bm-red); font-size: 13px; font-weight: 600; margin-top: 6px; }
.bm-input.is-error { border-color: var(--bm-red); }
@media (max-width: 760px) { .bm-kontakt-to { grid-template-columns: 1fr; gap: 14px; } }
.bm-opsummering-linje { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bm-line); font-size: 14px; }
.bm-opsummering-antal { font-weight: 800; color: var(--bm-primary); min-width: 24px; }
.bm-opsummering-valg { font-size: 14px; margin-top: 4px; }
.bm-opsummering-valg > div { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--bm-line); }
.bm-opsummering-valg > div[hidden] { display: none; }
.bm-opsummering-valg a { margin-left: auto; font-size: 13px; }
.bm-betaling-peek { padding: 12px 16px; }
.bm-betalingsmetode { padding: 16px; }
.bm-betalingsmetode-ikon { width: 48px; height: 34px; border-radius: var(--bm-r-sm); display: grid; place-items: center; flex: none; font-size: 20px; background: var(--bm-surface-2); }
.bm-betalingsmetode:has(input:checked) { border-color: var(--bm-ink); box-shadow: inset 0 0 0 1px var(--bm-ink); }
.bm-vilkaar { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; font-size: 14px; cursor: pointer; }
.bm-vilkaar input { width: 20px; height: 20px; accent-color: var(--bm-primary); margin: 1px 0 0; flex: none; }
.bm-vilkaar.is-fejl { color: var(--bm-red); }
.bm-betaling-reserveres { text-align: center; margin: 10px 0 0; }
.bm-kurv-bar .bm-betaling-reserveres { margin-top: 6px; }
@media (max-width: 760px) { .bm-side:has(.bm-kurv-bar .bm-betaling-reserveres) { padding-bottom: 140px; } }

/* The fake provider's payment screens (no key yet): a card window and a wallet "phone". */
.bm-fake-betal { max-width: 460px; margin: 28px auto 48px; }
.bm-fake-betal-vindue { background: var(--bm-surface); border-radius: var(--bm-r-lg); border: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); overflow: hidden; }
.bm-fake-betal-hoved { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--bm-line); }
.bm-fake-betal-beloeb { margin-left: auto; text-align: right; }
.bm-fake-betal-beloeb strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; }
.bm-fake-betal-krop { padding: 22px; }
.bm-fake-betal-fod { padding: 12px 22px; background: var(--bm-surface-2); border-top: 1px solid var(--bm-line); font-size: 12px; color: var(--bm-ink-3); }
.bm-fake-wallet { max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.bm-fake-wallet-telefon { display: grid; place-items: center; min-height: 420px; border-radius: var(--bm-r-lg); background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--bm-primary) 70%, var(--bm-surface)), var(--bm-primary) 55%, var(--bm-primary-dark)); }
.bm-fake-wallet-skaerm { width: 200px; height: 360px; border-radius: 30px; border: 10px solid var(--bm-ink); background: var(--bm-surface); padding: 28px 12px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--bm-shadow); }
.bm-fake-wallet-push { background: var(--bm-surface-2); border-radius: var(--bm-r-md); padding: 10px; font-size: 12px; }
.bm-fake-wallet-beloeb { margin-top: auto; text-align: center; color: var(--bm-ink-2); }
.bm-fake-wallet-beloeb strong { display: block; font-size: 24px; color: var(--bm-ink); }
.bm-fake-wallet-info h1 { font-size: clamp(28px, 3.6vw, 40px); }
@media (max-width: 860px) {
  .bm-fake-betal { margin-top: 14px; }
  .bm-fake-wallet { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .bm-fake-wallet-telefon { min-height: 300px; }
  .bm-fake-wallet-skaerm { width: 170px; height: 270px; }
}

.bm-betaling-fejl { max-width: 620px; margin: 0 auto; padding: 36px 0 48px; text-align: center; }
.bm-betaling-fejl h1 { font-size: clamp(28px, 4vw, 40px); }
.bm-betaling-fejl-ikon { width: 120px; height: 120px; margin: 0 auto 18px; border-radius: 50%; background: var(--bm-red-soft); display: grid; place-items: center; font-size: 56px; }
.bm-betaling-fejl-gemt { text-align: left; }
.bm-betaling-fejl-valg { display: grid; gap: 10px; margin-top: 22px; }

/* The order after checkout: confirmation, progress and receipt. */
.bm-ordrestatus { max-width: 1000px; margin: 0 auto; padding: 24px 0 48px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.bm-ordre-tak { text-align: center; padding: 36px 24px 28px; background: radial-gradient(500px 220px at 50% 0%, var(--bm-green-soft), var(--bm-surface) 70%); }
.bm-ordre-tak h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.bm-ordre-check { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; background: var(--bm-green); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--bm-green-soft); animation: bm-ordre-pop .6s var(--bm-ease); }
.bm-ordre-check svg { width: 48px; height: 48px; }
.bm-ordre-check path { stroke: var(--bm-green-ink); stroke-width: 7; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: bm-ordre-tegn .5s .35s var(--bm-ease) forwards; }
@keyframes bm-ordre-pop { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.1); } }
@keyframes bm-ordre-tegn { to { stroke-dashoffset: 0; } }
.bm-ordre-nr { display: inline-flex; gap: 6px; align-items: center; padding: 8px 16px; border-radius: 999px; background: var(--bm-ink); color: var(--bm-bg); font-weight: 800; font-size: 15px; margin: 6px 0 4px; }
.bm-ordrestatus-kort h2 { font-size: clamp(24px, 3vw, 32px); margin: 10px 0 4px; }
.bm-ordrestatus-eta { display: flex; align-items: baseline; gap: 10px; margin-top: 14px; }
.bm-ordrestatus-eta strong { font-size: 36px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.bm-statustrin strong { display: block; }
.bm-statustrin small { display: block; font-weight: 500; color: var(--bm-ink-3); font-size: 13.5px; }
.bm-timeline li.bm-statustrin.is-afvist { color: var(--bm-ink); }
.bm-timeline li.bm-statustrin.is-afvist::after { background: var(--bm-red); border-color: var(--bm-red); }
.bm-ordrestatus-linje { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--bm-line); font-size: 14.5px; }
.bm-ordrestatus-linje:has(+ :not(.bm-ordrestatus-linje)) { border-bottom: 0; }
.bm-ordrestatus-fakta > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--bm-line); font-size: 14.5px; }
.bm-ordrestatus-fakta > div:last-child { border-bottom: 0; }
.bm-ordrestatus-fakta > div > :first-child { width: 96px; flex: none; font-weight: 700; }
@media (max-width: 900px) { .bm-ordrestatus { grid-template-columns: minmax(0, 1fr); padding-top: 16px; gap: 16px; } }
@media (max-width: 480px) { .bm-ordre-tak { padding: 28px 16px 20px; } .bm-ordrestatus-eta strong { font-size: 28px; } }

.bm-kvittering-wrap { max-width: 520px; margin: 0 auto; padding: 28px 0 48px; }
.bm-kvittering-vaerktoej { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.bm-kvittering { background: var(--bm-surface); padding: 30px 28px 34px; box-shadow: var(--bm-shadow); border-radius: var(--bm-r); font-variant-numeric: tabular-nums; }
.bm-kvittering-hoved { text-align: center; }
.bm-kvittering-hoved h1 { font-size: 24px; margin: 0; }
.bm-kvittering-meta { font-size: 13px; color: var(--bm-ink-2); line-height: 1.6; }
.bm-kvittering-streg { border: 0; border-top: 2px dashed var(--bm-line); margin: 18px 0; }
.bm-kvittering-kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; margin: 0; }
.bm-kvittering-kv dt { color: var(--bm-ink-3); font-weight: 600; }
.bm-kvittering-kv dd { margin: 0; text-align: right; font-weight: 600; }
.bm-kvittering-varer, .bm-kvittering-total { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bm-kvittering-varer td { padding: 6px 0; vertical-align: top; }
.bm-kvittering-varer td:first-child { width: 34px; font-weight: 800; }
.bm-kvittering-varer td:last-child, .bm-kvittering-total td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.bm-kvittering-valg { display: block; font-size: 12.5px; color: var(--bm-ink-3); }
.bm-kvittering-total td { padding: 4px 0; }
.bm-kvittering-total .is-total td { font-size: 20px; font-weight: 800; }
.bm-kvittering-total .is-moms td { font-size: 13px; color: var(--bm-ink-3); }
.bm-kvittering-betalt { display: inline-flex; padding: 6px 14px; border-radius: 999px; border: 2px solid var(--bm-green); color: var(--bm-green); font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-4deg); }
.bm-kreditnota .bm-kvittering-total .is-total td { color: var(--bm-red); }
.bm-kreditnota-begrundelse { white-space: pre-line; overflow-wrap: anywhere; }
.bm-ordre-refunderet { display: grid; gap: 4px; padding: 10px 12px; border-radius: var(--bm-r-md); background: var(--bm-surface-2); }
.bm-kvittering-efter { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 480px) { .bm-kvittering { padding: 24px 18px 28px; } }
@media print {
  .bm-kvittering-vaerktoej, .bm-kvittering-efter { display: none !important; }
  .bm-kvittering-wrap { padding: 0; max-width: none; }
  .bm-kvittering { box-shadow: none; padding: 0; }
}

/* Terms of sale and privacy policy. */
.bm-tekst { max-width: 720px; margin: 0 auto; padding: 24px 0 48px; }
.bm-tekst-faner { margin-bottom: 16px; }
.bm-tekst-faner .bm-chip[aria-current="page"] { background: var(--bm-ink); border-color: var(--bm-ink); color: var(--bm-bg); }
.bm-tekst h2 { font-size: 20px; margin-top: 28px; }
.bm-tekst p, .bm-tekst li { color: var(--bm-ink-2); font-size: 15.5px; line-height: 1.65; }
.bm-tekst-kort { padding: 16px 18px; border-radius: var(--bm-r); background: var(--bm-accent-soft); }
.bm-tekst-kort ul { margin: 6px 0 0; padding-left: 18px; }
.bm-tekst-kort li { color: var(--bm-ink); font-size: 14.5px; }
.bm-tekst-fod { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--bm-line); font-size: 13px; color: var(--bm-ink-3); }

.bm-ret-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; padding: 24px 0 40px; max-width: 1080px; margin: 0 auto; }
.bm-ret-side-billede { position: sticky; top: 88px; }
.bm-ret-side-billede .bm-food { min-height: 380px; }
.bm-ret-side-billede .bm-food > .bm-food-emoji { font-size: 150px; }
.bm-ret-side h1 { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 6px; }
.bm-ret-side-beskrivelse { font-size: 17px; }
.bm-ret-side .bm-ret-pris { font-size: 22px; }
.bm-tilvalg { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.bm-tilvalg legend { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px; padding: 0; margin-bottom: 4px; }
.bm-tilvalg legend strong { font-size: 18px; }
.bm-tilvalg > .bm-hint { margin: 0 0 10px; }
.bm-tilvalg .bm-check { padding: 12px 14px; }
.bm-tilvalg .bm-check:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.bm-tilvalg-pris { color: var(--bm-ink-2); font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.bm-check.is-udsolgt .bm-tilvalg-pris { color: var(--bm-red); }
.bm-ret-side-fejl { color: var(--bm-red); font-weight: 700; min-height: 1.5em; margin-top: 16px; }
.bm-ret-side-bar { display: flex; gap: 12px; align-items: center; position: sticky; bottom: 0; z-index: 5; padding: 14px 0 18px; background: linear-gradient(to top, var(--bm-bg) 80%, transparent); }
.bm-ret-side-bar .bm-btn { flex: 1; }
@media (max-width: 860px) {
  .bm-ret-side { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-top: 14px; }
  .bm-ret-side-billede { position: static; }
  .bm-ret-side-billede .bm-food { min-height: 0; aspect-ratio: 16 / 10; }
  .bm-ret-side-billede .bm-food > .bm-food-emoji { font-size: 100px; }
  .bm-ret-side-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; margin: 0; padding: 12px var(--bm-gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--bm-surface); border-top: 1px solid var(--bm-line); box-shadow: var(--bm-shadow); }
  .bm-side:has(.bm-ret-side-bar) { padding-bottom: 92px; }
}

.bm-allergen-head { padding: 24px 0 6px; max-width: 760px; }
.bm-allergen-wrap { position: relative; overflow-x: auto; border: 1px solid var(--bm-line); border-radius: var(--bm-r); background: var(--bm-surface); -webkit-overflow-scrolling: touch; }
.bm-allergen-tabel { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; }
.bm-allergen-tabel th, .bm-allergen-tabel td { border-bottom: 1px solid var(--bm-line); }
.bm-allergen-tabel thead th { background: var(--bm-surface-2); padding: 10px 0; vertical-align: bottom; font-size: 12px; font-weight: 800; color: var(--bm-ink-2); }
.bm-allergen-navn { width: 40px; min-width: 40px; }
.bm-allergen-navn span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.bm-allergen-tabel .bm-allergen-ret { position: sticky; left: 0; z-index: 1; background: var(--bm-surface); text-align: left; padding: 8px 12px; min-width: 190px; border-right: 1px solid var(--bm-line); font-weight: 700; }
.bm-allergen-tabel thead .bm-allergen-ret { background: var(--bm-surface-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-ink-3); }
.bm-allergen-ret a { text-decoration: none; }
.bm-allergen-tabel td { text-align: center; padding: 0; }
.bm-allergen-tabel td.is-ja > span[title] { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 10px; }
.bm-allergen-kat th { text-align: left; background: var(--bm-bg); padding: 14px 12px 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-ink-3); }
.bm-allergen-note { max-width: 760px; margin-bottom: 40px; }
@media (max-width: 760px) { .bm-allergen-tabel .bm-allergen-ret { min-width: 140px; max-width: 140px; font-size: 13px; } }

/* Price summary */
.bm-sum { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bm-sum td { padding: 6px 0; }
.bm-sum td:last-child { text-align: right; }
.bm-sum tr.is-total td { font-weight: 800; font-size: 18px; padding-top: 12px; border-top: 1px solid var(--bm-line); }

/* Status timeline (order tracking) */
.bm-timeline { list-style: none; margin: 0; padding: 0; }
.bm-timeline li { position: relative; padding: 0 0 22px 40px; color: var(--bm-ink-3); }
.bm-timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--bm-line); }
.bm-timeline li:last-child::before { display: none; }
.bm-timeline li::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--bm-line); background: var(--bm-surface); }
.bm-timeline li.is-done { color: var(--bm-ink); }
.bm-timeline li.is-done::after { background: var(--bm-green); border-color: var(--bm-green); }
.bm-timeline li.is-done::before { background: var(--bm-green); }
.bm-timeline li.is-active { color: var(--bm-ink); font-weight: 700; }
.bm-timeline li.is-active::after { border-color: var(--bm-primary); box-shadow: 0 0 0 5px var(--bm-primary-soft); animation: bm-pulse 1.6s infinite; color: var(--bm-primary); }

/* ---------- Backoffice shell (restaurant, admin) ---------- */
.bm-app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.bm-app .bm-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--bm-surface); border-right: 1px solid var(--bm-line); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; }
.bm-app .bm-side .bm-brand { padding: 4px 8px 16px; }
.bm-side-group { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--bm-ink-3); padding: 14px 10px 6px; }
.bm-app .bm-side a.bm-side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--bm-r-sm); text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--bm-ink-2); }
.bm-app .bm-side a.bm-side-link:hover { background: var(--bm-surface-2); color: var(--bm-ink); }
.bm-app .bm-side a.bm-side-link.is-active { background: var(--bm-primary-soft); color: var(--bm-primary-dark); }
.bm-app .bm-side a.bm-side-link .bm-ico { width: 22px; text-align: center; }
.bm-app .bm-side a.bm-side-link .bm-badge { margin-left: auto; }
.bm-main { min-width: 0; }
.bm-pagehead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 22px 28px 0; }
.bm-pagehead h1 { font-size: 26px; margin: 0; }
.bm-pagehead .bm-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.bm-content { padding: 22px 28px 48px; }
.bm-mobilebar { display: none; }
@media (max-width: 900px) {
  .bm-app { grid-template-columns: 1fr; }
  .bm-app .bm-side { position: fixed; z-index: 60; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s var(--bm-ease), box-shadow .25s; box-shadow: none; }
  .bm-app .bm-side.is-open { transform: none; box-shadow: var(--bm-shadow-lg); }
  .bm-mobilebar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 50; height: 58px; padding: 0 var(--bm-gutter); background: var(--bm-surface); border-bottom: 1px solid var(--bm-line); }
  .bm-pagehead { padding: 16px var(--bm-gutter) 0; }
  .bm-pagehead h1 { font-size: 22px; }
  .bm-content { padding: 16px var(--bm-gutter) 40px; }
}
.bm-scrim { position: fixed; inset: 0; z-index: 55; background: var(--bm-scrim); opacity: 0; pointer-events: none; transition: opacity .2s; }
.bm-scrim.is-open { opacity: 1; pointer-events: auto; }

/* Opening hours (/restaurant/aabningstider), ported from mockups/restaurant/aabningstider.html */
.bm-at-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
@media (max-width: 1150px) { .bm-at-layout { grid-template-columns: minmax(0, 1fr); } }
.bm-at-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--bm-ink-2); font-weight: 600; }
.bm-at-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bm-at-legend-aaben { background: var(--bm-accent); }
.bm-at-legend .bm-at-legend-nu { background: var(--bm-primary); width: 2px; }
.bm-at-tl { position: relative; padding-left: 44px; }
.bm-at-tl-row { position: relative; height: 30px; display: flex; align-items: center; }
.bm-at-tl-row + .bm-at-tl-row { margin-top: 6px; }
.bm-at-tl-dag { position: absolute; left: -44px; width: 40px; font-weight: 800; font-size: 13px; color: var(--bm-ink-2); }
.bm-at-tl-row.is-today .bm-at-tl-dag { color: var(--bm-primary); }
.bm-at-tl-spor { position: relative; flex: 1; height: 100%; border-radius: var(--bm-r-sm); background: var(--bm-surface-2); overflow: hidden; }
.bm-at-tl-bar { position: absolute; top: 7px; bottom: 7px; border-radius: 6px; background: var(--bm-accent); transition: left .35s var(--bm-ease), width .35s var(--bm-ease); }
.bm-at-tl-lukket { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--bm-ink-3); background: repeating-linear-gradient(-45deg, transparent 0 8px, color-mix(in srgb, var(--bm-line) 60%, transparent) 8px 16px); }
.bm-at-tl-nu { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bm-primary); }
.bm-at-akse { display: flex; justify-content: space-between; margin: 8px 0 0 44px; font-size: 11px; font-weight: 700; color: var(--bm-ink-3); }
.bm-at-faste { padding: 20px 4px 8px; }
.bm-at-pad { padding: 0 16px; }
.bm-at-dhead, .bm-at-dag { display: grid; grid-template-columns: 112px 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.bm-at-dhead { margin-top: 18px; padding: 0 16px 8px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-ink-3); }
.bm-at-dag { padding: 12px 16px; border-top: 1px solid var(--bm-line); }
.bm-at-dag > strong { font-size: 15.5px; }
.bm-at-dag.is-closed .bm-at-spaend { opacity: .35; pointer-events: none; }
.bm-at-spaend { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bm-at-span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.bm-at-span input { min-height: 44px; padding: 8px 10px; width: 100%; min-width: 0; font-variant-numeric: tabular-nums; text-align: center; }
.bm-at-span input::-webkit-calendar-picker-indicator { display: none; }
.bm-at-ekstra { align-self: flex-start; }
.bm-at-chips { flex-wrap: wrap; }
.bm-at-fejl { margin: 12px 0 0; color: var(--bm-red); font-size: 14px; font-weight: 600; }
@media (max-width: 760px) {
  .bm-at-dhead { display: none; }
  .bm-at-dag { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "d s" "p p"; row-gap: 10px; }
  .bm-at-dag > strong { grid-area: d; }
  .bm-at-dag > .bm-switch { grid-area: s; }
  .bm-at-dag > .bm-at-spaend { grid-area: p; }
}
.bm-at-saerlig { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--bm-line); }
.bm-at-saerlig:last-child { border-bottom: 0; }
.bm-at-saerlig .bm-grow { min-width: 0; }
.bm-at-saerlig-navn { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--bm-ink); cursor: pointer; text-align: left; }
.bm-at-kal { width: 52px; flex: none; border-radius: var(--bm-r-md); overflow: hidden; text-align: center; border: 1px solid var(--bm-line); background: var(--bm-surface); }
.bm-at-kal b { display: block; background: var(--bm-primary); color: var(--bm-primary-ink); font-size: 11px; padding: 2px 0; text-transform: uppercase; letter-spacing: .06em; }
.bm-at-kal span { display: block; font-size: 20px; font-weight: 800; padding: 2px 0 4px; }
.bm-at-lukket { color: var(--bm-red); font-weight: 700; }
.bm-at-fjern { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--bm-ink-3); font-size: 16px; margin-left: auto; flex: none; }
.bm-at-fjern:hover { background: var(--bm-red-soft); color: var(--bm-red); }

/* KPI tiles */
.bm-kpi { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); padding: 16px 18px; }
.bm-kpi-label { font-size: 13px; font-weight: 700; color: var(--bm-ink-3); }
.bm-kpi-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.bm-kpi-delta { font-size: 13px; font-weight: 700; color: var(--bm-green); }
.bm-kpi-delta.is-down { color: var(--bm-red); }

/* Tables */
.bm-table-wrap { overflow-x: auto; border: 1px solid var(--bm-line); border-radius: var(--bm-r); background: var(--bm-surface); }
.bm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.bm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--bm-ink-3); font-weight: 800; padding: 12px 16px; border-bottom: 1px solid var(--bm-line); background: var(--bm-surface-2); white-space: nowrap; }
.bm-table td { padding: 12px 16px; border-bottom: 1px solid var(--bm-line); vertical-align: middle; }
.bm-table tr:last-child td { border-bottom: 0; }
.bm-table tbody tr:hover { background: color-mix(in srgb, var(--bm-surface-2) 50%, transparent); }
.bm-table .bm-num, .bm-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.bm-table a { text-decoration: none; font-weight: 700; }

/* Simple bar chart (CSS only) */
.bm-bars { display: flex; align-items: flex-end; gap: 6px; height: 160px; padding-top: 8px; }
.bm-bars > div { flex: 1; background: var(--bm-primary); border-radius: 6px 6px 2px 2px; min-height: 4px; position: relative; opacity: .85; }
.bm-bars > div:hover { opacity: 1; }
.bm-bars > div.is-muted { background: var(--bm-line); }
.bm-bars-labels { display: flex; gap: 6px; font-size: 11px; color: var(--bm-ink-3); margin-top: 6px; }
.bm-bars-labels > span { flex: 1; text-align: center; }

/* ---------- Overlays ---------- */
.bm-toast-host { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.bm-toast { background: var(--bm-ink); color: var(--bm-bg); padding: 12px 18px; border-radius: var(--bm-r-pill); font-weight: 700; font-size: 14px; box-shadow: var(--bm-shadow-lg); animation: bm-toast-in .3s var(--bm-ease); }
@keyframes bm-toast-in { from { transform: translateY(12px); opacity: 0; } }
.bm-modal { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 16px; background: var(--bm-scrim-strong); }
.bm-modal.is-open { display: flex; }
.bm-modal-box { background: var(--bm-surface); border-radius: var(--bm-r-lg); padding: 24px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--bm-shadow-lg); animation: bm-toast-in .25s var(--bm-ease); }
@media (max-width: 600px) { .bm-modal { align-items: flex-end; padding: 0; } .bm-modal-box { border-radius: var(--bm-r-lg) var(--bm-r-lg) 0 0; max-width: none; } }

/* Empty state */
.bm-empty { text-align: center; padding: 48px 16px; color: var(--bm-ink-2); }
.bm-empty-ico { font-size: 56px; margin-bottom: 12px; }

/* Alert / notice */
.bm-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--bm-r); background: var(--bm-accent-soft); color: var(--bm-ink); font-size: 14.5px; }
.bm-notice-green { background: var(--bm-green-soft); }
.bm-notice-red { background: var(--bm-red-soft); }
.bm-notice-blue { background: var(--bm-blue-soft); }

/* Avatar */
.bm-avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--bm-accent-soft); color: var(--bm-accent-ink); flex: none; font-size: 15px; }

/* Map placeholder (stylised SVG maps sit inside) */
.bm-map { position: relative; border-radius: var(--bm-r); overflow: hidden; background: var(--bm-map-bg); border: 1px solid var(--bm-line); }
.bm-map svg { display: block; width: 100%; height: 100%; }


/* Compact order summary (BM.cartPeek) for checkout screens on phones */
.bm-peek { background: var(--bm-surface); border: 1px solid var(--bm-line); border-radius: var(--bm-r); box-shadow: var(--bm-shadow-sm); }
.bm-peek > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; cursor: pointer; font-size: 15px; }
.bm-peek > summary::-webkit-details-marker { display: none; }
.bm-peek-ico { font-size: 18px; }
.bm-peek-chev { color: var(--bm-ink-3); font-size: 18px; transition: transform .2s var(--bm-ease); }
.bm-peek[open] .bm-peek-chev { transform: rotate(180deg); }
.bm-peek-body { padding: 0 14px 12px; border-top: 1px solid var(--bm-line); }
.bm-peek-line { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; border-bottom: 1px solid var(--bm-line); }
.bm-peek-line:last-of-type { border-bottom: 0; }
.bm-peek-q { font-weight: 800; color: var(--bm-primary); min-width: 24px; }
.bm-peek-sub { color: var(--bm-ink-2); }

/* Decorative QR (BM.qr) */
.bm-qr { display: block; width: 100%; height: auto; }

@media print { .bm-topbar, .bm-tabbar, .bm-app .bm-side, .bm-mobilebar { display: none !important; } body { background: var(--bm-surface); } }

/* Utilities */
.bm-mt-0 { margin-top: 0 !important; }
.bm-mt { margin-top: 16px; }
.bm-mt-lg { margin-top: 32px; }
.bm-mb { margin-bottom: 16px; }
.bm-hide-mobile { }
@media (max-width: 760px) { .bm-hide-mobile { display: none !important; } }
.bm-only-mobile { display: none !important; }
@media (max-width: 760px) { .bm-only-mobile { display: revert !important; } }
