/* ===========================================================
   Begna Bil AS — stylesheet
   =========================================================== */

:root {
  --color-primary: #0a2647;      /* mørk marineblå — matcher logoen */
  --color-primary-dark: #071a33;
  --color-accent: #0062ff;       /* blå fra Begna Bil-logoen — CTA / handling */
  --color-accent-dark: #0050d1;
  --color-bg: #ffffff;
  --color-bg-alt: #f4f6f8;
  --color-text: #1e2530;
  --color-text-muted: #5b6675;
  --color-border: #e2e6ea;
  --color-error: #942219;    /* mørkere rød for bedre lesbarhet/kontrast */
  --radius: 10px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.12);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 12px; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }

.btn-secondary {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
  color: var(--color-primary);
}
.btn-secondary:hover { background: #eaeef1; }

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }

.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.main-nav a {
  text-decoration: none;
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
}
.main-nav a:hover { color: var(--color-primary); }

.header-cta {
  display: flex;
  align-items: center;
  gap: 18px;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-primary);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 64px 0 80px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #9fc4ff;
  margin-bottom: 14px;
}
.hero-text h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  margin-bottom: 20px;
}
.hero-lead {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.92);
  max-width: 48ch;
  margin-bottom: 28px;
}
.hero-lead-highlight {
  color: inherit;
  font-weight: 700;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.hero-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 22px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.32);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  margin: 0;
}
.hero-badge-price {
  background: #ffb703;
  border-color: #ffb703;
  color: var(--color-primary-dark);
  font-size: 0.92rem;
  font-weight: 700;
  padding: 8px 16px;
}
.hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
}
.hero-trust li::before {
  content: "✓ ";
  color: #9fc4ff;
  font-weight: 700;
}
.hero-location {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 0;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.hero-location svg {
  flex-shrink: 0;
  color: #9fc4ff;
}

/* ---------- Hero card / form ---------- */
.hero-card {
  background: #fff;
  color: var(--color-text);
  border-radius: 14px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}
.hero-card h2 { font-size: 1.3rem; margin-bottom: 4px; }
.hero-card-sub {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.field { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 600; color: var(--color-text); }
.field input,
.field textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: #fbfbfc;
  color: var(--color-text);
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: #fff;
}
.field input[readonly] {
  background: #eef2f5;
  color: var(--color-text-muted);
}

.field input[type="file"] {
  padding: 8px 10px;
  background: #fbfbfc;
  cursor: pointer;
}
.field input[type="file"]::file-selector-button {
  font: inherit;
  font-weight: 600;
  padding: 7px 12px;
  margin-right: 10px;
  border: none;
  border-radius: 6px;
  background: var(--color-bg-alt);
  color: var(--color-primary);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover {
  background: #e5e9ec;
}

.field-hint {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin: -2px 0 2px;
}

.upload-status {
  font-size: 0.85rem;
  margin: -6px 0 12px;
  min-height: 1.1em;
  color: var(--color-text-muted);
}
.upload-status.is-error { color: var(--color-error); }
.upload-status.is-success { color: var(--color-accent-dark); }

.photo-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.photo-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.85rem;
}
.photo-list-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.photo-list-remove {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.photo-list-remove:hover { color: var(--color-error); }

.form-row { display: flex; gap: 12px; }
.form-row .field { flex: 1; margin-bottom: 14px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 4px; }
.form-row-3 .field { margin-bottom: 10px; }
.form-row-3[hidden] { display: none; }

.lookup-status {
  font-size: 0.85rem;
  margin: -6px 0 12px;
  min-height: 1.1em;
  color: var(--color-text-muted);
}
.lookup-status.is-error { color: var(--color-error); }
.lookup-status.is-success { color: var(--color-accent-dark); }

.honeypot-field { position: absolute; left: -9999px; }

.field-consent { margin: 4px 0 18px; }
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  cursor: pointer;
}
.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
}
.checkbox-label a { color: var(--color-primary); text-decoration: underline; }

.form-fineprint {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin: 4px 0 16px;
}

