/**
 * YouTube consent placeholder. See assets/js/youtube-consent.js.
 *
 * Colors: #fff on rgba(0,0,0,.8) over the thumbnail meets WCAG AA contrast.
 */

.nalgene-yt-consent {
	position: relative;
	display: flex;
	align-items: flex-end;
	width: 100%;
	aspect-ratio: var(--nalgene-yt-ratio, 16 / 9);
	overflow: hidden;
	background: #212721;
	color: #fff;
	text-align: left;
}

.nalgene-yt-consent__thumb {
	position: absolute;
	inset: 0;
	background-position: center;
	background-size: cover;
}

.nalgene-yt-consent__panel {
	position: relative;
	width: 100%;
	padding: 16px;
	background: rgba(0, 0, 0, 0.8);
}

.nalgene-yt-consent__message {
	margin: 0 0 12px;
	color: #fff;
	font-size: 14px;
	line-height: 1.4;
}

.nalgene-yt-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nalgene-yt-consent .nalgene-yt-consent__watch,
.nalgene-yt-consent .nalgene-yt-consent__prefs {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 8px 16px;
	border: 2px solid #fff;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.nalgene-yt-consent .nalgene-yt-consent__watch {
	background: #fff;
	color: #212721;
}

.nalgene-yt-consent .nalgene-yt-consent__prefs {
	background: transparent;
	color: #fff;
}

.nalgene-yt-consent .nalgene-yt-consent__watch:hover,
.nalgene-yt-consent .nalgene-yt-consent__prefs:hover {
	text-decoration: underline;
}

.nalgene-yt-consent .nalgene-yt-consent__watch:focus-visible,
.nalgene-yt-consent .nalgene-yt-consent__prefs:focus-visible {
	outline: 3px solid #ffbf47;
	outline-offset: 2px;
}

/* Hidden iframes/Plyr targets waiting for consent. */
iframe[data-consent-src][hidden],
.nalgene-yt-consent-mount > [hidden] {
	display: none !important;
}

/* Full Width Video Panel popup: fill the 16:9 embed container. */
.full-width-video-modal .embed-container > .nalgene-yt-consent {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
	height: 100%;
}

/* WooThumbs gallery: the placeholder sets its own ratio. */
.iconic-woothumbs-responsive-media.nalgene-yt-consent-mount {
	aspect-ratio: auto;
	height: auto;
	padding: 0;
}

.nalgene-yt-consent-slide .iconic-woothumbs-loading-overlay {
	display: none !important;
}
