/* eDødsbo Samtykke: short banner, settings modal, click-to-play videos. */

.edodsbo-samtykke,
.edodsbo-samtykke-modal {
	color: #1D2233;
	font-family: 'Atkinson Hyperlegible', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
}

/* --------------------------------------------------------------- banner */

.edodsbo-samtykke {
	position: fixed;
	z-index: 100000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	max-width: 960px;
	margin: 0 auto;
	padding: 16px 20px;
	border: 1px solid #E3E5EA;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 8px 32px rgba(29, 34, 51, 0.18);
}

.edodsbo-samtykke[hidden] {
	display: none;
}

.edodsbo-samtykke__tekst {
	flex: 1 1 320px;
	margin: 0;
	color: #4A5163;
}

.edodsbo-samtykke__tekst strong {
	color: #1D2233;
}

.edodsbo-samtykke__link {
	padding: 0;
	border: 0;
	background: none;
	color: #7E5F26;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

/* The choices look the same: refusing must be as easy as accepting. */
.edodsbo-samtykke__knapper {
	display: grid;
	flex: 0 1 auto;
	grid-template-columns: repeat(3, auto);
	gap: 8px;
}

.edodsbo-samtykke__knap {
	min-height: 44px;
	padding: 8px 18px;
	border: 2px solid #252B3F;
	border-radius: 999px;
	background: #252B3F;
	color: #FFFFFF;
	font: inherit;
	font-weight: 700;
	white-space: nowrap;
	cursor: pointer;
}

.edodsbo-samtykke__knap:hover {
	border-color: #1B2033;
	background: #1B2033;
}

.edodsbo-samtykke__knap:focus-visible,
.edodsbo-samtykke__link:focus-visible,
.edodsbo-samtykke-modal summary:focus-visible,
.edodsbo-samtykke-modal input:focus-visible + .edodsbo-samtykke-kat__spor,
.edodsbo-samtykke-modal__luk:focus-visible {
	outline: 3px solid #C8A666;
	outline-offset: 2px;
}

/* ---------------------------------------------------------------- modal */

.edodsbo-samtykke-modal {
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	padding: 24px;
	border: 0;
	border-radius: 16px;
	background: #FFFFFF;
	box-shadow: 0 16px 48px rgba(29, 34, 51, 0.3);
}

.edodsbo-samtykke-modal::backdrop {
	background: rgba(29, 34, 51, 0.55);
}

.edodsbo-samtykke-modal__hoved {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.edodsbo-samtykke-modal h2 {
	margin: 0;
	font-family: Literata, Georgia, serif;
	font-size: 1.5em;
	line-height: 1.3;
}

.edodsbo-samtykke-modal__luk {
	width: 44px;
	height: 44px;
	margin-right: -10px;
	border: 0;
	border-radius: 50%;
	background: none;
	color: #1D2233;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.edodsbo-samtykke-modal__luk:hover {
	background: #F4F5F7;
}

.edodsbo-samtykke-modal__intro {
	margin: 0 0 16px;
	color: #4A5163;
}

.edodsbo-samtykke-modal__kategorier {
	margin-bottom: 16px;
	border-top: 1px solid #E3E5EA;
}

/* One accordion per category; the switch sits on the row, outside summary,
   so flipping it does not fold the row open. */
.edodsbo-samtykke-kat {
	position: relative;
	border-bottom: 1px solid #E3E5EA;
}

.edodsbo-samtykke-kat summary {
	display: flex;
	align-items: center;
	min-height: 56px;
	padding-right: 72px;
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.edodsbo-samtykke-kat summary::-webkit-details-marker {
	display: none;
}

.edodsbo-samtykke-kat summary::before {
	content: '';
	flex: none;
	width: 8px;
	height: 8px;
	margin: 0 14px 0 4px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(-45deg);
	transition: transform 0.15s;
}

.edodsbo-samtykke-kat details[open] summary::before {
	transform: rotate(45deg);
}

.edodsbo-samtykke-kat__indhold {
	padding: 0 0 16px 26px;
	color: #4A5163;
	font-size: 0.95em;
}

.edodsbo-samtykke-kat__indhold p {
	margin: 0 0 8px;
}

.edodsbo-samtykke-kat__liste {
	margin: 0;
	padding: 0;
	list-style: none;
}

.edodsbo-samtykke-kat__liste li {
	padding: 8px 0;
	border-top: 1px solid #F4F5F7;
}

.edodsbo-samtykke-kat__liste code {
	color: #1D2233;
	font-size: 0.9em;
	word-break: break-word;
}

.edodsbo-samtykke-kat__liste span {
	color: #6B7183;
	font-size: 0.9em;
}

/* Switch */
.edodsbo-samtykke-kat__kontakt {
	position: absolute;
	top: 14px;
	right: 0;
	cursor: pointer;
}

.edodsbo-samtykke-kat__kontakt input {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 48px;
	height: 28px;
	margin: 0;
	border-radius: 999px;
	background: #C5CAD8;
	cursor: pointer;
	transition: background 0.15s;
}

.edodsbo-samtykke-kat__kontakt input::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #FFFFFF;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
	transition: transform 0.15s;
}

.edodsbo-samtykke-kat__kontakt input:checked {
	background: #252B3F;
}

.edodsbo-samtykke-kat__kontakt input:checked::after {
	transform: translateX(20px);
}

.edodsbo-samtykke-kat__kontakt input:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.edodsbo-samtykke-kat__kontakt input:focus-visible {
	outline: 3px solid #C8A666;
	outline-offset: 2px;
}

.edodsbo-samtykke-modal__status {
	margin: 0 0 16px;
	color: #6B7183;
	font-size: 0.85em;
	word-break: break-word;
}

.edodsbo-samtykke-modal__status:empty {
	display: none;
}

.edodsbo-samtykke-modal .edodsbo-samtykke__knapper {
	grid-template-columns: repeat(3, 1fr);
}

.edodsbo-samtykke-modal__fod {
	margin: 12px 0 0;
	font-size: 0.9em;
	text-align: center;
}

.edodsbo-samtykke-modal__fod a {
	color: #7E5F26;
}

@media (prefers-reduced-motion: reduce) {
	.edodsbo-samtykke-kat summary::before,
	.edodsbo-samtykke-kat__kontakt input,
	.edodsbo-samtykke-kat__kontakt input::after {
		transition: none;
	}
}

@media (max-width: 600px) {
	.edodsbo-samtykke {
		right: 8px;
		bottom: 8px;
		left: 8px;
		padding: 16px;
		font-size: 15px;
	}

	.edodsbo-samtykke__knapper,
	.edodsbo-samtykke-modal .edodsbo-samtykke__knapper {
		width: 100%;
		grid-template-columns: 1fr 1fr;
	}

	/* Afvis and Accepter alle side by side, Tilpas / Gem across below. */
	.edodsbo-samtykke__knap:nth-child(2) {
		grid-column: 1 / -1;
		order: 3;
	}

	.edodsbo-samtykke-modal {
		padding: 20px 16px;
		font-size: 15px;
	}
}

/* --------------------------------------------------------------- videos */

.edodsbo-video {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding: 24px;
	border-radius: 12px;
	background: #252B3F;
	color: #FFFFFF;
	text-align: center;
}

.wp-has-aspect-ratio .edodsbo-video {
	position: absolute;
	inset: 0;
	min-height: 0;
}

.edodsbo-video__knap {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	min-height: 48px;
	padding: 10px 22px;
	border: 0;
	border-radius: 999px;
	background: #FFFFFF;
	color: #1D2233;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.edodsbo-video__knap:focus-visible {
	outline: 3px solid #C8A666;
	outline-offset: 2px;
}

.edodsbo-video__ikon {
	width: 0;
	height: 0;
	border-top: 8px solid transparent;
	border-bottom: 8px solid transparent;
	border-left: 13px solid currentColor;
}

.edodsbo-video__note {
	max-width: 360px;
	margin: 0;
	color: #C5CAD8;
	font-size: 0.9em;
}

/* ---------------------------------------------------------- /cookies/ */

.edodsbo-cookieliste [data-edodsbo-samtykke-status] {
	color: #4A5163;
}
