/* Cookiebanner og "Dit valg lige nu" (includes/consent.php).
   Farver, kanter og overskriftens skrift kommer fra indstillingerne som --wvc-*-variabler. Resten arver fra siden. */
.wvc, .wvc-status {
  --wvc-accent: #1f1f1f;
  --wvc-accent-ink: #fff;
  --wvc-bg: #fff;
  --wvc-ink: #1f1f1f;
  --wvc-r-card: 14px;
  --wvc-r-btn: 10px;
  --wvc-font-heading: inherit;
  --wvc-ease: cubic-bezier(.45, 0, .55, 1);
}

.wvc {
  position: fixed;
  z-index: 2147483000;
  left: 16px;
  bottom: 16px;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  box-sizing: border-box;
  padding: 22px 22px 18px;
  color: var(--wvc-ink);
  background: var(--wvc-bg);
  border: 1.5px solid color-mix(in srgb, var(--wvc-ink) 22%, transparent);
  border-radius: var(--wvc-r-card);
  box-shadow: 0 18px 50px -18px rgba(0, 0, 0, .35);
  font-size: 15px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .45s var(--wvc-ease), transform .45s var(--wvc-ease);
}
.wvc *, .wvc *::before, .wvc *::after { box-sizing: border-box; }
.wvc[hidden] { display: none; }
.wvc.is-in { opacity: 1; transform: none; }
.wvc.is-out { opacity: 0; transform: translateY(14px); }

.wvc-title {
  margin: 0 0 8px;
  font-family: var(--wvc-font-heading);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--wvc-ink);
  outline: none;
}
.wvc-text { margin: 0 0 16px; }

.wvc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Ja og nej ser ens ud og vejer lige meget */
.wvc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--wvc-accent-ink);
  background: var(--wvc-accent);
  border: 1.5px solid var(--wvc-accent);
  border-radius: var(--wvc-r-btn);
  cursor: pointer;
  transition: filter .35s var(--wvc-ease), transform .35s var(--wvc-ease);
}
.wvc-btn:hover { filter: brightness(.9); }
.wvc-btn:active { transform: translateY(1px); }
.wvc-btn--wide { width: 100%; }
.wvc-btn:focus-visible, .wvc-link:focus-visible, .wvc-switch:focus-visible {
  outline: 2px solid var(--wvc-accent);
  outline-offset: 3px;
}

.wvc-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 12px; }
.wvc-link {
  padding: 4px 0;
  font: inherit;
  font-size: 14px;
  color: var(--wvc-ink);
  background: none;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.wvc-link:hover { color: var(--wvc-accent); }

.wvc-pick[hidden], .wvc-ask[hidden] { display: none; }
.wvc-rows { list-style: none; margin: 4px 0 16px; padding: 0; }
.wvc-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--wvc-ink) 15%, transparent);
}
.wvc-name { display: block; font-weight: 700; }
.wvc-desc { margin: 2px 0 0; font-size: 14px; }
.wvc-meta { margin: 4px 0 0; font-size: 12.5px; opacity: .7; }
.wvc-pick-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; }

/* Kontakt */
.wvc-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 auto;
  position: relative;
  width: 44px;
  height: 26px;
  margin: 2px 0 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--wvc-ink) 25%, transparent);
  cursor: pointer;
  transition: background-color .3s var(--wvc-ease);
}
.wvc-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .3s var(--wvc-ease);
}
.wvc-switch:checked { background: var(--wvc-accent); }
.wvc-switch:checked::after { transform: translateX(18px); }
.wvc-switch:disabled { opacity: .55; cursor: default; }

@media (max-width: 520px) {
  .wvc { left: 12px; right: 12px; bottom: 12px; width: auto; padding: 18px 16px 14px; }
  .wvc-choices { grid-template-columns: 1fr; }
}

/* "Dit valg lige nu" på privatlivssiden */
.wvc-status {
  max-width: 460px;
  margin: 24px 0;
  padding: 20px 22px;
  color: var(--wvc-ink);
  background: var(--wvc-bg);
  border: 1.5px solid color-mix(in srgb, var(--wvc-ink) 22%, transparent);
  border-radius: var(--wvc-r-card);
}
.wvc-status-h { margin: 0 0 10px; font-family: var(--wvc-font-heading); font-size: 20px; font-weight: 600; }
.wvc-status-rows { margin: 0 0 12px; }
.wvc-status-row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px solid color-mix(in srgb, var(--wvc-ink) 12%, transparent); }
.wvc-status-row dt { font-weight: 600; }
.wvc-status-row dd { margin: 0; }
.wvc-status-row dd[data-state="on"] { color: var(--wvc-accent); font-weight: 600; }
.wvc-status-id { margin: 0 0 6px; font-size: 13px; }
.wvc-status-id code { word-break: break-all; }
.wvc-status-note { margin: 0 0 14px; font-size: 14px; }
.wvc-status[hidden], .wvc-status-id[hidden] { display: none; }

/* Cookietabellerne */
.wvc-table-wrap { overflow-x: auto; margin: 8px 0 20px; }
.wvc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.wvc-table th, .wvc-table td { padding: 8px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.wvc-table thead th { font-weight: 700; }
.wvc-table code { white-space: nowrap; }
.wvc-table th[scope="row"] { width: 1%; }
.wvc-table td:nth-child(3) { min-width: 28ch; }
.wvc-table td:nth-child(2), .wvc-table td:nth-child(4) { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .wvc, .wvc-btn, .wvc-switch, .wvc-switch::after { transition: none; }
}
