/* DK Cookie Consent – frontend */
#dkcc-root,
.dkcc-placeholder,
.dkcc-declaration {
	--dkcc-primary: #1d4ed8;
	--dkcc-btn-text: #ffffff;
	--dkcc-bg: #ffffff;
	--dkcc-text: #1f2937;
	--dkcc-border: rgba(0, 0, 0, .12);
	--dkcc-border: color-mix(in srgb, var(--dkcc-text) 16%, transparent);
	--dkcc-muted: rgba(0, 0, 0, .04);
	--dkcc-muted: color-mix(in srgb, var(--dkcc-text) 5%, var(--dkcc-bg));
	--dkcc-radius: 12px;
	--dkcc-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

#dkcc-root,
#dkcc-root * {
	box-sizing: border-box;
}

#dkcc-root {
	font-family: var(--dkcc-font);
	font-size: 15px;
	line-height: 1.5;
	color: var(--dkcc-text);
	letter-spacing: normal;
	text-transform: none;
}

#dkcc-root [hidden] {
	display: none !important;
}

#dkcc-root h2 {
	margin: 0 0 .4em;
	padding: 0;
	font-family: inherit;
	font-size: 1.15em;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
	letter-spacing: normal;
	text-transform: none;
}

#dkcc-root p {
	margin: 0 0 .6em;
	padding: 0;
	font-size: inherit;
	color: inherit;
}

#dkcc-root a.dkcc-link {
	color: var(--dkcc-primary);
	text-decoration: underline;
	font-weight: 600;
}

html.dkcc-lock,
html.dkcc-lock body {
	overflow: hidden;
}

/* ---------- Knapper ---------- */
.dkcc-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	margin: 0;
	padding: 10px 18px;
	border: 2px solid var(--dkcc-primary);
	border-radius: 8px;
	font-family: var(--dkcc-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	box-shadow: none;
	transition: filter .15s ease, background-color .15s ease;
}

.dkcc-btn-primary {
	background: var(--dkcc-primary);
	color: var(--dkcc-btn-text);
}

.dkcc-btn-secondary {
	background: transparent;
	color: var(--dkcc-primary);
}

.dkcc-btn:hover {
	filter: brightness(1.08);
}

.dkcc-btn-secondary:hover {
	background: var(--dkcc-muted);
}

.dkcc-btn:focus-visible,
.dkcc-close:focus-visible,
.dkcc-reopen:focus-visible,
#dkcc-root summary:focus-visible,
#dkcc-root a:focus-visible,
.dkcc-switch input:focus-visible + .dkcc-slider {
	outline: 3px solid var(--dkcc-primary);
	outline-offset: 2px;
}

/* ---------- Banner ---------- */
.dkcc-banner {
	position: fixed;
	z-index: 2147483000;
	/* Gennemsigtighed påvirker kun baggrunden – tekst og knapper forbliver fuldt synlige. */
	background: var(--dkcc-banner-bg, var(--dkcc-bg));
	-webkit-backdrop-filter: var(--dkcc-banner-blur, none);
	backdrop-filter: var(--dkcc-banner-blur, none);
	color: var(--dkcc-text);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
}

.dkcc-desc {
	margin-bottom: .6em;
}

.dkcc-desc p:last-child {
	margin-bottom: 0;
}

.dkcc-gpc {
	padding: 8px 10px;
	border-radius: 6px;
	background: var(--dkcc-muted);
	font-size: .9em;
}

.dkcc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.dkcc-actions .dkcc-btn {
	flex: 1 1 auto;
}

/* Box */
.dkcc-layout-box {
	bottom: 16px;
	width: 440px;
	max-width: calc(100vw - 32px);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 22px;
	border-radius: var(--dkcc-radius);
}

.dkcc-pos-left {
	left: 16px;
}

.dkcc-pos-right {
	right: 16px;
}

.dkcc-layout-box .dkcc-actions {
	margin-top: 14px;
}

/* Bar */
.dkcc-layout-bar {
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 80vh;
	overflow: auto;
	padding: 18px 20px;
}

.dkcc-layout-bar .dkcc-banner-inner {
	display: flex;
	align-items: center;
	gap: 24px;
	max-width: 1200px;
	margin: 0 auto;
}

.dkcc-layout-bar .dkcc-banner-text {
	flex: 1 1 auto;
}

.dkcc-layout-bar .dkcc-actions {
	flex: 0 0 auto;
	flex-wrap: nowrap;
}

/* Popup + overlay */
.dkcc-backdrop {
	position: fixed;
	inset: 0;
	z-index: 2147483001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .5);
}

.dkcc-banner-backdrop .dkcc-banner {
	position: relative;
	inset: auto;
	width: 560px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 26px;
	border-radius: var(--dkcc-radius);
}

.dkcc-banner-backdrop .dkcc-banner .dkcc-banner-inner {
	display: block;
}

.dkcc-banner-backdrop .dkcc-actions {
	margin-top: 16px;
	flex-wrap: wrap;
}

/* ---------- Indstillinger (modal) ---------- */
.dkcc-modal-backdrop {
	z-index: 2147483002;
}

.dkcc-modal {
	display: flex;
	flex-direction: column;
	width: 640px;
	max-width: 100%;
	max-height: calc(100vh - 32px);
	background: var(--dkcc-bg);
	color: var(--dkcc-text);
	border-radius: var(--dkcc-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	outline: none;
}

.dkcc-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 18px 22px;
	border-bottom: 1px solid var(--dkcc-border);
}

.dkcc-modal-head h2 {
	margin: 0 !important;
}

