/* ============================================================================
   ORION Events — ORDER PAGES (light, Bootstrap-extension design layer)
   Self-contained sheet for the two Claude Design order pages:
     bestil-eventpakker.php  (Bestil_Eventpakker)
     bestilling.php          (Bestilling)

   HOW TO INSTALL
   1) Copy to:  assets/css/orion-events-order.css
   2) On the TWO order pages ONLY, load Bootstrap + THIS FILE — do NOT load
      orion-events.css (dark base) or orion-events-light.css on these pages.
      They set a global dark <body> / serif font that fights this light look.
        <link rel="stylesheet" href="/assets/bootstrap/bootstrap.min.css">
        <link rel="stylesheet" href="/assets/css/orion-events-order.css">
   3) Add class="oe-order" to the MAIN CONTENT WRAPPER element (not the <body>),
      and add a note that the page's header/footer stay on their existing
      stylesheet.

   DESIGN MODEL
   - Components are a thin extension of Bootstrap: buttons theme .btn via
     --bs-btn-* variables; inputs/checkboxes ride on .form-control /
     .form-select / .form-check. No bespoke oe-* component classes.
   - The :root token block is the canonical light ORION token layer. It is the
     intended migration seed: future pages ported off orion-events.css /
     orion-events-light.css point at THESE tokens, then their old rules are
     deleted. Values match orion-events-light.css, so nothing shifts visually.
   - Tokens live at :root (safe: this file loads only on order pages). Visual
     rules are scoped under .oe-order so they stay opt-in.

   FONTS: uses the same Google import as orion-events-light.css. To avoid an
   external dependency, swap the @import below for the self-hosted @font-face
   block from orion-events.css (assets/fonts/…).
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&family=Open+Sans:wght@400;700&display=swap");


/* ============================================================================
   1. DESIGN TOKENS  (canonical light ORION layer — migration seed)
   Lifted from the ORION design system the order pages were built against.
   Values are identical to orion-events-light.css's --c-, --r- and --sh- token sets.
   ============================================================================ */

:root {
  /* --- Brand / CI ---------------------------------------------------------- */
  --orion-red: #d60846;          /* ORION signature red                       */
  --orion-red-ink: #b50639;      /* darker red — hover / pressed              */
  --orion-nightblue: #00496f;    /* secondary accent                          */
  --orion-azure: #cde6f6;        /* soft blue surface                         */
  --orion-cupcake: #f4d0d9;      /* soft pink surface                         */

  /* --- Warm grey scale ----------------------------------------------------- */
  --warmgrey-900: #333333;       /* headline ink / deepest                    */
  --warmgrey-800: #444444;       /* default body ink                          */
  --warmgrey-600: #76756f;       /* WCAG-safe muted text                      */
  --warmgrey-400: #a09e9a;       /* disabled text, hairlines                  */
  --warmgrey-200: #e2dfdd;       /* borders, dividers                         */
  --warmgrey-150: #efece9;       /* soft inner divider                        */
  --warmgrey-100: #f6f4f2;       /* page tint / light surface                 */
  --white: #ffffff;
  --black: #1d1b1c;

  /* --- Functional ---------------------------------------------------------- */
  --green: #458221;              /* buy / confirm CTA                         */
  --green-ink: #549e28;
  --green-tint: #e7f7e0;

  /* --- Semantic aliases (reach for these in components) -------------------- */
  --color-brand: var(--orion-red);
  --color-brand-ink: var(--orion-red-ink);
  --color-accent: var(--orion-nightblue);

  --text-strong: var(--warmgrey-900);
  --text-body: var(--warmgrey-800);
  --text-muted: var(--warmgrey-600);
  --text-on-brand: var(--white);
  --text-link: var(--orion-red);

  --surface-page: var(--white);
  --surface-tint: var(--warmgrey-100);
  --surface-card: var(--white);
  --surface-soft-blue: var(--orion-azure);
  --surface-soft-pink: var(--orion-cupcake);
  --surface-dark: var(--warmgrey-800);

  --border-subtle: var(--warmgrey-200);
  --border-soft: var(--warmgrey-150);
  --border-strong: var(--warmgrey-400);

  /* --- Typography ---------------------------------------------------------- */
  --font-body: "Open Sans", Arial, Helvetica, sans-serif;
  --font-display: "Montserrat", "Open Sans", Arial, sans-serif;
  --font-heading: var(--font-display);

  --weight-light: 300;
  --weight-regular: 400;
  --weight-bold: 700;
  --weight-heading: var(--weight-light);

  --text-2xs: 0.75rem;      /* 12px */
  --text-xs: 0.8125rem;     /* 13px */
  --text-sm: 0.875rem;      /* 14px */
  --text-base: 1rem;        /* 16px */
  --text-md: 1.125rem;      /* 18px */
  --text-lg: 1.375rem;      /* 22px */
  --text-xl: 1.75rem;       /* 28px */
  --text-2xl: 2.5rem;       /* 40px */
  --text-button: 1.0625rem; /* 17px */
  --text-label: var(--text-xs);
  --text-display: clamp(150px, 18vw, 280px); /* giant current-number */

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-body: 1.6;
  --tracking-wide: 0.08em;

  /* --- Spacing (9px rhythm, 5px micro-step) -------------------------------- */
  --space-1: 5px;
  --space-2: 9px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 27px;
  --space-6: 36px;
  --space-7: 54px;
  --space-8: 72px;

  /* --- Effects: radii, borders, shadows, motion, motifs -------------------- */
  --radius-sm: 5px;         /* buttons, inputs — shop standard               */
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --border-hairline: 1px solid var(--border-subtle);
  --focus-ring: 0 0 0 3px rgba(214, 8, 70, 0.30);
  --focus-ring-rgb: 214, 8, 70;

  --shadow-xs: 0 1px 2px rgba(29, 27, 28, 0.06);
  --shadow-sm: 0 2px 8px rgba(29, 27, 28, 0.07);
  --shadow-md: 0 6px 18px rgba(29, 27, 28, 0.10);
  --shadow-lg: 0 14px 38px rgba(29, 27, 28, 0.14);

  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration: 0.3s;

  --banner-tilt: -5deg;
}


/* ============================================================================
   2. BOOTSTRAP THEME OVERRIDES  (scoped to order pages)
   Retint Bootstrap's --bs-* system to ORION on order pages only.
   ============================================================================ */

.oe-order {
  /* Page / body */
  --bs-body-bg: var(--surface-page);
  --bs-body-color: var(--text-body);
  --bs-body-font-family: var(--font-body);
  --bs-body-font-size: var(--text-base);
  --bs-body-line-height: var(--leading-body);

  /* Brand + links */
  --bs-primary: var(--color-brand);
  --bs-primary-rgb: var(--focus-ring-rgb);
  --bs-link-color: var(--text-link);
  --bs-link-color-rgb: var(--focus-ring-rgb);
  --bs-link-hover-color: var(--color-brand-ink);

  /* Borders + radius */
  --bs-border-color: var(--border-subtle);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-sm: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-md);

  /* Focus ring (Bootstrap 5.3) */
  --bs-focus-ring-color: rgba(214, 8, 70, 0.30);
  --bs-focus-ring-width: 3px;

  /* Global button defaults for the page (ORION sizing) */
  --bs-btn-border-radius: var(--radius-sm);
  --bs-btn-font-size: var(--text-sm);
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-weight: var(--weight-bold);
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 11px;
}

/* Order-page buttons match the ORION shop base button size */
.oe-order .btn { min-height: 42px; }


/* ============================================================================
   3. LIGHT BASELINE  (the dark base is not loaded on these pages)
   Minimal element defaults so the page reads as ORION-light on its own.
   ============================================================================ */

.oe-order {
  margin: 0;
  background-color: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.oe-order h1,
.oe-order h2,
.oe-order h3,
.oe-order h4,
.oe-order h5,
.oe-order h6 {
  margin: 0 0 var(--space-2);
  font-family: var(--font-heading);
  font-weight: var(--weight-heading);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.oe-order h1 { font-size: var(--text-2xl); line-height: var(--leading-tight); }
.oe-order h2 { font-size: var(--text-xl); }
.oe-order h3 { font-size: var(--text-lg); }
.oe-order h4 { font-size: var(--text-md); font-weight: var(--weight-bold); font-family: var(--font-body); }

.oe-order p { margin: 0 0 var(--space-4); }

.oe-order a { color: var(--text-link); text-decoration: none; }
.oe-order a:hover { color: var(--color-brand-ink); text-decoration: underline; }

.oe-order img { max-width: 100%; display: block; }


/* ============================================================================
   4. BUTTONS  (Bootstrap .btn + ORION variants)
   Markup: <button class="btn btn-orion">…      (was oe-btn oe-btn--primary)
           <button class="btn btn-orion-light">… (was oe-btn oe-btn--light)
           <button class="btn btn-orion-ghost">… (was oe-btn oe-btn--ghost)
           add Bootstrap's own .btn-lg              (was oe-btn--lg)
   ============================================================================ */

/* Base button metrics — set on .btn directly, because Bootstrap's .btn declares
   these --bs-btn-* vars on the button element and would otherwise win. */
.oe-order .btn {
  --bs-btn-font-family: var(--font-body);
  --bs-btn-font-weight: var(--weight-bold);
  --bs-btn-font-size: var(--text-sm);
  --bs-btn-padding-x: 20px;
  --bs-btn-padding-y: 11px;
  --bs-btn-border-radius: var(--radius-sm);
  min-height: 42px;
}

/* Centre the label vertically (Bootstrap .btn is inline-block) and use the ORION
   line-height so the box isn't over-tall. */
.oe-order .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}

/* Primary — red fill */
.oe-order .btn-orion {
  --bs-btn-color: var(--text-on-brand);
  --bs-btn-bg: var(--color-brand);
  --bs-btn-border-color: var(--color-brand);
  --bs-btn-hover-color: var(--text-on-brand);
  --bs-btn-hover-bg: var(--color-brand-ink);
  --bs-btn-hover-border-color: var(--color-brand-ink);
  --bs-btn-active-color: var(--text-on-brand);
  --bs-btn-active-bg: var(--color-brand-ink);
  --bs-btn-active-border-color: var(--color-brand-ink);
  --bs-btn-disabled-color: var(--text-on-brand);
  --bs-btn-disabled-bg: var(--color-brand);
  --bs-btn-disabled-border-color: var(--color-brand);
  --bs-btn-focus-shadow-rgb: var(--focus-ring-rgb);
}

/* Light — warm-grey fill, ink text */
.oe-order .btn-orion-light {
  --bs-btn-color: var(--text-strong);
  --bs-btn-bg: var(--surface-tint);
  --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--text-strong);
  --bs-btn-hover-bg: var(--warmgrey-150);
  --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--text-strong);
  --bs-btn-active-bg: var(--warmgrey-150);
  --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: var(--text-muted);
  --bs-btn-disabled-bg: var(--surface-tint);
  --bs-btn-disabled-border-color: transparent;
  --bs-btn-focus-shadow-rgb: var(--focus-ring-rgb);
}

/* Ghost — transparent, red outline + text, fills red on hover */
.oe-order .btn-orion-ghost {
  --bs-btn-color: var(--color-brand);
  --bs-btn-bg: transparent;
  --bs-btn-border-color: var(--color-brand);
  --bs-btn-hover-color: var(--text-on-brand);
  --bs-btn-hover-bg: var(--color-brand);
  --bs-btn-hover-border-color: var(--color-brand);
  --bs-btn-active-color: var(--text-on-brand);
  --bs-btn-active-bg: var(--color-brand-ink);
  --bs-btn-active-border-color: var(--color-brand-ink);
  --bs-btn-disabled-color: var(--color-brand);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--color-brand);
  --bs-btn-focus-shadow-rgb: var(--focus-ring-rgb);
}


/* ============================================================================
   5. FORM CONTROLS  (Bootstrap .form-control / .form-select)
   Markup: <input class="form-control">          (was oe-input, text/email/tel)
           <select class="form-select">          (was <sc-raw-select class="oe-input">;
                                                  drop the inline SVG arrow — Bootstrap
                                                  draws it)
   ============================================================================ */

