.idm-a11y {
	position: relative;
	z-index: 9999;
}

.idm-a11y-toggle {
	display: inline-block;
	margin: 0;
	padding: 8px 14px;
	font-size: 14px;
	background: #1a2b4c;
	color: #fff;
	border: 1px solid #1a2b4c;
	cursor: pointer;
}

.idm-a11y-toggle:focus-visible {
	outline: 3px solid #f8b400;
	outline-offset: 2px;
}

.idm-a11y-panel {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: #fff;
	border: 2px solid #1a2b4c;
	padding: 12px;
}

.idm-a11y-panel fieldset {
	border: none;
	margin: 0 0 10px;
	padding: 0;
}

.idm-a11y-panel legend {
	font-weight: bold;
	margin-bottom: 4px;
}

.idm-a11y-panel button {
	margin: 2px;
	padding: 6px 10px;
	cursor: pointer;
}

.idm-a11y-panel button:focus-visible {
	outline: 3px solid #f8b400;
	outline-offset: 2px;
}

.idm-a11y-panel button[aria-pressed="true"] {
	background: #1a2b4c;
	color: #fff;
	border-color: #1a2b4c;
}

.idm-a11y-notice {
	position: fixed;
	bottom: 16px;
	left: 16px;
	z-index: 9997;
	background: #c0392b;
	color: #fff;
	padding: 10px 16px;
	border-radius: 4px;
	font-size: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.idm-a11y-notice[hidden] {
	display: none;
}

.idm-a11y-notice-restore {
	margin-left: 8px;
	background: #fff;
	color: #c0392b;
	border: none;
	padding: 4px 10px;
	border-radius: 3px;
	font-weight: bold;
	cursor: pointer;
}

/* Размер шрифта */
html[data-idm-font="a-plus"] body { font-size: 112%; }
html[data-idm-font="a-plus-plus"] body { font-size: 125%; }

/* Цветовые схемы — переопределяем все элементы, а не только body,
   иначе блоки с собственным фоном (шапка, кнопки, карточки) не меняются
   и переключение выглядит нерабочим. */
html[data-idm-scheme="bw"] * { background-color: #fff !important; color: #000 !important; border-color: #000 !important; }
html[data-idm-scheme="bw"] a { color: #000 !important; text-decoration: underline !important; }

html[data-idm-scheme="wb"] * { background-color: #000 !important; color: #fff !important; border-color: #555 !important; }
html[data-idm-scheme="wb"] a { color: #ffd700 !important; }
html[data-idm-scheme="wb"] .wp-block-button__link { background-color: #ffd700 !important; color: #000 !important; }

html[data-idm-scheme="blue"] * { background-color: #d7ebf5 !important; color: #003366 !important; border-color: #003366 !important; }
html[data-idm-scheme="blue"] a { color: #00264d !important; }
html[data-idm-scheme="blue"] .wp-block-button__link { background-color: #003366 !important; color: #d7ebf5 !important; }

html[data-idm-scheme] .idm-hero__slide,
html[data-idm-scheme] .idm-quali-card {
	background-color: transparent !important;
}

/* Эти элементы и так спроектированы с высоким контрастом — не трогаем. */
html[data-idm-scheme] .idm-hero__arrow,
html[data-idm-scheme] .idm-hero__dot {
	background-color: #f8f9fa !important;
	color: #1a2b4c !important;
}

/* Скрытие изображений */
html[data-idm-images="hidden"] img { display: none !important; }
