/* Larensy header tools (UI-A, 22 Nov 2026): one-line desktop menu, search + account icons, search overlay.
   Markup: mu-plugins/larensy-header-tools.php. Behaviour: header-tools.js. */

/* ---------- 1. Desktop menu on one line from 1025 px (visual-desktop-001) ----------
   --lzh-k = width of the five menu labels at a 1px font (measured 22 Nov 2026, uppercase Jost).
   Font size = what fits in ~42.5vw (the menu column) after the item padding, capped at the original 23px. */
@media (min-width: 1025px) {
  html { --lzh-k: 18.4; --lzh-pv: 1.15vw; }
  html[lang|="da"] { --lzh-k: 18.2; }
  html[lang|="nl"] { --lzh-k: 19.6; }
  html[lang|="sv"] { --lzh-k: 19.8; }
  html[lang|="it"] { --lzh-k: 20.3; }
  html[lang|="es"] { --lzh-k: 21.5; --lzh-pv: .9vw; }
  html[lang|="de"] { --lzh-k: 22.4; --lzh-pv: .9vw; }
  html[lang|="pl"] { --lzh-k: 23.3; --lzh-pv: .9vw; }
  html[lang|="fr"] { --lzh-k: 25.9; --lzh-pv: .9vw; }
  .elementor-location-header nav.elementor-nav-menu--main > ul.elementor-nav-menu { flex-wrap: nowrap !important; }
  .elementor-location-header nav.elementor-nav-menu--main .elementor-item { white-space: nowrap !important; }
}
/* English and Danish already fit at 1440+: untouched there. Every other language wraps today at 1440 too. */
@media (min-width: 1025px) and (max-width: 1439px) {
  .elementor-location-header nav.elementor-nav-menu--main .elementor-item {
    padding-left: min(20px, var(--lzh-pv)) !important; padding-right: min(20px, var(--lzh-pv)) !important;
    font-size: min(23px, calc((42.5vw - 10 * min(20px, var(--lzh-pv))) / var(--lzh-k))) !important;
  }
}
@media (min-width: 1440px) {
  html:not([lang|="en"]):not([lang|="da"]) .elementor-location-header nav.elementor-nav-menu--main .elementor-item {
    padding-left: min(20px, var(--lzh-pv)) !important; padding-right: min(20px, var(--lzh-pv)) !important;
    font-size: min(23px, calc((42.5vw - 10 * min(20px, var(--lzh-pv))) / var(--lzh-k))) !important;
  }
}