.dkcc-close {
	appearance: none;
	width: 40px;
	height: 40px;
	flex: 0 0 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.dkcc-close:hover {
	background: var(--dkcc-muted);
}

.dkcc-modal-body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 18px 22px;
	overscroll-behavior: contain;
}

.dkcc-intro {
	margin-bottom: .8em;
}

.dkcc-cats {
	display: grid;
	gap: 10px;
	margin-top: 8px;
}

.dkcc-cat {
	padding: 14px 16px;
	border: 1px solid var(--dkcc-border);
	border-radius: 10px;
}

.dkcc-cat-head {
	display: flex;
	align-items: center;
	gap: 10px;
}

.dkcc-cat-label {
	flex: 1 1 auto;
	font-weight: 700;
	cursor: pointer;
}

.dkcc-always {
	font-size: .85em;
	font-weight: 600;
	color: var(--dkcc-primary);
}

.dkcc-cat-desc {
	margin: 6px 0 4px !important;
	font-size: .92em;
}

.dkcc-cookies summary {
	display: list-item;
	cursor: pointer;
	font-size: .9em;
	font-weight: 600;
	color: var(--dkcc-primary);
}

.dkcc-cookie-list {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
}

.dkcc-cookie {
	margin: 0 0 6px;
	padding: 8px 10px;
	border-radius: 6px;
	background: var(--dkcc-muted);
	font-size: .88em;
}

.dkcc-cookie p {
	margin: 2px 0 0 !important;
}

.dkcc-cookie-name {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 10px;
}

.dkcc-cookie-name code,
.dkcc-meta code {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: .95em;
	font-weight: 700;
	background: none;
	color: inherit;
	padding: 0;
	word-break: break-all;
}

.dkcc-cookie-meta,
.dkcc-no-cookies {
	opacity: .75;
	font-size: .88em;
}

.dkcc-meta {
	margin-top: 14px !important;
	font-size: .82em;
	opacity: .8;
	word-break: break-word;
}

.dkcc-modal-foot {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 14px 22px;
	border-top: 1px solid var(--dkcc-border);
}

.dkcc-modal-foot .dkcc-btn {
	flex: 1 1 auto;
}

/* Kontakt */
.dkcc-switch {
	position: relative;
	display: inline-block;
	flex: 0 0 46px;
	width: 46px;
	height: 26px;
}

.dkcc-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.dkcc-switch input:disabled {
	cursor: not-allowed;
}

.dkcc-slider {
	position: absolute;
	inset: 0;
	border-radius: 26px;
	background: #9ca3af;
	transition: background-color .2s ease;
}

.dkcc-slider::before {
	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 .2s ease;
}

.dkcc-switch input:checked + .dkcc-slider {
	background: var(--dkcc-primary);
}

.dkcc-switch input:checked + .dkcc-slider::before {
	transform: translateX(20px);
}

.dkcc-switch input:disabled + .dkcc-slider {
	opacity: .55;
}

/* Genåbn-knap */
.dkcc-reopen {
	position: fixed;
	bottom: 16px;
	z-index: 2147482999;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--dkcc-primary);
	color: var(--dkcc-btn-text);
	box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
	cursor: pointer;
	transition: transform .15s ease;
}

.dkcc-reopen:hover {
	transform: scale(1.06);
}

.dkcc-reopen-left {
	left: 16px;
}

.dkcc-reopen-right {
	right: 16px;
}

/* ---------- Pladsholder for blokeret indhold ---------- */
.dkcc-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 100%;
	min-height: 220px;
	margin: 0 0 1em;
	padding: 20px;
	border: 1px dashed var(--dkcc-border);
	border-radius: 10px;
	background: var(--dkcc-muted);
	color: var(--dkcc-text);
	font-family: var(--dkcc-font);
	font-size: 15px;
	line-height: 1.5;
	text-align: center;
}

.dkcc-placeholder.dkcc-ph-abs {
	position: absolute;
	inset: 0;
	width: auto !important;
	height: auto !important;
	min-height: 0;
	margin: 0;
}

.dkcc-ph-inner {
	max-width: 460px;
}

.dkcc-ph-inner p {
	margin: 0 0 12px;
}

.dkcc-ph-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

/* ---------- Cookiedeklaration (shortcode) ---------- */
.dkcc-declaration .dkcc-decl-status {
	margin: 0 0 1.5em;
	padding: 16px 18px;
	border: 1px solid var(--dkcc-border);
	border-radius: 10px;
}

.dkcc-declaration .dkcc-decl-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 0;
}

.dkcc-decl-cat {
	margin: 0 0 2em;
}

.dkcc-decl-table-wrap {
	overflow-x: auto;
}

.dkcc-decl-table {
	width: 100%;
	border-collapse: collapse;
	font-size: .92em;
}

.dkcc-decl-table th,
.dkcc-decl-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--dkcc-border);
	text-align: left;
	vertical-align: top;
}

.dkcc-decl-table code {
	word-break: break-all;
}

/* ---------- Mobil ---------- */
@media (max-width: 640px) {
	.dkcc-layout-box {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		max-width: none;
		padding: 18px;
	}

	.dkcc-layout-bar .dkcc-banner-inner {
		display: block;
	}

	.dkcc-layout-bar .dkcc-actions {
		flex-wrap: wrap;
		margin-top: 12px;
	}

	.dkcc-actions .dkcc-btn,
	.dkcc-modal-foot .dkcc-btn {
		flex: 1 1 100%;
	}

	.dkcc-backdrop {
		padding: 8px;
		align-items: flex-end;
	}

	.dkcc-modal {
		max-height: calc(100vh - 16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	#dkcc-root *,
	.dkcc-placeholder * {
		transition: none !important;
	}
}

@media print {
	#dkcc-root {
		display: none !important;
	}
}
