/*
 * ArtequeCookies — banner, settings dialog, reopen button, embed placeholders.
 *
 * Arteque corporate design (arteque.net): brand blue #0583b3 / #046a91,
 * ink #12262f, lime accent #a7c92b, system font stack, 18px radius, pill
 * buttons, cubic-bezier(.22,.68,.32,1) easing.
 *
 * Self-contained: every rule is scoped under .aqc and every color is a
 * --aqc-* token, so the host theme's styles and palette do not leak in.
 * Dark mode follows the site toggle (html[data-theme]) and falls back to
 * the OS preference, the same contract as arteque.net and the ASEK theme.
 *
 * Contrast (WCAG 2.1 AA), measured on --aqc-surface:
 *   text #12262f 15.6:1 · muted #556b76 5.6:1 · link/btn #046a91 6.0:1
 *   white on btn #046a91 6.0:1 · ink on lime badge 8.6:1
 *   dark: text #e9f2f6 13.4:1 · muted #9fb7c1 7.4:1 · link #5ec8ee 8.0:1
 *         ink #05222e on btn #5ec8ee 9.3:1
 */

.aqc {
	--aqc-brand: #0583b3;
	--aqc-brand-strong: #046a91;
	--aqc-brand-soft: #5ec8ee;
	--aqc-accent: #a7c92b;
	--aqc-accent-ink: #12262f;
	--aqc-surface: #ffffff;
	--aqc-surface-2: #f2f6f8;
	--aqc-text: #12262f;
	--aqc-muted: #556b76;
	--aqc-line: rgba(18, 38, 47, 0.14);
	--aqc-line-strong: rgba(18, 38, 47, 0.28);
	--aqc-btn: #046a91;
	--aqc-btn-hover: #035476;
	--aqc-btn-ink: #ffffff;
	--aqc-link: #046a91;
	--aqc-focus: #046a91;
	--aqc-switch-off: #556b76;
	--aqc-glow-1: rgba(94, 200, 238, 0.38);
	--aqc-glow-2: rgba(167, 201, 43, 0.22);
	--aqc-shadow: 0 1px 2px rgba(18, 38, 47, 0.06), 0 24px 60px -24px rgba(18, 38, 47, 0.35);
	--aqc-radius: 18px;
	--aqc-radius-lg: 26px;
	--aqc-ease: cubic-bezier(0.22, 0.68, 0.32, 1);
	--aqc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--aqc-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

	font-family: var(--aqc-font);
	color: var(--aqc-text);
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.aqc *,
.aqc *::before,
.aqc *::after {
	box-sizing: inherit;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) .aqc {
		--aqc-accent: #9ec73d;
		--aqc-accent-ink: #05222e;
		--aqc-surface: #12262f;
		--aqc-surface-2: #17303b;
		--aqc-text: #e9f2f6;
		--aqc-muted: #9fb7c1;
		--aqc-line: rgba(233, 242, 246, 0.14);
		--aqc-line-strong: rgba(233, 242, 246, 0.3);
		--aqc-btn: #5ec8ee;
		--aqc-btn-hover: #8ad8f3;
		--aqc-btn-ink: #05222e;
		--aqc-link: #5ec8ee;
		--aqc-focus: #5ec8ee;
		--aqc-switch-off: #9fb7c1;
		--aqc-glow-1: rgba(94, 200, 238, 0.22);
		--aqc-glow-2: rgba(5, 131, 179, 0.28);
		--aqc-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 70px -28px rgba(0, 0, 0, 0.85);
	}
}

:root[data-theme="dark"] .aqc {
	--aqc-accent: #9ec73d;
	--aqc-accent-ink: #05222e;
	--aqc-surface: #12262f;
	--aqc-surface-2: #17303b;
	--aqc-text: #e9f2f6;
	--aqc-muted: #9fb7c1;
	--aqc-line: rgba(233, 242, 246, 0.14);
	--aqc-line-strong: rgba(233, 242, 246, 0.3);
	--aqc-btn: #5ec8ee;
	--aqc-btn-hover: #8ad8f3;
	--aqc-btn-ink: #05222e;
	--aqc-link: #5ec8ee;
	--aqc-focus: #5ec8ee;
	--aqc-switch-off: #9fb7c1;
	--aqc-glow-1: rgba(94, 200, 238, 0.22);
	--aqc-glow-2: rgba(5, 131, 179, 0.28);
	--aqc-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 70px -28px rgba(0, 0, 0, 0.85);
}