.oe-order .form-control,
.oe-order .form-select {
  background-color: var(--warmgrey-100);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
}

.oe-order .form-control::placeholder { color: var(--text-muted); opacity: 1; }

.oe-order .form-control:focus,
.oe-order .form-select:focus {
  background-color: var(--white);
  border-color: var(--color-brand);
  box-shadow: var(--focus-ring);
  outline: 0;
}

.oe-order .form-control:disabled,
.oe-order .form-select:disabled {
  background-color: var(--surface-tint);
  color: var(--text-muted);
}


/* ============================================================================
   6. CHECKBOX  (Bootstrap .form-check)
   Markup: <label class="form-check">                    (was oe-cb)
             <input class="form-check-input" type="checkbox">
             <span class="form-check-label">…</span>
           DELETE the old <span class="oe-cb__box"> — Bootstrap draws the box.
   ============================================================================ */

.oe-order .form-check-input {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
}
.oe-order .form-check-input:checked {
  background-color: var(--color-brand);
  border-color: var(--color-brand);
}
.oe-order .form-check-input:focus {
  border-color: var(--color-brand);
  box-shadow: var(--focus-ring);
  outline: 0;
}
.oe-order .form-check-label {
  color: var(--text-body);
  font-size: var(--text-base);
}


/* ============================================================================
   7. ORION UTILITIES  (lifted verbatim from the ORION design system)
   These have no Bootstrap equivalent. Kept as class names the markup uses.
   ============================================================================ */

/* Uppercase eyebrow / "kun i kort tid" label */
.oe-order .orion-eyebrow {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand);
}

/* Section heading that reads as ORION ("special") */
.oe-order .orion-display {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  color: var(--text-strong);
}
.oe-order .orion-display strong { font-weight: var(--weight-bold); }

/* Tilted red "Info-Fahne" banner */
.oe-order .orion-info-fahne {
  display: inline-block;
  background: var(--color-brand);
  color: var(--text-on-brand);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-4);
  transform: rotate(var(--banner-tilt));
  box-shadow: var(--shadow-sm);
}

/* Background tints */
.oe-order .orion-bg-tint { background: var(--surface-tint); }
.oe-order .orion-bg-blue { background: var(--surface-soft-blue); }
.oe-order .orion-bg-pink { background: var(--surface-soft-pink); }
.oe-order .orion-bg-dark { background: var(--surface-dark); color: var(--white); }

/* ============================================================================
   8. ORDER-INDEX PAGE LAYOUT  (restyles existing hook classes; JS contract frozen)
   Scoped .oe-order; targets order-index.php's live classes/ids. Do not rename
   hooks. [hidden] guard and JS-owned text nodes are load-bearing.
   ============================================================================ */

.oe-order.order-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 32px 72px;
  background: var(--surface-page);
}

/* Header logo + divider */
.oe-order.order-page .order-header {
  margin: 0 0 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.oe-order.order-page .order-client-logo { height: 56px; width: auto; display: block; }

/* Title + intro */
.oe-order.order-page .order-title {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: 2.75rem;            /* 44px */
  line-height: var(--leading-tight);
  color: var(--color-brand);
  margin: 0 0 22px;
}
.oe-order.order-page .order-intro {
  font-family: var(--font-body);
  font-size: var(--text-button); /* 17px */
  line-height: var(--leading-body);
  color: var(--text-body);
  max-width: 74ch;
  margin: 0 0 44px;
}

/* Section Dividers (e.g. for Add-ons) */
.oe-order.order-page .order-section-divider {
  display: grid;
  grid-template-columns: 1fr auto 132px;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  min-height: 104px;
}
.oe-order.order-page .order-section-divider .order-product-price {
  font-size: 1.25rem;
  color: var(--color-accent); /* Match section title color */
}
.oe-order.order-page .order-section-divider.collapsible-trigger {
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}
.oe-order.order-page .order-section-divider.collapsible-trigger:hover {
  opacity: 0.8;
}
.oe-order.order-page .order-section-title {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: 2rem;
  color: var(--color-accent);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.oe-order.order-page .order-section-count {
  margin-left: 8px;
  font-weight: var(--weight-regular);
  font-size: 1.25rem;
  opacity: 0.9;
}

.oe-order.order-page .toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.oe-order.order-page .collapsible-trigger.is-open .toggle-icon {
  transform: rotate(45deg);
}

.oe-order.order-page .collapsible-content {
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  max-height: 5000px;
  opacity: 1;
}

.oe-order.order-page .collapsible-content.is-collapsed {
  max-height: 0;
  opacity: 0;
}
.oe-order.order-page #addons-content.is-collapsed {
  margin-top: 0;
  margin-bottom: 0;
}

/* Specific styling for the Add-ons (Tilvalg) section */
.oe-order.order-page #addons-content {
  background-color: var(--warmgrey-100);
  padding: 0 24px;
  border-radius: 12px;
  margin-top: 10px;
  margin-bottom: 30px;
}
.oe-order.order-page #addons-content .order-product {
  padding: 16px 0;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px 24px;
}
.oe-order.order-page #addons-content .order-product:first-child {
  border-top: none;
}
.oe-order.order-page #addons-content .order-product-name {
  font-size: 1.25rem;
}
.oe-order.order-page #addons-content .order-product-price {
  font-size: 1.125rem;
}
.oe-order.order-page #addons-content .order-product-meta {
  font-weight: var(--weight-regular);
}

.oe-order.order-page #addons-content .order-product-detaljer {
  color: var(--color-accent);
}
.oe-order.order-page #addons-content .product-detail-trigger:hover .order-product-name {
  color: var(--color-accent);
}

/* Product rows — independent grids, aligned via min-widths */
.oe-order.order-page .order-product {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
  padding: 26px 0;
  border-top: 1px solid var(--border-soft);
}
.oe-order.order-page .order-product[hidden] { display: none; }   /* JS reveal — must win */

.oe-order.order-page .order-product-image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-soft);
}
.oe-order.order-page .order-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.oe-order.order-page .order-shipping-row { border-bottom: 1px solid var(--border-subtle); grid-template-columns: 1fr auto 132px; }

.oe-order.order-page .product-detail-trigger { cursor: pointer; }
.oe-order.order-page .product-detail-trigger:hover .order-product-name { color: var(--color-brand); }

.oe-order.order-page .order-product-name {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 1.625rem;           /* 26px */
  line-height: 1.15;
  color: var(--text-strong);
  margin: 0;
}
.oe-order.order-page .order-product-meta {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);    /* 12px */
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 1;
  line-height: 1.4;
}

.oe-order.order-page .order-product-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  line-height: 1.4;
}
.oe-order.order-page .order-product-detaljer {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand);
  cursor: pointer;
  line-height: 1.4;
}
.oe-order.order-page .order-product-price {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);     /* 18px */
  color: var(--text-strong);
  white-space: nowrap;
  text-align: right;
  min-width: 96px;
  letter-spacing: normal;
}

/* Qty stepper pill */
.oe-order.order-page .qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 5px;
  background: var(--white);
}
.oe-order.order-page .qty-minus,
.oe-order.order-page .qty-plus {
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  font-size: 1.25rem;            /* 20px */
  line-height: 1;
  color: var(--text-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.oe-order.order-page .qty-minus:hover,
.oe-order.order-page .qty-plus:hover { background: var(--warmgrey-100); }
.oe-order.order-page .qty-input {
  width: 40px;
  min-width: 40px;
  padding: 0;
  text-align: center;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-button); /* 17px */
  color: var(--text-strong);
  border: none;
  background: transparent;
  appearance: none;
  -moz-appearance: textfield;
}
.oe-order.order-page .qty-input:focus { outline: none; }

/* Summary bar: reset left, total + submit right (no markup wrapper needed) */
.oe-order.order-page .order-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 44px;
}
.oe-order.order-page #order-reset { margin-right: auto; }
.oe-order.order-page #order-submit {
  --bs-btn-font-size: var(--text-button);   /* 17px */
  --bs-btn-padding-x: 28px;
  --bs-btn-padding-y: 14px;
  min-height: 50px;
}
.oe-order.order-page #order-total {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 1.25rem;            /* 20px */
  color: var(--text-strong);
  letter-spacing: normal;
}
.oe-order.order-page .order-total-vat {
  font-size: 0.6875rem;          /* 11px */
  font-weight: var(--weight-regular);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 1;
  margin-left: 0;
}

/* Mobile stack */
@media (max-width: 640px) {
  .oe-order.order-page { padding: 28px 18px 54px; }
  .oe-order.order-page .order-title { font-size: 2rem; }
  .oe-order.order-page .order-product { grid-template-columns: 1fr auto; gap: 14px 18px; }
  .oe-order.order-page #addons-content .order-product { grid-template-columns: auto 1fr auto; gap: 14px 16px; }
  .oe-order.order-page .order-section-divider { grid-template-columns: 1fr auto; gap: 14px 18px; }
  .oe-order.order-page .qty-stepper { grid-column: 1 / -1; justify-self: start; }
  .oe-order.order-page .qty-stepper-placeholder { display: none; }

  /* Addons mobile adjustment */
  .oe-order.order-page #addons-content {
    padding: 0 14px;
    margin-left: -6px;
    margin-right: -6px;
    border-radius: 8px;
  }

  /* Modal header mobile adjustments */
  .oe-modal .oe-modal-header { --bs-modal-header-padding: 20px 24px; gap: 16px; }
  .oe-modal .oe-modal-header-left { gap: 12px; }
  .oe-modal .oe-modal-header-image { width: 80px; height: 60px; }
  .oe-modal .oe-modal-title { font-size: 1.375rem; }
}


/* ============================================================================
   9. MODALS — shared base for all ORION Bootstrap modals.
   Put class "oe-modal" on the modal root: <div class="modal fade oe-order oe-modal">
   Per-modal specifics live in 9a / 9b below.
   ============================================================================ */

.oe-modal {
  --bs-modal-border-radius: var(--radius-lg);
  --bs-modal-bg: var(--white);
  --bs-modal-color: var(--text-body);
  --bs-modal-header-padding: 26px 32px;
  --bs-modal-padding: 30px 32px 34px;
  --bs-modal-footer-gap: 12px;
  z-index: 20010;                 /* clear light theme's .modal-backdrop.show (20000) */
  background-color: transparent;  /* .oe-order baseline would paint the full-viewport .modal white over the backdrop */
}
.oe-modal .modal-content { font-family: var(--font-body); color: var(--text-body); border: none; overflow: hidden; }
.oe-modal .oe-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.oe-modal .oe-modal-header-left {
  display: flex;
  align-items: center;
  gap: 24px;
}
.oe-modal .oe-modal-header-image {
  flex: 0 0 auto;
  width: 120px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  margin-left: auto;
}
.oe-modal .oe-modal-header-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.oe-modal .oe-modal-title {
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: 1.875rem;   /* 30px */
  line-height: var(--leading-snug);
  color: var(--color-accent);
  margin: 0;
}
.oe-modal .oe-modal-close {
  flex: 0 0 auto;
  width: 42px; height: 42px; padding: 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--white);
  color: var(--text-muted);
  font-size: 20px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.oe-modal .oe-modal-close:hover { color: var(--color-brand); border-color: var(--border-strong); }
.oe-modal .oe-modal-richtext { font-family: var(--font-body); font-size: var(--text-base); line-height: 1.5; color: var(--text-body); }
.oe-modal .oe-modal-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid var(--border-subtle);
  background: var(--surface-tint);
  padding: 18px 32px;
}

