/* Snapprens – finpuss av bestillingen. Lastes etter de andre booking-filene. */

/* Topp på PC: logo som fører til forsiden, og telefon hvis kunden står fast.
   På mobil brukes den blå topplinjen (booking-mobile.css) i stedet. */
.bk-top { display: none; }
@media (min-width: 701px) {
    .snap-booking .booking-header { background: #fff; color: #16293c; }
    .bk-top {
        display: flex; align-items: center; justify-content: space-between; gap: 24px;
        box-sizing: border-box; width: min(1520px, 100%); margin: 0 auto; height: 60px;
        padding: 0 clamp(18px, 3.65vw, 60px);
        font: 500 14px/1.3 'DM Sans', system-ui, sans-serif;
    }
    .bk-brand { display: inline-flex; align-items: center; min-height: 44px; }
    .bk-brand img { display: block; width: 132px; height: auto; }
    .bk-help { color: #4b5c70; text-decoration: none; }
    .bk-help b { color: #075ac6; font-weight: 700; white-space: nowrap; }
    .bk-help:hover b { text-decoration: underline; text-underline-offset: 3px; }
    .bk-top a:focus-visible { outline: 3px solid #075ac6; outline-offset: 3px; border-radius: 6px; }
}
@media print { .bk-top { display: none; } }

/* Korte trygghetspunkter på oppsummering og betaling. */
.bk-promise { list-style: none; margin: 16px 0 4px; padding: 0; display: grid; gap: 8px; }
.bk-promise li {
    position: relative; margin: 0; padding-left: 26px;
    color: #3d5166; font-size: 14px; line-height: 1.45;
}
.bk-promise li::before {
    content: ''; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; border-radius: 50%;
    background: #e3f5ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f52' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.snap-booking .bk-assure { margin: 2px 0 0; color: #5a7089; font-size: 13px; line-height: 1.5; }

/* Eldre oppsummeringskort: erstattet av det felles sammendraget (#smartReview). Elementene
   står igjen i siden fordi bestillingsskriptet fortsatt fyller dem ut. */
.snap-booking .ss-legacy { display: none !important; }

/* Adresseforslag: hvit liste med skillelinjer i stedet for blå knapper. */
.snap-booking #step-2 .address-suggestions { border: 1px solid #dfe7ef; border-radius: 14px; overflow: auto; background: #fff; }
.snap-booking #step-2 .address-suggestions button.sp-address-option {
    background: #fff; color: #16293c; font-weight: 400; min-height: 56px; padding: 12px 16px;
    border: 0; border-bottom: 1px solid #edf1f5; border-radius: 0 !important;
}
.snap-booking #step-2 .address-suggestions button.sp-address-option:last-child { border-bottom: 0; }
.snap-booking #step-2 .address-suggestions button.sp-address-option strong { color: #16293c; font-weight: 600; }
.snap-booking #step-2 .address-suggestions button.sp-address-option:is(:hover, :focus) { background: #f4f7fa; outline: 2px solid #075ac6; outline-offset: -2px; }

/* Knappene nederst kan ha lengre tekst («Velg tidspunkt →»). */
.snap-booking .products-dock #step1Next { width: auto; min-width: 180px; white-space: nowrap; }
@media (max-width: 600px) { .snap-booking .products-dock #step1Next { min-width: 150px; gap: 10px; } }

/* «Din bestilling»-knapp i toppen på PC. */
.bk-top-right { display: inline-flex; align-items: center; gap: 22px; }
.bk-sum {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px;
    border: 1px solid #d5dde6; border-radius: 999px; background: #fff; color: #16293c;
    font: 600 14px/1 'DM Sans', system-ui, sans-serif; cursor: pointer;
}
.bk-sum[hidden] { display: none; }
.bk-sum:hover { background: #f4f7fa; border-color: #9fb0c2; }
.bk-sum:focus-visible { outline: 3px solid #075ac6; outline-offset: 2px; }
.bk-sum b { font-weight: 700; color: #075ac6; }
.bk-sum b:empty { display: none; }

/* ---------- Felles sammendrag (ark + «Din bestilling») ---------- */
.ss { color: #16293c; font-size: 15px; }
.ss button { font: inherit; cursor: pointer; }
.ss-free { margin: 6px 0 14px; padding: 12px 14px; border-radius: 14px; background: #f3f7fb; }
.ss-free p { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: #3d5166; }
.ss-free b { color: #16293c; }
.ss-bar { height: 6px; border-radius: 6px; background: #dfe7ef; overflow: hidden; }
.ss-bar i { display: block; height: 100%; border-radius: 6px; background: #075ac6; transition: width .25s ease; }
.ss-free.is-free { background: #e9f7ef; }
.ss-free.is-free p, .ss-free.is-free b { color: #14673f; }
.ss-free.is-free .ss-bar i { background: #1a9a5c; }
.ss-items { display: grid; }
.ss-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #edf1f5; }
.ss-item img, .ss-noimg { width: 52px; height: 52px; border-radius: 12px; object-fit: contain; background: #f5f7fa; }
.ss-noimg { display: block; }
.ss-name { min-width: 0; }
.ss-name strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; }
.ss-name small { display: block; margin-top: 2px; font-size: 13px; color: #65768b; overflow-wrap: anywhere; }
.ss-line { min-width: 62px; text-align: right; font-size: 15px; font-weight: 700; white-space: nowrap; }
.ss-step { display: inline-flex; align-items: center; border-radius: 999px; background: #f0f4f8; }
.snap-booking .ss-step button, .ss-step button {
    display: grid; place-items: center; width: 40px; height: 40px; min-height: 40px; padding: 0; border: 0; border-radius: 50%;
    background: transparent; color: #075ac6; font-size: 20px; font-weight: 600; line-height: 1;
}
.ss-step button:hover { background: #dfe9f4; }
.ss-step button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ss-step b { min-width: 22px; text-align: center; font-size: 15px; font-weight: 700; }
.ss-qty-fixed { font-size: 14px; color: #65768b; }
.snap-booking .ss-add, .ss-add {
    display: inline-flex; align-items: center; min-height: 44px; margin: 4px 0 0; padding: 0; border: 0;
    background: none; color: #075ac6; font-size: 14px; font-weight: 700;
}
.ss-add:hover { text-decoration: underline; text-underline-offset: 3px; }
.ss-empty p { margin: 8px 0 0; color: #65768b; }
.ss-details { margin-top: 10px; padding: 4px 14px; border-radius: 14px; background: #f7f9fb; }
.ss-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 46px; border-bottom: 1px solid #e9eef3; }
.ss-row:last-child { border-bottom: 0; }
.ss-k { font-size: 13px; color: #65768b; }
.ss-v { font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; padding: 8px 0; }
.snap-booking .ss-row button, .ss-row button { min-height: 40px; padding: 0 4px; border: 0; background: none; color: #075ac6; font-size: 13px; font-weight: 700; }
.ss-row button:hover { text-decoration: underline; text-underline-offset: 3px; }
.ss-totals { margin-top: 14px; }
.ss-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 15px; color: #3d5166; }
.ss-totals em { font-style: normal; font-weight: 700; color: #1a7f52; }
.ss-totals .ss-disc { color: #1a7f52; }
.ss-totals .ss-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid #dfe7ef; font-size: 20px; color: #16293c; }
.ss-vat { margin: 2px 0 0; font-size: 12.5px; color: #75899a; text-align: right; }
.ss button:focus-visible { outline: 3px solid #83bcff; outline-offset: 2px; border-radius: 8px; }
.ss-review { margin-bottom: 6px; }
@media (max-width: 380px) {
    .ss-item { grid-template-columns: 44px minmax(0, 1fr) auto; }
    .ss-item img, .ss-noimg { width: 44px; height: 44px; }
    .ss-line { grid-column: 2 / -1; text-align: left; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .ss-bar i { transition: none; } }