.aqc[hidden],
.aqc [hidden] {
	display: none !important;
}

.aqc-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Embeds waiting for consent stay out of the layout until the script puts
   a placeholder in front of them — no empty white iframe box. */
iframe[data-src][data-type]:not([src]) {
	display: none !important;
}

/* ------------------------------------------------------------------ */
/* Shared pieces                                                       */
/* ------------------------------------------------------------------ */

.aqc .aqc-icon {
	display: block;
	width: 100%;
	height: 100%;
}

.aqc .aqc-title {
	margin: 0;
	font-family: var(--aqc-font);
	font-size: clamp(1.13rem, 1.05rem + 0.38vw, 1.34rem);
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-transform: none;
	color: var(--aqc-text);
}

.aqc .aqc-text {
	margin: 0;
	font-size: clamp(0.88rem, 0.85rem + 0.14vw, 0.95rem);
	color: var(--aqc-muted);
}

.aqc .aqc-link {
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	font-weight: 600;
	color: var(--aqc-link);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	cursor: pointer;
	transition: text-decoration-thickness 0.2s var(--aqc-ease), text-underline-offset 0.2s var(--aqc-ease);
}

.aqc .aqc-link:hover {
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.aqc :focus-visible {
	outline: 3px solid var(--aqc-focus);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Buttons — pill, as on arteque.net */

.aqc .aqc-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.7rem 1.35rem;
	overflow: hidden;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 650;
	letter-spacing: 0.01em;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	text-wrap: balance;
	cursor: pointer;
	isolation: isolate;
	transition:
		transform 0.35s var(--aqc-spring),
		box-shadow 0.3s var(--aqc-ease),
		background-color 0.25s var(--aqc-ease),
		border-color 0.25s var(--aqc-ease),
		color 0.25s var(--aqc-ease);
}

.aqc .aqc-btn:focus-visible {
	border-radius: 999px;
}

.aqc .aqc-btn--solid {
	background: var(--aqc-btn);
	color: var(--aqc-btn-ink);
}

/* Light sweep across the pill on hover. */
.aqc .aqc-btn--solid::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
	transform: translateX(-120%);
	transition: transform 0.7s var(--aqc-ease);
}

.aqc .aqc-btn--solid:hover {
	background: var(--aqc-btn-hover);
	box-shadow: 0 12px 28px -12px var(--aqc-btn);
	transform: translateY(-2px);
}

.aqc .aqc-btn--solid:hover::after {
	transform: translateX(120%);
}

.aqc .aqc-btn--ghost {
	background: transparent;
	border-color: var(--aqc-line-strong);
	color: var(--aqc-text);
}

.aqc .aqc-btn--ghost:hover {
	background: rgba(94, 200, 238, 0.12);
	border-color: var(--aqc-brand);
	transform: translateY(-2px);
}

.aqc .aqc-btn:active {
	transform: translateY(1px) scale(0.97);
	transition-duration: 0.1s;
}

.aqc .aqc-btn--sm {
	min-height: 40px;
	padding: 0.55rem 1.05rem;
	font-size: 0.84rem;
}

.aqc .aqc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

/* Switch — a real checkbox with role="switch" under a drawn track */

.aqc .aqc-switch {
	position: relative;
	display: inline-flex;
	flex-shrink: 0;
	cursor: pointer;
}

