/* ATOMI Cookie Consent: embed placeholders, floating button, cookie table. */

.atomi-cc-embed {
	--atomi-cc-embed-bg: #1f2328;
	--atomi-cc-embed-fg: #fff;
	position: relative;
	display: block;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	background: var(--atomi-cc-embed-bg);
	color: var(--atomi-cc-embed-fg);
	font-size: 14px;
	line-height: 1.45;
	text-align: center;
}

.atomi-cc-embed *,
.atomi-cc-embed *::before,
.atomi-cc-embed *::after {
	box-sizing: border-box;
}

.atomi-cc-embed__thumb {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	opacity: 0.35;
}

.atomi-cc-embed__body {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75em;
	padding: 1em 1.25em;
	overflow: auto;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.atomi-cc-embed__title {
	display: block;
	font-size: 1.1em;
	font-weight: 600;
}

.atomi-cc-embed__notice {
	display: block;
	max-width: 36em;
}

.atomi-cc-embed__privacy {
	color: inherit;
	text-decoration: underline;
}

.atomi-cc-embed__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.5em;
}

.atomi-cc-embed__load,
.atomi-cc-embed__always {
	margin: 0;
	padding: 0.6em 1.1em;
	border: 1px solid transparent;
	border-radius: 0.4em;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-shadow: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.atomi-cc-embed__load {
	background: var(--atomi-cc-primary, var(--cc-btn-primary-bg, #30363c));
	color: var(--atomi-cc-primary-text, var(--cc-btn-primary-color, #fff));
	border-color: rgba(255, 255, 255, 0.4);
}

.atomi-cc-embed__always {
	background: transparent;
	color: inherit;
	border-color: rgba(255, 255, 255, 0.6);
}

.atomi-cc-embed__load:hover,
.atomi-cc-embed__always:hover,
.atomi-cc-embed__load:focus-visible,
.atomi-cc-embed__always:focus-visible {
	filter: brightness(1.15);
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* Consent already given in click-to-load mode: only the play button remains. */
.atomi-cc-embed.is-allowed .atomi-cc-embed__notice,
.atomi-cc-embed.is-allowed .atomi-cc-embed__always {
	display: none;
}

.atomi-cc-embed.is-allowed .atomi-cc-embed__thumb {
	opacity: 0.85;
}

.atomi-cc-embed.is-loaded {
	background: transparent;
}

.atomi-cc-embed__frame,
.atomi-cc-embed.is-loaded > iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* Containers that already reserve the aspect ratio (block embeds, FitVids). */
.wp-has-aspect-ratio .wp-block-embed__wrapper > .atomi-cc-embed,
.fluid-width-video-wrapper > .atomi-cc-embed {
	position: absolute;
	inset: 0;
	height: 100%;
	aspect-ratio: auto !important;
}

.atomi-cc-fab {
	position: fixed;
	bottom: 1rem;
	z-index: 2147483000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--atomi-cc-primary, var(--cc-btn-primary-bg, #30363c));
	color: var(--atomi-cc-primary-text, var(--cc-btn-primary-color, #fff));
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	transition: transform 0.15s ease;
}

.atomi-cc-fab--left {
	left: 1rem;
}

.atomi-cc-fab--right {
	right: 1rem;
}

.atomi-cc-fab:hover,
.atomi-cc-fab:focus-visible {
	transform: scale(1.08);
}

.atomi-cc-fab:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.atomi-cc-fab[hidden] {
	display: none;
}

.atomi-cc-cookie-table figure {
	overflow-x: auto;
}

@media print {
	.atomi-cc-fab {
		display: none;
	}
}
