/* ==========================================================
   OLB HEADER ADAPTER v0.5
   v0.5 (olb-header 0.5.2): kurv-knap ≥1024 åbner mini-cart (D3); link <1024.
   v0.4 (olb-header 0.5.1): leveringsvisning efter valg (§F i class-register v1.1),
        topbar = én linje + "Ændr" (≥1024), popup = metoder (K31). Kun canonical tokens.
   Klassifikation: component adapter
   Requires: OLB Design System v1.0 LOCKED (runtime-hashes verificeret)
   Functional master: OLB_HEADER_MASTER_v1.2_READY_FOR_IMPLEMENTATION.md
   Specialist master: n/a (adfærd: OLB_SHELL_BEHAVIOR_SPECIALIST_MASTER, trin A14)
   Mockup: header-mockups, 6 states (I2)
   Build mode: A
   Structure: OLB_HEADER_STRUCTURE_PLAN_v1.1.md · DOM: OLB_HEADER_DOM_VERIFICATION_v1.0.md
   Owns: placering, grid-områder, zone-synlighed, panel-/dialogplacering,
         kobling af header-markup til canonical tokens og classes
   Does NOT own: farver, typografi, spacing-skala, radius, skygger,
                 knapper/felter/kort/ikoner, fokus, globale states,
                 produktgrid, breakpoints
   Breakpoints: kun canonical (768 / 1024 / 1280 / 1440 --bp-five-col, K33)
   Documented deviations:
     DEV-1  .olb-visually-hidden bruger samme literal-mønster (1px, -1px,
            rect(0 0 0 0)) som canonical .olb-live i olb-behavior.css.
            Midlertidig, indtil C2 flytter classen til Behavior-runtime.
     DEV-2  rotate(180deg) på chevron i åben tilstand (vinkel, ingen token findes).
     K15    topbaren må vokse ud over --height-topbar.
     K31–K33 leveringsdel efter mockup 1 (label, "Se levering", nål), se Structure Plan v1.2.
     Footer K11 leveringspanelet kan åbnes ≥1024 (fra footeren) og vises da som centreret dialog.
   ========================================================== */


/* ----------------------------------------------------------
   0. Bricks-lag og fælles nulstilling
   ---------------------------------------------------------- */

.olb-topbar,
.olb-header,
.olb-header-nav {
  padding-block: 0;
  font-family: var(--font-family-ui);
}

.olb-topbar > .olb-container > .brxe-shortcode,
.olb-header > .olb-container > .brxe-shortcode,
.olb-header-nav > .olb-container > .brxe-shortcode {
  inline-size: 100%;
}

:is(.olb-topbar__trust, .olb-nav__list, .olb-nav__sublist,
    .olb-drawer__list, .olb-drawer__sublist, .olb-delivery__trust) {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Alt der kan skjules med [hidden], må ikke få display fra denne fil. */
:is(.olb-nav__panel, .olb-dialog, .olb-drawer__sublist, .olb-delivery__message)[hidden] {
  display: none;
}

.olb-header__icon-btn,
.olb-delivery__trigger,
.olb-nav__toggle,
.olb-drawer__toggle {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.olb-header__icon-btn {
  display: inline-grid;
  place-items: center;
  inline-size: var(--field-height);
  block-size: var(--field-height);
  border-radius: var(--radius-control);
}

/* DEV-1 */
.olb-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}


/* ----------------------------------------------------------
   1. Topbar
   ---------------------------------------------------------- */

.olb-topbar {
  background: var(--season-topbar-bg);
  color: var(--season-topbar-fg);
  font-size: var(--font-size-topbar);
  line-height: var(--line-height-ui);
}

.olb-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-tight) var(--gap-block);
  min-block-size: var(--height-topbar);          /* K15: må vokse */
}

.olb-topbar a {
  color: inherit;
  text-decoration: none;
}

/* Leveringskomponent i topbaren (SLOT K14) */
.olb-delivery--topbar .olb-delivery__edit {
  display: none;                                  /* <1024: panel i stedet (K27) */
}