/* ---- 9a. Product detail modal (unique) --------------------------------- */
#product-modal { --bs-modal-width: 1000px; }
#product-modal .oe-modal-grid { display: grid; grid-template-columns: 1fr 300px; gap: 44px; align-items: start; }
#product-modal .oe-modal-rule { width: 28px; height: 2px; background: var(--color-brand); margin-bottom: 10px; }
#product-modal .oe-modal-richtext h3,
#product-modal .oe-modal-richtext h4,
#product-modal .oe-modal-richtext p:first-child strong {
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-md);
  color: var(--color-accent); margin: 0 0 14px;
}
#product-modal .oe-modal-richtext ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
#product-modal .oe-modal-richtext li { position: relative; padding-left: 22px; }
#product-modal .oe-modal-richtext li::before { content: "\2022"; position: absolute; left: 0; top: 0; color: var(--color-brand); font-weight: var(--weight-bold); }
#product-modal .oe-modal-richtext strong { color: var(--text-strong); }
#product-modal .oe-modal-card { background: var(--surface-tint); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 24px 26px; display: flex; flex-direction: column; gap: 20px; }
#product-modal .oe-modal-card-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#product-modal .oe-modal-card-divided { padding-top: 18px; border-top: 1px solid var(--border-soft); }
#product-modal .oe-modal-figure { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 1.5rem; color: var(--color-accent); margin-top: 6px; letter-spacing: normal; }
#product-modal .oe-modal-figure-sm { font-size: 1.25rem; }
#product-modal .oe-modal-stepper { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); padding: 4px; background: var(--white); }

.product-gallery {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-gallery-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.product-gallery-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.product-gallery-thumb {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: #e9ecef;
  transition: all 0.2s;
}
.product-gallery-thumb:hover {
  border-color: var(--border-strong);
}
.product-gallery-thumb.active {
  border-color: var(--color-brand);
}
.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#product-modal .oe-modal-stepper .modal-qty-minus,
#product-modal .oe-modal-stepper .modal-qty-plus { width: 34px; height: 34px; padding: 0; border: none; background: transparent; border-radius: var(--radius-pill); font-size: 19px; line-height: 1; color: var(--text-strong); cursor: pointer; display: flex; align-items: center; justify-content: center; }
#product-modal .oe-modal-stepper .modal-qty-minus:hover,
#product-modal .oe-modal-stepper .modal-qty-plus:hover { background: var(--warmgrey-100); }
#product-modal .oe-modal-stepper .modal-qty-input { width: 34px; min-width: 34px; padding: 0; text-align: center; font-family: var(--font-body); font-weight: var(--weight-bold); font-size: var(--text-base); color: var(--text-strong); border: none; background: transparent; appearance: none; -moz-appearance: textfield; }
#product-modal .oe-modal-stepper .modal-qty-input:focus { outline: none; }
#product-modal .oe-modal-footer-price { margin-right: auto; font-family: var(--font-body); color: var(--text-muted); letter-spacing: normal; }
@media (max-width: 720px) { #product-modal .oe-modal-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- 9b. Price-change modal (unique; overrides base's id-scoped leaks) -- */
#price-change-modal { --bs-modal-width: 560px; }
#price-change-modal .oe-modal-header { align-items: center; }
#price-change-modal #price-change-body { color: var(--text-body); }
#price-change-modal #price-change-body p { color: var(--text-muted); margin: 0 0 14px; }
#price-change-modal .price-change-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#price-change-modal .price-change-list li { padding: 12px 14px; border: 1px solid var(--border-subtle); border-radius: var(--radius-sm); background: var(--white); color: var(--text-body); font-family: var(--font-body); font-size: var(--text-base); line-height: 1.5; }
#price-change-modal .price-change-list strong { font-family: var(--font-body); font-weight: var(--weight-bold); color: var(--text-strong); }
#price-change-modal .price-old,
#price-change-modal .price-new { font-family: var(--font-body); font-size: var(--text-base); letter-spacing: normal; }
#price-change-modal .price-old { color: var(--text-muted); text-decoration: line-through; opacity: 1; }
#price-change-modal .price-new { color: var(--color-brand); font-weight: var(--weight-bold); }


/* ============================================================================
   8b. CHECKOUT PAGE LAYOUT  (order-checkout.php; JS contract frozen)
   Base + light stay loaded here, so every hook class base also styles sets its
   FULL property set (font, letter-spacing, opacity, colour) to beat leaks (§7).
   Scope .oe-order.checkout-page beats light's body.oe-light .X (§8).
   Summary rows are JS-generated in order-checkout.js — style, never nest markup.
   ============================================================================ */

.oe-order.checkout-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 32px 72px;
  background: var(--surface-page);
}

/* Header logo + divider + title — mirror the order-index page */
.oe-order.checkout-page .order-header {
  margin: 0 0 40px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.oe-order.checkout-page .order-client-logo { height: 56px; width: auto; display: block; }
.oe-order.checkout-page .order-back {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: 0.9375rem;             /* 15px */
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.2s ease;
}
.oe-order.checkout-page .order-back:hover {
  color: var(--color-accent);
  text-decoration: underline;
}
.oe-order.checkout-page .order-back .chev {
  font-size: 1.0625rem;
  line-height: 1;
  position: relative;
  top: -1px;
}

.oe-order.checkout-page .order-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 2.75rem;               /* 44px */
  line-height: var(--leading-tight);
  color: var(--color-brand);
  margin: 0 0 40px;
}

/* Two-column grid: form left (1fr), summary right (374px).
   DOM order is summary-first; pin columns/rows so form reads left. */
.oe-order.checkout-page .checkout-grid {
  display: grid;
  grid-template-columns: 1fr 374px;
  gap: 36px;
  align-items: start;
}
.oe-order.checkout-page .checkout-form {
  grid-column: 1 / 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-width: 0;
}
.oe-order.checkout-page #order-summary {
  grid-column: 2 / 3;
  grid-row: 1;
  align-self: start;
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px 30px;
}

/* Section headings ("Venue", "Bestillingsoversigt") */
.oe-order.checkout-page .checkout-section-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);        /* 22px */
  line-height: var(--leading-snug);
  letter-spacing: normal;
  color: var(--color-accent);
  margin: 0 0 20px;
}
.oe-order.checkout-page #order-summary .checkout-section-title { margin: 0 0 22px; }

/* Venue section */
.oe-order.checkout-page #venue-section .checkout-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.oe-order.checkout-page #venue-section .checkout-field-label {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);       /* 12px */
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 1;
}
.oe-order.checkout-page #venue-section .form-select { max-width: 520px; }
.oe-order.checkout-page #venue-section .btn-orion-ghost { align-self: flex-start; margin-top: 16px; }
.oe-order.checkout-page .checkout-plus { font-size: 18px; line-height: 1; margin-right: 2px; }

/* Empty state (no venues yet) */
.oe-order.checkout-page .checkout-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 24px 8px 8px;
}
.oe-order.checkout-page .checkout-empty-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  color: var(--color-brand);
  display: flex; align-items: center; justify-content: center;
}
.oe-order.checkout-page .checkout-empty-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 1.25rem;               /* 20px */
  color: var(--color-accent);
}
.oe-order.checkout-page .checkout-empty-text {
  margin: 0;
  max-width: 340px;
  font-family: var(--font-body);
  font-size: 0.9375rem;             /* 15px */
  line-height: var(--leading-body);
  color: var(--text-muted);
  opacity: 1;
}
.oe-order.checkout-page .checkout-empty .btn { margin-top: 6px; }

/* Summary rows (JS-generated: .checkout-summary-row > name / qty / line) */
.oe-order.checkout-page .checkout-summary-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-soft);
}
.oe-order.checkout-page .checkout-summary-name {
  flex: 1 1 auto;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  letter-spacing: normal;
  color: var(--text-strong);
  opacity: 1;
}
.oe-order.checkout-page .checkout-summary-qty {
  font-family: var(--font-body);
  font-size: var(--text-sm);        /* 14px */
  letter-spacing: normal;
  color: var(--text-muted);
  white-space: nowrap;
  opacity: 1;
}
.oe-order.checkout-page .checkout-summary-line {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  letter-spacing: normal;
  color: var(--color-accent);
  white-space: nowrap;
  opacity: 1;
}
.oe-order.checkout-page .checkout-summary-shipping {
  border-bottom-width: 2px;
  border-bottom-color: var(--border-subtle);
}

/* Addons section in summary */
.oe-order.checkout-page .checkout-summary-addons-section {
  margin: 12px 0;
  padding: 0 14px;
  background-color: var(--warmgrey-100);
  border-radius: 8px;
}
.oe-order.checkout-page .checkout-summary-addons-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  cursor: pointer;
  user-select: none;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-xs);
  color: var(--color-accent);
}
.oe-order.checkout-page .checkout-summary-addons-toggle:hover {
  opacity: 0.8;
}
.oe-order.checkout-page .checkout-summary-addons-toggle .toggle-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
.oe-order.checkout-page .checkout-summary-addons-toggle .toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}
.oe-order.checkout-page .checkout-summary-addons-toggle.is-open .toggle-icon {
  transform: rotate(180deg);
}
.oe-order.checkout-page .checkout-summary-addons-total {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  color: var(--color-accent);
}
.oe-order.checkout-page .checkout-summary-addons-content {
  overflow: hidden;
  max-height: 2000px;
  transition: max-height 0.3s ease-out;
}
.oe-order.checkout-page .checkout-summary-addons-content.is-collapsed {
  max-height: 0;
}

/* Condensed rows for addons */
.oe-order.checkout-page .checkout-summary-row.is-addon {
  padding: 6px 0;
  border-bottom: 0;
}
.oe-order.checkout-page .checkout-summary-row.is-addon:last-child {
  padding-bottom: 12px;
}
.oe-order.checkout-page .checkout-summary-row.is-addon .checkout-summary-name {
  font-weight: var(--weight-regular);
  font-size: var(--text-xs);
  color: var(--text-muted);
}
.oe-order.checkout-page .checkout-summary-row.is-addon .checkout-summary-qty {
  font-size: var(--text-2xs);
}
.oe-order.checkout-page .checkout-summary-row.is-addon .checkout-summary-line {
  font-weight: var(--weight-regular);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Summary total + VAT */
.oe-order.checkout-page .checkout-summary-rows { border: 0; }
.oe-order.checkout-page .checkout-summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 0;
}
.oe-order.checkout-page .checkout-summary-total-label {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);       /* 12px */
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-brand);
  opacity: 1;
}
.oe-order.checkout-page .checkout-summary-total-value {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-xl);        /* 28px */
  letter-spacing: normal;
  color: var(--color-brand);
}
.oe-order.checkout-page .checkout-summary-vat {
  text-align: right;
  font-size: 0.6875rem;             /* 11px */
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 1;
  margin-top: 4px;
  margin-bottom: 8px;
}
.oe-order.checkout-page .checkout-summary-total-vat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.oe-order.checkout-page .checkout-summary-total-vat .checkout-summary-total-label,
.oe-order.checkout-page .checkout-summary-total-vat .checkout-summary-total-value {
  color: var(--color-accent);
}
.oe-order.checkout-page .checkout-summary-total-vat .checkout-summary-total-value {
  font-size: var(--text-lg);
}

/* Actions */
.oe-order.checkout-page .checkout-actions { margin: 0; }

/* Responsive: single column, form first */
@media (max-width: 860px) {
  .oe-order.checkout-page { padding: 28px 18px 54px; }
  .oe-order.checkout-page .order-title { font-size: 2rem; margin: 0 0 28px; }
  .oe-order.checkout-page .checkout-grid { grid-template-columns: 1fr; gap: 28px; }
  .oe-order.checkout-page .checkout-form { grid-column: auto; grid-row: auto; order: 1; }
  .oe-order.checkout-page #order-summary { grid-column: auto; grid-row: auto; order: 2; }
}


/* ============================================================================
   9c. CREATE-VENUE MODAL (order-checkout.php; #new-venue-form hooks frozen)
   Bootstrap .oe-modal; layout inside .modal-body via oe-venue-* classes.
   Inputs ride on .form-control (§5) and .form-check (§6) — .oe-order is on root.
   ============================================================================ */