.aqc .aqc-switch input {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.aqc .aqc-switch-track {
	position: relative;
	display: block;
	width: 52px;
	height: 30px;
	border: 2px solid var(--aqc-switch-off);
	border-radius: 999px;
	background: var(--aqc-surface-2);
	transition: background-color 0.3s var(--aqc-ease), border-color 0.3s var(--aqc-ease), box-shadow 0.3s var(--aqc-ease);
}

.aqc .aqc-switch-thumb {
	position: absolute;
	top: 3px;
	inset-inline-start: 3px;
	width: 20px;
	height: 20px;
	border-radius: 999px;
	background: var(--aqc-switch-off);
	transition:
		inset-inline-start 0.45s var(--aqc-spring),
		width 0.25s var(--aqc-ease),
		background-color 0.3s var(--aqc-ease);
}

.aqc .aqc-switch input:checked + .aqc-switch-track {
	background: var(--aqc-btn);
	border-color: var(--aqc-btn);
	box-shadow: 0 0 0 4px rgba(94, 200, 238, 0.18);
}

.aqc .aqc-switch input:checked + .aqc-switch-track .aqc-switch-thumb {
	inset-inline-start: 25px;
	background: var(--aqc-btn-ink);
}

/* Pressed: the thumb stretches like a drop, then springs back. */
.aqc .aqc-switch input:active + .aqc-switch-track .aqc-switch-thumb {
	width: 25px;
}

.aqc .aqc-switch input:checked:active + .aqc-switch-track .aqc-switch-thumb {
	inset-inline-start: 20px;
}

/* Some but not all services of a category are allowed. */
.aqc .aqc-switch input:indeterminate + .aqc-switch-track {
	border-color: var(--aqc-btn);
	background: var(--aqc-surface-2);
}

.aqc .aqc-switch input:indeterminate + .aqc-switch-track .aqc-switch-thumb {
	inset-inline-start: 14px;
	width: 20px;
	background: var(--aqc-btn);
}

.aqc .aqc-switch input:focus-visible + .aqc-switch-track {
	outline: 3px solid var(--aqc-focus);
	outline-offset: 3px;
}

.aqc .aqc-switch--sm .aqc-switch-track {
	width: 44px;
	height: 26px;
}

.aqc .aqc-switch--sm .aqc-switch-thumb {
	width: 16px;
	height: 16px;
}

.aqc .aqc-switch--sm input:checked + .aqc-switch-track .aqc-switch-thumb {
	inset-inline-start: 21px;
}

.aqc .aqc-switch--sm input:active + .aqc-switch-track .aqc-switch-thumb {
	width: 21px;
}

.aqc .aqc-switch--sm input:checked:active + .aqc-switch-track .aqc-switch-thumb {
	inset-inline-start: 16px;
}

.aqc .aqc-switch--sm input:indeterminate + .aqc-switch-track .aqc-switch-thumb {
	inset-inline-start: 12px;
	width: 16px;
}

/* ------------------------------------------------------------------ */
/* Animated circuit cookie                                             */
/* ------------------------------------------------------------------ */

.aqc .aqc-cookie-shell,
.aqc .aqc-trace {
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
}

.aqc .aqc-cookie-shell {
	stroke: var(--aqc-brand);
	fill: rgba(94, 200, 238, 0.1);
}

.aqc .aqc-trace {
	stroke: var(--aqc-brand-soft);
	stroke-width: 2.4;
}

.aqc .aqc-node,
.aqc .aqc-crumb {
	fill: var(--aqc-accent);
	transform-box: fill-box;
	transform-origin: center;
	transform: scale(0);
}

.aqc .aqc-crumb {
	fill: var(--aqc-brand);
	opacity: 0;
}

.aqc.is-visible .aqc-cookie-shell,
.aqc-dialog[open] .aqc-cookie-shell,
.aqc-fab .aqc-cookie-shell {
	animation: aqc-draw 1.1s var(--aqc-ease) 0.15s forwards;
}

.aqc.is-visible .aqc-trace,
.aqc-dialog[open] .aqc-trace,
.aqc-fab .aqc-trace {
	animation: aqc-draw 0.6s var(--aqc-ease) var(--d, 0.4s) forwards;
}

.aqc.is-visible .aqc-node,
.aqc-dialog[open] .aqc-node,
.aqc-fab .aqc-node {
	animation:
		aqc-pop 0.5s var(--aqc-spring) var(--d, 0.8s) forwards,
		aqc-pulse 2.8s ease-in-out calc(var(--d, 0.8s) + 1s) infinite;
}

.aqc.is-visible .aqc-crumb {
	animation: aqc-crumb 0.9s var(--aqc-ease) var(--d, 1s) forwards;
}

@keyframes aqc-draw {
	to { stroke-dashoffset: 0; }
}

@keyframes aqc-pop {
	to { transform: scale(1); }
}

@keyframes aqc-pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.35); opacity: 0.7; }
}

@keyframes aqc-crumb {
	0% { transform: translate(-6px, 6px) scale(0); opacity: 0; }
	60% { transform: translate(2px, -3px) scale(1.2); opacity: 1; }
	100% { transform: translate(0, 0) scale(1); opacity: 1; }
}

