/*
 * CodeLine Actie — inline section, top bar, floating teaser and dialog.
 *
 * Fonts always come from the theme: the card inherits the body font and the
 * title is a real <h2>, so it gets the theme's heading font. Colours come from
 * a preset class (cla-p-*), from the theme palette (cla-p-theme) or from
 * --cla-* custom properties (custom colours).
 *
 * The inline section is mobile first. The side-by-side layout applies when the
 * section itself is at least 760px wide (cla--wide). That class is set by a
 * tiny inline script right after the section (so it is right at first paint)
 * and kept up to date by the main script; a viewport media query covers the
 * block editor preview, where inline scripts do not run. CSS container
 * queries are avoided on purpose: inside Elementor's flex containers they can
 * make the page reserve a large empty space on phones.
 *
 * Logical properties keep everything correct in right-to-left languages.
 */

/* Palettes ---------------------------------------------------------------- */

.cla-p-bf { --cla-bg: #0c0b10; --cla-bg2: #211a2b; --cla-fg: #fff; --cla-sub: #c9c4d6; --cla-acc: #ffd23f; --cla-acc-fg: #141018; --cla-hot: #ff3d71; }
.cla-p-kerst { --cla-bg: #0f3b2c; --cla-bg2: #195540; --cla-fg: #fff8ee; --cla-sub: #cfe2d6; --cla-acc: #f0b84d; --cla-acc-fg: #1a1306; --cla-hot: #e5383b; }
.cla-p-zomer { --cla-bg: #e8452a; --cla-bg2: #ff7a3d; --cla-fg: #fff; --cla-sub: #fff1e8; --cla-acc: #1d1b3a; --cla-acc-fg: #fff; --cla-hot: #fff35c; }
.cla-p-pasen { --cla-bg: #fff6d8; --cla-bg2: #ffe7f0; --cla-fg: #2b2440; --cla-sub: #5a5370; --cla-acc: #6b3fa0; --cla-acc-fg: #fff; --cla-hot: #e0457b; }

/*
 * Theme colour: a light tint of the theme's accent with the theme's own text
 * colour. When PHP can read the accent (block themes, Elementor, Astra) it
 * also sends --cla-theme-acc, --cla-theme-acc-fg and --cla-theme-ink with enough contrast; otherwise these
 * CSS fallbacks keep the text readable on any accent.
 */
.cla-p-theme {
	--_t-acc: var(--cla-theme-acc, var(--wp--preset--color--primary, var(--wp--preset--color--accent, var(--wp--preset--color--accent-1, var(--e-global-color-primary, var(--e-global-color-accent, var(--ast-global-color-0, var(--global-palette1, var(--theme-palette-color-1, #2d5a46)))))))));
	--_t-base: var(--wp--preset--color--base, var(--e-global-color-background, var(--ast-global-color-5, var(--global-palette9, var(--theme-palette-color-8, #fff)))));
	--cla-bg: color-mix(in srgb, var(--_t-acc) 8%, var(--_t-base));
	--cla-bg2: color-mix(in srgb, var(--_t-acc) 18%, var(--_t-base));
	--cla-fg: currentColor;
	--cla-sub: color-mix(in srgb, currentColor 74%, transparent);
	--cla-acc: var(--_t-acc);
	--cla-acc-fg: var(--cla-theme-acc-fg, #fff);
	--cla-ink: var(--cla-theme-ink, color-mix(in srgb, var(--_t-acc) 55%, currentColor));
	--cla-hot: #d62d3a;
}

/* Shared ------------------------------------------------------------------ */

.cla,
.cla-bar,
.cla-teaser,
.cla-dialog {
	--_radius: var(--cla-radius, 18px);
	--_ease: cubic-bezier(0.2, 0.8, 0.2, 1);
	box-sizing: border-box;
	font-family: inherit;
	line-height: 1.5;
}

.cla *,
.cla *::before,
.cla *::after,
.cla-bar *,
.cla-teaser *,
.cla-dialog * {
	box-sizing: border-box;
}

.cla p,
.cla-bar p {
	margin: 0;
}

.cla[hidden],
.cla-bar[hidden],
.cla-teaser[hidden],
.cla [hidden] {
	display: none !important;
}

.cla {
	margin-block: 0;
	max-inline-size: 100%;
}

.cla__card {
	position: relative;
	isolation: isolate;
	display: grid;
	overflow: hidden;
	border-radius: var(--_radius);
	background: linear-gradient(135deg, var(--cla-bg), var(--cla-bg2));
	color: var(--cla-fg);
}

.cla--shadow .cla__card {
	box-shadow: 0 1px 2px rgba(10, 5, 20, 0.08), 0 24px 60px -30px rgba(10, 5, 20, 0.55);
}

/* Cursor glow (medium and strong motion, mouse only). */
.cla__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
	background: radial-gradient(420px circle at var(--mx, 70%) var(--my, 30%), color-mix(in srgb, var(--cla-acc) 26%, transparent), transparent 60%);
	transition: opacity 0.35s;
}

.cla-m-medium .cla__card.is-glow::before,
.cla-m-strong .cla__card.is-glow::before {
	opacity: 1;
}

.cla__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 14px;
	min-inline-size: 0;
	padding: clamp(20px, 5vw, 36px);
}

.cla__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cla-ink, var(--cla-acc));
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	line-height: 1.3;
	text-transform: uppercase;
}

.cla__badge::before {
	content: "";
	flex: none;
	inline-size: 8px;
	block-size: 8px;
	border-radius: 50%;
	background: var(--cla-hot);
}

.cla-m-medium .cla__badge::before,
.cla-m-strong .cla__badge::before {
	animation: cla-ping 1.8s infinite;
}

.cla .cla__title {
	margin: 0;
	padding: 0;
	color: inherit;
	font-size: clamp(1.5rem, 1.05rem + 2.2vw, 2.5rem);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.01em;
	text-transform: none;
	text-wrap: balance;
}

.cla .cla__title::before,
.cla .cla__title::after {
	content: none;
}

.cla-tf-body .cla__title {
	font-family: inherit;
}

.cla-tf-custom .cla__title {
	font-family: var(--cla-title-font), sans-serif;
}

.cla__title em {
	color: var(--cla-ink, var(--cla-acc));
	font-style: normal;
}

.cla__text {
	max-inline-size: 52ch;
	color: var(--cla-sub);
}

.cla__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
}

.cla__price s {
	color: var(--cla-sub);
}

.cla__price strong {
	font-size: 1.5em;
	font-weight: 800;
	line-height: 1.1;
}

/* Countdown --------------------------------------------------------------- */

.cla__timer {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.cla__cd-label {
	color: var(--cla-sub);
	font-size: 0.8rem;
}

.cla-cd {
	display: flex;
	gap: 8px;
	direction: ltr;
}

.cla-cd__u {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-inline-size: 58px;
	padding: 8px 6px 6px;
	border: 1px solid color-mix(in srgb, var(--cla-fg) 14%, transparent);
	border-radius: 12px;
	background: color-mix(in srgb, var(--cla-fg) 9%, transparent);
	transition: border-color 0.3s, background-color 0.3s;
}

.cla-cd b {
	display: inline-block;
	font-size: 1.65rem;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
	line-height: 1.1;
}

.cla-cd b.is-flip {
	animation: cla-flip 0.45s var(--_ease);
}

.cla-cd i {
	color: var(--cla-sub);
	font-size: 0.66rem;
	font-style: normal;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Last 24 hours, last hour. */
[data-state="urgent"] .cla-cd__u,
[data-state="final"] .cla-cd__u {
	border-color: var(--cla-hot);
	background: color-mix(in srgb, var(--cla-hot) 16%, transparent);
}

[data-state="urgent"] .cla__cd-label,
[data-state="final"] .cla__cd-label {
	color: var(--cla-hot);
	font-weight: 600;
}

[data-state="final"] .cla-cd__u:last-child {
	background: var(--cla-hot);
	color: var(--cla-bg);
	animation: cla-pulse 1s infinite;
}

[data-state="final"] .cla-cd__u:last-child i {
	color: inherit;
}

/* After the end. */
.cla__expired {
	display: none;
	padding: 10px 14px;
	border-radius: 10px;
	background: color-mix(in srgb, var(--cla-fg) 10%, transparent);
	font-weight: 600;
}

.cla[data-state="expired"] .cla__expired {
	display: block;
}

.cla[data-state="expired"] .cla__timer,
.cla[data-state="expired"] .cla__sticker,
.cla[data-state="expired"] .cla__code,
.cla[data-state="expired"] .cla__cta,
.cla[data-state="expired"] .cla__price {
	display: none;
}

/* Buttons ----------------------------------------------------------------- */

.cla .cla-btn,
.cla-dialog .cla-btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-block-size: 44px;
	margin: 0;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--cla-acc);
	box-shadow: 0 8px 24px -10px var(--cla-acc);
	color: var(--cla-acc-fg);
	font: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.25s var(--_ease), box-shadow 0.25s;
}

.cla .cla-btn:hover,
.cla .cla-btn:focus {
	color: var(--cla-acc-fg);
	text-decoration: none;
	box-shadow: 0 12px 30px -8px var(--cla-acc);
}

.cla .cla-btn--ghost,
.cla .cla-btn--ghost:hover,
.cla .cla-btn--ghost:focus {
	background: transparent;
	box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--cla-fg) 40%, transparent);
	color: var(--cla-fg);
}

.cla .cla-btn--ghost:hover {
	background: color-mix(in srgb, var(--cla-fg) 8%, transparent);
}

.cla a:focus-visible,
.cla button:focus-visible,
.cla-bar a:focus-visible,
.cla-bar button:focus-visible,
.cla-teaser button:focus-visible,
.cla-dialog button:focus-visible {
	outline: 3px solid var(--cla-ink, var(--cla-acc));
	outline-offset: 2px;
}

.cla__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-block-start: 4px;
}

/* Discount code ----------------------------------------------------------- */

.cla__code-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-block: 8px;
	padding-inline: 14px 8px;
	border: 1.5px dashed var(--cla-ink, var(--cla-acc));
	border-radius: 12px;
	animation: cla-pop 0.4s var(--_ease);
}

.cla__code-box b {
	color: var(--cla-ink, var(--cla-acc));
	font-size: 1.15rem;
	letter-spacing: 0.12em;
	user-select: all;
}

.cla__code-box button {
	appearance: none;
	margin: 0;
	padding: 6px 12px;
	border: 0;
	border-radius: 8px;
	background: var(--cla-acc);
	color: var(--cla-acc-fg);
	font: inherit;
	font-size: 0.82rem;
	font-weight: 600;
	cursor: pointer;
}

/* Sticker ----------------------------------------------------------------- */

.cla__sticker {
	position: absolute;
	z-index: 3;
	inset-block-start: 14px;
	inset-inline-end: 14px;
	display: grid;
	place-items: center;
	inline-size: 72px;
	block-size: 72px;
	border-radius: 50%;
	background: var(--cla-hot);
	box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
	color: var(--cla-bg);
	font-size: 1.05rem;
	font-weight: 800;
	line-height: 1;
	text-align: center;
	transform: rotate(-12deg);
}

.cla-p-theme .cla__sticker {
	color: #fff;
}

.cla-m-strong .cla__sticker::after {
	content: "";
	position: absolute;
	inset: -6px;
	border: 2px dashed var(--cla-hot);
	border-radius: 50%;
	animation: cla-spin 14s linear infinite;
}

/* Images ------------------------------------------------------------------ */

.cla__media {
	position: relative;
	order: -1;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: color-mix(in srgb, var(--cla-fg) 8%, transparent);
}

.cla .cla__img {
	position: absolute;
	inset: 0;
	inline-size: 100%;
	block-size: 100%;
	max-inline-size: none;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.9s ease;
}

.cla .cla__img.is-on {
	opacity: 1;
}

.cla-fx-zoom.cla-m-medium .cla__img.is-on,
.cla-fx-zoom.cla-m-strong .cla__img.is-on {
	animation: cla-zoom 8s ease-out forwards;
}

.cla__dots {
	position: absolute;
	z-index: 2;
	inset-block-end: 12px;
	inset-inline-end: 12px;
	display: flex;
	gap: 6px;
}

.cla__dots i {
	inline-size: 7px;
	block-size: 7px;
	border-radius: 99px;
	background: rgba(255, 255, 255, 0.55);
	transition: inline-size 0.3s;
}

.cla__dots i.is-on {
	inline-size: 20px;
	background: #fff;
}

/* Layout: side by side (inline section, wide) ----------------------------- */

.cla--wide.cla--split.cla--media .cla__card {
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	min-block-size: 330px;
}

.cla--wide.cla--split .cla__media {
	order: 0;
	aspect-ratio: auto;
}

.cla--wide.cla--split.cla--media .cla__sticker {
	inset-block-start: 18px;
	inset-inline-start: calc(53.5% - 42px);
	inset-inline-end: auto;
	inline-size: 84px;
	block-size: 84px;
	font-size: 1.25rem;
}

.cla--wide .cla__body {
	padding: 36px;
}

/* Same, before the script has measured the section. */
@media (min-width: 1024px) {
	.cla--inline:not(.cla--narrow):not(.cla--wide).cla--split.cla--media .cla__card {
		grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
		min-block-size: 330px;
	}

	.cla--inline:not(.cla--narrow):not(.cla--wide).cla--split .cla__media {
		order: 0;
		aspect-ratio: auto;
	}

	.cla--inline:not(.cla--narrow):not(.cla--wide).cla--split.cla--media .cla__sticker {
		inset-block-start: 18px;
		inset-inline-start: calc(53.5% - 42px);
		inset-inline-end: auto;
		inline-size: 84px;
		block-size: 84px;
		font-size: 1.25rem;
	}
}

.cla--no-media .cla__body {
	padding-inline-end: max(clamp(20px, 5vw, 36px), 110px);
}

.cla--compact .cla__body,
.cla--popup.cla--no-media .cla__body {
	padding-inline-end: clamp(20px, 5vw, 36px);
}

/* Layout: background image ------------------------------------------------ */

.cla--background .cla__card {
	min-block-size: 340px;
}

.cla--background .cla__media {
	position: absolute;
	inset: 0;
	z-index: -2;
	aspect-ratio: auto;
}

.cla--background.cla--media .cla__card::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(0deg, color-mix(in srgb, var(--cla-bg) 92%, transparent), color-mix(in srgb, var(--cla-bg) 60%, transparent));
	pointer-events: none;
}

.cla--wide.cla--background.cla--media .cla__card::after {
	background: linear-gradient(90deg, color-mix(in srgb, var(--cla-bg) 94%, transparent) 30%, color-mix(in srgb, var(--cla-bg) 20%, transparent));
}

.cla--wide.cla--background .cla__body {
	max-inline-size: 640px;
}

.cla--background .cla__dots {
	inset-block-start: 14px;
	inset-block-end: auto;
	inset-inline-start: 14px;
	inset-inline-end: auto;
}

.cla--background.cla--media .cla__sticker {
	inset-block-start: auto;
	inset-block-end: 18px;
}

/* Layout: compact strip --------------------------------------------------- */

.cla--compact .cla__body {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 18px;
}

.cla--compact .cla__body > .cla__badge {
	flex-basis: 100%;
}

.cla--compact .cla__title {
	flex: 1 1 280px;
	font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
}

.cla--compact .cla__timer {
	gap: 4px;
}

.cla--compact .cla-cd__u {
	min-inline-size: 48px;
	padding: 5px 4px 4px;
}

.cla--compact .cla-cd b {
	font-size: 1.25rem;
}

.cla--compact .cla__actions {
	margin: 0;
}

/* Narrow sections. */
.cla--narrow .cla-cd__u {
	min-inline-size: 50px;
}

.cla--narrow .cla-cd b {
	font-size: 1.35rem;
}

@media (max-width: 400px) {
	.cla-cd {
		gap: 6px;
	}

	.cla-cd__u {
		min-inline-size: 48px;
	}

	.cla-cd b {
		font-size: 1.3rem;
	}
}

/* Top bar ----------------------------------------------------------------- */

.cla-bar {
	position: relative;
	z-index: 99990;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px 14px;
	padding-block: 8px;
	padding-inline: 16px 48px;
	background: var(--cla-bg);
	color: var(--cla-fg);
	font-size: 0.875rem;
	line-height: 1.4;
	text-align: center;
}

.cla-bar--fixed {
	position: fixed;
	inset-block-start: 0;
	inset-inline: 0;
}

.admin-bar .cla-bar--fixed {
	inset-block-start: 32px;
}

@media (max-width: 782px) {
	.admin-bar .cla-bar--fixed {
		inset-block-start: 46px;
	}
}

.cla-bar strong {
	color: var(--cla-ink, var(--cla-acc));
	font-weight: 700;
}

.cla-p-theme.cla-bar strong {
	color: inherit;
}

.cla-bar__time {
	direction: ltr;
	padding: 1px 8px;
	border-radius: 6px;
	background: color-mix(in srgb, var(--cla-fg) 12%, transparent);
	font-variant-numeric: tabular-nums;
	font-weight: 600;
	white-space: nowrap;
}

.cla-bar .cla-bar__link,
.cla-bar .cla-bar__link:hover,
.cla-bar .cla-bar__link:focus {
	color: var(--cla-fg);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
}

@media (max-width: 600px) {
	.cla-bar {
		font-size: 0.8125rem;
		padding-inline-start: 12px;
	}
}

/* Close buttons ----------------------------------------------------------- */

.cla-x {
	appearance: none;
	display: grid;
	place-items: center;
	inline-size: 30px;
	block-size: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: color-mix(in srgb, var(--cla-fg) 14%, transparent);
	color: var(--cla-fg);
	font: inherit;
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
}

.cla-x:hover {
	background: color-mix(in srgb, var(--cla-fg) 24%, transparent);
}

.cla-bar__x {
	position: absolute;
	inset-block-start: 50%;
	inset-inline-end: 8px;
	inline-size: 28px;
	block-size: 28px;
	transform: translateY(-50%);
}

/* Floating teaser --------------------------------------------------------- */

.cla-teaser {
	position: fixed;
	z-index: 99991;
	inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: flex-start;
}

.cla-teaser--right {
	right: 18px;
}

.cla-teaser--left {
	left: 18px;
}

.cla-teaser.is-in {
	animation: cla-rise 0.5s var(--_ease);
}

.cla-teaser__btn {
	appearance: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding-block: 8px;
	padding-inline: 8px 18px;
	border: 0;
	border-radius: 999px;
	background: var(--cla-bg);
	box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.55), 0 0 0 1px color-mix(in srgb, var(--cla-fg) 10%, transparent);
	color: var(--cla-fg);
	font: inherit;
	text-align: start;
	cursor: pointer;
	transition: transform 0.25s var(--_ease);
}

.cla-p-theme .cla-teaser__btn {
	background: var(--cla-bg2);
	color: inherit;
}

.cla-teaser__btn:hover {
	transform: translateY(-2px);
}

.cla-teaser__pct {
	display: grid;
	flex: none;
	place-items: center;
	min-inline-size: 42px;
	block-size: 42px;
	padding-inline: 4px;
	border-radius: 999px;
	background: var(--cla-hot);
	color: var(--cla-bg);
	font-size: 0.85rem;
	font-weight: 800;
}

.cla-p-theme .cla-teaser__pct {
	color: #fff;
}

.cla-teaser__t {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.cla-teaser__t small {
	color: var(--cla-sub);
	font-size: 0.7rem;
}

.cla-teaser__t span {
	font-size: 0.95rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

[data-state="urgent"] .cla-teaser__pct,
[data-state="final"] .cla-teaser__pct {
	animation: cla-pulse 1s infinite;
}

.cla-teaser__x {
	inline-size: 24px;
	block-size: 24px;
	margin-block-start: -8px;
	margin-inline-start: -10px;
	background: var(--cla-bg);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--cla-fg) 18%, transparent);
	font-size: 0.95rem;
}

@media (max-width: 600px) {
	.cla-teaser {
		inset-block-end: calc(12px + env(safe-area-inset-bottom, 0px));
	}

	.cla-teaser__btn {
		gap: 8px;
		padding-block: 6px;
		padding-inline: 6px 14px;
	}

	.cla-teaser__pct {
		min-inline-size: 36px;
		block-size: 36px;
		font-size: 0.78rem;
	}

	.cla-teaser__t small {
		display: none;
	}

	.cla-teaser--right {
		right: 12px;
	}

	.cla-teaser--left {
		left: 12px;
	}
}

/* Dialog (popup) ---------------------------------------------------------- */

.cla-dialog {
	inline-size: min(460px, calc(100vw - 32px));
	max-inline-size: none;
	max-block-size: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
	color: inherit;
}

.cla-dialog::backdrop {
	background: rgba(14, 10, 22, 0.55);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

/* Fade out before scrolling to a section of the page. */
.cla-dialog.is-leaving,
.cla-dialog.is-leaving::backdrop {
	opacity: 0;
	transition: opacity 0.2s ease;
}

.cla-dialog .cla__card {
	max-block-size: calc(100dvh - 32px);
	overflow-y: auto;
	overscroll-behavior: contain;
}

.cla-dialog[open] .cla__card {
	animation: cla-pop 0.45s cubic-bezier(0.2, 0.9, 0.25, 1.1);
}

.cla-dialog .cla__media {
	aspect-ratio: 2 / 1;
}

.cla-dialog .cla--background .cla__media {
	aspect-ratio: auto;
}

.cla-dialog .cla__body {
	padding: 22px 24px 24px;
	gap: 12px;
}

.cla-dialog .cla__title {
	font-size: 1.75rem;
}

.cla-dialog .cla__sticker {
	inset-inline-start: 14px;
	inset-inline-end: auto;
}

.cla-dialog .cla--no-media .cla__body {
	padding-block-start: 96px;
}

.cla-dialog__x {
	position: absolute;
	z-index: 5;
	inset-block-start: 10px;
	inset-inline-end: 10px;
	inline-size: 36px;
	block-size: 36px;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
}

.cla-dialog__x:hover {
	background: rgba(0, 0, 0, 0.65);
}

/* Bottom sheet on phones. */
@media (max-width: 600px) {
	.cla-dialog {
		inline-size: 100%;
		max-block-size: 92dvh;
		margin-block: auto 0;
		margin-inline: 0;
	}

	.cla-dialog .cla__card {
		max-block-size: 92dvh;
		border-end-start-radius: 0;
		border-end-end-radius: 0;
		padding-block-end: env(safe-area-inset-bottom, 0px);
	}

	.cla-dialog[open] .cla__card {
		animation: cla-sheet 0.45s var(--_ease);
	}

	.cla-dialog .cla__title {
		font-size: 1.5rem;
	}
}

html.cla-lock {
	overflow: hidden;
}

/* Device rules for the site-wide surfaces. */
@media (max-width: 767px) {
	.cla-dev-desktop {
		display: none !important;
	}
}

@media (min-width: 768px) {
	.cla-dev-mobile {
		display: none !important;
	}
}

/* Admin-only notice when there is nothing to show. */
.cla-empty {
	padding: 12px 16px;
	border: 1px dashed currentColor;
	border-radius: 8px;
	opacity: 0.7;
}

/* Motion ------------------------------------------------------------------ */

@keyframes cla-ping {
	0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--cla-hot) 70%, transparent); }
	80%, 100% { box-shadow: 0 0 0 9px transparent; }
}

@keyframes cla-flip {
	from { opacity: 0; transform: translateY(-45%) rotateX(70deg); }
	to { opacity: 1; transform: none; }
}

@keyframes cla-spin {
	to { transform: rotate(360deg); }
}

@keyframes cla-zoom {
	from { transform: scale(1.02); }
	to { transform: scale(1.12); }
}

@keyframes cla-pop {
	from { opacity: 0; transform: scale(0.92) translateY(14px); }
	to { opacity: 1; transform: none; }
}

@keyframes cla-sheet {
	from { transform: translateY(100%); }
	to { transform: none; }
}

@keyframes cla-rise {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: none; }
}

@keyframes cla-pulse {
	50% { transform: scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
	.cla *,
	.cla *::before,
	.cla *::after,
	.cla-bar *,
	.cla-teaser,
	.cla-teaser *,
	.cla-dialog,
	.cla-dialog * {
		animation: none !important;
		transition: none !important;
	}

	.cla__card::before {
		display: none;
	}
}