#venue-modal { --bs-modal-width: 1080px; }
/* Beat base/light leaks: id specificity (1,1,0) > body.oe-light .X (0,2,1) */
#venue-modal .modal-dialog { max-width: 1080px; }
#venue-modal .modal-header { padding: 26px 32px; }
#venue-modal .modal-body   { padding: 28px 32px 32px; }
#venue-modal .modal-footer { padding: 18px 32px; }
#venue-modal .form-control {
  height: auto;
  min-height: 44px;
  padding: 10px 14px;
  line-height: 1.4;
  background-color: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
}
#venue-modal .form-control:focus {
  background-color: var(--white);
  border-color: var(--color-brand);
  box-shadow: var(--focus-ring);
  outline: 0;
}
#venue-modal .oe-venue-form { display: flex; flex-direction: column; gap: 28px; }
#venue-modal .oe-venue-field { display: flex; flex-direction: column; gap: 6px; margin: 0; position: relative; }
#venue-modal .oe-venue-label {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  opacity: 1;
}
#venue-modal .oe-venue-help { font-family: var(--font-body); font-size: var(--text-xs); color: var(--text-muted); opacity: 1; }
#venue-modal .oe-venue-form,
#venue-modal .oe-venue-section,
#venue-modal .oe-venue-grid-2,
#venue-modal .oe-venue-grid-3,
#venue-modal .oe-venue-grid-pc,
#venue-modal .oe-venue-stack { margin: 0; padding: 0; }
#venue-modal .oe-venue-rule { width: 28px; height: 2px; background: var(--color-brand); margin-bottom: 10px; }
#venue-modal .oe-venue-subtitle {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--color-accent);
  margin: 0 0 16px;
}
#venue-modal .oe-venue-stack { display: flex; flex-direction: column; gap: 16px; }
/* Delivery "same as billing" placeholder. [hidden] guard must beat the flex display. */
#venue-modal .oe-venue-stack[hidden],
#venue-modal .oe-venue-same[hidden] { display: none; }
#venue-modal .oe-venue-same {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 28px 24px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--surface-tint);
}
#venue-modal .oe-venue-same-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: var(--surface-soft-blue);
  color: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
#venue-modal .oe-venue-same-title { font-family: var(--font-body); font-weight: var(--weight-bold); color: var(--text-strong); }
#venue-modal .oe-venue-same-text { font-size: var(--text-sm); color: var(--text-muted); max-width: 260px; opacity: 1; }
#venue-modal .oe-venue-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
#venue-modal .oe-venue-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
#venue-modal .oe-venue-grid-pc { display: grid; grid-template-columns: 120px 1fr; gap: 14px; }
#venue-modal .oe-venue-check { display: flex; align-items: center; gap: 10px; align-self: flex-start; padding-left: 0; margin: 0; }
#venue-modal .oe-venue-check .form-check-input { float: none; margin: 0; }
#venue-modal .oe-venue-check .form-check-label { font-size: var(--text-base); }
@media (max-width: 720px) {
  #venue-modal .oe-venue-grid-3 { grid-template-columns: 1fr; }
  #venue-modal .oe-venue-grid-2 { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================================
   8c. SELECTED-VENUE READ-ONLY PANEL (checkout)
   ============================================================================ */
.oe-order.checkout-page .venue-card {
  background: var(--surface-tint);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px 30px;
}
.oe-order.checkout-page .venue-block { padding: 26px 0; border-bottom: 1px solid var(--border-soft); }
.oe-order.checkout-page .venue-block:last-child { border-bottom: 0; }
.oe-order.checkout-page .venue-block .oe-venue-rule { width: 28px; height: 2px; background: var(--color-brand); margin-bottom: 10px; }
.oe-order.checkout-page .venue-block-title {
  font-family: var(--font-display); font-weight: var(--weight-bold);
  font-size: var(--text-lg); line-height: var(--leading-snug);
  letter-spacing: normal; color: var(--color-accent); margin: 0 0 14px;
}
.oe-order.checkout-page .venue-contact-name { font-family: var(--font-body); font-weight: var(--weight-bold); color: var(--text-strong); margin-bottom: 6px; }
.oe-order.checkout-page .venue-contact-line { font-family: var(--font-body); color: var(--text-body); margin-bottom: 4px; }
.oe-order.checkout-page .venue-link { color: var(--text-link); }
.oe-order.checkout-page .venue-help { margin: 12px 0 0; font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-body); color: var(--text-muted); opacity: 1; max-width: 80%; }
.oe-order.checkout-page .venue-kv { display: grid; grid-template-columns: 132px 1fr; gap: 14px 18px; margin: 0; }
.oe-order.checkout-page .venue-kv-row { display: contents; }
.oe-order.checkout-page .venue-kv dt { align-self: start; font-family: var(--font-body); font-weight: var(--weight-bold); font-size: var(--text-2xs); letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-accent); }
.oe-order.checkout-page .venue-kv dd { margin: 0; font-family: var(--font-body); color: var(--text-body); }
.oe-order.checkout-page .venue-lines { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-body); color: var(--text-body); }
.oe-order.checkout-page .venue-att { color: var(--text-muted); margin-bottom: 6px; }
.oe-order.checkout-page .venue-delivery-name { font-weight: var(--weight-bold); color: var(--text-strong); }
.oe-order.checkout-page .venue-lines [hidden] { display: none; }


/* ============================================================================
   8d. CHECKOUT VENUE-COLUMN CORRECTIONS (override earlier rules; source-order wins)
   ============================================================================ */
/* H1 in the airy ORION display weight (was bold) */
.oe-order.checkout-page .order-title { font-weight: var(--weight-light); }
/* Flatten the venue-section: base/light leaks a card onto .checkout-section, which
   indents the dropdown from the H1. The #venue-details card comes from .venue-card, so
   this does not affect it. */
.oe-order.checkout-page .checkout-section {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 0;
}
/* Venue select fills the column and left-aligns with the H1 */
.oe-order.checkout-page #venue-section .form-select { max-width: none; }


/* ============================================================================
   8e. VENUE-COLUMN FIXES 2 (dropdown, Ny venue button, left alignment)
   ============================================================================ */
/* Align the form column to the H1's left edge (leaked inset above .checkout-section) */
.oe-order.checkout-page .checkout-grid { padding-left: 0; padding-right: 0; }
.oe-order.checkout-page .checkout-form { padding: 0; margin: 0; }

/* Venue select: flat, borderless, taller tint field */
.oe-order.checkout-page #venue-section .form-select {
  max-width: none;
  min-height: 54px;
  padding: 15px 18px;
  border: 0;
  background-color: var(--warmgrey-100);
  border-radius: var(--radius-sm);
  color: var(--text-body);
}

/* "Ny venue" trigger: neutral outline button (empty-state CTA stays red) */
.oe-order.checkout-page #venue-create {
  --bs-btn-color: var(--text-body);
  --bs-btn-bg: var(--white);
  --bs-btn-border-color: var(--border-strong);
  --bs-btn-hover-color: var(--text-strong);
  --bs-btn-hover-bg: var(--warmgrey-100);
  --bs-btn-hover-border-color: var(--border-strong);
  --bs-btn-active-color: var(--text-strong);
  --bs-btn-active-bg: var(--warmgrey-100);
  --bs-btn-active-border-color: var(--border-strong);
}


/* ============================================================================
   9d. ORDER-CONFIRMATION MODAL (#order-confirmed-modal)
   ============================================================================ */
#order-confirmed-modal { --bs-modal-width: 560px; }
#order-confirmed-modal .oe-confirm-header { align-items: flex-start; border-bottom: 0; padding-bottom: 0; }
#order-confirmed-modal .oe-confirm-check {
  width: 64px; height: 64px;
  border-radius: var(--radius-pill);
  background: var(--green-tint);
  color: var(--green);
  display: flex; align-items: center; justify-content: center;
}
#order-confirmed-modal .oe-modal-title { margin: 0; }
#order-confirmed-modal .oe-confirm-body { color: var(--text-body); }
#order-confirmed-modal .oe-confirm-body p { margin: 0 0 10px; color: var(--text-body); }
#order-confirmed-modal .order-confirmed-number { font-weight: var(--weight-bold); color: var(--color-brand); letter-spacing: normal; }

/* ============================================================================
   8f. CHECKOUT CTA TUNING (left-aligned + larger primary submit button)
   ============================================================================ */
.oe-order.checkout-page .checkout-actions {
  display: flex;
  justify-content: flex-start;
}
.oe-order.checkout-page #checkout-submit {
  font-size: var(--text-base);
  padding: 15px 26px;
}


/* ============================================================================
   10. BINGO PULTEN  (self-contained caller page; JS contract frozen)
   Scoped .oe-order.bingo-page. Loads over base+light — new selectors only in
   this step, so no leak-reset is needed here; restyles of existing bingo hooks
   (#bingo-board cells, controls, modals) come in a later phase.
   ============================================================================ */

/* Page frame: full-viewport flex column on a light surface (beats dark base
   via the .oe-order baseline already defined in section 3). */
.oe-order.bingo-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--surface-tint);
}

/* --- Top bar (hard-coded header; markup added in a later phase) ----------- */
.oe-order.bingo-page .bingo-topbar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 28px;
  background: var(--white);
  border-bottom: 1px solid var(--border-subtle);
}
.oe-order.bingo-page .bingo-topbar__brand { display: flex; align-items: center; gap: 18px; }
.oe-order.bingo-page .bingo-topbar__logo-wrap { display: inline-flex; align-items: center; gap: 14px; line-height: 1; }
.oe-order.bingo-page .bingo-topbar__logo { height: 40px; width: auto; display: block; }
.oe-order.bingo-page .bingo-topbar__badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px;
  background: var(--orion-red); color: var(--white);
  font-family: var(--font-body); font-weight: var(--weight-bold);
  font-size: var(--text-2xs); letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: var(--radius-sm);
}
.oe-order.bingo-page .bingo-topbar__divider { width: 1px; height: 30px; background: var(--border-subtle); }
.oe-order.bingo-page .bingo-topbar__title {
  font-family: var(--font-display); font-weight: var(--weight-light);
  font-size: var(--text-xl); color: var(--warmgrey-900); letter-spacing: -0.01em;
}
.oe-order.bingo-page .bingo-topbar__status { display: flex; align-items: center; gap: 18px; }
.oe-order.bingo-page .bingo-topbar__live {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--text-sm); color: var(--text-muted);
}
.oe-order.bingo-page .bingo-topbar__dot {
  width: 9px; height: 9px; border-radius: var(--radius-pill);
  background: var(--orion-red); box-shadow: 0 0 0 4px rgba(214, 8, 70, 0.18);
}
.oe-order.bingo-page .bingo-topbar__clock {
  font-family: var(--font-display); font-weight: var(--weight-light);
  font-size: var(--text-lg); color: var(--warmgrey-900);
}

/* --- Stage: board (1fr) + right rail (408px) ----------------------------- */
.oe-order.bingo-page .bingo-play {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 408px;
  gap: 24px;
  padding: 24px 28px;
}

/* Board card shell — is ALSO the 10-col cell grid (cells/states styled later) */
.oe-order.bingo-page #bingo-board {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  align-content: center;
}

/* Right rail column shell (panel internals styled later) */
.oe-order.bingo-page #bingo-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- Board cells + draw states (Phase 2a) --------------------------------
   Every selector carries the #bingo-board id to out-specify base's leaked
   `#bingo-board .bingo-cell` rules (id-count match). Each rule sets its full
   property set so no base value leaks through. `.bingo-cell` state classes
   (is-drawn, is-drawing, is-pressing, is-timer-cursor) are JS-owned — styled
   here, never renamed. */
.oe-order.bingo-page #bingo-board .bingo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(15px, 1.55vw, 27px);
  border-radius: 9px;
  /* PLAIN / undrawn — default state */
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  color: var(--warmgrey-400);
  box-shadow: none;
  transition: background-color var(--duration) var(--ease-standard),
              border-color var(--duration) var(--ease-standard),
              color var(--duration) var(--ease-standard),
              box-shadow var(--duration) var(--ease-standard),
              transform var(--duration) var(--ease-standard);
}