.olb-delivery__trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap-sm);
  min-block-size: var(--field-height);
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
}

.olb-delivery__heading {
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap-md);
  flex: none;
  font-size: var(--font-size-small);
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
}

/* Lokationsnål i postnummerfeltet (K32). Samme geometri som canonical .olb-search__icon. */
.olb-delivery__field--postcode {
  position: relative;
}

.olb-delivery__field--postcode > .olb-icon {
  position: absolute;
  inset-inline-start: var(--field-padding-x);
  inset-block-start: 50%;
  translate: 0 -50%;
  color: var(--color-text-secondary);
  pointer-events: none;
}

.olb-delivery__field--postcode > .olb-input {
  padding-inline-start: calc(var(--field-padding-x) + var(--field-inline-icon) + var(--gap-tight));
}

.olb-delivery__lead {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-help);
}

.olb-delivery__form {
  display: flex;
  align-items: center;
  gap: var(--gap-tight);
}

.olb-delivery__field {
  flex: 1 1 0;
  min-inline-size: 0;
}

.olb-delivery__form > .olb-button {
  flex: none;
}

/* Leveringsvisning efter valg (v0.4). [hidden] styres af adapter-JS (state), zonen af CSS. */
.olb-delivery--topbar .olb-delivery__summary {
  display: none;                                  /* <1024: mobil-triggeren viser "Levering til …" */
}

.olb-delivery__label {
  margin: 0;
}

.olb-delivery__services {
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767.98px) {
  .olb-delivery--topbar,
  .olb-delivery__trigger {
    inline-size: 100%;
  }

  .olb-delivery__trigger > .olb-icon:last-child {
    margin-inline-start: auto;
  }
}

/* Trust */
.olb-topbar__trust {
  display: none;                                  /* <768: ingen trust (Header §12) */
  gap: var(--gap-block);
}

.olb-topbar__trust-text strong {
  display: block;
  font-weight: var(--font-weight-semibold);
}


/* ----------------------------------------------------------
   2. Hovedheader
   ---------------------------------------------------------- */

.olb-header {
  background: var(--color-mobile-header-bg);     /* K6: petrol på mobil */
  color: var(--color-mobile-header-fg);
}

.olb-header__bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "menu logo search-toggle cart";
  align-items: center;
  column-gap: var(--gap-hairline);
  min-block-size: var(--height-header-mobile);
}

.olb-header__menu          { grid-area: menu; }
.olb-header__logo          { grid-area: logo; }
.olb-header__search        { grid-area: search; }
.olb-header__search-toggle { grid-area: search-toggle; }
.olb-header__phone         { grid-area: phone; }
.olb-header__account       { grid-area: account; }
.olb-header__cart          { grid-area: cart; }

.olb-header__menu,
.olb-header__search-toggle,
.olb-header__cart {
  color: var(--color-mobile-header-icon);
}

/* Logo (K30) */
.olb-header__logo {
  display: inline-flex;
  align-items: center;
  justify-self: start;
}

.olb-header__logo-img {
  display: block;
  inline-size: auto;
  block-size: calc(var(--height-header-mobile) - 2 * var(--space-2));
}

/* Søgning: <768 foldes ud under headeren (K20) */
.olb-header__bar .olb-header__search {
  display: none;
}

.olb-header__bar:has(.olb-header__search-toggle[aria-expanded="true"]) {
  grid-template-areas:
    "menu logo search-toggle cart"
    "search search search search";
  row-gap: var(--gap-tight);
  padding-block-end: var(--gap-tight);
}

.olb-header__bar:has(.olb-header__search-toggle[aria-expanded="true"]) .olb-header__search {
  display: block;
}

/* Handlinger */
.olb-header__phone,
.olb-header__account {
  display: none;                                  /* <768: K19 · telefon <1024: skjult */
}

