/**
 * Video consent placeholder (YouTube/Vimeo held back by Cookiebot).
 */

/* The held-back iframe has no src yet; hide the empty box until Cookiebot loads it. */
iframe[data-cookieconsent]:not([src]) {
	display: none !important;
}

.sek-video-consent {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #0c0c0c;
	color: #fff;
	font-size: 16px;
	line-height: 1.4;
}

.sek-video-consent[hidden] {
	display: none;
}

/* Inside core's responsive embed wrapper, fill the reserved ratio box. */
.wp-has-aspect-ratio .sek-video-consent {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.sek-video-consent__poster {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: cover;
	filter: brightness(.55) saturate(.8);
}

.sek-video-consent__body {
	position: absolute;
	left: 0;
	bottom: 0;
	box-sizing: border-box;
	max-width: 36em;
	padding: clamp(14px, 4%, 32px);
}

.sek-video-consent__text {
	margin: 0 0 12px;
}

.sek-video-consent__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 20px;
	margin: 0;
}

.sek-video-consent__button {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 21px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #0c0c0c;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	transition: background-color .2s ease;
}

.sek-video-consent__button::before {
	content: "";
	width: 0;
	height: 0;
	border-style: solid;
	border-width: 6px 0 6px 10px;
	border-color: transparent transparent transparent currentColor;
}

/* Accent color on hover, as for buttons in the stilguide. */
.sek-video-consent__button:hover,
.sek-video-consent__button:focus-visible {
	background: var(--wp--preset--color--custom-original-turkos, #7cc0ca);
}

.sek-video-consent__button:focus-visible,
.sek-video-consent__link:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

.sek-video-consent__link {
	color: #fff !important;
	text-decoration: underline;
}

@media (max-width: 480px) {
	.sek-video-consent {
		font-size: 13px;
	}

	.sek-video-consent__text {
		margin-bottom: 8px;
	}
}