/* DRAWN — number has been called (persistent). Audit-confirmed called-cell hook. */
.oe-order.bingo-page #bingo-board .bingo-cell.is-drawn {
  background: var(--orion-red);
  border: 1px solid var(--orion-red);
  color: var(--white);
  box-shadow: var(--shadow-xs);
}

/* DRAWING — reveal emphasis at draw time (transient). Ordered AFTER is-drawn so
   the glow wins during the reveal, then settles to the drawn look. */
.oe-order.bingo-page #bingo-board .bingo-cell.is-drawing {
  background: var(--orion-red);
  border: 2px solid var(--orion-red);
  color: var(--white);
  box-shadow: 0 0 0 4px rgba(214, 8, 70, 0.25), var(--shadow-md);
}

/* PRESSING — press/active feedback. ASSUMED: momentary pressed state. QA-VERIFY. */
.oe-order.bingo-page #bingo-board .bingo-cell.is-pressing {
  transform: scale(0.94);
}

/* TIMER-CURSOR — game-mode step cursor. ASSUMED semantic (accent ring). QA-VERIFY. */
.oe-order.bingo-page #bingo-board .bingo-cell.is-timer-cursor {
  background: var(--orion-azure);
  border-color: var(--orion-azure);
  color: var(--orion-nightblue);
}

/* --- Current-number panel (Phase 2b) -------------------------------------
   #bingo-current is the top of the right rail: the drawn number, a progress
   bar, and two lingo lines. All ids/classes here are JS-owned (the number and
   both lingo lines get their text/children rewritten; #bingo-current-progress
   toggles is-active/is-counting) — styled, never renamed, never given fixed
   inner markup assumptions. */
.oe-order.bingo-page #bingo-current {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 28px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Giant drawn number (uses the display token added in Phase 1) */
.oe-order.bingo-page #bingo-current-number {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-display);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--orion-red);
  min-height: 0.9em;   /* reserve height so the panel doesn't jump when empty */
}

/* Progress track + JS-driven fill */
.oe-order.bingo-page #bingo-current-progress {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-tint);
  overflow: hidden;
}
.oe-order.bingo-page #bingo-current-progress-fill {
  height: 100%;
  width: 0;   /* JS sets the width */
  border-radius: var(--radius-pill);
  background: var(--orion-red);
  transition: width var(--duration) var(--ease-standard);
}
/* Counting state — subtle accent while a draw/step is animating. QA-VERIFY. */
.oe-order.bingo-page #bingo-current-progress.is-counting #bingo-current-progress-fill {
  background: var(--color-accent);
}

/* Lingo lines (text + children are JS-rewritten) */
.oe-order.bingo-page #bingo-current-lingo {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 2.6em;   /* reserve space for up to two lines */
}
.oe-order.bingo-page #bingo-lingo-1 { font-family: var(--font-display); font-weight: var(--weight-light); font-size: 24px; line-height: var(--leading-snug); color: var(--warmgrey-900); }
.oe-order.bingo-page #bingo-lingo-2 { font-family: var(--font-body); font-size: var(--text-sm); line-height: var(--leading-snug); color: var(--text-muted); }

/* --- Controls: buttons + views (Phase 2c) --------------------------------
   #bingo-controls holds three views (#bingo-controls-default / -game /
   -settings) toggled via the .hidden attribute-class by JS. Buttons keep their
   bespoke .bingo-ctrl-btn class (not converted to .btn) and are restyled via
   tokens. #btn-draw's innerHTML is JS-rewritten, so we style the button, never
   its children. State classes (is-primary, is-restart, is-drawing, is-running,
   is-counting, timer-running, step-running) are JS-owned — styled, never
   renamed. */

/* Views: stacked; .hidden must beat the flex display (JS toggles it). */
.oe-order.bingo-page #bingo-controls { display: flex; flex-direction: column; }
.oe-order.bingo-page .ctrl-view {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.oe-order.bingo-page .ctrl-view.hidden,
.oe-order.bingo-page .ctrl-timer.hidden,
.oe-order.bingo-page .ctrl-step.hidden { display: none; }

/* Base control button — token-themed, full-width, icon + label */
.oe-order.bingo-page .bingo-ctrl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-button);
  line-height: 1.1;
  color: var(--text-strong);
  background: var(--surface-tint);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-standard),
              color var(--duration) var(--ease-standard),
              border-color var(--duration) var(--ease-standard);
}
.oe-order.bingo-page .bingo-ctrl-btn:hover { background: var(--warmgrey-150); }
.oe-order.bingo-page .bingo-ctrl-btn:focus-visible {
  outline: 0;
  box-shadow: var(--focus-ring);
}
.oe-order.bingo-page .bingo-ctrl-btn i { font-size: 1em; line-height: 1; }

/* Primary — red fill (the main draw / start actions) */
.oe-order.bingo-page .bingo-ctrl-btn.is-primary {
  color: var(--text-on-brand);
  background: var(--orion-red);
  border-color: var(--orion-red);
}
.oe-order.bingo-page .bingo-ctrl-btn.is-primary:hover {
  background: var(--orion-red-ink);
  border-color: var(--orion-red-ink);
}

/* Draw button running/restart states (JS toggles these on #btn-draw and the
   start button). is-drawing = mid-draw (dim, non-interactive feel);
   is-restart / is-running / is-counting = active red emphasis. QA-VERIFY looks. */
.oe-order.bingo-page #btn-draw.is-drawing { opacity: 0.65; }
.oe-order.bingo-page #btn-draw.is-restart,
.oe-order.bingo-page #btn-settings-start.is-running,
.oe-order.bingo-page #btn-settings-start.is-counting {
  color: var(--text-on-brand);
  background: var(--orion-red);
  border-color: var(--orion-red);
}

/* Game view: back chevron + two sections (timer, step) */
.oe-order.bingo-page #bingo-controls-game { gap: var(--space-3); }
.oe-order.bingo-page .ctrl-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.oe-order.bingo-page .ctrl-settings-row { display: flex; flex-direction: column; gap: var(--space-2); }

/* Back button — small ghost chevron */
.oe-order.bingo-page .ctrl-back {
  align-self: flex-start;
  width: auto;
  min-height: 0;
  padding: 6px 10px;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  cursor: pointer;
  transition: color var(--duration) var(--ease-standard),
              background-color var(--duration) var(--ease-standard);
}
.oe-order.bingo-page .ctrl-back:hover { color: var(--text-strong); background: var(--surface-tint); }
.oe-order.bingo-page .ctrl-back:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* Settings gear icon — top-right trigger in the default view */
.oe-order.bingo-page .ctrl-settings-icon {
  align-self: flex-end;
  margin-top: var(--space-1);
  padding: 8px;
  color: var(--text-muted);
  font-size: var(--text-lg);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease-standard),
              background-color var(--duration) var(--ease-standard);
}
.oe-order.bingo-page .ctrl-settings-icon:hover { color: var(--orion-red); background: var(--surface-tint); }
.oe-order.bingo-page .ctrl-settings-icon:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* --- Logo / promo rotator (Phase 2d) -------------------------------------
   #bingo-logo is a rail card holding .bingo-cards, a cross-fade stack of three
   .bingo-card faces (logo / shop / campaign). An inline rotator toggles
   .is-active every 6s; cards are stacked in one grid cell and fade on opacity.
   is-active is JS-owned — styled, never renamed. */
.oe-order.bingo-page #bingo-logo {
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Cross-fade stack: all faces share one grid cell; container sizes to tallest */
.oe-order.bingo-page .bingo-cards {
  display: grid;
  width: 100%;
}
.oe-order.bingo-page .bingo-card {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transition: opacity 0.6s var(--ease-standard);
}
.oe-order.bingo-page .bingo-card.is-active { opacity: 1; }

/* Face 1 — logo image */
.oe-order.bingo-page .bingo-card img {
  max-width: 230px;
  width: 80%;
  height: auto;
  margin: 0 auto;
}

/* Shared text wrapper (shop + campaign faces) */
.oe-order.bingo-page .bingo-card__text {
  text-align: center;
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--text-lg);
  line-height: 1.3;
  color: var(--warmgrey-900);
}
.oe-order.bingo-page .bingo-card__text strong { font-weight: var(--weight-bold); color: var(--orion-red); }

/* Face 2 — shop */
.oe-order.bingo-page .bingo-card__lead {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-md);
  color: var(--text-muted);
}
.oe-order.bingo-page .bingo-card__shop {
  display: block;
  margin-top: 4px;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: 2rem;   /* 32px */
  color: var(--orion-red);
}

/* Face 3 — campaign discount code badge */
.oe-order.bingo-page .bingo-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: var(--orion-red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius-pill);
}

/* --- Shake overlay (Phase 2e) --------------------------------------------
   #bingo-shake-overlay is a full-screen overlay: dark backdrop + centered
   shake IMAGE (#bingo-shake-img, src set by JS) + a progress bar. JS toggles
   the [hidden] attribute (show/hide) and the .is-visible class (fade). Both are
   JS-owned — styled, never renamed. */
.oe-order.bingo-page #bingo-shake-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  transition: opacity var(--duration) var(--ease-standard);
}
/* [hidden] must beat the id's display:flex */
.oe-order.bingo-page #bingo-shake-overlay[hidden] { display: none; }
.oe-order.bingo-page #bingo-shake-overlay.is-visible { opacity: 1; }

.oe-order.bingo-page .bingo-shake__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 27, 28, 0.78);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

/* Shake image (sits above the backdrop) */
.oe-order.bingo-page .bingo-shake__img {
  position: relative;
  z-index: 1;
  max-width: min(70vw, 400px);
  max-height: 60vh;
  width: auto;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Progress track + fill */
.oe-order.bingo-page .bingo-shake__progress {
  position: relative;
  z-index: 1;
  width: 320px;
  max-width: 70vw;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}
.oe-order.bingo-page .bingo-shake__progress-bar {
  height: 100%;
  width: 0;   /* fill mechanism TBD — see QA note */
  border-radius: var(--radius-pill);
  background: var(--white);
  transition: width var(--duration) var(--ease-standard);
}

/* --- Modal chrome + settings modal (Phase 2f-i) --------------------------
   All bingo modals share .bingo-modal / __backdrop / __panel / __close /
   __title / __footer / __btn and are shown/hidden by JS via the [hidden]
   attribute (bespoke, NOT Bootstrap). Restyle only — never convert, never
   rename. The save-settings JS hook is
   `.bingo-modal__footer .bingo-modal__btn[data-close]`, so __btn + [data-close]
   in the footer must remain intact. Base+light also style .bingo-modal__panel /
   __title (light lines 295/300), so these rules full-set to beat the leak. */

/* Overlay + backdrop */
.oe-order.bingo-page .bingo-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.oe-order.bingo-page .bingo-modal[hidden] { display: none; }   /* beat display:flex */
.oe-order.bingo-page .bingo-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 27, 28, 0.55);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* Panel */
.oe-order.bingo-page .bingo-modal__panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 32px 28px;
}
.oe-order.bingo-page .bingo-modal__panel--instructions { max-width: 760px; }

/* Close (X) */
.oe-order.bingo-page .bingo-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: color var(--duration) var(--ease-standard),
              background-color var(--duration) var(--ease-standard);
}
.oe-order.bingo-page .bingo-modal__close:hover { color: var(--text-strong); background: var(--surface-tint); }
.oe-order.bingo-page .bingo-modal__close:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* Title */
.oe-order.bingo-page .bingo-modal__title {
  margin: 0 0 20px;
  font-family: var(--font-display);
  font-weight: var(--weight-light);
  font-size: var(--text-xl);
  line-height: var(--leading-snug);
  letter-spacing: normal;
  color: var(--color-accent);
}

