#rtk-a11y-widget {
	--rtk-a11y-primary: #2271b1;
	--rtk-a11y-size: 56px;

	position: fixed;
	z-index: 999997;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#rtk-a11y-widget.rtk-a11y-pos-bottom-right { bottom: 20px; right: 20px; }
#rtk-a11y-widget.rtk-a11y-pos-bottom-left  { bottom: 20px; left: 20px; }
#rtk-a11y-widget.rtk-a11y-pos-top-right    { top: 20px; right: 20px; }
#rtk-a11y-widget.rtk-a11y-pos-top-left     { top: 20px; left: 20px; }

#rtk-a11y-toggle {
	box-sizing: border-box;
	width: var(--rtk-a11y-size);
	height: var(--rtk-a11y-size);
	min-width: var(--rtk-a11y-size);
	min-height: var(--rtk-a11y-size);
	flex-shrink: 0;
	border-radius: 50%;
	background: var(--rtk-a11y-primary);
	color: #fff;
	border: none;
	padding: 0;
	margin: 0;
	line-height: 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
#rtk-a11y-toggle .rtk-a11y-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}
#rtk-a11y-toggle .rtk-a11y-icon svg {
	display: block;
	width: calc(var(--rtk-a11y-size) * 0.5);
	height: calc(var(--rtk-a11y-size) * 0.5);
	flex-shrink: 0;
}
#rtk-a11y-toggle:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 2px;
}

/* Small tab that reappears after "Hide" is used */
.rtk-a11y-restore-tab {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--rtk-a11y-primary);
	color: #fff;
	border: 2px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	align-items: center;
	justify-content: center;
	opacity: 0.85;
	display: none;
}
.rtk-a11y-restore-tab svg { width: 20px; height: 20px; }
.rtk-a11y-pos-bottom-right .rtk-a11y-restore-tab { bottom: 20px; right: 20px; }
.rtk-a11y-pos-bottom-left .rtk-a11y-restore-tab  { bottom: 20px; left: 20px; }
.rtk-a11y-pos-top-right .rtk-a11y-restore-tab    { top: 20px; right: 20px; }
.rtk-a11y-pos-top-left .rtk-a11y-restore-tab     { top: 20px; left: 20px; }

/* ------------------------------------------------------------------
 * Panel
 * ------------------------------------------------------------------ */
#rtk-a11y-panel {
	position: absolute;
	bottom: calc(var(--rtk-a11y-size) + 12px);
	width: 340px;
	max-width: calc(100vw - 32px);
	max-height: min(640px, calc(100vh - 100px));
	overflow-y: auto;
	background: #f3f4fb;
	color: #1d2327;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
	padding-bottom: 8px;
}
.rtk-a11y-pos-bottom-right #rtk-a11y-panel,
.rtk-a11y-pos-top-right #rtk-a11y-panel { right: 0; }
.rtk-a11y-pos-bottom-left #rtk-a11y-panel,
.rtk-a11y-pos-top-left #rtk-a11y-panel { left: 0; }
.rtk-a11y-pos-top-right #rtk-a11y-panel,
.rtk-a11y-pos-top-left #rtk-a11y-panel {
	bottom: auto;
	top: calc(var(--rtk-a11y-size) + 12px);
}

