/**
 * Consent banner and click-to-load placeholder. Site tweaks belong in the child theme (keep the `consent-*` classes).
 */

/* Hidden state: 20px lower and transparent; `.consent-visible` fades it up into place. */
.consent-banner {
	position: fixed;
	bottom: 20px;
	left: 20px;
	z-index: 9998;
	width: min-content; /* as wide as the button row; the text wraps to it */
	padding: 30px;
	border: 1px solid var(--base-color);
	border-radius: var(--radius, 4px);
	background: #fff;
	font-size: 14px;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .3s ease-in, transform .3s ease-in;
}

.consent-banner label {
	display: block;
}

.consent-visible {
	opacity: 1;
	transform: none;
	transition: opacity .5s ease-out, transform .5s cubic-bezier(.16, 1, .3, 1);
}

.consent-groups {
	margin-bottom: 20px;
}

.consent-actions {
	display: flex;
	gap: 10px;
}

.consent-actions .wpbf-button {
	white-space: nowrap;
}

@media screen and (max-width: 768px) {
	.consent-banner {
		right: 20px;
		width: auto;
	}

	.consent-actions {
		flex-direction: column;
	}
}

@media (prefers-reduced-motion: reduce) {
	.consent-banner {
		transform: none;
	}
}

/* Click-to-load placeholder, fills PBF's `.wpbf-responsive-embed` like the iframe it replaces. */
.video-consent {
	position: absolute;
	top: 0;
	left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: var(--base-color-alt);
	text-align: center;
}

.video-consent-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 500px;
	padding: 20px;
	font-size: 14px;
}

.video-consent-load {
	margin-bottom: 10px;
}