.olb-header__action {
  align-items: center;
  gap: var(--icon-gap-md);
  min-block-size: var(--field-height);
  color: inherit;
  text-decoration: none;
  font-size: var(--font-size-small);
  line-height: var(--line-height-ui);
}

.olb-header__action-text {
  display: grid;
}

.olb-header__action-label {
  font-weight: var(--font-weight-semibold);
}

/* Kurv */
.olb-header__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap-md);
  min-inline-size: var(--field-height);
  min-block-size: var(--field-height);
  justify-content: center;
  text-decoration: none;
}

.olb-header__cart-icon {
  display: inline-grid;
}

.olb-header__cart-count {
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: 0;
  display: inline-grid;
  place-items: center;
  min-inline-size: var(--icon-size-sm);
  block-size: var(--icon-size-sm);
  padding-inline: var(--space-1);
  border-radius: var(--radius-pill);
  background: var(--color-cta-bg);
  color: var(--color-cta-fg);
  font-size: var(--font-size-badge);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-price);
  font-variant-numeric: tabular-nums;
}

.olb-header__cart[data-count="0"] .olb-header__cart-count {
  display: none;
}

/* D3: kurv-knappen (mini-cart) findes kun ≥1024. Knappen nulstilles til linkets udseende. */
button.olb-header__cart {
  display: none;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.olb-header__cart-text {
  display: none;                                  /* tekst kun ≥1024 */
}


/* ----------------------------------------------------------
   3. Navigation (kun ≥1024)
   ---------------------------------------------------------- */

.olb-header-nav {
  display: none;
}

.olb-nav {
  position: relative;
}

.olb-nav__list {
  display: flex;
  align-items: center;
  gap: var(--gap-tight);
  min-block-size: var(--height-nav-row);
}

.olb-nav__link,
.olb-nav__toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--icon-gap-sm);
  min-block-size: var(--field-height);
  padding-inline: var(--space-4);
  border-radius: var(--radius-control);
  color: var(--color-text-primary);
  font-size: var(--font-size-nav);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-ui);
  text-decoration: none;
}

.olb-nav__link--priority {
  font-weight: var(--font-weight-bold);
}

.olb-nav__link[aria-current="page"],
.olb-nav__toggle[aria-expanded="true"] {
  background: var(--color-nav-active-bg);        /* K5: selected-subtle */
  color: var(--color-nav-active-fg);
}

.olb-nav__toggle[aria-expanded="true"] .olb-icon,
.olb-drawer__toggle[aria-expanded="true"] .olb-icon {
  transform: rotate(180deg);                      /* DEV-2 */
}

@media (hover: hover) and (pointer: fine) {
  .olb-nav__link:hover,
  .olb-nav__toggle:hover,
  .olb-nav__sublink:hover,
  .olb-nav__column-title:hover {
    background: var(--color-hover-bg);
  }
}

/* Paneler */
.olb-nav__item {
  position: relative;
}

.olb-nav__item--mega {
  position: static;                               /* mega-panelet placeres mod .olb-nav */
}

.olb-nav__panel {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-start: 0;
  z-index: var(--z-nav-dropdown);
  inline-size: max-content;
  padding: var(--space-5);
  background: var(--color-surface-elevated);
}

.olb-nav__panel--mega {
  inset-inline: 0;
  inline-size: auto;
  padding: var(--space-6);
}

.olb-nav__columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-6) var(--space-7);
}

.olb-nav__column {
  display: grid;
  align-content: start;
  gap: var(--gap-hairline);
}

.olb-nav__column-title,
.olb-nav__sublink {
  display: block;
  padding: 0 var(--space-2);
  border-radius: var(--radius-control);
  line-height: var(--line-height-ui);
  text-decoration: none;
}

.olb-nav__column-title {
  color: var(--color-text-primary);
  font-size: var(--font-size-nav);
  font-weight: var(--font-weight-semibold);
}

.olb-nav__sublist {
  display: grid;
  gap: var(--gap-hairline);
}

.olb-nav__sublink {
  color: var(--color-text-secondary);
  font-size: var(--font-size-nav-sub);
}

