/**
 * Video consent gate — disclaimer shown when marketing cookies are not granted.
 *
 * Designed to fill a positioned 16:9 container (e.g. the single video player
 * box or the [oas_videogallery] lightbox embed area) and also to overlay any
 * generic Cookiebot-blocked embed via the .oas-consent-embed wrapper.
 */

/* Generic wrapper injected around a Cookiebot-blocked embed. */
.oas-consent-embed {
	position: relative;
	display: block;
}

/* Reserve space when the blocked embed collapsed to (near) zero height. */
.oas-consent-embed--minh {
	min-height: 220px;
}

.oas-video-consent {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: #0b0b0b;
	color: #fff;
	text-align: center;
}

.oas-video-consent__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.9rem;
	max-width: 440px;
}

.oas-video-consent__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--color-primary, #AA1A2D);
}

.oas-video-consent__icon svg {
	width: 30px;
	height: 30px;
}

.oas-video-consent__text {
	margin: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #f2f2f2;
}

.oas-video-consent__btn {
	-webkit-appearance: none;
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 10px 22px;
	border-radius: 30px;
	background: var(--color-primary, #AA1A2D);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	transition: background 0.2s ease, transform 0.2s ease;
}

.oas-video-consent__btn:hover {
	background: #8f1626;
	transform: translateY(-1px);
}

.oas-video-consent__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Hide the single-video spinner when the embed is blocked by consent. */
.olimpia-video-single__player-container.is-blocked .olimpia-video-single__player-loader {
	display: none;
}

@media (max-width: 575px) {
	.oas-video-consent__text {
		font-size: 14px;
	}

	.oas-video-consent__icon {
		width: 48px;
		height: 48px;
	}

	.oas-video-consent__icon svg {
		width: 26px;
		height: 26px;
	}
}