/* ------------------------------------------------------------------ */
/* Banner                                                              */
/* ------------------------------------------------------------------ */

.aqc-banner {
	position: fixed;
	inset-inline: 16px;
	bottom: 16px;
	z-index: 99990;
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"icon body"
		"actions actions";
	gap: 1rem 1.1rem;
	max-width: 1040px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	margin-inline: auto;
	padding: 1.25rem;
	/* Scrolls only on very short screens; never sideways. */
	overflow-x: hidden;
	overflow-y: auto;
	border: 1px solid var(--aqc-line);
	border-radius: var(--aqc-radius-lg);
	background: var(--aqc-surface);
	box-shadow: var(--aqc-shadow);
	opacity: 0;
	transform: translateY(40px) scale(0.97);
	filter: blur(8px);
	transition:
		opacity 0.5s var(--aqc-ease),
		transform 0.7s var(--aqc-spring),
		filter 0.5s var(--aqc-ease);
}

.aqc-banner.is-visible {
	opacity: 1;
	transform: none;
	filter: none;
}

.aqc-banner.is-leaving {
	opacity: 0;
	transform: translateY(30px) scale(0.98);
	filter: blur(6px);
	transition-duration: 0.35s;
	transition-timing-function: var(--aqc-ease);
}

/* Slow-drifting brand glow behind the content. The layer itself is exactly
   the banner's size and clips; only its ::before is oversized and moves.
   An oversized layer directly in the banner would count as overflow and
   give the (overflow: auto) banner scrollbars on both axes. */
.aqc-banner-glow {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	border-radius: inherit;
	pointer-events: none;
}

.aqc-banner-glow::before {
	content: "";
	position: absolute;
	inset: -40%;
	background:
		radial-gradient(closest-side, var(--aqc-glow-1), transparent) 10% 20% / 45% 60% no-repeat,
		radial-gradient(closest-side, var(--aqc-glow-2), transparent) 85% 80% / 40% 55% no-repeat;
	opacity: 0.8;
	animation: aqc-drift 14s ease-in-out infinite alternate;
}

@keyframes aqc-drift {
	0% { transform: translate(0, 0) rotate(0deg); }
	100% { transform: translate(6%, -4%) rotate(8deg); }
}

.aqc-banner > :not(.aqc-banner-glow) {
	position: relative;
	z-index: 1;
}

.aqc-banner-icon {
	grid-area: icon;
	width: 56px;
	height: 56px;
	align-self: start;
}

.aqc-banner-body {
	grid-area: body;
	display: grid;
	gap: 0.35rem;
	min-width: 0;
}

.aqc-banner .aqc-actions {
	grid-area: actions;
}

.aqc-banner .aqc-actions .aqc-btn {
	flex: 1 1 100%;
}

/* Staggered entrance of the banner's content. */
.aqc-banner .aqc-reveal {
	opacity: 0;
	transform: translateY(12px);
	transition:
		opacity 0.5s var(--aqc-ease) calc(var(--i, 0) * 90ms + 150ms),
		transform 0.6s var(--aqc-ease) calc(var(--i, 0) * 90ms + 150ms);
}

.aqc-banner.is-visible .aqc-reveal {
	opacity: 1;
	transform: none;
}

@media (min-width: 560px) {
	.aqc-banner .aqc-actions .aqc-btn {
		flex: 1 1 0;
	}
}

@media (min-width: 900px) {
	.aqc-banner {
		grid-template-columns: auto 1fr auto;
		grid-template-areas: "icon body actions";
		align-items: center;
		gap: 1.5rem;
		padding: 1.5rem 1.75rem;
		bottom: 24px;
	}

	.aqc-banner-icon {
		width: 64px;
		height: 64px;
		align-self: center;
	}

	.aqc-banner .aqc-actions {
		flex-direction: column;
		flex-wrap: nowrap;
		min-width: 200px;
	}

	.aqc-banner .aqc-actions .aqc-btn {
		flex: none;
	}

	/* Accept first on wide screens, where the column reads top-down. */
	.aqc-banner .aqc-actions [data-aqc-action="accept"] { order: -2; }
	.aqc-banner .aqc-actions [data-aqc-action="reject"] { order: -1; }
}