/* Footer + footer buttons */
.oe-order.bingo-page .bingo-modal__footer {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-soft);
}
.oe-order.bingo-page .bingo-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 42px;
  padding: 10px 18px;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-button);
  color: var(--text-strong);
  background: var(--surface-tint);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--duration) var(--ease-standard);
}
.oe-order.bingo-page .bingo-modal__btn:hover { background: var(--warmgrey-150); }
.oe-order.bingo-page .bingo-modal__btn:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* Settings rows: label + native <select> restyled as a form field */
.oe-order.bingo-page .bingo-setting {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.oe-order.bingo-page .bingo-setting > label {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.oe-order.bingo-page .bingo-setting select {
  width: 100%;
  min-height: 46px;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-body);
  background-color: var(--warmgrey-100);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}
.oe-order.bingo-page .bingo-setting select:focus {
  background-color: var(--white);
  border-color: var(--orion-red);
  box-shadow: var(--focus-ring);
  outline: 0;
}

/* --- History rows + confirm/remove modals (Phase 2f-ii) ------------------
   History rows are BUILT BY JS (no markup in the PHP): #bingo-history-list gets
   .bingo-history__row > .bingo-history__info (> __time + __count) and a
   .bingo-history__load button (data-game-id, contains an <i>). The remove modal
   text is JS-built too: #bingo-remove-text gets a .bingo-remove-num span. These
   classes are styled blind against the audited JS structure — do not rename. */

/* History list + rows */
.oe-order.bingo-page #bingo-history-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-height: 60vh;
  overflow-y: auto;
}
.oe-order.bingo-page .bingo-history__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 14px 16px;
  background: var(--surface-tint);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
}
.oe-order.bingo-page .bingo-history__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.oe-order.bingo-page .bingo-history__time {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-base);
  color: var(--text-strong);
}
.oe-order.bingo-page .bingo-history__count {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.oe-order.bingo-page .bingo-history__load {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: var(--color-brand);
  background: var(--white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  cursor: pointer;
  transition: color var(--duration) var(--ease-standard),
              background-color var(--duration) var(--ease-standard),
              border-color var(--duration) var(--ease-standard);
}
.oe-order.bingo-page .bingo-history__load:hover {
  color: var(--text-on-brand);
  background: var(--color-brand);
  border-color: var(--color-brand);
}
.oe-order.bingo-page .bingo-history__load:focus-visible { outline: 0; box-shadow: var(--focus-ring); }

/* Confirm + remove modal body text (shared .bingo-confirm__text) */
.oe-order.bingo-page .bingo-confirm__text {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
}
/* JS-built highlighted number inside the remove prompt */
.oe-order.bingo-page .bingo-remove-num {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  color: var(--color-brand);
}

/* Confirm/remove action row (shared .bingo-confirm__actions on the footer) */
.oe-order.bingo-page .bingo-confirm__actions {
  justify-content: flex-end;
}
.oe-order.bingo-page .bingo-confirm__actions .bingo-ctrl-btn {
  width: auto;
  min-width: 120px;
}

/* --- Instructions manual + table (Phase 2g) ------------------------------
   .bingo-instructions__content is a long-form manual (h3/h4/p/ul/blockquote)
   plus .bingo-instructions__table. Base+light leak heading fonts and list
   styles, so element rules here full-set. Content is untouched (JS reads this
   block's innerHTML for print) — styling only. */
.oe-order.bingo-page .bingo-instructions__content {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text-body);
}
.oe-order.bingo-page .bingo-instructions__content h3 {
  margin: 28px 0 10px;
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  line-height: var(--leading-snug);
  letter-spacing: normal;
  color: var(--color-accent);
}
.oe-order.bingo-page .bingo-instructions__content h4 {
  margin: 20px 0 8px;
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-md);
  line-height: var(--leading-snug);
  color: var(--text-strong);
}
.oe-order.bingo-page .bingo-instructions__content p {
  margin: 0 0 12px;
  color: var(--text-body);
}
.oe-order.bingo-page .bingo-instructions__content ul {
  margin: 0 0 12px;
  padding-left: 22px;
  list-style: disc;
}
.oe-order.bingo-page .bingo-instructions__content li {
  margin-bottom: 6px;
  color: var(--text-body);
}
.oe-order.bingo-page .bingo-instructions__content blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  background: var(--surface-tint);
  border-left: 3px solid var(--color-brand);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  font-style: normal;
}

/* Settings reference table */
.oe-order.bingo-page .bingo-instructions__table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: var(--text-sm);
}
.oe-order.bingo-page .bingo-instructions__table th,
.oe-order.bingo-page .bingo-instructions__table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border-soft);
}
.oe-order.bingo-page .bingo-instructions__table thead th {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  border-bottom: 1px solid var(--border-subtle);
}
.oe-order.bingo-page .bingo-instructions__table tbody td { color: var(--text-body); }
.oe-order.bingo-page .bingo-instructions__table tbody tr:last-child td { border-bottom: 0; }

/* --- Controls top section: header + 2-col grid + button variants (Phase 4a)
   Target: "STYRING" eyebrow + gear on one row, then a 2x2 button grid.
   btn-draw5 / btn-shake are DARK; btn-game (Spil) is GHOST; btn-draw is PRIMARY
   (red). Variant classes are added in the markup. These full-set color/bg to
   beat base leak that was washing the buttons out. */

/* Header row (new .bingo-ctrl-head wraps the eyebrow + gear) */
.oe-order.bingo-page .bingo-ctrl-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.oe-order.bingo-page .bingo-ctrl-head__title {
  font-family: var(--font-body);
  font-weight: var(--weight-bold);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Default view becomes a 2-col grid; other views stay column (2c set that) */
.oe-order.bingo-page #bingo-controls-default {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Dark variant (Træk 5, Ryst posen) */
.oe-order.bingo-page .bingo-ctrl-btn.is-dark {
  color: var(--white);
  background: var(--warmgrey-800);
  border-color: var(--warmgrey-800);
}
.oe-order.bingo-page .bingo-ctrl-btn.is-dark:hover {
  background: var(--warmgrey-900);
  border-color: var(--warmgrey-900);
}

/* Ghost variant (Spil) — light outline */
.oe-order.bingo-page .bingo-ctrl-btn.is-ghost {
  color: var(--text-strong);
  background: var(--white);
  border-color: var(--border-subtle);
}
.oe-order.bingo-page .bingo-ctrl-btn.is-ghost:hover {
  background: var(--surface-tint);
  border-color: var(--border-strong);
}

/* Move the gear out of the button flow — it now lives in the header row */
.oe-order.bingo-page .bingo-ctrl-head .ctrl-settings-icon {
  align-self: auto;
  margin-top: 0;
}

/* --- Controls: consolidated button + header + gear overrides (Phase 4X) ---
   Single authoritative block replacing the 4b–4i patch pile. Uses id scope +
   !important to beat base orion-events.css. Target values are the design's
   computed numbers (button 42px / 14px / 700; gear centered on the header). */

/* Buttons — solid variants, square, 42px, 14px bold, normal case */
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn {
  height: 42px !important;
  min-height: 42px !important;
  padding: 11px 20px !important;
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  gap: 8px !important;
  border: 1px solid transparent !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: none !important;
  background: var(--surface-tint) !important;
  color: var(--text-strong) !important;
}
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn span,
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn i {
  font-size: 14px !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: inherit !important;
}
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn.is-primary {
  background: var(--orion-red) !important;
  color: var(--white) !important;
  border-color: var(--orion-red) !important;
}
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn.is-dark {
  background: var(--warmgrey-800) !important;
  color: var(--white) !important;
  border-color: var(--warmgrey-800) !important;
}
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn.is-ghost {
  background: var(--white) !important;
  color: var(--text-strong) !important;
  border-color: var(--border-subtle) !important;
}

/* Header row — STYRING + gear on one line, tight to top, breathing room below */
.oe-order.bingo-page #bingo-right,
.oe-order.bingo-page #bingo-controls { margin-top: 0 !important; padding-top: 0 !important; }
.oe-order.bingo-page .bingo-ctrl-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 0 12px !important;
}

/* Gear — forced into flow (base absolute-positions it), centered on the text.
   translateY is the working knob (position is static, so `top` is inert). */
.oe-order.bingo-page .bingo-ctrl-head #btn-bingo-settings.ctrl-settings-icon {
  position: static !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  margin: 0 !important;
  padding: 4px !important;
  font-size: var(--text-md) !important;
  line-height: 1 !important;
  color: var(--text-muted) !important;
  transform: translateY(0px) !important;
}

/* --- Rail stacking fix: kill base absolute-positioning (Phase 5a) ---------
   Base orion-events.css positions the rail panels absolutely, so #bingo-current
   overlaps the controls. Force the rail into a normal flex column and each
   child into static flow. */
.oe-order.bingo-page #bingo-right {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 18px !important;
  min-height: 0 !important;
}
.oe-order.bingo-page #bingo-controls,
.oe-order.bingo-page #bingo-current,
.oe-order.bingo-page #bingo-logo {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  margin: 0 !important;
  transform: none !important;
}

/* --- Rail flex sizing fix: reset leaked flex-basis (Phase 5b) -------------
   Base sets flex-basis (73% etc.) on the rail children, so #bingo-current
   overgrows and the column overflows/collides. Reset all three: controls and
   logo take natural height; current grows to fill the middle. */
.oe-order.bingo-page #bingo-controls {
  flex: 0 0 auto !important;
}
.oe-order.bingo-page #bingo-logo {
  flex: 0 0 auto !important;
}
.oe-order.bingo-page #bingo-current {
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

/* --- Bottom logo section: height + bottom-anchor (Phase 5c) ---------------
   The logo card collapsed (base forces a small height and clips the rotator).
   Give it a real min-height and release the height cap; make the rail fill the
   full stage so the middle grows and the logo sits at the bottom. */
.oe-order.bingo-page #bingo-right {
  height: 100% !important;
  min-height: 0 !important;
}
.oe-order.bingo-page #bingo-logo {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: 120px !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.oe-order.bingo-page #bingo-logo .bingo-cards { width: 100% !important; }

/* --- Bottom logo: auto-margin bottom pin (Phase 5d) -----------------------
   height:100% wasn't resolving (grid row not stretched). Use margin-top:auto
   on the last rail child to push it to the bottom, and stretch the rail to the
   full grid-row height so there is space to push into. */
.oe-order.bingo-page #bingo-right {
  align-self: stretch !important;
}
.oe-order.bingo-page #bingo-logo {
  margin-top: auto !important;
}

/* --- Bottom logo: absolute bottom pin (Phase 5e) -------------------------
   Rail children exactly fill the column, so auto-margin has no space. Pin the
   logo to the rail bottom absolutely (rail is position:relative), and reserve
   space so the middle card doesn't sit under it. */
.oe-order.bingo-page #bingo-right { padding-bottom: 138px !important; }
.oe-order.bingo-page #bingo-logo {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  margin: 0 !important;
}

/* --- Bottom logo width fix: respect rail insets (Phase 5f) ----------------
   The absolute pin used left:0/right:0 and ignored the rail's horizontal
   padding, so the logo went full-width. Pin it inside the padding box instead
   so it lines up with the controls and middle card. */
.oe-order.bingo-page #bingo-logo {
  left: 0 !important;
  right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: auto !important;
  box-sizing: border-box !important;
}
.oe-order.bingo-page #bingo-right {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* --- Stage frame: fill viewport, even gutters (Phase 5h) ------------------
   Base body layout offsets the stage (big left/top gutter, tight right/bottom).
   Force .bingo-play to fill the space below the topbar and pad evenly. */
.oe-order.bingo-page {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}
.oe-order.bingo-page .bingo-topbar { flex: 0 0 auto !important; }
.oe-order.bingo-page .bingo-play {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 24px 28px !important;
  box-sizing: border-box !important;
}

/* --- Fit to viewport: no page scroll (Phase 5i) --------------------------
   5h used min-height:100vh which let the board grow taller than the screen.
   Lock the page to exactly the viewport height and let the stage/board fit
   inside it instead of overflowing. */
.oe-order.bingo-page {
  height: 100vh !important;
  min-height: 0 !important;
  overflow: hidden !important;
}
.oe-order.bingo-page .bingo-play {
  min-height: 0 !important;
  overflow: hidden !important;
}
.oe-order.bingo-page #bingo-board {
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: 100% !important;
  aspect-ratio: 10 / 9 !important;
  width: auto !important;
  max-width: 100% !important;
  justify-self: center !important;
  grid-template-rows: repeat(9, 1fr) !important;
  align-content: stretch !important;
}

