#ga-access[hidden], #ga-panel[hidden], #ga-access button[hidden] { display: none !important; }

#ga-access {
	position: fixed;
	z-index: 99999;
	inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
	pointer-events: none;
	font: 16px/1.5 Arial, sans-serif;
	color: #171717;
	text-align: left;
}

.ga-access-tabs, .ga-access-preview {
	--ga-size: var(--ga-d-size, 48px);
	--ga-icon: var(--ga-d-icon, 26px);
	--ga-shadow: var(--ga-d-shadow, 7px);
	--ga-gap: var(--ga-d-gap, 10px);
	--ga-percent: var(--ga-d-percent, 50%);
	--ga-distance: var(--ga-d-distance, 24px);
	--ga-stack-height: calc(var(--ga-size) + var(--ga-shadow));
	--ga-top: var(--ga-percent);
	--ga-shift: calc(-1 * var(--ga-percent));
	--ga-left: auto;
	--ga-right: 0px;
	--ga-from-edge: 1;
}

.ga-access-consent, .ga-access-preview-consent {
	--ga-stack-height: calc(2 * (var(--ga-size) + var(--ga-shadow)) + var(--ga-gap));
}

.ga-access-tabs.ga-access-desktop-left, .ga-access-preview.ga-access-desktop-left {
	--ga-left: 0px;
	--ga-right: auto;
	--ga-from-edge: -1;
}

[data-ga-desktop-position="top"] {
	--ga-top: clamp(0px, var(--ga-distance), 100% - var(--ga-stack-height));
	--ga-shift: 0%;
}
[data-ga-desktop-position="bottom"] {
	--ga-top: clamp(var(--ga-stack-height), calc(100% - var(--ga-distance)), 100%);
	--ga-shift: -100%;
}

.ga-access-stack {
	position: absolute;
	display: flex;
	flex-direction: column;
	pointer-events: none;
}

.ga-access-tabs .ga-access-stack, .ga-access-preview .ga-access-stack {
	top: var(--ga-top);
	right: var(--ga-right);
	left: var(--ga-left);
	gap: calc(var(--ga-gap) + var(--ga-shadow));
	padding-block-end: var(--ga-shadow);
	transform: translateY(var(--ga-shift));
}

.ga-access-preview.ga-access-reverse .ga-access-stack { flex-direction: column-reverse; }

.ga-access-tab {
	position: relative;
	box-sizing: border-box;
	display: grid;
	place-items: center;
	width: var(--ga-size, 48px);
	height: var(--ga-size, 48px);
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	background: var(--ga-color, #56319b);
	color: var(--ga-icon-color, #fff);
	cursor: pointer;
	pointer-events: auto;
	appearance: none;
}

#ga-access button.ga-access-tab:hover, #ga-access button.ga-access-tab:focus {
	background: var(--ga-color, #56319b);
	color: var(--ga-icon-color, #fff);
	box-shadow: none;
}

.ga-access-tab svg { display: block; width: var(--ga-icon, 26px); height: var(--ga-icon, 26px); }
.ga-access-tab::after {
	content: "";
	position: absolute;
	inset: 100% 0 auto;
	height: var(--ga-shadow, 7px);
	background: var(--ga-shadow-color, #33205d);
	clip-path: polygon(0 0, 100% 0, 100% 100%);
	transform: scaleX(var(--ga-from-edge, 1));
	pointer-events: none;
}

#ga-access button.ga-access-tab:focus-visible {
	outline: 2px solid var(--ga-icon-color, #fff);
	outline-offset: -4px;
}

.ga-access-tooltip {
	position: absolute;
	inset: 50% calc(100% + .5rem) auto auto;
	transform: translateY(-50%);
	max-width: min(14rem, 70vw);
	width: max-content;
	padding: .3rem .45rem;
	background: #171717;
	color: #fff;
	font: 400 .85rem/1.25 Arial, sans-serif;
	visibility: hidden;
	pointer-events: none;
}

.ga-access-tab:hover .ga-access-tooltip, .ga-access-tab:focus-visible .ga-access-tooltip { visibility: visible; }
.ga-access-desktop-left .ga-access-tooltip, .ga-access-round.ga-left .ga-access-tooltip { right: auto; left: calc(100% + .5rem); }

.ga-access-round .ga-access-stack {
	bottom: var(--ga-bottom, 24px);
	right: min(var(--ga-offset, 24px), calc(100vw - 64px));
}
.ga-access-round.ga-left .ga-access-stack { right: auto; left: min(var(--ga-offset, 24px), calc(100vw - 64px)); }
.ga-access-round .ga-access-tab { --ga-size: 56px; --ga-icon: 30px; border-radius: 50%; border: 2px solid #fff; }
.ga-access-round .ga-access-tab::after { display: none; }

#ga-panel {
	position: absolute;
	top: 50%;
	right: calc(var(--ga-size, 48px) + 12px);
	transform: translateY(-50%);
	width: min(340px, calc(100vw - var(--ga-size, 48px) - 24px));
	max-height: calc(100% - 32px);
	overflow: auto;
	box-sizing: border-box;
	padding: 16px;
	background: #fff;
	color: #171717;
	border: 2px solid #555;
	border-radius: 12px;
	pointer-events: auto;
}

.ga-access-desktop-left #ga-panel {
	right: auto;
	left: calc(var(--ga-size, 48px) + 12px);
}

.ga-access-round #ga-panel { top: auto; right: var(--ga-offset, 24px); bottom: calc(var(--ga-bottom, 24px) + 68px); transform: none; max-height: calc(100% - var(--ga-bottom, 24px) - 82px); }
.ga-access-round.ga-left #ga-panel { right: auto; left: var(--ga-offset, 24px); }

#ga-panel button {
	min-height: 44px;
	padding: 8px;
	border: 2px solid #555;
	border-radius: 6px;
	background: #fff;
	color: #171717;
	font: inherit;
	cursor: pointer;
}

#ga-panel button:focus-visible, #ga-panel a:focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
#ga-panel h2 { font: 700 20px/1.3 Arial, sans-serif; margin: 0; color: inherit; }
#ga-panel p { font: 16px/1.5 Arial, sans-serif; margin: 8px 0; color: inherit; }
#ga-panel a { color: #004d99; text-decoration: underline; }
.ga-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ga-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
#ga-panel button[aria-pressed="true"] { background: #202020; color: #fff; border-color: #202020; }
#ga-reset { width: 100%; }

.ga-access-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
}

#cmplz-manage-consent.ga-access-native-replaced { display: none !important; }
#cmplz-manage-consent button.ga-access-native-fallback:not(.cmplz-hidden):not(.cmplz-dismissed) {
	display: block !important;
	bottom: env(safe-area-inset-bottom, 0px) !important;
	animation: none !important;
}
body:has(.cmplz-cookiebanner.cmplz-show:not(.cmplz-hidden)) #ga-access,
body:has(.wp-lightbox-overlay.active) #ga-access,
body:has(dialog[open], [role="dialog"][aria-modal="true"]:not([hidden]):not([aria-hidden="true"]):not(.cmplz-cookiebanner)) #ga-access { visibility: hidden; }