/* ------------------------------------------------------------------ */
/* Settings dialog                                                     */
/* ------------------------------------------------------------------ */

.aqc-dialog {
	width: min(640px, calc(100vw - 32px));
	max-width: none;
	max-height: min(760px, calc(100vh - 32px));
	max-height: min(760px, calc(100dvh - 32px));
	margin: auto;
	padding: 0;
	overflow: visible;
	border: 0;
	background: transparent;
	color: var(--aqc-text);
}

.aqc-dialog::backdrop {
	background: rgba(11, 26, 34, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.aqc-dialog[open] {
	animation: aqc-dialog-in 0.55s var(--aqc-spring);
}

.aqc-dialog[open]::backdrop {
	animation: aqc-fade-in 0.4s var(--aqc-ease);
}

.aqc-dialog.is-closing {
	animation: aqc-dialog-out 0.28s var(--aqc-ease) forwards;
}

.aqc-dialog.is-closing::backdrop {
	animation: aqc-fade-out 0.28s var(--aqc-ease) forwards;
}

@keyframes aqc-dialog-in {
	from { opacity: 0; transform: translateY(24px) scale(0.95); filter: blur(6px); }
	to { opacity: 1; transform: none; filter: none; }
}

@keyframes aqc-dialog-out {
	to { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(4px); }
}

@keyframes aqc-fade-in {
	from { opacity: 0; }
}

@keyframes aqc-fade-out {
	to { opacity: 0; }
}

.aqc-dialog-panel {
	display: flex;
	flex-direction: column;
	max-height: inherit;
	overflow: hidden;
	border: 1px solid var(--aqc-line);
	border-radius: var(--aqc-radius-lg);
	background: var(--aqc-surface);
	box-shadow: var(--aqc-shadow);
}

.aqc-dialog-head {
	position: relative;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 1rem;
	align-items: start;
	padding: 1.5rem 1.5rem 1.25rem;
	border-bottom: 1px solid var(--aqc-line);
	background:
		radial-gradient(120% 140% at 0% 0%, var(--aqc-glow-1), transparent 55%),
		var(--aqc-surface);
}

.aqc-dialog-icon {
	width: 48px;
	height: 48px;
}

.aqc-dialog-heading {
	display: grid;
	gap: 0.35rem;
}

.aqc .aqc-close {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: -6px -6px 0 0;
	padding: 11px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--aqc-text);
	cursor: pointer;
	transition: transform 0.4s var(--aqc-spring), background-color 0.2s var(--aqc-ease), border-color 0.2s var(--aqc-ease);
}

.aqc .aqc-close:hover {
	background: var(--aqc-surface-2);
	border-color: var(--aqc-line-strong);
	transform: rotate(90deg);
}

.aqc .aqc-close:focus-visible {
	border-radius: 999px;
}

.aqc-dialog-body {
	flex: 1 1 auto;
	min-height: 0;
	padding: 1rem 1.5rem;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.aqc .aqc-cats,
.aqc .aqc-services {
	display: grid;
	gap: 0.75rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.aqc .aqc-cat {
	margin: 0;
	padding: 1rem 1.1rem;
	border: 1px solid var(--aqc-line);
	border-radius: var(--aqc-radius);
	background: var(--aqc-surface-2);
	transition: border-color 0.3s var(--aqc-ease), box-shadow 0.3s var(--aqc-ease);
}

.aqc .aqc-cat:hover,
.aqc .aqc-cat.is-open {
	border-color: var(--aqc-line-strong);
}

.aqc .aqc-cat.is-on {
	border-color: var(--aqc-brand);
	box-shadow: inset 3px 0 0 var(--aqc-brand);
}

[dir="rtl"].aqc .aqc-cat.is-on,
[dir="rtl"] .aqc .aqc-cat.is-on {
	box-shadow: inset -3px 0 0 var(--aqc-brand);
}

.aqc-dialog[open] .aqc-cat {
	animation: aqc-rise 0.55s var(--aqc-ease) backwards;
	animation-delay: calc(var(--i, 0) * 70ms + 120ms);
}

@keyframes aqc-rise {
	from { opacity: 0; transform: translateY(14px); }
}

.aqc .aqc-cat-head {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.aqc .aqc-cat-expand {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	gap: 0.55rem;
	min-height: 44px;
	margin: -0.25rem 0;
	padding: 0;
	border: 0;
	background: none;
	font: inherit;
	color: var(--aqc-text);
	text-align: start;
	cursor: pointer;
}

.aqc .aqc-cat-title {
	font-size: 1rem;
	font-weight: 700;
}

.aqc .aqc-chevron {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	padding: 5px;
	border-radius: 999px;
	background: var(--aqc-surface);
	color: var(--aqc-link);
	transition: transform 0.45s var(--aqc-spring), background-color 0.2s var(--aqc-ease);
}

.aqc .aqc-cat-expand:hover .aqc-chevron {
	background: rgba(94, 200, 238, 0.18);
}

.aqc .aqc-cat-expand[aria-expanded="true"] .aqc-chevron {
	transform: rotate(180deg);
}

.aqc .aqc-badge {
	flex-shrink: 0;
	padding: 0.3rem 0.75rem;
	border-radius: 999px;
	background: var(--aqc-accent);
	color: var(--aqc-accent-ink);
	font-size: 0.78rem;
	font-weight: 700;
	white-space: nowrap;
}

.aqc .aqc-cat-desc {
	margin: 0.5rem 0 0;
	font-size: 0.88rem;
	color: var(--aqc-muted);
}

/* Height animation without measuring: the grid row goes 0fr → 1fr. */
.aqc .aqc-collapse {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.45s var(--aqc-ease);
}

.aqc .aqc-cat.is-open .aqc-collapse {
	grid-template-rows: 1fr;
}

.aqc .aqc-collapse-inner {
	min-height: 0;
	overflow: hidden;
}

.aqc .aqc-collapse-inner > * {
	margin-top: 0.9rem;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.3s var(--aqc-ease), transform 0.4s var(--aqc-ease);
}

.aqc .aqc-cat.is-open .aqc-collapse-inner > * {
	opacity: 1;
	transform: none;
	transition-delay: 0.1s;
}

.aqc .aqc-service {
	display: flex;
	align-items: flex-start;
	gap: 0.8rem;
	margin: 0;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--aqc-line);
	border-radius: 14px;
	background: var(--aqc-surface);
}

.aqc .aqc-service-icon {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	padding: 8px;
	border-radius: 10px;
	background: rgba(94, 200, 238, 0.14);
	color: var(--aqc-link);
}

.aqc .aqc-service-info {
	display: grid;
	flex: 1 1 auto;
	gap: 0.2rem;
	min-width: 0;
}

.aqc .aqc-service-name {
	font-weight: 700;
	font-size: 0.93rem;
}

.aqc .aqc-service-desc,
.aqc .aqc-service-meta,
.aqc .aqc-empty {
	margin: 0;
	font-size: 0.83rem;
	color: var(--aqc-muted);
}

.aqc .aqc-service .aqc-switch {
	margin-top: 4px;
}

.aqc-dialog-foot {
	display: grid;
	gap: 0.9rem;
	padding: 1rem 1.5rem 1.1rem;
	border-top: 1px solid var(--aqc-line);
	background: var(--aqc-surface);
}

.aqc-dialog-foot .aqc-actions .aqc-btn {
	flex: 1 1 100%;
}

@media (min-width: 560px) {
	.aqc-dialog-foot .aqc-actions .aqc-btn {
		flex: 1 1 auto;
	}
}

.aqc .aqc-powered {
	display: inline-flex;
	align-items: center;
	justify-self: center;
	gap: 0.4rem;
	min-height: 32px;
	padding: 0.2rem 0.7rem;
	border-radius: 999px;
	font-size: 0.78rem;
	color: var(--aqc-muted);
	text-decoration: none;
	transition: color 0.2s var(--aqc-ease), background-color 0.2s var(--aqc-ease);
}

.aqc .aqc-powered strong {
	font-weight: 700;
	color: var(--aqc-text);
}

.aqc .aqc-powered-logo {
	width: 16px;
	height: 16px;
	color: var(--aqc-brand);
	transition: transform 0.6s var(--aqc-spring);
}

.aqc .aqc-powered:hover {
	background: var(--aqc-surface-2);
	color: var(--aqc-text);
}

.aqc .aqc-powered:hover .aqc-powered-logo {
	transform: rotate(-12deg) scale(1.2);
}

.aqc .aqc-powered:focus-visible {
	border-radius: 999px;
}

@media (max-width: 559px) {
	.aqc-dialog {
		width: 100vw;
		max-height: calc(100dvh - 24px);
		margin: auto 0 0;
	}

	.aqc-dialog-panel {
		border-radius: var(--aqc-radius-lg) var(--aqc-radius-lg) 0 0;
		border-bottom: 0;
	}

	.aqc-dialog-head {
		grid-template-columns: 1fr auto;
		padding: 1.25rem 1.1rem 1rem;
	}

	.aqc-dialog-icon {
		display: none;
	}

	.aqc-dialog-body,
	.aqc-dialog-foot {
		padding-inline: 1.1rem;
	}

	/* Bottom sheet on phones: slide up from the edge. */
	.aqc-dialog[open] {
		animation-name: aqc-sheet-in;
	}

	.aqc-dialog.is-closing {
		animation-name: aqc-sheet-out;
	}

	@keyframes aqc-sheet-in {
		from { transform: translateY(100%); }
	}

	@keyframes aqc-sheet-out {
		to { transform: translateY(100%); }
	}
}

/* ------------------------------------------------------------------ */
/* Reopen button                                                       */
/* ------------------------------------------------------------------ */

.aqc-fab {
	--aqc-fab-from: 20px; /* where the entrance animation comes from */
	position: fixed;
	z-index: 99980;
	display: inline-flex;
	align-items: center;
	height: 52px;
	padding: 8px;
	overflow: hidden;
	border: 1px solid var(--aqc-line);
	border-radius: 999px;
	background: var(--aqc-surface);
	box-shadow: var(--aqc-shadow);
	font: inherit;
	color: var(--aqc-text);
	cursor: pointer;
	animation: aqc-fab-in 0.6s var(--aqc-spring) 0.2s backwards;
	transition: box-shadow 0.3s var(--aqc-ease), transform 0.35s var(--aqc-spring);
}

.aqc-fab > .aqc-icon {
	flex-shrink: 0;
	width: 34px;
	height: 34px;
	transition: transform 0.6s var(--aqc-spring);
}

/* Label is always in the accessibility tree; it only unfolds visually. */
.aqc-fab-label {
	max-width: 0;
	overflow: hidden;
	font-size: 0.85rem;
	font-weight: 650;
	white-space: nowrap;
	opacity: 0;
	transition: max-width 0.45s var(--aqc-ease), opacity 0.3s var(--aqc-ease), padding 0.45s var(--aqc-ease);
}

.aqc-fab:hover,
.aqc-fab:focus-visible {
	transform: translateY(-2px);
}

.aqc-fab:hover > .aqc-icon,
.aqc-fab:focus-visible > .aqc-icon {
	transform: rotate(-24deg);
}

.aqc-fab:hover .aqc-fab-label,
.aqc-fab:focus-visible .aqc-fab-label {
	max-width: 14rem;
	padding-inline: 0.5rem 0.6rem;
	opacity: 1;
}

.aqc-fab:focus-visible {
	outline: 3px solid var(--aqc-focus);
	outline-offset: 3px;
}

.aqc-fab.is-leaving {
	animation: aqc-fab-out 0.3s var(--aqc-ease) forwards;
}

@keyframes aqc-fab-in {
	from { opacity: 0; transform: translateY(var(--aqc-fab-from)) scale(0.6) rotate(-40deg); }
}

@keyframes aqc-fab-out {
	to { opacity: 0; transform: translateY(var(--aqc-fab-from)) scale(0.6); }
}

/* Position — chosen on Réglages → ArtequeCookies. Physical left/right on
   purpose: the admin picks a side of the screen, not of the text. */
.aqc-fab--top-left,
.aqc-fab--top-right {
	--aqc-fab-from: -20px;
	top: 16px;
}

.admin-bar .aqc-fab--top-left,
.admin-bar .aqc-fab--top-right {
	top: 48px;
}

.aqc-fab--middle-left,
.aqc-fab--middle-right {
	--aqc-fab-from: 0px;
	top: calc(50% - 26px);
}

.aqc-fab--bottom-left,
.aqc-fab--bottom-right {
	bottom: 16px;
}

.aqc-fab--top-left,
.aqc-fab--middle-left,
.aqc-fab--bottom-left {
	left: 16px;
}

/* On the right, the icon stays against the edge and the label unfolds inward. */
.aqc-fab--top-right,
.aqc-fab--middle-right,
.aqc-fab--bottom-right {
	right: 16px;
	flex-direction: row-reverse;
}

.aqc-fab--top-right:hover > .aqc-icon,
.aqc-fab--middle-right:hover > .aqc-icon,
.aqc-fab--bottom-right:hover > .aqc-icon,
.aqc-fab--top-right:focus-visible > .aqc-icon,
.aqc-fab--middle-right:focus-visible > .aqc-icon,
.aqc-fab--bottom-right:focus-visible > .aqc-icon {
	transform: rotate(24deg);
}

.aqc-fab--top-right:hover .aqc-fab-label,
.aqc-fab--middle-right:hover .aqc-fab-label,
.aqc-fab--bottom-right:hover .aqc-fab-label,
.aqc-fab--top-right:focus-visible .aqc-fab-label,
.aqc-fab--middle-right:focus-visible .aqc-fab-label,
.aqc-fab--bottom-right:focus-visible .aqc-fab-label {
	padding-inline: 0.6rem 0.5rem;
}

/* ------------------------------------------------------------------ */
/* Embed placeholder                                                   */
/* ------------------------------------------------------------------ */

.aqc-placeholder {
	position: relative;
	display: grid;
	place-items: center;
	min-height: 260px;
	padding: 1.5rem;
	overflow: hidden;
	border: 1px solid var(--aqc-line);
	border-radius: var(--aqc-radius);
	background-color: var(--aqc-surface-2);
	/* Faint circuit-board grid. */
	background-image:
		radial-gradient(circle at 1px 1px, var(--aqc-line-strong) 1px, transparent 1.5px),
		radial-gradient(120% 90% at 50% 0%, var(--aqc-glow-1), transparent 60%);
	background-size: 22px 22px, 100% 100%;
	text-align: center;
	animation: aqc-fade-in 0.5s var(--aqc-ease);
}

/* Scanning line sweeping across while the content is blocked. */
.aqc-placeholder::before {
	content: "";
	position: absolute;
	inset-inline: 0;
	top: -30%;
	height: 30%;
	pointer-events: none;
	background: linear-gradient(to bottom, transparent, rgba(94, 200, 238, 0.14), transparent);
	animation: aqc-scan 5s linear infinite;
}

@keyframes aqc-scan {
	to { transform: translateY(440%); }
}

.aqc-placeholder.is-leaving {
	animation: aqc-ph-out 0.4s var(--aqc-ease) forwards;
}

@keyframes aqc-ph-out {
	to { opacity: 0; transform: scale(0.97); filter: blur(4px); }
}

.aqc .aqc-ph-inner {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 0.55rem;
	max-width: 30rem;
}

.aqc .aqc-ph-icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	margin-bottom: 0.25rem;
	padding: 12px;
	border-radius: 16px;
	background: var(--aqc-surface);
	color: var(--aqc-link);
	box-shadow: 0 8px 24px -12px rgba(5, 131, 179, 0.6);
	animation: aqc-float 4s ease-in-out infinite;
}

@keyframes aqc-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-5px); }
}

.aqc .aqc-ph-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--aqc-text);
}

.aqc .aqc-ph-text {
	margin: 0;
	font-size: 0.85rem;
	color: var(--aqc-muted);
}

.aqc .aqc-ph-text + .aqc-btn {
	margin-top: 0.5rem;
}

.aqc .aqc-ph-settings {
	margin-top: 0.15rem;
	font-size: 0.82rem;
	min-height: 32px;
}

/* An embed that just got consent fades in where the placeholder was. */
.aqc-embed-in {
	animation: aqc-embed-in 0.6s var(--aqc-ease);
}

@keyframes aqc-embed-in {
	from { opacity: 0; transform: scale(0.985); }
}

/* ------------------------------------------------------------------ */
/* Reduced motion: no movement, no blur — state changes are instant.   */
/* ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
	.aqc,
	.aqc *,
	.aqc *::before,
	.aqc *::after,
	.aqc-dialog::backdrop,
	.aqc-embed-in {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	.aqc-banner,
	.aqc-banner.is-leaving {
		filter: none;
		transform: none;
	}

	.aqc-placeholder::before,
	.aqc-banner-glow {
		display: none;
	}
}