.form-success-panel {
  text-align: center;
  padding: 36px 20px;
}
.form-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-success-panel h3 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  color: var(--color-primary);
}
.form-success-panel p {
  margin: 0 0 20px;
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.5;
}
.form-error {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fbebea;
  color: var(--color-error);
  font-size: 0.92rem;
}

/* ---------- Verkstedregning callout ---------- */
.callout-section {
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  padding: 56px 0;
}
.callout-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.callout-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.callout-inner p {
  color: var(--color-text-muted);
  font-size: 1.02rem;
  margin: 0 0 16px;
}
.callout-emphasis {
  color: var(--color-text);
  font-size: 1.05rem;
}
.callout-inner .btn { margin-top: 8px; }

/* ---------- USP strip ---------- */
.usp-strip {
  background: var(--color-bg-alt);
  padding: 40px 0;
  border-bottom: 1px solid var(--color-border);
}
.usp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.usp-item h3 { font-size: 1rem; margin: 10px 0 6px; }
.usp-item p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }
.usp-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ---------- Prisklasse-banner ---------- */
.price-callout {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  padding: 56px 0;
}
.price-callout-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.price-callout h2 {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 16px;
}
.price-callout p {
  color: rgba(255,255,255,0.88);
  font-size: 1.02rem;
  margin: 0 0 14px;
}
.price-callout-emphasis {
  color: #fff !important;
  font-weight: 700;
  font-size: 1.08rem;
}
.price-callout .btn { margin-top: 10px; }

/* ---------- Kundeomtaler ---------- */
.section-testimonials {
  background: #fff8ea;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.testimonials-eyebrow {
  display: block;
  text-align: center;
  color: #b8860b;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}
.testimonial-carousel {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 12px);
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2px 2px 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonial-track::-webkit-scrollbar { display: none; }
.testimonial-track .testimonial-card {
  scroll-snap-align: start;
  min-width: 0;
}
.testimonial-nav {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.testimonial-nav:hover { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.testimonial-nav:disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.testimonial-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}
.testimonial-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: background 0.15s ease, width 0.15s ease, border-radius 0.15s ease;
}
.testimonial-dot:hover { background: var(--color-accent); opacity: 0.6; }
.testimonial-dot.is-active {
  background: var(--color-accent);
  width: 22px;
  border-radius: 4px;
}
.testimonial-car {
  font-weight: 400;
  color: var(--color-text-muted);
}
.testimonial-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-top: 3px solid #ffb703;
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonial-stars {
  color: #ffb703;
  font-size: 1.05rem;
  letter-spacing: 3px;
  margin: 0;
}
.testimonial-quote {
  color: var(--color-text);
  font-size: 0.98rem;
  line-height: 1.65;
  margin: 0;
  position: relative;
  padding-left: 22px;
}
.testimonial-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -4px;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
}
.testimonial-name {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Generic section ---------- */
.section { padding: 72px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  text-align: center;
  margin-bottom: 8px;
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 auto 44px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step p { color: var(--color-text-muted); margin: 0; font-size: 0.94rem; }

/* ---------- Sammenligning: selge privat vs. Begna Bil ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.compare-col {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px 26px;
}
.compare-col-begna {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}
.compare-col h3 { font-size: 1.05rem; margin-bottom: 16px; }
.compare-col-private h3 { color: var(--color-text-muted); }
.compare-col-begna h3 { color: var(--color-primary); }
.compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.94rem;
}
.compare-list li {
  padding-left: 26px;
  position: relative;
  color: var(--color-text-muted);
}
.compare-list-cons li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-error);
  font-weight: 700;
}
.compare-list-pros li {
  color: var(--color-text);
}
.compare-list-pros li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ---------- Card grid (biltyper) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.type-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px;
}
.type-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.type-card p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }

/* ---------- Firmabiler / parti ---------- */
.firma-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.firma-text p { color: var(--color-text-muted); font-size: 1rem; margin-top: 18px; }
.firma-trust { color: var(--color-text); }
.firma-trust li::before { color: var(--color-accent); }

/* ---------- About ---------- */
.about-inner { max-width: 760px; }
.about-text p { color: var(--color-text-muted); font-size: 1rem; }
.about-text .org-line { font-size: 0.85rem; color: var(--color-text-muted); }
.about-text .area-line { font-size: 0.94rem; margin-top: 20px; }
.about-text .area-line strong { color: var(--color-text); }

/* ---------- Personvern-side ---------- */
.policy-inner { max-width: 760px; margin: 0 auto; }
.policy-inner h1 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); margin-bottom: 6px; }
.policy-updated { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 32px; }
.policy-inner h2 { font-size: 1.15rem; margin-top: 32px; }
.policy-inner p,
.policy-inner li { color: var(--color-text-muted); font-size: 0.98rem; }
.policy-inner ul { padding-left: 20px; margin: 0 0 16px; }
.policy-back { margin-top: 36px; }
.policy-back a { color: var(--color-primary); text-decoration: none; font-weight: 600; }
.policy-back a:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  font-weight: 700;
  color: var(--color-accent);
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--color-text-muted); margin: 0 0 16px; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.85);
  padding: 52px 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.logo-footer-badge {
  display: inline-block;
  background: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  line-height: 0;
}
.logo-img-footer { height: 36px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: rgba(255,255,255,0.6); margin-bottom: 12px; }
.footer-col p { margin: 0 0 8px; font-size: 0.92rem; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  padding: 18px 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  text-align: center;
}

