/* Pakkesiden (/pakke/{slug}), pakkeoversikten (/pakker), kurven og Min side › pakker.
   Var inline i bundle-styles.blade.php - flyttet hit 7. sep 2026 så nettleseren cacher den (ett år via .htaccess, ?v=filemtime). */

/*
 * [hidden] er nettleserens egen regel, og den taper mot ENHVER
 * display-regel i vårt eget ark — det er derfor «Plassering» ble
 * stående synlig på en pakke uten plagg, og hvorfor dra-og-slipp-feltet
 * ikke forsvant når kunden hadde valgt en fil. Vi slår det fast her, én
 * gang, i stedet for å jakte på det per klasse.
 */
#bundle-form [hidden],
.swap-modal[hidden],
.filedrop [hidden] { display: none !important; }

/* ── Topp ────────────────────────────────────────────────────────── */
.bundle-hero { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 1fr); gap: 34px; align-items: center; margin: 10px 0 30px; padding: 26px 28px; border: 1px solid var(--line, #E5E8ED); border-radius: 18px; background: linear-gradient(180deg, #FCFCFD 0%, #F5F6F8 100%); }
.bundle-hero.no-media { grid-template-columns: minmax(0, 1fr); }
.bundle-hero-media { border: 1px solid #E5E8ED; border-radius: 14px; overflow: hidden; background: #fff; }
.bundle-hero-media > img { display: block; width: 100%; height: auto; }
.bundle-collage { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #E5E8ED; }
.bundle-collage span { display: flex; align-items: center; justify-content: center; background: #fff; aspect-ratio: 1; padding: 10px; }
.bundle-collage span:only-child { grid-column: span 2; aspect-ratio: 2 / 1; }
.bundle-collage img { max-width: 100%; max-height: 100%; }

.bundle-hero-body { min-width: 0; }
.bundle-eyebrow { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #E2001A; margin-bottom: 8px; }
.bundle-hero h1 { margin: 0 0 10px; line-height: 1.1; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.bundle-hero .lead { color: #5B6472; line-height: 1.6; margin: 0 0 18px; max-width: 60ch; }

.bundle-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.bundle-facts > div { flex: 1 1 130px; background: #fff; border: 1px solid #E5E8ED; border-radius: 11px; padding: 11px 14px; }
.bundle-facts dt { font-size: 1.02rem; font-weight: 800; line-height: 1.2; }
.bundle-facts dd { margin: 3px 0 0; font-size: .79rem; color: #6B7280; line-height: 1.35; }
.bundle-facts .is-save { border-color: #F6BFC7; background: #FFF6F7; }
.bundle-facts .is-save dt { color: #B50015; }

.bundle-promise { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 0; color: #17803D; font-size: .89rem; line-height: 1.55; }
.bundle-promise svg { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 2px; }
.bundle-promise b { font-weight: 800; }
.bundle-promise--warn { color: #8A6100; }

.bundle-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #F1F3F6; color: #3A4250; }
.bundle-badge--save { background: #FDE7EA; color: #B50015; }
.bundle-badge--print { background: #E8F1FD; color: #1C5FBF; }
.bundle-badge--req { background: #FFF4E0; color: #8A6100; }

/* ── Steg ────────────────────────────────────────────────────────── */
.step { border: 1px solid var(--line, #E5E8ED); border-radius: 14px; background: #fff; padding: 22px 24px; margin-bottom: 18px; }
.step-head { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 4px; }
.step-num { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #151A24; color: #fff; font-weight: 800; font-size: .85rem; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.step-head h2 { margin: 0; font-size: 1.12rem; line-height: 1.4; }
.step-head p { margin: 3px 0 0; color: #6B7280; font-size: .88rem; line-height: 1.55; max-width: 66ch; }

/* ── Produktlinje ────────────────────────────────────────────────── */
.bundle-line { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-top: 1px solid #EEF0F4; }
.bundle-line:first-of-type { border-top: 0; padding-top: 14px; }
.bundle-line-media { border: 1px solid var(--line, #E5E8ED); border-radius: 12px; overflow: hidden; background: #fff; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.bundle-line-media img { max-width: 100%; max-height: 100%; }
.bundle-line-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.bundle-line-title { font-weight: 700; font-size: 1.02rem; }
.bundle-line-title a { color: inherit; text-decoration: none; }
.bundle-line-title a:hover { text-decoration: underline; }
.bundle-line-sub { color: #6B7280; font-size: .84rem; margin-top: 3px; }
.bundle-line-note { color: #5B6472; font-size: .85rem; margin-top: 8px; }
.bundle-line-price { font-size: .92rem; margin-top: 7px; }
.bundle-line-price s { color: #9AA1AC; margin-right: 6px; }
.bundle-line-price b { color: #B50015; font-size: 1.02rem; }

/* ── Fargevelger ─────────────────────────────────────────────────── */
.bm-colorbar { margin: 14px 0 2px; }
.bm-colorlabel { display: block; font-size: .8rem; color: #6B7280; margin-bottom: 7px; }
.bm-colorlabel b { color: #232936; font-weight: 700; }
.bm-colors { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.bm-swatch { position: relative; width: 30px; height: 30px; padding: 0; border: 1px solid #DDE1E7; border-radius: 50%; background: #F4F5F7 center/cover no-repeat; cursor: pointer; overflow: visible; }
.bm-swatch img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.bm-swatch:hover { border-color: #A9B0BC; }
.bm-swatch.is-active { border-color: #E2001A; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(226,0,26,.55); }
.bm-swatch.has-qty::after { content: attr(data-qty); position: absolute; right: -6px; bottom: -6px; min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: #17803D; border: 2px solid #fff; color: #fff; font: 700 10px/14px system-ui, -apple-system, sans-serif; text-align: center; }
.bm-colors:not(.show-all) .bm-swatch:nth-of-type(n+15) { display: none; }
.bm-more { border: 1px dashed #C3C9D4; background: #fff; color: #4A5262; border-radius: 999px; padding: 5px 12px; font-size: .78rem; font-weight: 700; cursor: pointer; }

/* ── Størrelsesmatrise ───────────────────────────────────────────── */
.bm-grids { margin-top: 14px; }
.bm-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-grid[hidden] { display: none; }
.bm-cell { width: 70px; }
.bm-cell label { display: block; font-size: .72rem; font-weight: 700; color: #6B7280; text-align: center; margin-bottom: 4px; letter-spacing: .03em; }
.bm-cell input { width: 100%; text-align: center; padding: 9px 4px; border: 1px solid #DDE1E7; border-radius: 9px; font-size: 1rem; font-weight: 600; background: #fff; color: #232936; -moz-appearance: textfield; }
.bm-cell input::-webkit-outer-spin-button, .bm-cell input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bm-cell input::placeholder { color: #C3C9D4; font-weight: 400; }
.bm-cell input:focus { outline: none; border-color: #E2001A; box-shadow: 0 0 0 3px rgba(226,0,26,.12); }
.bm-cell input.has-qty { border-color: #17803D; background: #F2FBF5; color: #12652F; }

.bm-chosen { margin-top: 11px; font-size: .85rem; color: #17803D; font-weight: 600; }
.bm-chosen span { display: inline-block; margin-right: 12px; }
.bm-warn { color: #B50015; }

/* ── Valgkort (trykk / rene plagg) ───────────────────────────────── */
.choice-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 16px; }
.choice-card { position: relative; display: flex; gap: 12px; border: 1px solid #DDE1E7; border-radius: 12px; padding: 15px 16px; cursor: pointer; background: #fff; transition: border-color .12s, box-shadow .12s; }
.choice-card:hover { border-color: #A9B0BC; }
.choice-card input { margin: 2px 0 0; accent-color: #E2001A; width: 18px; height: 18px; flex: 0 0 18px; }
.choice-card b { display: block; font-size: .97rem; }
.choice-card small { display: block; color: #6B7280; font-size: .84rem; line-height: 1.5; margin-top: 3px; }
.choice-card:has(input:checked),
.choice-card.is-checked { border-color: #E2001A; box-shadow: 0 0 0 2px rgba(226,0,26,.12); background: #FFFBFB; }

.print-details { margin-top: 20px; padding-top: 20px; border-top: 1px solid #EEF0F4; }
.print-details[hidden] { display: none; }
.print-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.fl { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; color: #3A4250; }
.print-details select, .print-details input[type=file], .print-details textarea { width: 100%; padding: 10px 11px; border: 1px solid #DDE1E7; border-radius: 9px; background: #fff; font-size: .92rem; font-family: inherit; color: #232936; }
.print-details select:focus, .print-details textarea:focus { outline: none; border-color: #E2001A; box-shadow: 0 0 0 3px rgba(226,0,26,.12); }
.print-sub { margin-top: 18px; }
.print-sub h3 { margin: 0 0 4px; font-size: .97rem; }
.print-sub > p { margin: 0; color: #6B7280; font-size: .86rem; line-height: 1.55; }
.print-files { margin-top: 14px; }
.print-files[hidden], .print-text[hidden], .print-later[hidden] { display: none; }
.print-hint { color: #6B7280; font-size: .82rem; margin-top: 7px; line-height: 1.55; }

.addon { display: flex; gap: 11px; align-items: flex-start; border: 1px solid #DDE1E7; border-radius: 11px; padding: 13px 15px; margin-top: 16px; cursor: pointer; background: #fff; }
.addon input { margin: 2px 0 0; accent-color: #E2001A; width: 17px; height: 17px; flex: 0 0 17px; }
.addon b { display: block; font-size: .92rem; }
.addon small { display: block; color: #6B7280; font-size: .83rem; line-height: 1.5; margin-top: 2px; }
.addon:has(input:checked),
.addon.is-checked { border-color: #17803D; background: #F5FCF7; }
.addon .price { color: #B50015; font-weight: 700; white-space: nowrap; }

.decor-list { margin-top: 18px; border: 1px solid #E5E8ED; border-radius: 11px; padding: 14px 16px; background: #fff; }
.decor-list h3 { margin: 0 0 9px; font-size: .95rem; }
.decor-list ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.decor-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .86rem; line-height: 1.5; padding-bottom: 7px; border-bottom: 1px solid #F1F3F6; }
.decor-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.decor-list li b { flex: 0 0 auto; }
.decor-list li span { color: #5B6472; }
.decor-list li em { font-style: normal; color: #8B929E; }
.decor-list li.is-plain { opacity: .65; }

.proof-note { display: flex; gap: 11px; align-items: flex-start; background: #F1F6FD; border-radius: 11px; padding: 13px 15px; margin-top: 16px; font-size: .87rem; line-height: 1.55; color: #26405F; }
.proof-note svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; }
.proof-note b { display: block; margin-bottom: 2px; }

.print-estimate { margin-top: 16px; font-size: .88rem; color: #3A4250; background: #F7F8FA; border-radius: 9px; padding: 11px 14px; }
.print-estimate:empty { display: none; }


/* ── Bytt produkt ────────────────────────────────────────────────── */
.bundle-badge--swap { background: #EDE9FE; color: #5B3FBF; }
.swap-counter { background: #F7F8FA; border-radius: 10px; padding: 10px 14px; font-size: .86rem; color: #3A4250; margin-bottom: 4px; }
.bundle-line-swap { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.linkbtn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .85rem; font-weight: 600; color: #5B3FBF; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn svg { width: 15px; height: 15px; }
.linkbtn:hover { color: #43299B; }
.linkbtn:disabled { color: #A9B0BC; cursor: not-allowed; text-decoration: none; }
.linkbtn--muted { color: #6B7280; }
.bundle-line.is-loading { opacity: .45; pointer-events: none; }
.price-net { color: #B50015; font-weight: 700; font-size: .84rem; margin-left: 8px; }

.swap-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 20px; }
.swap-modal[hidden] { display: none; }
.swap-backdrop { position: absolute; inset: 0; background: rgba(21, 26, 36, .55); }
.swap-panel { position: relative; background: #fff; border-radius: 16px; width: min(860px, 100%); max-height: 86vh; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 60px rgba(21,26,36,.3); }
.swap-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid #EEF0F4; }
.swap-head h2 { margin: 0; font-size: 1.1rem; }
.swap-head p { margin: 3px 0 0; color: #6B7280; font-size: .87rem; }
.swap-x { margin-left: auto; background: #F1F3F6; border: 0; border-radius: 9px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #3A4250; flex: 0 0 34px; }
.swap-x svg { width: 17px; height: 17px; }
.swap-body { padding: 18px 22px 22px; overflow-y: auto; }
.swap-empty { color: #6B7280; text-align: center; padding: 30px 10px; margin: 0; }
.swap-admin { background: #FFF8E6; color: #8A6100; border-radius: 9px; padding: 11px 14px; font-size: .85rem; line-height: 1.55; margin: 0 0 4px; }
.swap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.swap-option { display: flex; flex-direction: column; gap: 10px; text-align: left; background: #fff; border: 1px solid #DDE1E7; border-radius: 12px; padding: 12px; cursor: pointer; font: inherit; transition: border-color .12s, box-shadow .12s; }
.swap-option:hover { border-color: #E2001A; box-shadow: 0 6px 18px rgba(21,26,36,.1); }
.swap-option img, .swap-thumb { width: 100%; aspect-ratio: 1; object-fit: contain; background: #F7F8FA; border-radius: 9px; }
.swap-option-body { display: grid; gap: 2px; }
.swap-option-body b { font-size: .9rem; line-height: 1.35; }
.swap-option-body small { color: #6B7280; font-size: .78rem; }
.swap-price { color: #232936; font-weight: 700; font-size: .88rem; margin-top: 4px; }

/* ── Rabattmåler ─────────────────────────────────────────────────── */
.discount-meter { background: #FFF4E0; color: #8A6100; font-weight: 700; font-size: .86rem; padding: 8px 13px; border-radius: 999px; }
.discount-meter small { font-weight: 600; opacity: .8; }
.discount-meter.is-earned { background: #E7F6EC; color: #17803D; }
.discount-meter[hidden] { display: none; }

/* ── Filopplasting ───────────────────────────────────────────────── */
.filedrop { position: relative; }
.filedrop-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filedrop-face { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; text-align: center; min-height: 108px; padding: 16px 14px; border: 1.5px dashed #C9CFD9; border-radius: 11px; background: #FBFCFD; cursor: pointer; transition: border-color .12s, background .12s; }
.filedrop-face:hover { border-color: #E2001A; background: #FFFBFB; }
.filedrop-face svg { width: 24px; height: 24px; color: #9AA1AC; }
.filedrop-face:hover svg { color: #E2001A; }
.filedrop-text { font-size: .89rem; color: #3A4250; }
.filedrop-text b { color: #E2001A; text-decoration: underline; text-underline-offset: 2px; }
.filedrop-hint { font-size: .76rem; color: #8B929E; }
.filedrop.is-over .filedrop-face { border-color: #E2001A; border-style: solid; background: #FFF3F4; }
.filedrop-input:focus-visible + .filedrop-face { border-color: #E2001A; box-shadow: 0 0 0 3px rgba(226,0,26,.14); }

.filedrop-file { display: flex; align-items: center; gap: 12px; min-height: 108px; padding: 13px 14px; border: 1px solid #17803D; border-radius: 11px; background: #F5FCF7; }
.filedrop-file[hidden] { display: none; }
.filedrop-thumb { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; background: #fff; border: 1px solid #DDE1E7; flex: 0 0 52px; }
.filedrop-meta { display: grid; gap: 2px; min-width: 0; flex: 1; }
.filedrop-meta b { font-size: .88rem; word-break: break-all; line-height: 1.35; }
.filedrop-meta small { color: #4A5262; font-size: .78rem; }
.filedrop-remove { flex: 0 0 30px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: #fff; color: #6B7280; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.filedrop-remove:hover { background: #FDECEA; color: #C62828; }
.filedrop-remove svg { width: 15px; height: 15px; }

/* ── Summeringslinje ─────────────────────────────────────────────── */
.bundle-bar { position: sticky; bottom: 0; z-index: 4; margin-top: 20px; background: #fff; border: 1px solid var(--line, #E5E8ED); border-radius: 14px; padding: 15px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; box-shadow: 0 -6px 22px rgba(21,26,36,.09); }
.bundle-bar .sum { display: grid; gap: 3px; }
.bundle-bar .sum b { font-size: 1.35rem; line-height: 1.1; }
.bundle-bar .sum small { color: #6B7280; font-size: .82rem; }
.bundle-bar .save { color: #17803D; font-weight: 700; font-size: .87rem; background: #E7F6EC; padding: 6px 11px; border-radius: 999px; }
.bundle-bar .btn { margin-left: auto; }

.bundle-error { background: #FDECEA; color: #C62828; border-radius: 10px; padding: 12px 15px; font-weight: 600; margin-bottom: 18px; }
.bundle-notice { background: #FFF8E6; color: #8A6100; border-radius: 8px; padding: 9px 12px; font-size: .84rem; margin-top: 8px; }

/* ── Pakkeoversikt ───────────────────────────────────────────────── */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.bundle-card { border: 1px solid var(--line, #E5E8ED); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: box-shadow .12s, transform .12s; }
.bundle-card:hover { box-shadow: 0 10px 26px rgba(21,26,36,.1); transform: translateY(-2px); }
.bundle-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bundle-card-body { padding: 15px; display: grid; gap: 7px; }
.bundle-card-body h3 { margin: 0; font-size: 1rem; }
.bundle-card-body p { margin: 0; color: #6B7280; font-size: .86rem; line-height: 1.5; }

/* ── Kurven ──────────────────────────────────────────────────────── */
.cart-bundle-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 16px 0 -6px; padding: 11px 15px; border-radius: 10px; background: #F5F6F8; font-size: .88rem; }
.cart-bundle-head b { font-weight: 700; }
.cart-bundle-head form { margin-left: auto; }
.cart-bundle-head button { background: none; border: 0; color: #B50015; font-weight: 600; cursor: pointer; font-size: .84rem; text-decoration: underline; padding: 0; }

/* ── Lagrede pakker (Min side) ───────────────────────────────────── */
.saved-bundles { display: grid; gap: 12px; margin-top: 18px; }
.saved-bundle { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; border: 1px solid var(--line, #E5E8ED); border-radius: 12px; background: #fff; padding: 16px 18px; }
.saved-bundle.is-gone { background: #FAFBFC; }
.saved-bundle-body { flex: 1 1 240px; display: grid; gap: 3px; }
.saved-bundle-body b { font-size: 1rem; }
.saved-bundle-body small { color: #6B7280; font-size: .84rem; }
.saved-bundle-actions { display: flex; align-items: center; gap: 16px; margin-left: auto; }

/* ── Fyll inn for N ansatte ───────────────────────────────────────── */
.fill-helper { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #F7F8FA; border-radius: 11px; padding: 13px 15px; margin-bottom: 4px; }
.fill-helper label { font-size: .88rem; font-weight: 600; color: #3A4250; }
.fill-helper input { width: 74px; text-align: center; padding: 8px 6px; border: 1px solid #DDE1E7; border-radius: 8px; font-size: .95rem; font-weight: 700; background: #fff; }
.fill-helper input:focus { outline: none; border-color: #E2001A; box-shadow: 0 0 0 3px rgba(226,0,26,.12); }
.fill-helper .btn-fill { border: 1px solid #151A24; background: #151A24; color: #fff; border-radius: 9px; padding: 9px 15px; font-weight: 700; font-size: .87rem; cursor: pointer; }
.fill-helper .btn-fill:hover { background: #000; }
.fill-hint { flex: 1 0 100%; margin: 0; color: #6B7280; font-size: .81rem; line-height: 1.5; }

/* ── Lagre pakken ────────────────────────────────────────────────── */
.save-bundle { border: 1px solid #DDE1E7; background: #fff; color: #3A4250; border-radius: 9px; padding: 12px 16px; font-weight: 700; font-size: .89rem; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.save-bundle:hover { border-color: #A9B0BC; }
.save-bundle svg { width: 15px; height: 15px; }
.save-bundle.is-done { border-color: #17803D; background: #F5FCF7; color: #17803D; }
.save-bundle:disabled { opacity: .6; cursor: default; }

/* ── Mobil ───────────────────────────────────────────────────────── */
/*
 * .container har 20 px luft i hver side. På en telefon er det 40 px av
 * skjermen — og det er nettopp der størrelsesmatrisen trenger plassen.
 * Kortene trekkes derfor ut til kanten, og bare innholdet beholder luft.
 */
@media (max-width: 760px) {
    .bundle-hero {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-inline: -20px;
        padding: 20px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .bundle-hero-media { max-width: 260px; }
    .bundle-hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
    .bundle-hero .lead { margin-bottom: 14px; }
    .bundle-facts { gap: 8px; }
    .bundle-facts > div { flex: 1 1 calc(50% - 4px); padding: 9px 11px; }
    .bundle-facts dt { font-size: .95rem; }
    .bundle-facts dd { font-size: .74rem; }

    .step {
        margin-inline: -20px;
        padding: 20px 16px 22px;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }
    .step-head { gap: 10px; }
    .step-head h2 { font-size: 1.05rem; }
    .swap-counter { margin-inline: -4px; }

    /*
     * Produktlinja stables: bildet legger seg i hjørnet, og bare
     * teksten holder av plass til det. Fargene og matrisen får hele
     * bredden — det er de som trenger den.
     */
    .bundle-line { display: block; position: relative; padding: 20px 0; }
    .bundle-line-media { position: absolute; top: 20px; right: 0; width: 64px; height: 64px; border-radius: 10px; }
    .bundle-line-head,
    .bundle-line-sub,
    .bundle-line-price { padding-right: 74px; }
    .bundle-line-title { font-size: .97rem; }

    /* Matrisen ruller vannrett i stedet for å brekke til flere rader —
       da står størrelsene i én linje slik kunden leser dem på et skjema. */
    .bm-grids { position: relative; }
    .bm-grids::after {
        content: '';
        position: absolute; top: 0; right: -16px; bottom: 8px; width: 28px;
        background: linear-gradient(90deg, rgba(255,255,255,0), #fff 70%);
        pointer-events: none;
    }
    .bm-grid {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0 16px 8px 0;
        margin-right: -16px;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .bm-grid::-webkit-scrollbar { display: none; }
    .bm-cell { flex: 0 0 66px; width: 66px; scroll-snap-align: start; }
    .bm-cell input { padding: 12px 4px; font-size: 1.05rem; }

    /* Tommelvennlige fargeprøver */
    .bm-swatch { width: 36px; height: 36px; }
    .bm-colors { gap: 9px; }
    .bm-colors:not(.show-all) .bm-swatch:nth-of-type(n+11) { display: none; }
    .bm-more { padding: 8px 14px; }

    .choice-card { padding: 14px; }
    .print-details { padding-top: 16px; }
    .filedrop-face { min-height: 96px; }

    /* Summeringslinja: full bredde, og knappen på egen rad. */
    .bundle-bar {
        margin-inline: -20px;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
        gap: 10px;
        border-radius: 14px 14px 0 0;
        border-left: 0;
        border-right: 0;
    }
    .bundle-bar .step-num { display: none; }
    .bundle-bar .sum { flex: 1 1 auto; }
    .bundle-bar .sum b { font-size: 1.2rem; }
    .discount-meter { flex: 1 0 100%; text-align: center; order: 2; }
    .bundle-bar .btn { margin-left: 0; flex: 1 0 100%; order: 4; padding: 14px; font-size: .95rem; }

    /* Plass til den klebrige linja, så siste felt ikke havner under den. */
    #bundle-form { padding-bottom: 8px; }

    .swap-modal { padding: 0; align-items: flex-end; }
    .swap-panel { border-radius: 16px 16px 0 0; max-height: 92vh; width: 100%; }
    .swap-head { padding: 16px 16px 12px; }
    .swap-body { padding: 14px 16px calc(20px + env(safe-area-inset-bottom, 0px)); }
    .swap-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
    .swap-option { padding: 10px; }

    .bundle-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .fill-helper { padding: 12px; }
    .saved-bundle { padding: 14px; }
    .saved-bundle-actions { margin-left: 0; flex: 1 0 100%; }
    .saved-bundle-actions .btn { flex: 1; text-align: center; }
}

@media (max-width: 400px) {
    .bundle-facts > div { flex: 1 1 100%; }
    .bundle-grid { grid-template-columns: 1fr; }
}