.olb-nav__column-title[aria-current="page"],
.olb-nav__sublink[aria-current="page"] {
  background: var(--color-nav-active-bg);
  color: var(--color-nav-active-fg);
}

.olb-nav__see-all {
  display: inline-block;
  margin-block-start: var(--space-5);
  padding: var(--space-1) var(--space-2);
  color: var(--color-link);
  font-weight: var(--font-weight-semibold);
}


/* ----------------------------------------------------------
   4. Dialoger: drawer + leveringspanel (<1024)
   ---------------------------------------------------------- */

.olb-dialog {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: flex;
}

.olb-dialog__scrim {
  position: absolute;
  inset: 0;
  background: var(--color-scrim);
}

/* Drawer */
.olb-drawer__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  inline-size: calc(100% - var(--height-drawer-top));
  block-size: 100%;
  overflow-y: auto;
  background: var(--color-surface);
  color: var(--color-text-primary);
  border-radius: var(--radius-drawer-edge);
}

.olb-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-block-size: var(--height-drawer-top);
  padding-inline: var(--gutter-page);
  border-block-end: var(--border-divider);
}

.olb-drawer__title {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-normal);
}

.olb-drawer__link,
.olb-drawer__toggle,
.olb-drawer__sublink,
.olb-drawer__see-all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  inline-size: 100%;
  min-block-size: var(--height-drawer-row);
  padding-inline: var(--gutter-page);
  border-block-end: var(--border-divider);
  color: var(--color-text-primary);
  font-size: var(--font-size-nav);
  line-height: var(--line-height-ui);
  text-align: start;
  text-decoration: none;
}

.olb-drawer__sublink,
.olb-drawer__sublist .olb-drawer__toggle {
  padding-inline-start: calc(var(--gutter-page) + var(--space-4));
  font-size: var(--font-size-nav-sub);
}

.olb-drawer__sublink--nested {
  padding-inline-start: calc(var(--gutter-page) + var(--space-7));
}

.olb-drawer__see-all {
  padding-inline-start: calc(var(--gutter-page) + var(--space-4));
  color: var(--color-link);
  font-weight: var(--font-weight-semibold);
}

.olb-drawer__link[aria-current="page"],
.olb-drawer__sublink[aria-current="page"] {
  background: var(--color-mobile-nav-active-bg);
  color: var(--color-mobile-nav-active-fg);
}

/* Leveringspanel (bottom sheet, SLOT K14) */
.olb-delivery-sheet {
  z-index: var(--z-modal);
  align-items: flex-end;
}

.olb-delivery-sheet__panel {
  position: relative;
  inline-size: 100%;
  max-block-size: 100%;
  overflow-y: auto;
  padding: var(--space-6) var(--gutter-page) calc(var(--space-6) + var(--safe-bottom));
  background: var(--color-surface-elevated);
  color: var(--color-text-primary);
}

.olb-delivery-sheet__handle {
  display: block;
  inline-size: var(--space-9);
  block-size: var(--space-1);
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
}

.olb-delivery-sheet__close {
  position: absolute;
  inset-block-start: var(--space-2);
  inset-inline-end: var(--space-2);
}

.olb-delivery--sheet {
  display: grid;
  gap: var(--gap-component);
}

/* 0.5.6: fragttjek på sider ([olb_delivery_check]). Samme regler som popup'en; række fra 768. */
.olb-delivery--inline {
  display: grid;
  gap: var(--gap-component);
  max-inline-size: var(--field-measure);
}

.olb-delivery__title {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--font-size-h4);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--tracking-normal);
}

.olb-delivery--sheet .olb-delivery__form,
.olb-delivery--inline .olb-delivery__form {
  flex-direction: column;
  align-items: stretch;
}

.olb-delivery--sheet .olb-delivery__form > .olb-button,
.olb-delivery--inline .olb-delivery__form > .olb-button {
  inline-size: 100%;
}