/* --- Rail rebalance: taller logo, shorter number card (Phase 5j) ----------
   Increase #bingo-logo height by ~15% of the rail; #bingo-current (flex-grow)
   gives up the space automatically. padding-bottom reserve on the rail is
   bumped to match the taller absolute-pinned logo. */
.oe-order.bingo-page #bingo-logo { min-height: 150px !important; }
.oe-order.bingo-page #bingo-right { padding-bottom: 168px !important; }

/* --- Controls: persistent header + per-view grid layout (Phase 6) ---------
   .bingo-ctrl-head (STYRING + gear) is now a direct child of #bingo-controls
   (moved out of #bingo-controls-default in the markup), so it renders above ALL
   three views. Each view is then its own grid:
     default  : 2x2 buttons (already set in Phase 4X — untouched here)
     settings : [back][Start][Stop] on one row + a reserved blank row below
     game     : back spans two rows; [Start timer|Stop timer] over [Frem|Tilbage]
   Row height is pinned to the 4X button height (42px) so all three views keep a
   constant height on switch (the giant-number card below doesn't jump).
   HIDE GUARD: JS hides views/sections with the .hidden class / [hidden] attr.
   These new selectors are id-scoped, so a plain .hidden rule would LOSE to them
   and a view/section would never hide — restate display:none !important at id
   specificity for BOTH attr and class. A shown element carries neither, so this
   is strictly safe. Mirrors the [hidden] guards used for shake + modals. */

/* HIDE GUARD — must outrank the id-scoped grid rules below */
.oe-order.bingo-page #bingo-controls-default[hidden],
.oe-order.bingo-page #bingo-controls-default.hidden,
.oe-order.bingo-page #bingo-controls-game[hidden],
.oe-order.bingo-page #bingo-controls-game.hidden,
.oe-order.bingo-page #bingo-controls-settings[hidden],
.oe-order.bingo-page #bingo-controls-settings.hidden { display: none !important; }

/* SETTINGS view: [back][Start][Stop] one row + reserved blank row */
.oe-order.bingo-page #bingo-controls-settings {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: 42px 42px;
  gap: 10px;
}
.oe-order.bingo-page #bingo-controls-settings #btn-settings-back { grid-column: 1; grid-row: 1; }
.oe-order.bingo-page #bingo-controls-settings .ctrl-settings-row {
  grid-column: 2; grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* GAME view: back spans both rows; timer row over step row */
.oe-order.bingo-page #bingo-controls-game {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: 42px 42px;
  gap: 10px !important;
}
.oe-order.bingo-page #bingo-controls-game #btn-controls-back { grid-column: 1; grid-row: 1 / span 2; }
.oe-order.bingo-page #bingo-controls-game .ctrl-timer {
  grid-column: 2; grid-row: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.oe-order.bingo-page #bingo-controls-game .ctrl-step {
  grid-column: 2; grid-row: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Section hide guard: JS toggles .ctrl-timer/.ctrl-step .hidden in game mode */
.oe-order.bingo-page #bingo-controls-game .ctrl-timer[hidden],
.oe-order.bingo-page #bingo-controls-game .ctrl-timer.hidden,
.oe-order.bingo-page #bingo-controls-game .ctrl-step[hidden],
.oe-order.bingo-page #bingo-controls-game .ctrl-step.hidden { display: none !important; }

/* Back button (both views): filled azure square, chevron centered, fills its
   grid cell (1 row in settings, 2 rows in game). Overrides the 2c ghost .ctrl-back. */
.oe-order.bingo-page #bingo-controls-settings #btn-settings-back,
.oe-order.bingo-page #bingo-controls-game #btn-controls-back {
  align-self: stretch;
  justify-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--orion-azure);
  color: var(--orion-nightblue);
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--text-md);
  cursor: pointer;
  transition: filter var(--duration) var(--ease-standard);
}
.oe-order.bingo-page #bingo-controls-settings #btn-settings-back:hover,
.oe-order.bingo-page #bingo-controls-game #btn-controls-back:hover {
  background: var(--orion-azure);
  filter: brightness(0.96);
}

/* Disabled control buttons (Stop / Stop timer / Tilbage): visible ghosted box +
   muted content. The 4X rule forces background:surface-tint !important on plain
   buttons, so restate background here with !important; drop opacity (it washed
   the box into the page). */
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn:disabled {
  background: var(--warmgrey-200) !important;
  color: var(--text-muted) !important;
  border-color: transparent !important;
  cursor: default;
}
.oe-order.bingo-page #bingo-right .bingo-ctrl-btn:disabled:hover {
  background: var(--warmgrey-200) !important;
}

/* --- Running-state emphasis flip: Start inactive, Stop red (Phase 7) -------
   Pure CSS — reacts to classes the JS already toggles (no bingo-play.js change).
   5 i træk: is-running/is-counting on #btn-settings-start greys Start (still
   showing the 1-5 counter) and turns the sibling #btn-settings-stop red.
   Spil: #bingo-controls-game .timer-running / .step-running turn the live
   stop-side button red (Stop timer; and #btn-step-back, which JS relabels to
   "Stop" in step mode). Frem stays red so both step actions read as active. */
.oe-order.bingo-page #bingo-right #btn-settings-start.is-running,
.oe-order.bingo-page #bingo-right #btn-settings-start.is-counting { background: var(--warmgrey-200) !important; color: var(--text-muted) !important; border-color: transparent !important; }
.oe-order.bingo-page #bingo-right #btn-settings-start.is-running ~ #btn-settings-stop,
.oe-order.bingo-page #bingo-right #btn-settings-start.is-counting ~ #btn-settings-stop { background: var(--orion-red) !important; color: var(--white) !important; border-color: var(--orion-red) !important; }
.oe-order.bingo-page #bingo-controls-game.timer-running #btn-timer-end { background: var(--orion-red) !important; color: var(--white) !important; border-color: var(--orion-red) !important; }
.oe-order.bingo-page #bingo-controls-game.step-running #btn-step-back { background: var(--orion-red) !important; color: var(--white) !important; border-color: var(--orion-red) !important; }

/* --- Bottom logo: drop the white card, sit on the page tint (Phase 8) ------
   Target design shows the rotating logo/promo directly on the page background
   with just a hairline divider above it — no white card. Kill the Phase 2d card
   background / border / radius / shadow; keep a subtle top divider to separate
   it from the number card above. Layout (absolute bottom-pin + height/width from
   phases 5c–5j) is untouched. */
.oe-order.bingo-page #bingo-logo {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--border-soft) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* --- Bottom logo: darker divider + robust logo face (Phase 9) -------------
   Divider darkened from --border-soft (too faint) to --border-subtle. Logo
   image (Face 1) given explicit display so it renders reliably in the shared
   cross-fade grid cell on the deboxed tint, capped to the logo area. Shop
   (Face 2) + campaign (Face 3) colours are already correct — the washed look
   while testing was a mid-cross-fade frame, not a colour bug. */
.oe-order.bingo-page #bingo-logo { border-top: 1px solid var(--border-subtle) !important; }
.oe-order.bingo-page #bingo-logo .bingo-card img {
  display: block !important;
  width: auto !important;
  max-width: 230px !important;
  max-height: 90px !important;
  height: auto !important;
  margin: 0 auto !important;
}

/* --- Bottom logo rotator: loud, high-contrast shop + campaign text (Phase 10)
   The shop/campaign face text rendered pale (a low-contrast leak on the text —
   the solid BINGO15 badge proves the card opacity is 1, so it's the text colour,
   not a cross-fade frame). Force solid, bold, high-contrast colour at full
   opacity so both faces read loud and clear. opacity:1 on the text is safe — the
   fade lives on .bingo-card (an inactive card at opacity 0 still hides its text). */
.oe-order.bingo-page #bingo-logo .bingo-card__text {
  color: var(--warmgrey-900) !important;
  opacity: 1 !important;
  font-weight: var(--weight-bold) !important;
}
.oe-order.bingo-page #bingo-logo .bingo-card__lead {
  color: var(--warmgrey-900) !important;
  opacity: 1 !important;
  font-weight: var(--weight-bold) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.oe-order.bingo-page #bingo-logo .bingo-card__shop {
  color: var(--orion-red) !important;
  opacity: 1 !important;
  font-weight: var(--weight-bold) !important;
}


/* --- Bottom logo: larger logo image + shop text fits 2 lines (Phase 11) ----
   Logo face: scale the wordmark up to fill the card width (was capped at 230px).
   Shop face: shrink "orion-shop.dk" a notch with tighter line-height so KØB PÅ +
   the two lines sit inside the logo area instead of running to the rail bottom.
   Both are live knobs (max-width / font-size). */
.oe-order.bingo-page #bingo-logo .bingo-card img {
  display: block !important;
  width: 100% !important;
  max-width: 340px !important;
  max-height: 120px !important;
  height: auto !important;
  margin: 0 auto !important;
}
.oe-order.bingo-page #bingo-logo .bingo-card__shop {
  font-size: 2rem !important;
  line-height: 1.0 !important;
}

/* --- Bottom logo: bigger shop wordmark + bigger campaign lead (Phase 12) ---
   orion-shop.dk up from 2rem (2rem = the original size, so earlier tweaks read
   as "no change"); "Få 15% rabat med" up from --text-lg. Tight line-height keeps
   the two shop lines compact so they still fit the area. #bingo-logo padding is
   the live knob if the bottom line sits too close to the screen edge. */
.oe-order.bingo-page #bingo-logo .bingo-card__text {
  font-size: 2.1rem !important;
}
.oe-order.bingo-page #bingo-logo .bingo-card__shop {
  font-size: 2.4rem !important;
  line-height: 1.0 !important;
}

/* --- Bottom logo: independent badge text size (Phase 14) -------------------
   "BINGO15" inherited its size from .bingo-card__text (the campaign lead rule).
   Giving .bingo-badge its own font-size detaches it so it can be tuned on its
   own. This value is the badge knob. */
.oe-order.bingo-page #bingo-logo .bingo-badge {
  font-size: 1.9rem !important;
}

/* --- Bottom logo: vertically center every rotator face (Phase 15) ----------
   The logo img centered but the text faces sat top-aligned: the .bingo-cards
   grid row was only as tall as its content, so there was no room for the flex
   centering to act. Make .bingo-cards fill #bingo-logo's height; each .bingo-card
   (grid-area 1/1) then stretches to it and centers its face. */
.oe-order.bingo-page #bingo-logo .bingo-cards {
  height: 100% !important;
}
.oe-order.bingo-page #bingo-logo .bingo-card {
  height: 100% !important;
  align-items: center !important;
  justify-content: center !important;
}

/* --- Bottom logo: actually center the faces (Phase 16) ---------------------
   Real fix: #bingo-logo was height:auto, so the grid's % heights never resolved
   and the single .bingo-cards row sat at the top (grid default align-content:
   start). Give #bingo-logo a definite height and center the grid row — now all
   three faces sit vertically centered in the same box. */
.oe-order.bingo-page #bingo-logo {
  height: 160px !important;
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}
.oe-order.bingo-page #bingo-logo .bingo-cards {
  align-content: center !important;
  align-items: center !important;
}
/* --- Bottom logo: kill base position:absolute leak on the faces (Phase 17) -
   Console-confirmed root cause: base orion-events.css sets .bingo-card
   position:absolute, pulling each card out of the .bingo-cards grid (it
   collapses to ~68px pinned low, so its content can't center). Force the cards
   back into flow — they resume overlapping via grid-area 1/1 (cross-fade intact)
   and each flex-centers its face in the full card height. */
.oe-order.bingo-page #bingo-logo .bingo-card {
  position: static !important;
}

/* --- Current-number panel: de-box (Phase 18) -----------------------------
   Remove the white card fill, border, and shadow so the number panel sits
   flush on the page tint (no framed box). `background: transparent` shorthand
   also clears any leaked base background-color; !important beats base leaks. */
