/* Text pages, the support hub, terms, privacy and 404 (template-parts/pages/, template-parts/support/).
   eh.css holds the rules ported from the Shopify theme (hub, forms, terms, 404); this file adds only what the
   WordPress pages need on top. Tokens from eh.css. Reference: the live Shopify pages (parity pass 26-11-2026). */

/* ---------- the base the ported rules were drawn on ---------- */
/* On Shopify these sections sit in Horizon's body type, 14px with a 1.4 line, and every size eh.css leaves out
   (the hub's ledes and hints, the 404 sentence, list margins) is taken from it. WordPress has no such body, so the
   sections carry it themselves. */
.eh-hub,.eh-page,.eh-terms,.eh-404{font-size:14px;line-height:1.4}
/* the same base also draws pictures as blocks and lets a text block start and end without outer margin */
/* (low specificity on purpose, so every rule in eh.css still wins, as it does over the base on Shopify) */
:where(.eh-hub,.eh-page,.eh-terms,.eh-404) svg{display:block}
:where(.eh-hub,.eh-page,.eh-terms,.eh-404) :where(p,h1,h2,h3):first-child{margin-top:0}
:where(.eh-hub,.eh-page,.eh-terms,.eh-404) :where(p,h1,h2,h3):last-child{margin-bottom:0}
:where(.eh-hub,.eh-page,.eh-terms,.eh-404) :where(p,h1,h2,h3)>a:hover{color:rgb(17 20 24 / .7)}
/* eh-wp.css gives every link in the main area the text colour; the terms list and its way back keep their own */
.eh-main .eh-terms-side a{color:var(--body2)}
.eh-main .eh-terms-side a:hover,.eh-main .eh-terms-side a[aria-current]{color:var(--ink)}
.eh-main .eh-terms-up{color:var(--muted)}
/* beyond Shopify: "to the overview" under each topic on a phone is a 44px tap target, drawn where it was */
.eh-main .eh-terms-up{padding-block:15.5px;margin:2.5px 0 -15.5px}
/* the side list stops where Shopify's does: Horizon's --header-height (76px) plus 24px, clear of the header's shadow */
.eh-main .eh-terms-side{top:100px}

/* ---------- support hub ---------- */
/* each path is its own form (so each can be sent without JavaScript); the form itself draws nothing */
.eh-hub-form{margin:0}
/* the form handler sends the visitor back to #eh-form; keep it and the thank-you clear of the sticky header */
#eh-form,.eh-hub-done{scroll-margin-top:96px}
/* the thank-you sits on the hub's centre line, like the heading, the open panel and the questions (Nichlas 02-11-2026) */
.eh-hub-done{margin-inline:auto;width:100%}
.eh-hub-done-check .eh-btn{min-height:44px;margin-top:6px}
/* a form that came back unsent: a calm box under the lede, never red text alone */
.eh-hub-error{margin:20px auto 0;max-width:62ch;padding:12px 16px;border-radius:10px;background:#FEF3F2;border-left:4px solid var(--poor);color:var(--ink);text-align:left;font-size:15px;line-height:1.5}

/* without JavaScript every path and step shows, one after the other. The stop pages only after a yes to safety,
   and nothing after them, so a battery that smoked is never sent on as an ordinary case */
.eh-hub:not(.is-js) [data-eh-step="stop"]{display:none}
.eh-hub:not(.is-js) .eh-hub-form:has(input[name="contact[Sikkerhed]"][value="Ja"]:checked) [data-eh-step="stop"]{display:grid}
.eh-hub:not(.is-js) .eh-hub-form:has(input[name="contact[Sikkerhed]"][value="Ja"]:checked) [data-eh-step="stop"]~*{display:none}
.eh-hub:not(.is-js) .eh-hub-form:has(input[name="contact[Ladet 12 timer]"][value="Nej"]:checked) [data-eh-charge-first]{display:flex!important}
.eh-hub:not(.is-js) .eh-hub-step+.eh-hub-step{padding-top:28px;border-top:1px solid var(--rule)}

/* ---------- text pages: contact, delivery, about ---------- */
/* spacing, colour and measure come from eh.css as on Shopify (.eh-page .eh-in 48/72px, .eh-rte in ink) */
.eh-page-contact .eh-form-ok,.eh-page-contact .eh-form-err{max-width:640px}
.eh-form-err{padding:12px 16px;border-radius:10px;background:#FEF3F2;border-left:4px solid var(--poor);color:var(--ink);font-weight:600}

/* ---------- privacy: the terms layout, every topic marked as a draft until Nichlas approves the text ---------- */
.eh-draft{display:inline-flex;align-items:center;gap:9px;margin:0 0 14px;padding:7px 14px 7px 12px;border-radius:999px;border:1.5px dashed var(--muted);
 background:var(--off);font:600 13.5px/1.35 var(--eh-font);color:var(--body2)}
.eh-draft::before{content:"";flex:none;width:10px;height:11px;background:var(--ink);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%)}
.eh-draft-page{margin:16px 0 0}
/* long words (Verwerkingsverantwoordelijke, Auftragsverarbeiter) break rather than push the page sideways on a phone */
.eh-terms-tt b,.eh-terms-sh h2,.eh-terms-side a,.eh-draft{overflow-wrap:anywhere;min-width:0}
.eh-privacy .eh-terms-tile{min-height:76px}
.eh-privacy .eh-rte p:last-child{margin-bottom:0}
.eh-privacy-list{list-style:none;margin:0 0 4px;padding:0;display:grid;gap:8px;max-width:60ch}
.eh-privacy-list li{display:grid;grid-template-columns:12px 1fr;gap:12px;align-items:baseline;margin:0;color:var(--ink)}
.eh-privacy-list li::before{content:"";width:9px;height:10px;background:var(--ink);clip-path:polygon(50% 0,100% 25%,100% 75%,50% 100%,0 75%,0 25%);transform:translateY(1px)}
.eh-privacy .eh-rte a{font-weight:600}
