/* Cookiesamtykke – udseendet »Døgnrapporten«.
   Farver og skrifter hentes fra temaet (Døgnrapporten → Indstillinger):
   --c-red, --c-yellow, --c-ink, --c-bg, --font (Manrope) og --font-hl (Archivo).
   Værdierne efter kommaet bruges kun, hvis temaet ikke er aktivt. */

.cs-banner, .cs-modal, .cs-float, .cs-declaration {
	--cs-red: var(--c-red, #e3001b);
	--cs-yellow: var(--c-yellow, #ffe600);
	--cs-ink: var(--c-ink, #111);
	--cs-bg: #fff;
	--cs-bg-2: var(--c-bg, #ececec);
	--cs-line: var(--c-line, #e4e4e4);
	--cs-muted: var(--c-muted, #5f5f5f);
	--cs-font: var(--font, "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	--cs-hl: var(--font-hl, "Archivo", "Arial Black", Impact, ui-sans-serif, sans-serif);
	--cs-shadow: 0 22px 60px -14px rgba(0, 0, 0, .5), 0 2px 0 rgba(0, 0, 0, .04);
	font-family: var(--cs-font);
	color: var(--cs-ink);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
}
.cs-banner *, .cs-modal *, .cs-declaration * { box-sizing: border-box; }
.cs-declaration { color: inherit; }
.cs-banner[hidden], .cs-modal[hidden], .cs-float[hidden] { display: none !important; }

/* ---------- Sort hoved med gul rubrik (som »Mere fra«-panelet) ---------- */
.cs-head { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 13px 22px; background: var(--cs-ink); }
.cs-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 3px; background: var(--cs-red); color: #fff; }
.cs-icon svg { width: 20px; height: 20px; }
.cs-title { margin: 0; color: var(--cs-yellow); font-family: var(--cs-hl); font-size: 24px; font-style: italic; font-weight: 900; font-stretch: 82%; line-height: 1; letter-spacing: -.005em; text-transform: uppercase; }

.cs-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--cs-ink); }
.cs-text a { color: var(--cs-red); font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cs-text a:hover { color: var(--cs-ink); }

/* Formål som små »kickers« */
.cs-purposes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 14px 0 0; padding: 0; list-style: none; }
.cs-purposes li { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.cs-purposes li::before { content: ""; width: 8px; height: 8px; background: var(--cs-red); }
.cs-purposes li.cs-purposes__note { color: var(--cs-muted); font-weight: 600; letter-spacing: 0; text-transform: none; }
.cs-purposes li.cs-purposes__note::before { display: none; }

.cs-pill { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 3px; background: var(--cs-yellow); color: var(--cs-ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

/* Knapper – alle tre er ens, så ingen af valgene fremhæves (som temaets sorte knapper) */
.cs-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cs-btn { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; min-width: 120px; min-height: 48px; margin: 0; padding: 0 18px; border: 0; border-radius: 3px; background: var(--cs-ink); color: #fff; font: 800 14px/1 var(--cs-font); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; cursor: pointer; box-shadow: none; transition: background-color .15s, transform .15s; }
.cs-btn:hover { background: var(--cs-red); color: #fff; }
.cs-btn:active { transform: translateY(1px); }
.cs-btn:focus-visible, .cs-x:focus-visible, .cs-float:focus-visible, .cs-cat__list summary:focus-visible, .cs-switch input:focus-visible + .cs-switch__ui { outline: 3px solid var(--cs-red); outline-offset: 2px; }

/* ---------- Banner (første lag) ---------- */
.cs-banner { position: fixed; z-index: 2147483000; left: 0; right: 0; bottom: 0; padding: 14px; pointer-events: none; }
.cs-banner__box { max-width: 1120px; margin: 0 auto; overflow: hidden; border-radius: 4px; background: var(--cs-bg); box-shadow: var(--cs-shadow); pointer-events: auto; animation: cs-in .3s cubic-bezier(.2, .8, .2, 1) both; }
.cs-banner__body { padding: 18px 22px 20px; border-bottom: 4px solid var(--cs-red); }

/* Bred boks i bunden */
.cs-banner--bottom .cs-banner__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 300px); gap: 18px 32px; align-items: end; }
.cs-banner--bottom .cs-actions { flex-direction: column; }
.cs-banner--bottom .cs-btn { flex: none; width: 100%; }

/* Kort i hjørnet */
.cs-banner--corner { right: auto; width: 100%; max-width: 470px; }
.cs-banner--corner .cs-actions { margin-top: 18px; }

/* Boks i midten */
.cs-banner--center { top: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); pointer-events: auto; }
.cs-banner--center .cs-banner__box { width: 100%; max-width: 560px; }
.cs-banner--center .cs-actions { margin-top: 20px; }

.cs-banner--corner .cs-btn, .cs-banner--center .cs-btn, .cs-modal__foot .cs-btn { min-width: 0; padding: 0 10px; font-size: 13px; letter-spacing: .05em; }

@keyframes cs-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- Indstillinger (andet lag) ---------- */
.cs-modal { position: fixed; z-index: 2147483001; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, .6); }
.cs-modal__box { display: flex; flex-direction: column; width: 100%; max-width: 660px; max-height: calc(100vh - 40px); border-radius: 4px; background: var(--cs-bg); box-shadow: var(--cs-shadow); overflow: hidden; animation: cs-in .25s cubic-bezier(.2, .8, .2, 1) both; }
.cs-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-right: 12px; background: var(--cs-ink); }
.cs-modal__head .cs-head { flex: 1 1 auto; }
.cs-modal__body { padding: 0 22px 6px; overflow-y: auto; overscroll-behavior: contain; }
.cs-modal__body > .cs-text { margin: 18px 0 6px; }
.cs-modal__foot { margin: 0; padding: 14px 22px 16px; border-top: 4px solid var(--cs-red); background: var(--cs-bg-2); }
.cs-x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 3px; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: background-color .15s; }
.cs-x:hover { background: var(--cs-red); }

.cs-cat { padding: 16px 0; border-bottom: 1px solid var(--cs-line); }
.cs-cat:last-child { border-bottom: 0; }
.cs-cat__name { font-size: 16px; font-weight: 800; letter-spacing: -.005em; color: var(--cs-ink); }
.cs-cat__desc { margin: 6px 0 0 58px; font-size: 14px; line-height: 1.55; color: var(--cs-muted); }
.cs-cat__list { margin: 10px 0 0 58px; font-size: 13.5px; }
.cs-cat__list summary { display: inline-flex; align-items: center; gap: 8px; color: var(--cs-ink); font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; cursor: pointer; list-style: none; }
.cs-cat__list summary::-webkit-details-marker { display: none; }
.cs-cat__list summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid var(--cs-red); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .15s; }
.cs-cat__list[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.cs-cat__list summary:hover { color: var(--cs-red); }
.cs-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 3px; background: var(--cs-ink); color: #fff; font-size: 11px; letter-spacing: 0; }

/* Kontakt (switch) – rød, når den er slået til */
.cs-switch { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; cursor: pointer; }
.cs-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cs-switch__ui { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; background: #c4c4c4; transition: background-color .15s; }
.cs-switch__ui::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, .3); transition: transform .15s; }
.cs-switch input:checked + .cs-switch__ui { background: var(--cs-red); }
.cs-switch input:checked + .cs-switch__ui::after { transform: translateX(18px); }
.cs-switch input:disabled + .cs-switch__ui { background: var(--cs-ink); opacity: .35; }
.cs-switch:has(input:disabled) { cursor: default; }

/* Tabel */
.cs-table-wrap { overflow-x: auto; margin-top: 10px; border: 1px solid var(--cs-line); border-radius: 3px; }
.cs-table { width: 100%; margin: 0; border: 0; border-collapse: collapse; font-size: 13px; }
.cs-table th, .cs-table td { padding: 8px 10px; border: 0; border-bottom: 1px solid var(--cs-line); text-align: left; vertical-align: top; background: none; }
.cs-table tr:last-child td { border-bottom: 0; }
.cs-table th { background: var(--cs-bg-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cs-table code { padding: 1px 5px; border-radius: 3px; background: var(--cs-bg-2); font-size: 12px; }

/* Flydende knap */
.cs-float { position: fixed; z-index: 2147482999; left: 14px; bottom: 14px; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 4px; background: var(--cs-ink); color: var(--cs-yellow); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .55); cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.cs-float:hover { background: var(--cs-red); color: #fff; transform: translateY(-2px); }

html.cs-lock { overflow: hidden; }

/* Valg af kategorier direkte i banneret */
.cs-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cs-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 16px 0 0; padding: 0; border: 2px solid var(--cs-ink); border-radius: 3px; min-width: 0; }
.cs-choice.cs-switch { flex-direction: column; flex-wrap: nowrap; justify-content: center; gap: 10px; padding: 12px 8px 14px; border-left: 1px solid var(--cs-line); text-align: center; }
.cs-choice.cs-switch:first-of-type { border-left: 0; }
.cs-choice__name { order: -1; font-size: 12.5px; font-weight: 800; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.cs-choice:has(input:checked:not(:disabled)) { background: color-mix(in srgb, var(--cs-red) 6%, #fff); }
.cs-choice input:disabled + .cs-switch__ui { background: var(--cs-ink); opacity: .35; }
.cs-more { margin: 10px 0 0; font-size: 13.5px; }
.cs-more a { color: var(--cs-ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--cs-red); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cs-more a:hover { color: var(--cs-red); }
@media (max-width: 600px) {
	.cs-choices { margin-top: 14px; }
	.cs-choice.cs-switch { padding: 10px 4px 12px; gap: 8px; }
	.cs-choice__name { font-size: 11px; letter-spacing: .04em; }
	.cs-more { margin-top: 8px; }
}

/* ---------- Cookiepolitik: [cookie_status] og [cookie_deklaration] ---------- */
.cs-declaration.cs-status { margin: 1.5em 0 1.8em; padding: 18px 20px 20px; border-top: 4px solid var(--cs-red); border-radius: 0 0 4px 4px; background: var(--cs-bg-2); font-size: 15px; line-height: 1.5; }
.cs-declaration .cs-status__head { margin: 0 0 12px; color: var(--cs-ink); font: italic 900 21px/1 var(--cs-hl); font-stretch: 82%; text-transform: uppercase; }
.cs-declaration .cs-status__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.cs-declaration .cs-status__list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0; padding: 10px 12px; border-radius: 3px; background: #fff; font-size: 14.5px; font-weight: 800; }
.cs-declaration .cs-status__list li::marker { content: none; }
.cs-declaration .cs-status__v { flex: none; padding: 4px 7px; border-radius: 3px; background: #ddd; color: var(--cs-ink); font-size: 11px; font-weight: 800; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
.cs-declaration .cs-status__v.is-on { background: var(--cs-ink); color: #fff; }
.cs-declaration .cs-status__v.is-off { background: #fff; box-shadow: inset 0 0 0 1px #c4c4c4; color: var(--cs-muted); }
.cs-declaration .cs-status__meta { margin: 12px 0 14px; color: var(--cs-muted); font-size: 13px; }
.cs-declaration .cs-status__meta code { padding: 1px 5px; border-radius: 3px; background: #fff; color: var(--cs-ink); font-size: 12px; word-break: break-all; }
.cs-declaration .cs-status .cs-btn, .cs-declaration.cs-status .cs-btn { flex: none; width: auto; min-width: 0; min-height: 44px; padding: 0 20px; }

.cs-declaration .cs-decl__sum { margin: 0; font-weight: 700; }
.cs-declaration .cs-decl__cat { margin: 1.4em 0 0; padding: 1.2em 0 0; border-top: 1px solid var(--cs-line); }
.cs-declaration .cs-decl__name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 1.2rem; font-weight: 800; line-height: 1.25; }
.cs-declaration .cs-decl__n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 3px; background: var(--cs-ink); color: #fff; font-size: 12px; }
.cs-declaration .cs-pill--consent { background: var(--cs-bg-2); }
.cs-declaration .cs-decl__cat > p { margin: .5em 0 0; font-size: 16px; line-height: 1.6; }
.cs-declaration .cs-decl__none { color: var(--cs-muted); font-style: italic; }
.cs-declaration .cs-table-wrap { margin-top: 12px; }
.cs-declaration .cs-table { font-size: 14px; line-height: 1.45; }
.cs-declaration .cs-table th, .cs-declaration .cs-table td { padding: 9px 12px; border-bottom: 1px solid var(--cs-line); }
.cs-declaration .cs-table th { border-bottom: 2px solid var(--cs-ink); }
.cs-declaration .cs-table tr:last-child td { border-bottom: 0; }
@media (max-width: 600px) {
	.cs-declaration.cs-status { padding: 16px; }
	.cs-declaration .cs-status__list { grid-template-columns: 1fr; }
	.cs-declaration .cs-status .cs-btn, .cs-declaration.cs-status .cs-btn { width: 100%; }
	.cs-declaration .cs-table thead { display: none; }
	.cs-declaration .cs-table, .cs-declaration .cs-table tbody, .cs-declaration .cs-table tr, .cs-declaration .cs-table td { display: block; width: 100%; }
	.cs-declaration .cs-table tr { padding: 10px 12px; border-bottom: 1px solid var(--cs-line); }
	.cs-declaration .cs-table tr:last-child { border-bottom: 0; }
	.cs-declaration .cs-table td { padding: 2px 0; border: 0; }
	.cs-declaration .cs-table td:first-child { margin-bottom: 4px; }
	.cs-declaration .cs-table td:nth-child(2)::before { content: "Udbyder: "; font-weight: 700; }
	.cs-declaration .cs-table td:nth-child(4)::before { content: "Udløb: "; font-weight: 700; }
}

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
	.cs-banner--bottom .cs-banner__body { display: block; }
	.cs-banner--bottom .cs-actions { flex-direction: row; margin-top: 18px; }
	.cs-banner--bottom .cs-btn { flex: 1 1 0; width: auto; min-width: 0; padding: 0 10px; font-size: 13px; letter-spacing: .05em; }
}
@media (max-width: 600px) {
	.cs-banner { padding: 8px; }
	.cs-banner--corner { max-width: none; }
	.cs-head { gap: 10px; padding: 11px 16px; }
	.cs-icon { width: 28px; height: 28px; }
	.cs-icon svg { width: 18px; height: 18px; }
	.cs-title { font-size: 21px; }
	.cs-banner__body { padding: 14px 16px 16px; }
	.cs-text { font-size: 14.5px; line-height: 1.55; }
	.cs-purposes { margin-top: 12px; }
	.cs-purposes li.cs-purposes__note { display: none; }
	.cs-actions, .cs-banner--bottom .cs-actions { flex-direction: column; margin-top: 14px; gap: 8px; }
	.cs-btn, .cs-banner--bottom .cs-btn { flex: none; width: 100%; min-height: 46px; font-size: 14px; }
	.cs-modal { padding: 0; align-items: flex-end; }
	.cs-modal__box { max-height: 92vh; border-radius: 6px 6px 0 0; }
	.cs-modal__head { padding-right: 10px; }
	.cs-modal__body { padding: 0 16px 4px; }
	.cs-modal__body > .cs-text { margin-top: 14px; }
	.cs-modal__foot { padding: 12px 16px 14px; }
	.cs-modal__foot .cs-btn { font-size: 14px; }
	.cs-cat__desc, .cs-cat__list { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
	.cs-banner__box, .cs-modal__box { animation: none; }
	.cs-btn, .cs-float, .cs-x, .cs-switch__ui, .cs-switch__ui::after { transition: none; }
}
@media print { .cs-banner, .cs-modal, .cs-float { display: none !important; } }
