/*
 * Placeholder styling.
 *
 * Brand-agnostic by construction: every colour is borrowed from the
 * `--cc-*` variables Pressidium prints from its own colour settings onto
 * `.pressidium-cc-theme` (the body). Restyle the banner in wp-admin and the
 * placeholders follow. A theme can still override any `--im-*` variable.
 */

.pressidium-cc-theme {
	--im-font-family: var(--cc-font-family, inherit);
	--im-bg: var(--cc-bg, #0b1016);
	--im-color: var(--cc-text, #fff);
	--im-link-color: var(--cc-text, #fff);
	--im-link-hover-color: var(--cc-btn-primary-bg, currentColor);
	--im-btn-bg: var(--cc-btn-primary-bg);
	--im-btn-color: var(--cc-btn-primary-text);
	--im-btn-hover-bg: var(--cc-btn-primary-hover-bg);
	--im-btn-active-box-shadow: 0 0 0 .25em color-mix(in srgb, var(--cc-btn-primary-bg) 30%, transparent);
	--im-btn-s-bg: var(--cc-btn-secondary-bg);
	--im-btn-s-color: var(--cc-btn-secondary-text);
	--im-btn-s-hover-bg: var(--cc-btn-secondary-hover-bg);
	--im-btn-s-active-bg: var(--cc-btn-secondary-hover-bg);
	/* Enough of the still to recognise the video; enough scrim to read the notice. */
	--im-overlay-bg: linear-gradient(to top, color-mix(in srgb, var(--cc-bg, #000) 92%, transparent), color-mix(in srgb, var(--cc-bg, #000) 76%, transparent));
	--c21-ce-radius: var(--cc-border-radius, .5rem);
}

.c21-ce {
	margin-block: 1.5em;
}

.c21-ce > div[data-service] {
	display: block;
	width: 100%;
	min-width: 0;
	border-radius: var(--c21-ce-radius);
	font-size: 1rem;
	line-height: 1.5;
}

/*
 * iframemanager appends the still after the notice, so the still paints on
 * top of it. The notice gets its own layer above the still; the loader and
 * the iframe (z-index 1 in iframemanager) stay above both once loading.
 */
.c21-ce div[data-service] .cll .c-bg {
	opacity: 1;
	z-index: 0;
}

.c21-ce div[data-service] .cll .c-nt {
	z-index: 1;
}

.c21-ce div[data-service] .cll iframe {
	z-index: 2;
}

.c21-ce div[data-service] .cll .c-n-t {
	font-size: .9375em;
	max-width: 34em;
}

.c21-ce div[data-service] .cll .c-n-a {
	flex-wrap: wrap;
	gap: .6em;
}

.c21-ce div[data-service] .cll .c-n-a button + button {
	margin-left: 0;
}

.c21-ce div[data-service] .cll .c-la-b,
.c21-ce div[data-service] .cll .c-l-b {
	border-radius: var(--cc-btn-border-radius, .3125em);
	font-size: .875em;
}

.c21-ce div[data-service] .cll button:focus-visible {
	outline: 2px solid var(--im-color);
	outline-offset: 3px;
}

/*
 * Widgets (social posts, forms) have no ratio — a placeholder box until
 * consent, then the real content in normal flow below it.
 */
.c21-ce--widget > div[data-service] {
	min-height: 15rem;
	padding: 2rem 1rem;
}

.c21-ce--widget > div[data-service] .cll .c-nt {
	position: static;
}

.c21-ce--widget.is-loaded > div[data-service] {
	display: none;
}

.c21-ce__content > :first-child {
	margin-top: 0;
}

/* Social embeds centre themselves only sometimes. */
.c21-ce--instagram .c21-ce__content,
.c21-ce--x .c21-ce__content,
.c21-ce--tiktok .c21-ce__content,
.c21-ce--facebook .c21-ce__content {
	display: flex;
	justify-content: center;
}

@media (max-width: 30rem) {
	.c21-ce div[data-service] .cll .c-n-t {
		font-size: .8125em;
	}

	.c21-ce div[data-service] .cll .c-tl {
		display: none;
	}
}

/*
 * Lite card — the category is allowed, the player is not loaded yet. The
 * still at full strength with a light scrim at the foot, one play button,
 * no notice: there is nothing left to ask.
 */
.c21-ce--lite div[data-service] .cll .c-bg::before {
	background: linear-gradient(to top, rgb(0 0 0 / .35), transparent 45%);
}

.c21-ce--lite div[data-service] .cll .c-n-t,
.c21-ce--lite div[data-service] .cll .c-la-b {
	display: none;
}

.c21-ce--lite div[data-service] .cll .c-n-a {
	margin-top: 0;
}

.c21-ce--lite div[data-service] .cll .c-l-b {
	width: 4.5rem;
	height: 4.5rem;
	padding: 0;
	border-radius: 999px;
	font-size: 0;
	box-shadow: 0 .75rem 2rem rgb(0 0 0 / .35);
	transition: transform .2s ease;
}

.c21-ce--lite div[data-service] .cll .c-l-b::before {
	margin: 0 0 0 .3rem;
	border-left-width: 1.35rem;
	border-top-width: .8rem;
	border-bottom-width: .8rem;
}

.c21-ce--lite div[data-service]:hover .cll .c-l-b {
	transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
	.c21-ce--lite div[data-service] .cll .c-l-b {
		transition: none;
	}
}

/*
 * [cookie_einstellungen] — a button that reads as a link in running text.
 * Pressidium styles `.cc-link` only inside its own modal.
 */
.c21-ce-settings {
	appearance: none;
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font: inherit;
	text-decoration: underline;
	text-underline-offset: .2em;
	cursor: pointer;
}