.olb-delivery__trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap-tight);
  padding-block-start: var(--space-4);
  border-block-start: var(--border-divider);
  font-size: var(--font-size-meta);
  line-height: var(--line-height-ui);
  text-align: center;
}

.olb-delivery__trust a {
  color: inherit;
  text-decoration: none;
}

/* Popup efter valg (K31): label · metoder "fra €X" · besked · Ændr */
.olb-delivery--sheet .olb-delivery__summary,
.olb-delivery--inline .olb-delivery__summary {
  display: grid;
  gap: var(--gap-component);
  font-family: var(--font-family-ui);
}

.olb-delivery--sheet .olb-delivery__label,
.olb-delivery--inline .olb-delivery__label {
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-ui);
}

.olb-delivery__service {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gap-tight);
  padding-block: var(--gap-tight);
  border-block-end: var(--border-divider);
  font-size: var(--font-size-small);
  line-height: var(--line-height-ui);
}

.olb-delivery__service:last-child {
  border-block-end: 0;
}

.olb-delivery__service-name {
  font-weight: var(--font-weight-medium);
}

.olb-delivery__service-price {
  flex: none;
  font-variant-numeric: tabular-nums lining-nums;
  white-space: nowrap;
}

.olb-delivery__notice {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: var(--font-size-small);
  line-height: var(--line-height-help);
}


/* ----------------------------------------------------------
   5. ≥768 (tablet)
   ---------------------------------------------------------- */

@media (min-width: 768px) {

  .olb-topbar__trust {
    display: flex;
  }

  .olb-topbar__trust .olb-topbar__trust-item--store,
  .olb-topbar__trust .olb-topbar__trust-item--frost {
    display: none;                                /* K24: kun kundeservice på tablet */
  }

  .olb-header {
    background: var(--color-header-bg);
    color: var(--color-header-fg);
    border-block-end: var(--border-divider);
  }

  .olb-header__menu,
  .olb-header__search-toggle,
  .olb-header__cart {
    color: inherit;
  }

  .olb-header__bar {
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas: "menu logo search account cart";
    column-gap: var(--gap-component);
    min-block-size: var(--height-header-desktop);
  }

  .olb-header__logo-img {
    block-size: calc(var(--height-header-mobile) - 2 * var(--space-3));
  }

  .olb-header__bar .olb-header__search,
  .olb-header__bar:has(.olb-header__search-toggle[aria-expanded="true"]) .olb-header__search {
    display: block;
  }

  .olb-header__search-toggle {
    display: none;
  }

  .olb-header__account {
    display: inline-flex;
  }

  .olb-drawer__panel {
    inline-size: 50%;
  }
}


@media (min-width: 768px) {
  .olb-delivery--inline .olb-delivery__form {
    flex-direction: row;
    align-items: center;
  }

  .olb-delivery--inline .olb-delivery__form > .olb-button {
    inline-size: auto;
  }
}


/* ----------------------------------------------------------
   6. ≥1024 (desktop)
   ---------------------------------------------------------- */

