/* Viggos cookie-samtykke (deploy/cookies). "Afvis alle" og "Accepter alle" har SAMME klasse, så de
   altid ser ens ud (JURA.md K2). Kontrast ≥ 4.5:1, mål ≥ 44 px, synligt fokus (WCAG 2.2 AA). */
.vs-banner,
.vs-dialog {
  font:
    15px/1.5 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: #1d1d1b;
  background: #fff;
  box-sizing: border-box;
}
.vs-banner {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: 760px;
  margin: 0 auto;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 20px 22px;
  border: 1px solid #c9c4b8;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.vs-titel {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}
.vs-tekst {
  margin: 0 0 14px;
}
.vs-tekst a,
.vs-kat a {
  color: #1d4ed8;
  text-decoration: underline;
}
.vs-raekke {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.vs-knap {
  font: inherit;
  min-height: 44px;
  cursor: pointer;
  border-radius: 10px;
}
.vs-valg {
  flex: 1 1 160px;
  padding: 10px 18px;
  font-weight: 600;
  color: #fff;
  background: #1d1d1b;
  border: 2px solid #1d1d1b;
}
.vs-valg:hover {
  background: #3a3a37;
}
.vs-link {
  padding: 10px 6px;
  color: #1d1d1b;
  background: transparent;
  border: 0;
  text-decoration: underline;
}
.vs-knap:focus-visible,
.vs-tekst a:focus-visible,
.vs-kat input:focus-visible {
  outline: 3px solid #1d4ed8;
  outline-offset: 2px;
}
.vs-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 22px;
  border: 1px solid #c9c4b8;
  border-radius: 14px;
}
.vs-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}
.vs-form {
  margin: 0;
}
.vs-kat {
  padding: 12px 0;
  border-top: 1px solid #e4e0d6;
}
.vs-kat label {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
}
.vs-kat input {
  width: 22px;
  height: 22px;
  margin: 0;
}
.vs-kat p {
  margin: 0 0 0 32px;
  font-size: 14px;
  color: #4a4a45;
}
.vs-altid {
  font-weight: 400;
  color: #4a4a45;
}
.vs-dialog .vs-raekke {
  margin-top: 14px;
}
/* Den faste genvej (JURA.md K9), når siden ikke selv har en footer-knap. */
.vs-genvej {
  position: fixed;
  z-index: 2147482000;
  left: 10px;
  bottom: 10px;
  min-height: 32px;
  padding: 4px 10px;
  font:
    12px/1.2 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  color: #1d1d1b;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #c9c4b8;
  border-radius: 999px;
  cursor: pointer;
}
/* I appens editor ligger genvejen i topmenuen (TopbarMenu) i stedet. */
body:has(.app-topbar) .vs-genvej {
  display: none;
}
@media (max-width: 520px) {
  .vs-banner {
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 16px;
  }
  .vs-valg {
    flex-basis: 100%;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .vs-banner {
    animation: vs-ind 0.2s ease-out;
  }
  @keyframes vs-ind {
    from {
      transform: translateY(12px);
      opacity: 0;
    }
  }
}

/* 7/10 2026: kort linje til mobil; den lange tekst står i "Indstillinger" (.vs-lang) på mobil. */
.vs-kort {
  display: none;
  margin: 0 0 10px;
}
.vs-kort a,
.vs-lang a {
  color: #1d4ed8;
  text-decoration: underline;
}
.vs-lang {
  font-size: 14px;
  color: #4a4a45;
}
/* Mobil: lav bjælke i bunden. "Afvis alle" og "Accepter alle" side om side i samme størrelse (JURA.md K2). */
@media (max-width: 640px) {
  .vs-banner {
    left: 0;
    right: 0;
    bottom: 0;
    max-width: none;
    max-height: 40vh;
    padding: 12px 14px calc(8px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 14px 14px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.16);
    font-size: 14px;
    line-height: 1.4;
  }
  .vs-banner .vs-titel {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .vs-banner .vs-tekst {
    display: none;
  }
  .vs-banner .vs-kort {
    display: block;
  }
  .vs-banner .vs-raekke {
    gap: 8px;
  }
  .vs-banner .vs-valg {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 8px;
  }
  .vs-banner .vs-link {
    flex: 1 1 100%;
    min-height: 32px;
    padding: 4px 6px;
    font-size: 13px;
  }
  .vs-dialog {
    padding: 18px;
  }
  .vs-dialog .vs-valg {
    flex-basis: 100%;
  }
}