@media (max-width: 767px) {
	#ga-access.ga-access-tabs {
		--ga-size: var(--ga-m-size, 48px);
		--ga-icon: var(--ga-m-icon, 26px);
		--ga-shadow: var(--ga-m-shadow, 7px);
		--ga-gap: var(--ga-m-gap, 10px);
		--ga-percent: var(--ga-m-percent, 50%);
		--ga-distance: var(--ga-m-distance, 24px);
		--ga-top: var(--ga-percent);
		--ga-shift: calc(-1 * var(--ga-percent));
		--ga-left: auto;
		--ga-right: 0px;
		--ga-from-edge: 1;
	}

	#ga-access.ga-access-tabs.ga-access-mobile-left { --ga-left: 0px; --ga-right: auto; --ga-from-edge: -1; }
	#ga-access.ga-access-tabs[data-ga-mobile-position="top"] { --ga-top: clamp(0px, var(--ga-distance), 100% - var(--ga-stack-height)); --ga-shift: 0%; }
	#ga-access.ga-access-tabs[data-ga-mobile-position="bottom"] { --ga-top: clamp(var(--ga-stack-height), calc(100% - var(--ga-distance)), 100%); --ga-shift: -100%; }

	.ga-access-tabs .ga-access-tooltip { right: calc(100% + .5rem); left: auto; }
	.ga-access-tabs.ga-access-mobile-left .ga-access-tooltip { right: auto; left: calc(100% + .5rem); }

	#ga-access.ga-access-tabs #ga-panel {
		top: 50%;
		right: max(8px, env(safe-area-inset-right, 0px));
		left: max(8px, env(safe-area-inset-left, 0px));
		width: auto;
	}
	#ga-access.ga-access-tabs .ga-access-stack:has(#ga-open[aria-expanded="true"]) { visibility: hidden; }

	#ga-access.ga-access-round #ga-panel { right: 8px; left: 8px; width: auto; }
}

@media (max-width: 330px) {
	.ga-controls { grid-template-columns: 1fr; }
}

/* Retain presentation classes used by existing installations. */
/* Text scaling is applied to computed font sizes by access.js. */
.ga-a-font body :is(p, li, h1, h2, h3, h4, h5, h6, a, button, label, input, textarea):not(#ga-access *) { font-family: Arial, sans-serif !important; }
.ga-a-spacing body :is(p, li, h1, h2, h3, h4, h5, h6, a, label):not(#ga-access *) { line-height: 1.6 !important; letter-spacing: .12em !important; word-spacing: .16em !important; }
.ga-a-links body a:not(#ga-access *) { text-decoration: underline !important; }
html.ga-a-focus body :is(:focus, :focus-visible):not(#ga-access):not(#ga-access *) { outline: 3px solid #ff9500 !important; outline-offset: 3px !important; box-shadow: 0 0 0 3px #111, 0 0 0 6px #fff !important; }
.ga-a-motion *, .ga-a-motion *::before, .ga-a-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
.ga-a-contrast body, .ga-a-contrast body :is(main, header, footer, nav, section, article, div, p, h1, h2, h3, h4, h5, h6, li, span, label, button, input, textarea, a):not(#ga-access):not(#ga-access *) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; }
.ga-a-contrast body a:not(#ga-access *) { color: #ffeb3b !important; text-decoration: underline !important; }

.ga-access-previews { display: flex; flex-wrap: wrap; gap: 1rem; }
.ga-access-preview { position: relative; width: min(320px, 75vw); height: 270px; overflow: hidden; background: #e9e8ef; border: 1px solid #909097; }
.ga-access-preview[data-ga-preview="mobile"] { width: min(210px, 65vw); }
.ga-access-preview .ga-access-stack { top: var(--ga-top); left: var(--ga-left); right: var(--ga-right); }
.ga-access-preview .ga-access-tab { pointer-events: none; cursor: default; }
.ga-access-preview:not(.ga-access-preview-consent) .ga-access-preview-cookie,
.ga-access-preview.ga-access-round .ga-access-preview-cookie { display: none; }
.ga-access-preview.ga-access-round .ga-access-stack { top: auto; left: var(--ga-left); right: var(--ga-right); transform: none; }

@media (prefers-reduced-motion: reduce) {
	#ga-access *, #ga-access *::after, #ga-access *::before { animation: none !important; transition: none !important; }
}