.oe-order.bingo-page #bingo-current { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* --- Current-number panel: "Aktuelle tal" eyebrow label (Phase 19) --------
   New static label above the drawn number (not a JS hook). Mirrors the
   .bingo-ctrl-head__title eyebrow (uppercase, small, tracked) but in
   --orion-red to match the mock. Sits as first flex child of #bingo-current;
   the panel's existing gap handles spacing below it. */
.oe-order.bingo-page .bingo-current__label { font-family: var(--font-body); font-weight: var(--weight-bold); font-size: 1.1rem !important; letter-spacing: 0.00em; text-transform: uppercase; color: var(--orion-red); }

/* --- Draw-progress bar "N af 90 / N tilbage" (Phase 20) -------------------
   New draw-progress bar (drawn/90) + two labels, under the number. Separate
   from the 5-i-traek countdown bar (#bingo-current-progress), which is left
   as-is. Toggle is pure CSS off the countdown's JS-owned is-active/is-counting:
   the countdown bar only occupies the slot while counting; the draw bar hides
   while it does (general-sibling ~, so #bingo-draw-progress must sit AFTER
   #bingo-current-progress in the markup). id-scoped + !important to beat base
   display leaks. Fill width + label text are written by JS. */
.oe-order.bingo-page #bingo-current-progress { display: none !important; }
.oe-order.bingo-page #bingo-current-progress.is-active, .oe-order.bingo-page #bingo-current-progress.is-counting { display: block !important; }
.oe-order.bingo-page #bingo-draw-progress { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.oe-order.bingo-page #bingo-current-progress.is-active ~ #bingo-draw-progress, .oe-order.bingo-page #bingo-current-progress.is-counting ~ #bingo-draw-progress { display: none !important; }
.oe-order.bingo-page #bingo-draw-progress-track { width: 100%; height: 8px; border-radius: var(--radius-pill); background: var(--white); overflow: hidden; }
.oe-order.bingo-page #bingo-draw-progress-fill { height: 100%; width: 0; border-radius: var(--radius-pill); background: var(--orion-red); transition: width var(--duration) var(--ease-standard); }
.oe-order.bingo-page #bingo-draw-progress-labels { display: flex; justify-content: space-between; font-size: var(--text-2xs); letter-spacing: 0.04em; text-transform: uppercase; font-weight: var(--weight-bold); color: var(--text-muted); }

/* --- Draw button: in-button countdown bar during the pause (Phase 21) ------
   Restores the bar that fills across #btn-draw during the post-draw pause. JS
   holds .is-drawing on #btn-draw for exactly the pause and sets --draw-pause on
   :root, so a CSS animation keyed on .is-drawing at duration var(--draw-pause)
   tracks the real wait. Drawn as ::after — the button's innerHTML is JS-
   rewritten, so a real child would be wiped; a pseudo survives. The :disabled
   ghost rule paints the box grey underneath; this bar sits on top. Overrides
   the earlier .is-drawing opacity:0.65 (appended later, so it wins) so the bar
   reads crisp — :disabled already conveys the paused state. position/overflow
   are !important to beat any base leak and to clip the bar to the radius. */
.oe-order.bingo-page #btn-draw.is-drawing { position: relative !important; overflow: hidden !important; opacity: 1; }
.oe-order.bingo-page #btn-draw.is-drawing::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 4px; background: var(--orion-red); transform: scaleX(1); transform-origin: left; animation: bingo-draw-countdown var(--draw-pause, 2s) linear forwards; }
@keyframes bingo-draw-countdown { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* --- Landscape orientation hint: fixed red banner (Phase 22) --------------
   Replaces the old base-sheet #bingo-lingo-2::after (deleted). Now a real
   element (.bingo-orientation-hint) so the copy is translatable later; CSS
   owns only when it shows (aspect-ratio) and how it looks. Fixed banner pinned
   bottom-center, red box + white text/icon. Hidden by default; shown only when
   the viewport is too narrow / portrait. z-index sits above the board/rail but
   below the shake overlay (1000) and modals, so those cover it when open. */
.oe-order.bingo-page .bingo-orientation-hint { display: none; }
@media (max-aspect-ratio: 13/10) {
  .oe-order.bingo-page .bingo-orientation-hint { display: flex; align-items: center; justify-content: center; gap: 10px; position: fixed; left: 50%; bottom: clamp(12px, 3vh, 28px); transform: translateX(-50%); z-index: 900; max-width: 92vw; padding: 12px 22px; background: #F1C232; color: #000; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); font-family: var(--font-body); font-weight: var(--weight-bold); font-size: clamp(13px, 2vh, 18px); line-height: 1.3; text-align: center; }
}

/* --- Modals: match .oe-modal standard, pass 1 — header + close (Phase 23) --
   Restyle-only; bespoke modal JS untouched. Emulates the oe-modal header inside
   the single .bingo-modal__panel: the title becomes a full-width bordered header
   by bleeding to the panel edges with negative margins equal to the panel
   padding, and the close becomes the 42px bordered white pill (matches
   .oe-modal-close). NOTE: the title bleed is coupled to .bingo-modal__panel
   padding (32px 32px 28px) — if that padding changes, update these margins.
   The footer band + footer-button contrast are pass 2. */
.oe-order.bingo-page .bingo-modal__title { margin: -32px -32px 24px; padding: 24px 32px 18px; border-bottom: 1px solid var(--border-subtle); font-size: 1.875rem; }
.oe-order.bingo-page .bingo-modal__close { top: 20px; right: 24px; width: 42px; height: 42px; border: 1px solid var(--border-subtle); border-radius: var(--radius-pill); background: var(--white); color: var(--text-muted); font-size: 20px; }
.oe-order.bingo-page .bingo-modal__close:hover { color: var(--color-brand); border-color: var(--border-strong); background: var(--white); }

/* --- Modals: match .oe-modal standard, pass 2 — footer band (Phase 24) -----
   Turns .bingo-modal__footer into the oe-modal-style band: bled to the panel
   edges (negative margins = panel padding 32/32/28), surface-tint fill, top
   border, rounded bottom corners matching the panel, right-aligned. Non-primary
   footer buttons (.bingo-ctrl-btn without is-primary, and .bingo-modal__btn)
   get a white + bordered treatment so they read on the tint; the is-primary
   button keeps its nightblue fill. Bleed is coupled to .bingo-modal__panel
   padding — keep in sync if that changes. */
.oe-order.bingo-page .bingo-modal__footer { margin: 24px -32px -28px; padding: 18px 32px; background: var(--surface-tint); border-top: 1px solid var(--border-subtle); border-bottom-left-radius: var(--radius-lg); border-bottom-right-radius: var(--radius-lg); justify-content: flex-end; }
.oe-order.bingo-page .bingo-modal__footer .btn { display: inline-flex; align-items: center; gap: 8px; }

/* --- Remove-modal body text: standalone dark (Phase 25) -------------------
   #bingo-remove-text dropped the shared .bingo-confirm__text class (to decouple
   it from the confirm modal). Re-anchor the base body props here with dark text.
   margin:0 also beats Bootstrap's default <p> margin-bottom on the now-classless
   paragraph. --text-strong (#333) is the design system's darkest text. */
.oe-order.bingo-page #bingo-remove-text { margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: var(--leading-body); color: var(--text-strong); }

/* --- Modal header with eyebrow (Phase 26) ---------------------------------
   Optional .bingo-modal__head wraps an .orion-eyebrow + the title so the
   eyebrow sits inside the header band. The Phase 23 bleed/border moves from
   the title onto the wrapper; the title is reset to plain inside it (4 classes
   out-specifies the Phase 23 rule). Modals without a .bingo-modal__head keep
   the Phase 23 behaviour unchanged. Bleed stays coupled to
   .bingo-modal__panel padding (32px 32px 28px). */
.oe-order.bingo-page .bingo-modal__head { margin: -32px -32px 24px; padding: 24px 32px 18px; border-bottom: 1px solid var(--border-subtle); }
.oe-order.bingo-page .bingo-modal__head .orion-eyebrow { display: block; margin-bottom: 6px; }
.oe-order.bingo-page .bingo-modal__head .bingo-modal__title { margin: 0; padding: 0; border-bottom: 0; }

/* --- Button variants: dark + white (Phase 27) -----------------------------
   Two new design-system button variants in the same --bs-btn-* style as
   .btn-orion / -light / -ghost. Dark = charcoal fill (matches the bingo
   is-dark controls); White = white fill with a soft border. Global variants,
   appended here for now — relocate next to the other .btn-orion* rules in the
   consolidation pass. Plus: push the settings modal's Luk button to the right
   edge of the footer (auto margin beats the footer's justify-content). */
.oe-order .btn-orion-dark { --bs-btn-color: var(--white); --bs-btn-bg: var(--warmgrey-800); --bs-btn-border-color: var(--warmgrey-800); --bs-btn-hover-color: var(--white); --bs-btn-hover-bg: var(--warmgrey-900); --bs-btn-hover-border-color: var(--warmgrey-900); --bs-btn-active-color: var(--white); --bs-btn-active-bg: var(--warmgrey-900); --bs-btn-active-border-color: var(--warmgrey-900); --bs-btn-disabled-color: var(--white); --bs-btn-disabled-bg: var(--warmgrey-800); --bs-btn-disabled-border-color: var(--warmgrey-800); --bs-btn-focus-shadow-rgb: var(--focus-ring-rgb); }
.oe-order .btn-orion-white { --bs-btn-color: var(--text-strong); --bs-btn-bg: var(--white); --bs-btn-border-color: var(--border-subtle); --bs-btn-hover-color: var(--text-strong); --bs-btn-hover-bg: var(--warmgrey-100); --bs-btn-hover-border-color: var(--border-strong); --bs-btn-active-color: var(--text-strong); --bs-btn-active-bg: var(--warmgrey-100); --bs-btn-active-border-color: var(--border-strong); --bs-btn-disabled-color: var(--text-muted); --bs-btn-disabled-bg: var(--white); --bs-btn-disabled-border-color: var(--border-subtle); --bs-btn-focus-shadow-rgb: var(--focus-ring-rgb); }
.oe-order.bingo-page #bingo-settings-modal .bingo-modal__footer #btn-settings-close { margin-left: auto; }

/* --- Modal footer buttons: beat the base id leak (Phase 28) ---------------
   Base orion-events.css styles these three by id inside .bingo-modal__footer
   (JetBrains Mono, uppercase, 0.15em tracking, nightblue, transparent, 999px
   pill), specificity (1,1,0). Console-confirmed: the .btn-orion-* variants are
   applied and their --bs-btn-* vars resolve correctly, but the base rule was
   winning on every visual property. Re-point each leaked property at its
   --bs-btn-* var with !important so the variant class stays authoritative. */
.oe-order.bingo-page .bingo-modal__footer #btn-new-game, .oe-order.bingo-page .bingo-modal__footer #btn-instructions, .oe-order.bingo-page .bingo-modal__footer #btn-print-instructions { font-family: var(--font-body) !important; font-size: var(--bs-btn-font-size) !important; letter-spacing: normal !important; text-transform: none !important; padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x) !important; color: var(--bs-btn-color) !important; background: var(--bs-btn-bg) !important; border: 1px solid var(--bs-btn-border-color) !important; border-radius: var(--bs-btn-border-radius) !important; }
.oe-order.bingo-page .bingo-modal__footer #btn-new-game:hover, .oe-order.bingo-page .bingo-modal__footer #btn-instructions:hover, .oe-order.bingo-page .bingo-modal__footer #btn-print-instructions:hover { color: var(--bs-btn-hover-color) !important; background: var(--bs-btn-hover-bg) !important; border-color: var(--bs-btn-hover-border-color) !important; }

/* Signup modal — error feedback in ORION red (#signup-error is filled by event-details.js) */
.oe-order #signup-error { color: var(--color-brand); font-size: var(--text-sm); font-weight: var(--weight-bold); }