/*
 * 1.5.40 – Læsbar samtykkeboks (t-m-139). Scoped til Googles Privacy & messaging (.fc-consent-root).
 * Farver (kontrast mod #0f172a): brødtekst #e2e8f0 (ca. 14:1), overskrift #ffffff (ca. 17:1),
 * links #bef264 (ca. 14:1), knaptekst #0f172a på #f8fafc (ca. 17:1). Alle over WCAG AA (4,5:1).
 * Kun CSS: ingen ændring af indhold, valg eller funktioner. Alle tre knapper har samme udseende og størrelse.
 */
.fc-consent-root .fc-dialog,
.fc-consent-root .fc-dialog.fc-choice-dialog {
  background-color: #0f172a !important;
  border: 1px solid #334155 !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .55) !important;
  max-width: min(720px, 94vw) !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  padding: 24px 24px 20px !important;
  box-sizing: border-box !important;
  font-family: "Open Sans", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #e2e8f0 !important;
}

.fc-consent-root .fc-dialog-content,
.fc-consent-root .fc-dialog-restricted-content,
.fc-consent-root .fc-footer-buttons-container {
  background-color: transparent !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Al tekst: lys på mørk. Nulstiller grå brødtekst, dæmpning og skygge. */
.fc-consent-root .fc-dialog p,
.fc-consent-root .fc-dialog span,
.fc-consent-root .fc-dialog li,
.fc-consent-root .fc-dialog label,
.fc-consent-root .fc-dialog div,
.fc-consent-root .fc-dialog td,
.fc-consent-root .fc-dialog th,
.fc-consent-root .fc-dialog summary {
  color: #e2e8f0 !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-text-fill-color: currentColor !important;
}

.fc-consent-root .fc-dialog h1,
.fc-consent-root .fc-dialog h2,
.fc-consent-root .fc-dialog h3,
.fc-consent-root .fc-dialog h4,
.fc-consent-root .fc-dialog .fc-header,
.fc-consent-root .fc-dialog [class*="title"] {
  color: #ffffff !important;
  opacity: 1 !important;
  line-height: 1.3 !important;
  text-shadow: none !important;
}

.fc-consent-root .fc-dialog h1 { font-size: 1.5rem !important; margin: 0 0 12px !important; }
.fc-consent-root .fc-dialog p  { margin: 0 0 12px !important; }

/* Links og udfoldede detaljer */
.fc-consent-root .fc-dialog a,
.fc-consent-root .fc-dialog a:visited {
  color: #bef264 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.fc-consent-root .fc-dialog a:hover,
.fc-consent-root .fc-dialog a:focus-visible {
  color: #ffffff !important;
}

/* Knapper: Accepter, Afvis og Administrer er ens (samme størrelse, samme farver). */
.fc-consent-root .fc-footer-buttons {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  margin: 16px 0 0 !important;
  padding: 0 !important;
}
.fc-consent-root .fc-dialog button.fc-button,
.fc-consent-root .fc-dialog button.fc-cta-consent,
.fc-consent-root .fc-dialog button.fc-cta-do-not-consent,
.fc-consent-root .fc-dialog button.fc-cta-manage-options,
.fc-consent-root .fc-dialog button.fc-primary-button,
.fc-consent-root .fc-dialog button.fc-secondary-button {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  border: 2px solid #f8fafc !important;
  border-radius: 8px !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  min-height: 48px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 18px !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  opacity: 1 !important;
  text-transform: none !important;
}
.fc-consent-root .fc-dialog button .fc-button-label,
.fc-consent-root .fc-dialog button p,
.fc-consent-root .fc-dialog button span {
  color: #0f172a !important;
  margin: 0 !important;
  font-weight: 700 !important;
}
.fc-consent-root .fc-dialog button.fc-button:hover,
.fc-consent-root .fc-dialog button.fc-button:focus-visible {
  background: #9acd32 !important;
  background-color: #9acd32 !important;
  border-color: #9acd32 !important;
  color: #0f172a !important;
}

/* Synlig fokus på alle kontroller (knapper, links, toggles, checkbokse) */
.fc-consent-root .fc-dialog button:focus-visible,
.fc-consent-root .fc-dialog a:focus-visible,
.fc-consent-root .fc-dialog input:focus-visible,
.fc-consent-root .fc-dialog [role="switch"]:focus-visible,
.fc-consent-root .fc-dialog [tabindex]:focus-visible {
  outline: 3px solid #9acd32 !important;
  outline-offset: 2px !important;
}

@media (min-width: 640px) {
  .fc-consent-root .fc-footer-buttons {
    flex-direction: row !important;
  }
  .fc-consent-root .fc-dialog button.fc-button {
    flex: 1 1 0 !important;
    width: auto !important;
  }
}

@media (max-width: 639px) {
  .fc-consent-root .fc-dialog,
  .fc-consent-root .fc-dialog.fc-choice-dialog {
    padding: 18px 16px 16px !important;
    font-size: 15px !important;
  }
}
