/* Közös offset – lábléc / EU-sáv ne legyen eltakarva */
:root {
	--osp-cookie-float: 9.5rem;
	--osp-a11y-float: calc(var(--osp-cookie-float) + 3.75rem);
}

/* Süti „vissza” gomb (CookieYes) – ugyanott, magasabban */
.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
	bottom: calc(var(--osp-cookie-float) + env(safe-area-inset-bottom, 0px)) !important;
	left: 12px !important;
}

/* Akadálymentességi eszköztár – kompakt sárga ikon, bal lent (lábléc felett) */
#osp-a11y-toolbar-root {
	position: fixed;
	left: 12px;
	bottom: calc(var(--osp-a11y-float) + env(safe-area-inset-bottom, 0px));
	z-index: 999998;
	display: flex;
	flex-direction: column-reverse;
	align-items: flex-start;
	gap: 10px;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-size: 16px;
	line-height: 1.4;
	pointer-events: none;
}

#osp-a11y-toolbar-root * {
	pointer-events: auto;
}

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

.osp-a11y-toolbar-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	width: 52px;
	height: 52px;
	min-height: 48px;
	min-width: 48px;
	background: #ffeb3b;
	color: #003d78;
	border: 2px solid #003d78;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
	cursor: pointer;
}

.osp-a11y-toolbar-toggle:hover {
	background: #fff176;
	box-shadow: 0 3px 14px rgba(0, 0, 0, 0.28);
}

.osp-a11y-toolbar-toggle:focus-visible {
	outline: 3px solid #003d78;
	outline-offset: 3px;
}

.osp-a11y-toolbar-toggle[aria-expanded='true'] {
	background: #003d78;
	color: #ffeb3b;
}

.osp-a11y-toolbar-icon {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
}

.osp-a11y-toolbar-panel {
	display: none;
	width: min(320px, calc(100vw - 48px));
	margin: 0;
	padding: 16px;
	background: #fff;
	color: #1a1a1a;
	border: 2px solid #003d78;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.osp-a11y-toolbar-panel.is-open {
	display: block;
}

.osp-a11y-toolbar-panel h2 {
	margin: 0 0 12px;
	font-size: 1.1rem;
	font-weight: 700;
}

.osp-a11y-toolbar-panel fieldset {
	border: 1px solid #d0d5d2;
	border-radius: 4px;
	margin: 0 0 12px;
	padding: 10px 12px 12px;
}

.osp-a11y-toolbar-panel legend {
	font-weight: 600;
	font-size: 0.9rem;
	padding: 0 4px;
}

.osp-a11y-toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.osp-a11y-toolbar-actions button {
	flex: 1 1 auto;
	min-height: 44px;
	min-width: 44px;
	padding: 8px 12px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	border: 2px solid #0056a7;
	background: #fff;
	color: #0056a7;
	border-radius: 4px;
}

.osp-a11y-toolbar-actions button:hover {
	background: #e8f4fc;
}

.osp-a11y-toolbar-actions button[aria-pressed='true'] {
	background: #0056a7;
	color: #fff;
}

.osp-a11y-toolbar-reset {
	width: 100%;
	margin-top: 4px;
	min-height: 44px;
	background: #424242;
	color: #fff;
	border: none;
	border-radius: 4px;
	font-weight: 600;
	cursor: pointer;
}

.osp-a11y-toolbar-reset:hover {
	background: #1a1a1a;
}

.osp-a11y-toolbar-note {
	margin: 12px 0 0;
	font-size: 0.8rem;
	color: #555;
}

.osp-a11y-toolbar-note a {
	color: #0056a7;
}

/* —— Megjelenítési módok (html osztályok) —— */

/*
 * Betűméret: a tartalomra (#page), nem az eszköztárra.
 * Elementor/Astra px-es méreteknél a html font-size nem skáláz – zoom igen.
 */
html.osp-a11y-font-lg #page {
	zoom: 1.1;
}

html.osp-a11y-font-xl #page {
	zoom: 1.2;
}

html.osp-a11y-font-xxl #page {
	zoom: 1.32;
}

@supports not (zoom: 1) {
	html.osp-a11y-font-lg #page {
		transform: scale(1.1);
		transform-origin: top center;
	}
	html.osp-a11y-font-xl #page {
		transform: scale(1.2);
		transform-origin: top center;
	}
	html.osp-a11y-font-xxl #page {
		transform: scale(1.32);
		transform-origin: top center;
	}
}

html.osp-a11y-contrast-high body {
	background: #000 !important;
	color: #fff !important;
}

html.osp-a11y-contrast-high body :where(
	#content,
	.site-content,
	.elementor,
	.site-footer,
	header,
	main,
	footer,
	article,
	section
) {
	background-color: #000 !important;
	color: #fff !important;
}

html.osp-a11y-contrast-high a:not(.osp-a11y-toolbar-root a) {
	color: #ffeb3b !important;
	text-decoration: underline !important;
	text-underline-offset: 3px;
}

html.osp-a11y-contrast-high button:not(.osp-a11y-toolbar-root button),
html.osp-a11y-contrast-high input,
html.osp-a11y-contrast-high select,
html.osp-a11y-contrast-high textarea {
	background: #fff !important;
	color: #000 !important;
	border: 2px solid #ffeb3b !important;
}

html.osp-a11y-links-underline a:not(.osp-a11y-toolbar-root a) {
	text-decoration: underline !important;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}

html.osp-a11y-links-highlight a:not(.osp-a11y-toolbar-root a) {
	background-color: #ffeb3b !important;
	color: #000 !important;
	text-decoration: underline !important;
	padding: 0 2px;
	box-decoration-break: clone;
}

html.osp-a11y-links-highlight.osp-a11y-contrast-high a:not(.osp-a11y-toolbar-root a) {
	background-color: #ffeb3b !important;
	color: #000 !important;
}

html.osp-a11y-readable body,
html.osp-a11y-readable p,
html.osp-a11y-readable li {
	line-height: 1.8 !important;
}

html.osp-a11y-readable p {
	max-width: 70ch;
}

/* Mobil: képernyő alja (ne takarja a tartalmat középen), süti alatt / felett */
@media (max-width: 782px) {
	:root {
		--osp-cookie-float: 1.1rem;
		--osp-a11y-float: calc(var(--osp-cookie-float) + 3.65rem);
	}

	.cky-btn-revisit-wrapper.cky-revisit-bottom-left {
		left: 10px !important;
	}

	#osp-a11y-toolbar-root {
		left: 10px;
	}
}

@media (max-width: 480px) {
	.osp-a11y-toolbar-panel {
		width: min(320px, calc(100vw - 32px));
	}
}

@media print {
	#osp-a11y-toolbar-root {
		display: none !important;
	}
}