/* ---------- 2. Icons beside the bag ---------- */
.elementor-element-bf8b545 > .elementor-widget-container,
.elementor-element-378d016 > .elementor-widget-container,
.elementor-element-972dc9e > .elementor-widget-container,
.elementor-element-2c45406 > .elementor-widget-container { display: flex; align-items: center; justify-content: center; }
.lzh-tools { display: flex; align-items: center; flex: none; color: var(--toggle-button-icon-color, #0b2447); }
.lzh-btn { width: 44px; height: 44px; display: grid; place-items: center; color: inherit !important; text-decoration: none !important;
  border-radius: 50%; -webkit-tap-highlight-color: transparent; transition: opacity .2s ease; }
.lzh-btn svg { width: 24px; height: 24px; display: block; }
.lzh-tools svg, .lzh-tools svg *, .lzh-s svg, .lzh-s svg * { fill: none !important; stroke: currentColor !important; } /* header 100 paints every svg in it white-filled */
.lzh-tools--desktop svg { stroke-width: 1.5 !important; }
.lzh-btn:hover { opacity: .7; }
.lzh-btn:focus { outline: 0; }
.lzh-btn:focus-visible { outline: 2px solid #b59a62; outline-offset: -4px; }
.lzh-tools--desktop { margin-right: -2px; gap: 4px; }
/* phones: search sits left of the bag, same 24px line weight as the menu and bag icons */
.lzh-tools--phone .lzh-btn svg { width: 24px; height: 24px; stroke-width: 1.3 !important; }
.elementor-element-972dc9e .lzh-tools { color: var(--lx-navy, #0b2447); }
@media (max-width: 767px) {
  html.lp-scrolled .elementor-100 .elementor-element-2c45406 .lzh-tools { color: var(--lx-navy, #0b2447); }
}
/* desktop rows are hidden on phones by Elementor; the phone rows on desktop. Belt and braces for tablets: */
@media (max-width: 767px) { .lzh-tools--desktop { display: none; } }

/* ---------- 3. Search overlay ---------- */
.lzh-s { position: fixed; inset: 0; z-index: 2147483100; visibility: hidden; pointer-events: none;
  font-family: var(--lp-sans, "Futura PT", Jost, "Helvetica Neue", Arial, sans-serif); -webkit-tap-highlight-color: transparent; }
.lzh-s.is-open, .lzh-s:target { visibility: visible; pointer-events: auto; }
.lzh-s__scrim { position: absolute; inset: 0; background: rgba(4, 17, 37, .42); opacity: 0; transition: opacity .28s ease; }
.lzh-s.is-open .lzh-s__scrim, .lzh-s:target .lzh-s__scrim { opacity: 1; }
.lzh-s__panel { position: absolute; top: 0; left: 0; right: 0; background: #fffdf8; color: #111827; border-bottom: 1px solid #ebe5da;
  padding: 34px 32px 30px; transform: translate3d(0, -100%, 0); transition: transform .34s cubic-bezier(.22, .61, .36, 1); }
.lzh-s.is-open .lzh-s__panel, .lzh-s:target .lzh-s__panel { transform: none; }
.lzh-s__inner { max-width: 760px; margin: 0 auto; }
.lzh-s__form { display: flex; align-items: center; gap: 12px; height: 58px; margin: 0; border-bottom: 1px solid #0b2447; color: #0b2447; }
.lzh-s__form > svg { flex: none; width: 22px; height: 22px; }
.lzh-s__form input[type="search"] { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 !important; border: 0 !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; outline: 0; color: #111827; font: 400 22px/1.2 var(--lp-sans, "Futura PT", Jost, sans-serif) !important;
  letter-spacing: .01em; -webkit-appearance: none; appearance: none; }
.lzh-s__form input[type="search"]:focus, .lzh-s__form input[type="search"]:focus-visible { outline: 0 !important; border: 0 !important; box-shadow: none !important; }
.lzh-s__form input::placeholder { color: #9ca3af; opacity: 1; }
.lzh-s__form input::-webkit-search-cancel-button { -webkit-appearance: none; }
.lzh-s__close { flex: none; width: 44px; height: 44px; margin-right: -10px; display: grid; place-items: center; color: #0b2447 !important; border-radius: 50%; }
.lzh-s__close svg { width: 22px; height: 22px; }
.lzh-s__close:focus { outline: 0; }
.lzh-s__close:focus-visible { outline: 2px solid #b59a62; outline-offset: -4px; }
.lzh-s__eyebrow { margin: 22px 0 10px; color: #b59a62; font: 500 11px/1.2 var(--lp-sans, "Futura PT", Jost, sans-serif); letter-spacing: .2em; text-transform: uppercase; }
.lzh-s__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 26px; }
.lzh-s__links a { color: #0b2447 !important; text-decoration: none !important; font: 400 16px/1.6 var(--lp-sans, "Futura PT", Jost, sans-serif);
  border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.lzh-s__links a:hover, .lzh-s__links a:focus-visible { border-bottom-color: #b59a62; outline: 0; }
html.lzh-s-open, html.lzh-s-open body { overflow: hidden !important; }
@media (max-width: 767px) {
  .lzh-s__panel { padding: calc(10px + env(safe-area-inset-top, 0px)) 18px 22px; }
  .lzh-s__form { height: 54px; gap: 10px; }
  .lzh-s__form > svg { width: 20px; height: 20px; }
  .lzh-s__form input[type="search"] { font-size: 16px !important; } /* 16px: iPhone does not zoom the page */
  .lzh-s__eyebrow { margin-top: 18px; }
  .lzh-s__links { gap: 6px 22px; }
  .lzh-s__links a { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .lzh-s__panel, .lzh-s__scrim { transition: none; } }
