/* Consent facade for YouTube embeds (3MW MU-plugins, consent-gated-embeds.php). */

.tmw-consent-embed {
	position: relative;
	aspect-ratio: 16 / 9;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	background: #000;
}

.tmw-consent-embed__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: brightness(0.4);
}

.tmw-consent-embed__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	padding: 1rem;
	text-align: center;
}

.tmw-consent-embed__message {
	margin: 0;
	color: #fff;
	font-size: 1rem;
	line-height: 1.4;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.tmw-consent-embed__button {
	cursor: pointer;
	border: 0;
	border-radius: 0.25em;
	padding: 0.6em 1.2em;
	background: #fff;
	color: #111;
	font: inherit;
	font-weight: 600;
}

.tmw-consent-embed__button:hover,
.tmw-consent-embed__button:focus-visible {
	background: #e5e5e5;
}

.tmw-consent-embed__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