.rtk-a11y-header {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 16px 18px;
	background: var(--rtk-a11y-primary);
	background: linear-gradient(135deg, var(--rtk-a11y-primary), color-mix(in srgb, var(--rtk-a11y-primary) 60%, #1b1464));
	color: #fff;
	border-radius: 14px 14px 0 0;
}
.rtk-a11y-header-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.rtk-a11y-header-icon svg { width: 20px; height: 20px; }
.rtk-a11y-header-title {
	font-size: 17px;
	font-weight: 600;
	flex: 1 1 auto;
}
.rtk-a11y-header-controls {
	display: flex;
	gap: 4px;
}
.rtk-a11y-header-controls button {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: transparent;
	border: none;
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0.85;
}
.rtk-a11y-header-controls button:hover {
	background: rgba(255, 255, 255, 0.15);
	opacity: 1;
}
.rtk-a11y-header-controls svg { width: 16px; height: 16px; }

.rtk-a11y-body {
	padding: 12px 14px 4px;
}

.rtk-a11y-section {
	background: #fff;
	border-radius: 12px;
	padding: 14px;
	margin-bottom: 12px;
}
.rtk-a11y-section h3 {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #666;
	margin: 0 0 10px;
	font-weight: 600;
}

.rtk-a11y-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.rtk-a11y-tile {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 10px;
	background: #f0f1f5;
	border: 2px solid transparent;
	border-radius: 10px;
	cursor: pointer;
	text-align: start;
	font-size: 12.5px;
	color: #1d2327;
	transition: background 0.15s ease, border-color 0.15s ease;
}
.rtk-a11y-tile:hover {
	background: #e7e9f2;
}
.rtk-a11y-tile.is-active {
	background: #eef4fb;
	background: color-mix(in srgb, var(--rtk-a11y-primary) 12%, #fff);
	border-color: var(--rtk-a11y-primary);
}
.rtk-a11y-tile-icon {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}
.rtk-a11y-tile.is-active .rtk-a11y-tile-icon {
	background: var(--rtk-a11y-primary);
	color: #fff;
}
.rtk-a11y-tile-icon svg { width: 16px; height: 16px; }
.rtk-a11y-tile-label {
	font-weight: 500;
	line-height: 1.25;
}

.rtk-a11y-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px 14px;
	font-size: 11.5px;
}
.rtk-a11y-footer a {
	color: var(--rtk-a11y-primary);
	text-decoration: none;
	font-weight: 600;
}
.rtk-a11y-footer a:hover { text-decoration: underline; }
.rtk-a11y-branding {
	opacity: 0.55;
}

@media (max-width: 480px) {
	#rtk-a11y-widget { --rtk-a11y-size: 48px; }
	#rtk-a11y-panel { width: calc(100vw - 24px); }
}

/* ------------------------------------------------------------------
 * Effect classes, applied to <html> by accessibility-widget.js
 * ------------------------------------------------------------------ */

html.rtk-a11y-fs-1 { font-size: 110% !important; }
html.rtk-a11y-fs-2 { font-size: 125% !important; }
html.rtk-a11y-fs-3 { font-size: 145% !important; }

html.rtk-a11y-line-height body,
html.rtk-a11y-line-height body * { line-height: 2 !important; }

html.rtk-a11y-text-align body,
html.rtk-a11y-text-align body * {
	text-align: left !important;
	word-spacing: 0.12em !important;
}
html.rtk-a11y-text-align[dir="rtl"] body,
html.rtk-a11y-text-align[dir="rtl"] body * {
	text-align: right !important;
}

html.rtk-a11y-readable-font body,
html.rtk-a11y-readable-font body * {
	font-family: Arial, Helvetica, sans-serif !important;
	letter-spacing: 0.02em !important;
}

html.rtk-a11y-contrast-dark body,
html.rtk-a11y-contrast-dark body * {
	background-color: #000 !important;
	color: #fff !important;
	border-color: #555 !important;
}
html.rtk-a11y-contrast-light body,
html.rtk-a11y-contrast-light body * {
	background-color: #fff !important;
	color: #000 !important;
	border-color: #ccc !important;
}

html.rtk-a11y-grayscale body { filter: grayscale(1); }

html.rtk-a11y-hide-images img,
html.rtk-a11y-hide-images svg,
html.rtk-a11y-hide-images picture,
html.rtk-a11y-hide-images video {
	visibility: hidden !important;
}

html.rtk-a11y-pause-animations *,
html.rtk-a11y-pause-animations *::before,
html.rtk-a11y-pause-animations *::after {
	animation-play-state: paused !important;
	transition: none !important;
}

html.rtk-a11y-highlight-links a {
	outline: 2px solid #ffcc00 !important;
	background-color: rgba(255, 204, 0, 0.25) !important;
	text-decoration: underline !important;
}

html.rtk-a11y-outline-focus *:focus {
	outline: 3px solid #ff5900 !important;
	outline-offset: 2px !important;
}

html.rtk-a11y-page-structure header,
html.rtk-a11y-page-structure nav,
html.rtk-a11y-page-structure main,
html.rtk-a11y-page-structure footer,
html.rtk-a11y-page-structure aside,
html.rtk-a11y-page-structure article,
html.rtk-a11y-page-structure section,
html.rtk-a11y-page-structure h1,
html.rtk-a11y-page-structure h2,
html.rtk-a11y-page-structure h3,
html.rtk-a11y-page-structure h4,
html.rtk-a11y-page-structure h5,
html.rtk-a11y-page-structure h6 {
	outline: 1px dashed #2271b1 !important;
	outline-offset: 2px !important;
}

#rtk-a11y-reading-mask-overlay {
	position: fixed;
	inset: 0;
	z-index: 999996;
	pointer-events: none;
	background: rgba(0, 0, 0, 0.6);
	-webkit-mask-image: linear-gradient(to bottom, transparent, transparent);
	mask-image: linear-gradient(to bottom, transparent, transparent);
}
