/* Bestillingsflyten (/bestilling, bestill-flyt.php). Samme uttrykk som forsiden: hvitt, store overskrifter, blått som hovedfarge,
   lyse støttefarger, ingen kanter eller skygger på kortene, runde knapper. Minst 44 px trykkflater og 16 px i alle felt. */
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/dm-sans-400.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/dm-sans-500.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/dm-sans-600.woff2) format('woff2')}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/dm-sans-700.woff2) format('woff2')}
:root {
    --blue: #075ac6; --blue-d: #06499e; --ink: #1b2129; --text: #2a323c; --muted: #4e5966; --line: #e3e7ec; --grey: #f3f4f6; --grey2: #f4f5f7;
    --sky: #e8f3ff; --yellow: #d5f5ea; --pad: max(18px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
    --r-lg: 14px; --r-sm: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.bf { margin: 0; min-height: 100dvh; background: #fff; color: var(--text); font: 400 16.5px/1.5 'DM Sans', system-ui, -apple-system, sans-serif; overflow-x: clip; }
.bf img { max-width: 100%; display: block; }
.bf a { color: var(--blue); }
.bf :focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.bf-skip { position: absolute; left: -9999px; }
.bf-skip:focus { left: 12px; top: 12px; z-index: 100; padding: 10px 14px; background: #fff; border-radius: 10px; }
.sh-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Topplinje: pil tilbake øverst til venstre og én fremdriftslinje */
.bf-top { position: sticky; top: 0; z-index: 30; background: #fff; padding-top: env(safe-area-inset-top, 0px); }
.bf-top-row { display: flex; align-items: center; gap: 12px; height: 52px; max-width: 1120px; margin: 0 auto; padding: 0 var(--pad); }
.bf-back { position: relative; flex: none; width: 38px; height: 38px; margin-left: -4px; border: 0; border-radius: 50%; background: var(--grey); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bf-back:hover { background: #e9ebef; }
.bf-back[hidden] { display: grid; visibility: hidden; }
.bf-back::after { content: ""; position: absolute; inset: -4px; }   /* trykkflate på 46 px */
.bf-back svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bf-bar { flex: 1; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.bf-pct { flex: none; min-width: 42px; color: var(--ink); font-size: 14.5px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bf-mark { flex: none; display: grid; place-items: center; width: 34px; height: 44px; margin-right: -4px; }
.bf-mark img { width: 30px; height: 30px; border-radius: 8px; }
/* Plaggsiden: topplinjen blar bort, bare søk og underkategorier står fast */
body[data-step="plagg"] .bf-top { position: static; }
body[data-step="plagg"] .bf-tools { top: 0; padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
.bf-bar span { display: block; height: 100%; border-radius: 8px; background: var(--blue); transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .bf-bar span { transition: none; } }
.bf h1:focus, .bf h1:focus-visible { outline: none; }

/* Innhold */
.bf-main { outline: none; }
.bf-view { max-width: 1120px; margin: 0 auto; padding: 10px var(--pad) calc(140px + env(safe-area-inset-bottom, 0px)); }
.bf-narrow { max-width: 600px; }
.bf-center { text-align: center; }
.bf h1 { margin: 0 0 10px; color: var(--ink); font-size: clamp(26px, 7vw, 36px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800; text-wrap: balance; outline: none; }
.bf-h2 { margin: 28px 0 12px; color: var(--ink); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.bf-lead { margin: 0 0 22px; font-size: 17px; color: var(--text); text-wrap: pretty; }
.bf-small { margin: 16px 0 0; font-size: 15px; color: var(--muted); }
.bf-fine { margin: 22px 0 0; font-size: 14px; color: var(--muted); }
.bf-fine a, .bf-small a { color: var(--blue); font-weight: 600; }
.bf-mt { margin-top: 18px; }
.bf-note { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--r-sm); background: var(--sky); color: var(--ink); font-size: 15.5px; }
.bf-note--warn { background: #fff4d6; }
.bf-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.bf-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Knapper */
.bf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border: 0; border-radius: 999px; font: 700 17px/1.1 'DM Sans', system-ui, sans-serif; cursor: pointer; text-decoration: none; }
.bf-btn--main { background: var(--blue); color: #fff !important; }
.bf-btn--main:hover { background: var(--blue-d); }
.bf-btn--main:disabled { background: #b9c7da; cursor: default; }
.bf-btn--soft { background: var(--sky); color: var(--blue-d) !important; }
.bf-form .bf-btn, .bf-narrow > .bf-btn { width: 100%; }

/* Adressesteget */
.bf-addr { position: relative; }
.bf-addr .sp-addr-search { background: var(--grey); }
.bf-addr .sp-addr-results { z-index: 40; }

/* Innlogging eller gjest (som Wolt) */
.bf-brand { width: 150px; height: auto; margin: 6px auto 22px; }
.bf-auth { display: grid; gap: 12px; margin: 8px 0 6px; }
.bf-auth-btn {
    position: relative; display: flex; align-items: center; justify-content: center; min-height: 58px; padding: 0 56px; border: 0; border-radius: 14px;
    font: 700 17px/1.2 'DM Sans', system-ui, sans-serif; text-decoration: none; cursor: pointer;
}
.bf-auth-btn svg { position: absolute; left: 20px; width: 24px; height: 24px; }
.bf-auth--google { background: var(--grey); color: var(--ink) !important; }
.bf-auth--apple { background: #111; color: #fff !important; }
.bf-auth--guest { background: var(--blue); color: #fff; }
.bf-auth--guest svg { fill: none; stroke: currentColor; stroke-width: 2; }
.bf-auth-btn:hover { filter: brightness(.96); }

/* Skjema */
.bf-form { display: grid; gap: 14px; text-align: left; }
.bf-field { display: grid; gap: 6px; margin: 0; }
.bf-field label { font-size: 15px; font-weight: 700; color: var(--ink); }
.bf-opt { font-weight: 500; color: var(--muted); }
.bf-field input, .bf-field textarea {
    width: 100%; min-height: 52px; padding: 13px 16px; border: 0; border-radius: var(--r-sm); background: var(--grey); color: var(--ink);
    font: 500 16px/1.4 'DM Sans', system-ui, sans-serif; outline: none; resize: vertical;
}
/* Eksempelteksten i tomme felt: liten og grå, så den ikke ser utfylt ut */
.bf-field input::placeholder, .bf-field textarea::placeholder { color: #8a94a1; font-size: .92em; opacity: 1; }
.bf-field input:focus, .bf-field textarea:focus { background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.bf-field input[aria-invalid="true"] { box-shadow: 0 0 0 2px #c0392b; background: #fff; }
.bf-err { margin: 0; min-height: 0; color: #a1281e; font-size: 14.5px; }
.bf-err:empty { display: none; }
.bf-err.is-ok { color: var(--ink); background: var(--sky); padding: 12px 14px; border-radius: var(--r-sm); }
.bf-check { display: flex; gap: 12px; align-items: flex-start; margin: 14px 0 0; min-height: 44px; font-size: 15.5px; color: var(--text); cursor: pointer; }
.bf-check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue); }
.bf-grid2 { display: grid; gap: 12px; }
@media (min-width: 560px) { .bf-grid2 { grid-template-columns: 1fr 1fr; } }

/* Velg plagg: lite søkefelt og underkategorier som tekstfaner, fast under topplinjen */
.bf-where { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; color: var(--text); font-size: 15.5px; min-width: 0; }
.bf-where svg { flex: none; width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bf-where span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-where .bf-link { flex: none; }
.bf-tools { position: sticky; top: calc(52px + env(safe-area-inset-top, 0px)); z-index: 20; margin: 0 calc(-1 * var(--pad)); padding: 4px var(--pad) 0; background: #fff; box-shadow: 0 1px 0 var(--line); }
.bf-search { position: relative; display: flex; align-items: center; height: 42px; border-radius: 999px; background: var(--grey); }
.bf-search:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--blue); }
.bf-search > span { flex: none; display: grid; place-items: center; width: 42px; }
.bf-search svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.bf-search input { flex: 1; min-width: 0; height: 100%; padding: 0 8px 0 0; border: 0; background: none; color: var(--ink); font: 500 16px/1.2 'DM Sans', system-ui, sans-serif; outline: none; -webkit-appearance: none; appearance: none; }
.bf-search input::-webkit-search-cancel-button { display: none; }
.bf-q-x { flex: none; width: 42px; height: 42px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; }
.bf-q-x[hidden] { display: none; }
.bf-chips { display: flex; gap: 22px; margin: 2px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.bf-chips[hidden] { display: none; }
.bf-chips::-webkit-scrollbar { display: none; }
.bf-chip { position: relative; flex: none; height: 42px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 15px/1 'DM Sans', system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.bf-chip.on { color: var(--ink); font-weight: 700; }
.bf-chip.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--ink); }
.bf-chip:focus-visible { outline-offset: -3px; }
.bf-group[hidden] { display: none; }
.bf-group .bf-h2 { margin-top: 24px; margin-bottom: 2px; font-size: 20px; }
.bf-list { list-style: none; margin: 0; padding: 0; }
/* Rad: navn og pris til venstre, bilde til høyre med legg til-knappen i hjørnet */
.bf-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.bf-row[hidden], .bf-pack[hidden] { display: none; }
.bf-row-text { min-width: 0; }
.bf-row-text b { display: block; color: var(--ink); font-size: 16.5px; line-height: 1.3; }
.bf-row-price { display: block; margin-top: 3px; color: var(--ink); font-weight: 500; }
.bf-row-text small { display: block; margin-top: 3px; color: var(--muted); font-size: 14px; }
.bf-row-ph { position: relative; flex: none; width: 84px; height: 84px; border-radius: 14px; background: var(--grey2); display: grid; place-items: center; }
.bf-row-ph img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.bf-row-ph .bf-act, .bf-pack-ph .bf-act { position: absolute; right: -6px; bottom: -6px; }
@media (min-width: 900px) { .bf-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; } }
.bf-add { width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--blue); box-shadow: 0 0 0 1px rgb(16 32 56 / 10%); display: grid; place-items: center; cursor: pointer; }
.bf-add::after { content: ""; position: absolute; inset: -3px; }
.bf-add { position: relative; }
.bf-add svg, .bf-step svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2.3; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bf-step { display: inline-flex; align-items: center; height: 40px; padding: 0 1px; border-radius: 8px; background: var(--blue); color: #fff; box-shadow: 0 0 0 1px rgb(16 32 56 / 10%); }
.bf-step button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.bf-step button:hover { background: rgb(255 255 255 / 16%); }
.bf-step b { min-width: 20px; text-align: center; font-size: 15.5px; white-space: nowrap; }
.bf-step :focus-visible { outline-color: #fff; outline-offset: -3px; }
/* Pakketilbud: små kort man blar sidelengs i */
.bf-packs { list-style: none; display: flex; gap: 12px; margin: 10px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.bf-packs::-webkit-scrollbar { display: none; }
.bf-pack { flex: none; width: 142px; scroll-snap-align: start; }
.bf-pack-ph { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 16px; background: var(--grey2); }
.bf-pack-ph img { width: 68%; height: 68%; object-fit: contain; mix-blend-mode: multiply; }
.bf-save { position: absolute; top: 8px; left: 8px; padding: 4px 9px; border-radius: 8px; background: #d92d3a; color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: 0.01em; }
.bf-pack > b { display: block; margin-top: 10px; color: var(--ink); font-size: 15.5px; line-height: 1.25; }
.bf-pack > small { display: block; margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.3; }
.bf-pack-price { display: flex; gap: 8px; align-items: baseline; margin-top: 4px; }
.bf-pack-price b { color: var(--ink); font-size: 15.5px; }
.bf-pack-price s { color: var(--muted); font-size: 13.5px; }

/* Dato: dagene som små kalenderlapper, den første ledige er valgt */
.bf-when { margin: 0 0 14px; padding: 16px 16px 14px; border-radius: var(--r-lg); background: var(--grey); }
.bf-when-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.bf-when-h span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.bf-when-h svg { width: 17px; height: 17px; fill: none; stroke: var(--blue); stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.bf-days { display: flex; gap: 8px; margin: 0 -16px; padding: 2px 16px; overflow-x: auto; scrollbar-width: none; }
.bf-days::-webkit-scrollbar { display: none; }
.bf-day { flex: 1 0 58px; display: grid; justify-items: center; gap: 1px; padding: 9px 0 10px; border: 0; border-radius: 14px; background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.bf-day span { font-size: 13px; font-weight: 600; color: var(--muted); }
.bf-day b { font-size: 21px; line-height: 1.15; font-weight: 800; }
.bf-day:hover { box-shadow: inset 0 0 0 2px #cfdcec; }
.bf-day.on { background: var(--blue); color: #fff; box-shadow: none; }
.bf-day.on span { color: #dce9fb; }
.bf-when-sel { margin: 12px 0 0; color: var(--text); font-size: 15.5px; }
.bf-when-sel b { color: var(--ink); }

/* Kontaktinfo: landskode og telefonnummer på samme linje */
/* Kontaktinfo: landskode og telefonnummer på samme linje */
.bf-phone { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 8px; }
.bf-phone select {
    width: 100%; min-height: 52px; padding: 0 30px 0 14px; border: 0; border-radius: var(--r-sm); background: var(--grey) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234e5966' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
    color: var(--ink); font: 600 16px/1.2 'DM Sans', system-ui, sans-serif; cursor: pointer; -webkit-appearance: none; appearance: none; outline: none;
}
.bf-phone select:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.bf-field input[readonly] { color: var(--muted); }

/* Sammendrag: rader med ikon, tekst og pil, plaggene med antall, og totalsum i bunnfeltet */
.bf-sum { display: block; }
.bf-sumview .bf-h2 { margin: 30px 0 6px; font-size: 22px; }
.bf-sumview h1 + form > .bf-h2:first-child { margin-top: 14px; }
.bf-map { height: 150px; margin: 8px 0 4px; border-radius: 16px; background: var(--grey); overflow: hidden; z-index: 0; }
.bf-map .leaflet-control-attribution { font-size: 11px; background: rgb(255 255 255 / 85%); border-radius: 8px 0 0 0; }
.bf-map-pin { display: grid; place-items: start center; }
.bf-map-pin::before { content: ""; position: absolute; left: 3px; top: 0; width: 38px; height: 38px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--blue); border: 3px solid #fff; box-shadow: 0 0 0 1px rgb(16 32 56 / 10%); }
.bf-map-pin svg { position: relative; width: 24px; height: 24px; margin-top: 8px; }
.bf-ln { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.bf-ln--static { cursor: default; align-items: flex-start; }
.bf-ln-ic { flex: none; display: grid; place-items: center; width: 28px; }
.bf-ln-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bf-ln-t { flex: 1; min-width: 0; display: grid; gap: 1px; line-height: 1.35; }
.bf-ln-t small { color: var(--muted); font-size: 14px; }
.bf-ln-t b { color: var(--ink); font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.bf-ln-t span { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.bf-chev { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bf-ln:hover .bf-chev { stroke: var(--ink); }
.bf-inline { display: grid; gap: 12px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.bf-inline[hidden] { display: none; }
.bf-inline .bf-btn { min-height: 46px; justify-self: start; font-size: 16px; }
.bf-inline .bf-link { justify-self: start; }
.bf-promo { display: flex; gap: 8px; }
.bf-promo input { flex: 1; min-width: 0; text-transform: uppercase; }
.bf-promo .bf-btn { min-height: 52px; }
.bf-h2row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 10px; }
.bf-h2row .bf-h2 { margin: 0; }
.bf-pill { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 18px 0 14px; border: 0; border-radius: 8px; background: var(--sky); color: var(--blue-d); font: 700 15.5px/1 'DM Sans', system-ui, sans-serif; cursor: pointer; }
.bf-pill svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.bf-free { margin: 0 0 6px; padding: 14px 16px; border-radius: 16px; background: #fff3d6; }
.bf-free p { margin: 0 0 10px; color: var(--ink); font-size: 15.5px; }
.bf-free-bar { display: block; height: 6px; border-radius: 6px; background: #fbe2a4; overflow: hidden; }
.bf-free-bar i { display: block; height: 100%; border-radius: 6px; background: #5fcfa6; }
.bf-sitems { list-style: none; margin: 0; padding: 0; }
.bf-sitem { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bf-sitem-ph { flex: none; width: 64px; height: 64px; border-radius: 14px; background: var(--grey2); display: grid; place-items: center; }
.bf-sitem-ph img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.bf-sitem-t { flex: 1; min-width: 0; }
.bf-sitem-t p { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--ink); font-size: 16.5px; }
.bf-sitem-t p b:last-child { white-space: nowrap; }
.bf-sitem-t small { display: block; margin: 2px 0 10px; color: var(--muted); font-size: 14.5px; }
.bf-sitem .bf-step { height: 46px; padding: 3px; gap: 2px; border-radius: 14px; background: var(--grey); color: var(--ink); box-shadow: none; }
.bf-sitem .bf-step button { width: 40px; height: 40px; border-radius: 11px; }
.bf-sitem .bf-step [data-dec] { background: #fff; color: var(--blue); }
.bf-sitem .bf-step [data-inc] { background: var(--blue); color: #fff; }
.bf-sitem .bf-step b { min-width: 44px; font-size: 16.5px; }
.bf-sitem .bf-step :focus-visible { outline-color: var(--blue); outline-offset: 2px; }
.bf-card-sub { margin: 8px 0 0; color: var(--muted); font-size: 15px; }
.bf-lines { list-style: none; margin: 6px 0 0; padding: 0; }
.bf-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; color: var(--text); font-size: 16.5px; }
.bf-lines li > :last-child { white-space: nowrap; }
.bf-total { margin-top: 8px; color: var(--ink) !important; font-size: 22px !important; font-weight: 800; letter-spacing: -0.02em; }
.bf-card { padding: 18px 18px 20px; border-radius: var(--r-lg); background: var(--grey); text-align: left; }

/* Bunnfelt med sum og neste-knapp */
.bf-dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; box-shadow: 0 -1px 0 var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bf-dock[hidden] { display: none; }
.bf-dock-in { display: flex; align-items: center; justify-content: space-between; gap: 14px; max-width: 1120px; margin: 0 auto; padding: 12px var(--pad); }
.bf-dock-sum { margin: 0; display: grid; font-size: 15px; color: var(--muted); line-height: 1.3; min-width: 0; }
.bf-dock-sum b { color: var(--ink); font-size: 16.5px; }
.bf-dock .bf-btn { flex: none; }
@media (max-width: 380px) { .bf-dock .bf-btn { padding: 0 18px; font-size: 16px; } }
/* Sammendraget: totalsum over en knapp i full bredde */
.bf-dock--total { border-radius: 14px 14px 0 0; box-shadow: 0 0 0 1px rgb(16 32 56 / 10%); }
.bf-dock--total .bf-dock-in { display: block; max-width: 600px; padding: 16px var(--pad) 14px; }
.bf-dock-total { display: flex; justify-content: space-between; gap: 12px; margin: 0; color: var(--ink); font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.bf-dock-note { margin: 2px 0 12px; color: var(--muted); font-size: 14.5px; }
.bf-dock--total .bf-btn { width: 100%; border-radius: 14px; }
/* Betaling: «Bestill» nederst i sammendraget åpner betalingsvalget (.bf-pay) i en popup:
   Apple Pay / Google Pay øverst når kunden har det, så radene «Kort eller Klarna» og «Betal ved levering». */
.bf-dock--total .bf-dock-total { margin-bottom: 12px; }
.bf-dock--total .bf-dock-total:has(+ .bf-dock-note) { margin-bottom: 0; }
.bf-pay .bf-express:not(.is-on):not(.is-wait) { height: 0; overflow: hidden; }
.bf-pay .bf-express.is-on { margin: 2px 0 8px; border-radius: 14px; overflow: hidden; }
/* Plassen til Apple Pay / Google Pay settes av med en gang når kunden trolig har det, så knappen ikke dytter de andre ned */
.bf-pay .bf-express.is-wait:not(.is-on) { height: 55px; margin: 2px 0 8px; border-radius: 14px; background: #000; overflow: hidden; animation: bf-wait 1.2s ease-in-out infinite alternate; }
@keyframes bf-wait { from { opacity: 1; } to { opacity: .72; } }
@media (prefers-reduced-motion: reduce) { .bf-pay .bf-express.is-wait { animation: none; } }
/* Knappene i betalingsvalget: samme form som Apple Pay-knappen (55 px høye, 14 px hjørner, én farge, teksten midt på).
   Ikon og tekst står midt på knappen, og betalingsmerkene helt til høyre. */
.bf-way { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; height: 55px; margin-top: 10px; padding: 0 14px; border: 0; border-radius: 14px; font: inherit; cursor: pointer; transition: filter .15s ease, transform .1s ease; }
.bf-way:hover { filter: brightness(.94); }
.bf-way:active { transform: scale(.985); }
.bf-way:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.bf-way:disabled { cursor: default; opacity: .65; }
.bf-way-l { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.bf-way-l svg { flex: none; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bf-way-l b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.bf-way-marks { position: absolute; right: 12px; top: 50%; display: flex; gap: 4px; transform: translateY(-50%); }
.bf-way-marks svg { display: block; width: 36px; height: 22.5px; }
.bf-way--card { background: var(--blue); color: #fff; }
.bf-way--later { background: #e6e9ee; color: var(--ink); }
.bf-pay .bf-express.is-on + .bf-way { margin-top: 2px; }
/* Smale skjermer: teksten står til venstre, så den ikke kolliderer med merkene */
@media (max-width: 350px) { .bf-way { justify-content: flex-start; } .bf-way-l b { font-size: 18px; } }
.bf-pay .bf-err { margin: 12px 0 0; }
.bf-pay-safe { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 16px 0 2px; color: var(--muted); font-size: 13.5px; }
.bf-pay-safe svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .bf-way { transition: none; } }
/* Prislinjene under plaggene (totalsummen står nederst på skjermen) */
.bf-sumview .bf-lines { margin-top: 14px; }
/* Kortfeltene (Stripes kortfelt ligger inni .bf-cf-in, som ser ut som nettsidens egne felt) */
.bf-cf { display: grid; gap: 6px; min-width: 0; }
.bf-cf-l { color: var(--ink); font-size: 15px; font-weight: 600; }
.bf-cf-in { height: 54px; padding: 17px 14px 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #c9d1db; transition: box-shadow .15s ease; }
.bf-cf-in.StripeElement--focus { box-shadow: inset 0 0 0 2px var(--blue); }
.bf-cf-in.StripeElement--invalid { box-shadow: inset 0 0 0 2px #a1281e; }
.bf-cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bf-form .bf-pay-safe { margin: 2px 0 0; }
body[data-step="sammendrag"] .bf-view { padding-bottom: calc(210px + env(safe-area-inset-bottom, 0px)); }

/* Bekreftelse */
.bf-done-ic { display: grid; place-items: center; width: 76px; height: 76px; margin: 10px auto 18px; border-radius: 50%; background: #d5f5ea; }
.bf-done-ic svg { width: 40px; height: 40px; stroke: #12795a; stroke-width: 2.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }
/* «Gjør klart tøyet»: tre illustrerte steg på bekreftelsen */
.bf-prep { margin: 26px 0 8px; padding: 22px 18px; border-radius: var(--r-lg); background: var(--grey); text-align: left; }
.bf-prep h2 { margin: 0 0 16px; color: var(--ink); font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.bf-prep-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.bf-prep-steps li { display: flex; align-items: center; gap: 14px; }
.bf-prep-ill { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; }
.bf-prep-ill.a { background: #fff0c5; } .bf-prep-ill.b { background: #dcecff; } .bf-prep-ill.c { background: #d5f5ea; }
.bf-prep-ill svg { width: 40px; height: 40px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.bf-prep-steps b { display: block; color: var(--ink); font-size: 17px; line-height: 1.3; }
.bf-prep-steps p { margin: 2px 0 0; color: var(--text); font-size: 15.5px; }
.bf-upsell { margin-top: 26px; background: var(--sky); }
.bf-upsell h2 { margin: 0 0 6px; color: var(--ink); font-size: 20px; font-weight: 800; }
.bf-upsell p { margin: 0 0 14px; }
.bf-upsell .bf-btn { width: 100%; }
.bf-center > .bf-btn { width: 100%; }
.bf-center > .bf-link { justify-content: center; width: 100%; }

.bf-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 60; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 15px; }
.bf-toast[hidden] { display: none; }

/* Sammendraget: fremdriftslinjen og prosenten er skjult */
.bf-bar[hidden], .bf-pct[hidden] { display: none; }
body[data-step="sammendrag"] .bf-top-row { justify-content: space-between; }

/* Popuper på sammendraget (adresse, beskjed, dager, rabattkode, kontakt). Mobil: ark fra bunnen. PC: boks midt på skjermen. */
.bf-sheet { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 16px 16px 0 0; background: #fff; color: var(--text);
    box-shadow: 0 0 0 1px rgb(16 32 56 / 10%); overflow: auto; overscroll-behavior: contain; }
.bf-sheet::backdrop { background: rgb(16 24 38 / 45%); }
.bf-sheet-in { padding: 18px var(--pad) calc(22px + env(safe-area-inset-bottom, 0px)); }
.bf-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.bf-sheet-head h2 { margin: 0; color: var(--ink); font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.bf-sheet-x { flex: none; width: 44px; height: 44px; margin-right: -6px; border: 0; border-radius: 50%; background: var(--grey); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.bf-sheet-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.bf-sheet .bf-form .bf-btn, .bf-sheet-body > .bf-btn { width: 100%; margin-top: 4px; }
.bf-sheet .bf-link { justify-self: center; }
.bf-sheet .bf-when { margin-bottom: 12px; }
.bf-sheet .bf-when-h { font-size: 17px; }
.bf-sheet--tall .bf-sheet-in { min-height: min(70dvh, 520px); }
.bf-sheet .bf-addr .sp-addr-search { background: var(--grey); }
.bf-sheet .sp-addr-results { position: static; margin-top: 8px; max-height: none; box-shadow: 0 0 0 1px var(--line); }
@media (min-width: 700px) {
    .bf-sheet { width: min(520px, calc(100% - 48px)); max-height: 86dvh; margin: auto; border-radius: 16px; box-shadow: 0 0 0 1px rgb(16 32 56 / 10%); }
    .bf-sheet-in { padding: 24px 26px 26px; }
}

/* ---------- Bekreftelsen: som den opprinnelige, uten boks rundt «Gjør klart tøyet», med blå sirkler rundt ikonene ---------- */
.bf-done .bf-prep { margin: 30px 0 6px; padding: 0; background: none; border-radius: 0; text-align: left; }
.bf-done .bf-prep h2 { margin: 0 0 16px; text-align: center; }
.bf-done .bf-prep-steps { gap: 16px; }
.bf-done .bf-prep-ill { width: 56px; height: 56px; background: var(--sky); }
.bf-done .bf-prep-ill svg { width: 26px; height: 26px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bf-done .bf-prep-ill circle[r=".9"] { fill: var(--blue); }
.bf-done > .bf-small { margin-top: 22px; }
/* «Gjør klart tøyet» på mobil: samme utseende som før (blå sirkel og tekst, ingen bokser), men stegene sveipes sidelengs */
@media (max-width: 699.98px) {
    .bf-done .bf-prep-steps { display: flex; gap: 18px; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
    .bf-done .bf-prep-steps::-webkit-scrollbar { display: none; }
    .bf-done .bf-prep-steps li { flex: 0 0 76%; scroll-snap-align: start; align-items: center; gap: 14px; }
    .bf-done .bf-prep-steps:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: var(--r-sm); }
}
/* Følg bestillingen: innlogging på Min side */
.bf-follow { margin-top: 26px; padding: 22px 20px 18px; border-radius: var(--r-lg); background: var(--sky); text-align: left; }
.bf-follow h2 { margin: 0 0 2px; color: var(--ink); font-size: 20px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 800; }
.bf-follow-txt { margin: 0; color: var(--text); font-size: 15.5px; line-height: 1.4; }
.bf-follow .bf-auth { margin: 16px 0 0; gap: 8px; }
.bf-follow .bf-auth--google { background: #fff; }
.bf-follow .bf-link { justify-content: center; width: 100%; margin-top: 2px; }
.bf-follow .bf-small { margin-top: 4px; text-align: center; }
.bf-follow .bf-small:empty { display: none; }
.bf-follow > .bf-btn { width: 100%; margin-top: 16px; }

/* Følg bestillingen: uten blå boks rundt, bare en tynn strek over som skiller den fra resten */
.bf-follow { padding: 26px 0 0; border-radius: 0; background: none; box-shadow: inset 0 1px 0 var(--line); }
.bf-follow .bf-auth--google { background: var(--grey); }

/* Tilbehør-popupen: samme rader som i plagglisten */
.bf-sugg { margin: 0 0 18px; padding: 0; list-style: none; }
.bf-sugg .bf-row:last-child { border-bottom: 0; box-shadow: none; }
.bf-sheet .bf-sugg { display: block; }

/* «Annet kort» når kunden har lagrede kort: hvit med blå tekst, så de lagrede kortene er hovedvalget */
.bf-way--card.bf-way--other{background:#fff;color:var(--blue,#075ac6);box-shadow:inset 0 0 0 1.5px currentColor}

/* «Lagre kortet til neste gang» under kortfeltene (innlogget kunde) */
.bf-check--save{align-items:center;margin:4px 0 6px}
