/* Click-to-load placeholder for video embeds held until marketing consent
   (_functions/embed-consent.php). Colors are the site's ACF theme tokens. */

.gmcc-embed {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	aspect-ratio: 16 / 9;
	margin: 0 auto 2rem;
	padding: 2rem;
	box-sizing: border-box;
	background: var(--theme-color-1);
	color: var(--theme-color-3);
	text-align: center;
}

/* Pasted embed code sits in a padded ratio wrapper (100% square, 177% portrait). While the video is
   held, collapse that wrapper and show a compact 16:9 box; the wrapper's own height comes back
   once the iframe replaces the placeholder. */
:has(> .gmcc-embed[style*="absolute"]) {
	padding: 0 !important;
	height: auto !important;
}

.gmcc-embed[style*="absolute"] {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	height: auto !important;
	aspect-ratio: 16 / 9;
	margin: 0 0 2rem;
}

.gmcc-embed__inner {
	max-width: 42rem;
}

.gmcc-embed .gmcc-embed__text {
	margin: 0 0 1.25rem;
	color: var(--theme-color-3);
	font-size: 1.6rem;
	line-height: 1.5;
}

.gmcc-embed__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 1rem 2rem;
	margin: 0;
}

.gmcc-embed__load {
	padding: 1rem 2.4rem;
	border: 0;
	border-radius: 4px;
	background: var(--theme-color-2);
	color: var(--theme-color-1);
	font-family: "DM Sans", sans-serif;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
}

.gmcc-embed__load:hover {
	background: var(--theme-color-3);
}

.gmcc-embed__load:focus-visible,
.gmcc-embed .gmcc-embed__settings:focus-visible {
	outline: 2px solid var(--theme-color-3);
	outline-offset: 3px;
}

/* Out-ranks main.css's global a:not(.plumb-button):not(...) blue link (0,5,1). */
.gmcc-embed .gmcc-embed__actions a.gmcc-embed__settings[data-gmcc-open][href] {
	color: var(--theme-color-2);
	font-size: 1.4rem;
	text-decoration: underline;
}

.gmcc-embed .gmcc-embed__actions a.gmcc-embed__settings[data-gmcc-open][href]:hover {
	color: var(--theme-color-3);
}

@media (max-width: 599px) {
	.gmcc-embed {
		padding: 1.25rem;
	}

	.gmcc-embed .gmcc-embed__text {
		font-size: 1.4rem;
		margin-bottom: 0.75rem;
	}
}
