/* Accessibility & Cookie Consent – cookie banner. Uses px units so page text scaling does not resize it. */

.aacc-ui,
.aacc-ui *,
.aacc-ui *::before,
.aacc-ui *::after {
	box-sizing: border-box;
	letter-spacing: normal;
	word-spacing: normal;
	text-transform: none;
	text-shadow: none;
}
.aacc-ui[hidden],
.aacc-ui [hidden] { display: none !important; }

.aacc-banner {
	position: fixed;
	z-index: 2147483500;
	bottom: 24px;
	left: 50%;
	width: min(760px, calc(100vw - 32px));
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	transform: translateX(-50%);
	padding: 20px 24px 18px;
	border-radius: 14px;
	background: var(--aacc-bg, #fff);
	color: var(--aacc-text, #1d2327);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .28);
	font: 400 14px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	text-align: left;
	animation: aacc-banner-in .25s ease-out;
}
.aacc-banner--box-left { left: 24px; transform: none; width: min(460px, calc(100vw - 32px)); }
.aacc-banner--box-right { left: auto; right: 24px; transform: none; width: min(460px, calc(100vw - 32px)); }
.aacc-banner--bar {
	left: 0;
	right: 0;
	bottom: 0;
	width: auto;
	transform: none;
	border-radius: 0;
	padding-left: max(24px, calc((100vw - 1140px) / 2));
	padding-right: max(56px, calc((100vw - 1140px) / 2));
}
@keyframes aacc-banner-in {
	from { opacity: 0; translate: 0 16px; }
	to { opacity: 1; translate: 0 0; }
}

.aacc-banner .aacc-banner__title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 32px 8px 0;
	padding: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: inherit;
}
.aacc-banner .aacc-banner__title:focus { outline: none; }
.aacc-banner .aacc-banner__title:focus-visible { outline: 3px solid var(--aacc-link, #1a56db); outline-offset: 4px; border-radius: 4px; }
.aacc-banner__icon { flex: 0 0 auto; }
.aacc-banner__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: inherit;
	cursor: pointer;
}
.aacc-banner__close:hover { background: rgba(0, 0, 0, .06); }

.aacc-banner .aacc-banner__text p {
	margin: 0;
	font: inherit;
	color: inherit;
}
.aacc-banner a {
	color: var(--aacc-link, #1a56db);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.aacc-banner__links { white-space: nowrap; }

.aacc-banner__prefs {
	display: grid;
	gap: 12px;
	margin-top: 14px;
	padding: 14px 16px;
	border-radius: 10px;
	background: rgba(0, 0, 0, .04);
}
.aacc-cat {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 10px;
}
.aacc-banner .aacc-cat input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--aacc-accent, #16181d);
	cursor: pointer;
}
.aacc-banner .aacc-cat input[disabled] { cursor: not-allowed; }
.aacc-banner .aacc-cat label {
	margin: 0;
	font: inherit;
	color: inherit;
	cursor: pointer;
}
.aacc-cat__badge { font-size: 12px; opacity: .75; }
.aacc-banner .aacc-cat__desc {
	grid-column: 2;
	margin: 2px 0 0;
	font-size: 13px;
	line-height: 1.45;
	opacity: .8;
}

.aacc-banner__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 10px 14px;
	margin-top: 16px;
}
.aacc-banner .aacc-btn {
	margin: 0;
	min-height: 40px;
	padding: 9px 20px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 999px;
	cursor: pointer;
}
.aacc-banner .aacc-btn--solid {
	border: 2px solid var(--aacc-accent, #16181d);
	background: var(--aacc-accent, #16181d);
	color: var(--aacc-accent-text, #fff);
}
.aacc-banner .aacc-btn--solid:hover { filter: brightness(1.25); }
.aacc-banner .aacc-btn--link {
	padding-left: 6px;
	padding-right: 6px;
	border: 0;
	background: transparent;
	color: var(--aacc-link, #1a56db);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.aacc-banner :focus-visible,
.aacc-prefs-btn:focus-visible {
	outline: 3px solid var(--aacc-link, #1a56db) !important;
	outline-offset: 2px !important;
}

/* Floating button to reopen the choices. */
.aacc-prefs-btn {
	position: fixed;
	z-index: 2147483400;
	bottom: 24px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, .12);
	border-radius: 50%;
	background: var(--aacc-bg, #fff);
	color: var(--aacc-text, #1d2327);
	box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
	cursor: pointer;
}
.aacc-prefs-btn--left { right: auto; left: 30px; }
.aacc-prefs-btn--right { right: 30px; }
.aacc-prefs-btn--stacked { bottom: calc(24px + 56px + 12px); }

@media (max-width: 600px) {
	.aacc-banner,
	.aacc-banner--box-left,
	.aacc-banner--box-right {
		left: 8px;
		right: 8px;
		bottom: 8px;
		width: auto;
		transform: none;
		padding: 16px 16px 14px;
		max-height: calc(100dvh - 16px);
	}
	.aacc-banner--bar { left: 0; right: 0; bottom: 0; }
	.aacc-banner__actions { justify-content: stretch; }
	.aacc-banner .aacc-btn--solid { flex: 1 1 0; }
	.aacc-banner .aacc-btn--link,
	.aacc-banner .aacc-btn[data-aacc-action="save"] { flex: 1 1 100%; order: 3; }
	.aacc-prefs-btn { bottom: 16px; right: 18px; }
	.aacc-prefs-btn--left { left: 18px; }
	.aacc-prefs-btn--stacked { bottom: calc(16px + 48px + 10px); }
}

/* Follow the accessibility panel's dark mode and contrast. */
html.aacc-dark .aacc-banner,
html.aacc-dark .aacc-prefs-btn { background: #1c1d21; color: #f0f0f0; }
html.aacc-dark .aacc-banner a,
html.aacc-dark .aacc-banner .aacc-btn--link { color: #9cc3ff; }
html.aacc-dark .aacc-banner .aacc-btn--solid { background: #f0f0f0; border-color: #f0f0f0; color: #111; }
html.aacc-dark .aacc-banner__prefs { background: rgba(255, 255, 255, .06); }
html.aacc-contrast .aacc-banner { border: 2px solid currentColor; }

@media (prefers-reduced-motion: reduce) {
	.aacc-banner { animation: none; }
}
html.aacc-anim .aacc-banner { animation: none; }