/* ===========================================================
   Responsive
   =========================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .firma-layout { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .testimonial-track { grid-auto-columns: 100%; }
  .testimonial-nav { width: 38px; height: 38px; }
}

/* ---------- Sikkerhetsnett mot horisontal overflow på mobil ----------
   Grid-/flex-elementer har som standard min-width:auto, som betyr at de kan
   nekte å krympe under sin naturlige (uwrappet) tekstbredde og dermed tvinge
   hele kolonnen bredere enn skjermen. min-width:0 lar dem krympe og wrappe
   tekst normalt i stedet, uten å endre hvordan de oppfører seg ellers. */
.hero-text,
.hero-card,
.field-regnr,
.checkbox-label span,
.form-row .field,
.usp-item,
.type-card,
.step,
.compare-col,
.testimonial-card {
  min-width: 0;
}

@media (max-width: 720px) {
  .main-nav { display: none; }
  .main-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 12px 24px 18px;
  }
  .main-nav.is-open a {
    width: 100%;
    padding: 10px 0;
  }
  .nav-toggle { display: flex; }
  .header-cta .btn {
    padding: 9px 14px;
    font-size: 0.85rem;
    white-space: nowrap;
  }
  .form-row { flex-direction: column; }
  .form-row-3 { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ---------- Cookie-/annonsesamtykke-banner ---------- */
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.cookie-consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.18);
}
.cookie-consent-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cookie-consent-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.9);
  flex: 1 1 320px;
  min-width: 0;
}
.cookie-consent-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
/* ---------- Varselboks i skjemaet (ingen garanti/reklamasjon, ikke markedspris, eksport) ---------- */
.form-notice {
  font-size: 0.9rem;
  color: var(--color-text);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 4px 0 18px;
}

@media (max-width: 520px) {
  .cookie-consent-inner {
    flex-direction: column;
    align-items: stretch;
    /* Netlify's own "Powered by Netlify" badge is injected in the
       bottom-right corner via an isolated iframe we cannot restyle or
       remove from here. Extra bottom padding lifts our Godta/Avslå
       buttons clear of that corner so the two never overlap. */
    padding-bottom: 84px;
  }
  /* flex-basis on the paragraph applies to the vertical axis once the
     container becomes a column, so it must be reset here — otherwise the
     text block tries to become 320px TALL instead of 320px wide, which
     pushes the Godta/Avslå buttons off-screen on phones. */
  .cookie-consent-inner p { flex: none; }
  /* Centered rather than right-aligned so the buttons stay well clear of
     the bottom-right corner where Netlify's badge sits. */
  .cookie-consent-actions { justify-content: center; }
}