@media (min-width: 1024px) {

  .olb-delivery--topbar .olb-delivery__edit {
    display: flex;                                /* K27: åben i topbaren */
    align-items: center;
    gap: var(--gap-component);
  }

  .olb-delivery--topbar .olb-delivery__summary {
    display: flex;                                /* K31: én linje i topbaren, metoder i popup */
    align-items: center;
    gap: var(--gap-tight);
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
  }

  .olb-delivery--topbar .olb-delivery__field--country {
    flex: 0 1 calc(var(--field-measure) / 3);
  }

  .olb-delivery--topbar .olb-delivery__field--postcode {
    flex: 0 1 calc(var(--field-measure) / 2.5);
  }

  .olb-delivery__trigger {
    display: none;
  }

  /* D3: ≥1024 åbner kurven mini-cart. Linket vises kun, hvor der ingen knap er (kurv/kasse). */
  .olb-header__bar:has(> button.olb-header__cart) > a.olb-header__cart {
    display: none;
  }

  button.olb-header__cart {
    display: inline-flex;
  }

  .olb-topbar__inner {
    padding-block: var(--space-2);
  }

  .olb-header__bar {
    grid-template-columns: auto minmax(0, 1fr) auto auto auto;
    grid-template-areas: "logo search phone account cart";
    column-gap: var(--gap-block);
  }

  .olb-header__logo-img {
    block-size: calc(var(--height-header-desktop) - 2 * var(--space-4));
  }

  .olb-header__menu {
    display: none;
  }

  .olb-header__phone {
    display: inline-flex;
  }

  .olb-header__cart-text {
    display: grid;
    font-size: var(--font-size-small);
    line-height: var(--line-height-ui);
    color: var(--color-text-primary);
  }

  .olb-header-nav {
    display: flex;
    background: var(--color-header-bg);
    border-block-end: var(--border-divider);
  }

  .olb-dialog.olb-drawer {
    display: none;                                /* draweren findes kun <1024 */
  }

  /* Footer K11: leveringspanelet åbnes fra footerens CTA og vises som centreret dialog. */
  .olb-delivery-sheet {
    align-items: center;
    justify-content: center;
    padding: var(--gutter-page);
  }

  .olb-delivery-sheet__panel {
    max-inline-size: var(--container-narrow);
    max-block-size: 100%;
    padding: var(--space-7);
    border-radius: var(--radius-modal);
    box-shadow: var(--shadow-overlay);
  }

  .olb-delivery-sheet__handle {
    display: none;
  }
}


/* ----------------------------------------------------------
   7. ≥1280
   ---------------------------------------------------------- */

@media (min-width: 1280px) {
  /* K33: trust-punkter efter plads. 1024–1279: kundeservice · ≥1280: + butik · ≥1440: alle tre. */
  .olb-topbar__trust .olb-topbar__trust-item--store {
    display: block;
  }

  .olb-topbar__inner {
    flex-wrap: nowrap;
  }

  .olb-nav__columns {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}


/* ----------------------------------------------------------
   8. ≥1440 (canonical --bp-five-col, K33)
   ---------------------------------------------------------- */

@media (min-width: 1440px) {
  .olb-topbar__trust .olb-topbar__trust-item--frost {
    display: block;
  }

  .olb-topbar__trust {
    gap: var(--gap-component);
  }
}


/* ==========================================================
   v0.5.5 – Sticky header (ejer 2026-10-09: "kurven burde være sticky")
   Hele #brx-header er sticky, men med negativ top = topbarens højde, så kun topbaren ruller væk.
   Mobil: logo/søg/kurv bliver stående (bundnavigationen har ingen kurv).
   Bricks' egen "Sticky header"-indstilling på skabelonen skal være SLÅET FRA (ellers dobbelt).
   ========================================================== */
#brx-header.olb-header--sticky {
  position: sticky;
  top: calc(-1 * var(--olb-topbar-h, 0px));
  z-index: var(--z-header-sticky);
}
.admin-bar #brx-header.olb-header--sticky { top: calc(32px - var(--olb-topbar-h, 0px)); }
@media (max-width: 782px) {
  .admin-bar #brx-header.olb-header--sticky { top: calc(-1 * var(--olb-topbar-h, 0px)); } /* WP's adminbar er ikke fast på mobil */
}
/* Ankre og sticky kurv/kasse-oversigter lander under headeren */
html { scroll-padding-block-start: calc(var(--olb-sticky-offset, 0px) + var(--space-2)); }
@media (min-width: 1024px) {
  .olb-cart__summary,
  .olb-checkout__summary { top: calc(var(--olb-sticky-offset, 0px) + var(--gap-component)); }
}

/* v0.5.8 (olb-header 0.5.8): søgeikonet er en rigtig submit-knap (M-F01).
   Beholder canonical .olb-search__icon-geometri; nulstiller kun knappens browser-udseende. */
.olb-header__search .olb-search__submit {
  pointer-events: auto;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: 0;
}
.olb-header__search .olb-search__submit:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
