/* Стили для переключателя (чекбокс) 
.check-group {
	display: flex; 
	align-items: center; 
	margin-bottom: 20px; 
	justify-content: flex-start; 
}
*/



.check {
	display: none; /* Скрываем стандартный чекбокс */
}

.check-label {
	position: relative; 
	cursor: pointer; 
	color: var(--text-primary, #212529); 
	margin-left: 10px; 
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.check-label::before {
	content: ''; 
	display: inline-block; 
	width: 52px; 
	height: 26px; 
	background-color: var(--form-control-border, #ccc); /* Используем бордер как цвет фона переключателя */
	border-radius: 20px; 
	transition: background-color 0.3s ease; 
	flex-shrink: 0;
}

.check-label::after {
	content: ''; 
	position: absolute; 
	top: 50%;
	left: 3px;
	transform: translateY(-50%);
	width: 20px; 
	height: 20px; 
	background-color: var(--bg-secondary, #ffffff); /* Кнопка переключателя — контраст к фону */
	border-radius: 50%; 
	transition: transform 0.3s ease; 
}

/* Активное состояние (включено) */
.check:checked + .check-label::before {
	background-color: var(--btn-primary, #007BFF); /* Цвет фона — основной акцентный цвет */
}

.check:checked + .check-label::after {
	transform: translate(26px, -50%); /* Сдвиг кнопки переключателя */
}

/* Стили для заголовков с увеличенной специфичностью */
label.check-label.h0 {
    font-size: 3.5em !important; 
    font-weight: bold !important;
}
 
label.check-label.h1 {
    font-size: 2.5em !important;
    font-weight: bold !important;
}
label.check-label.h2 {
    font-size: 2em !important;
    font-weight: bold !important;
}
label.check-label.h3 {
    font-size: 1.75em !important;
    font-weight: bold !important;
}
label.check-label.h4 {
    font-size: 1.5em !important;
    font-weight: normal !important;
}
label.check-label.h5 {
    font-size: 1.25em !important;
    font-weight: normal !important;
}
label.check-label.h6 {
    font-size: 1em !important;
    font-weight: normal !important;
}

label.check-label.h7 {
    font-size: 0.875em !important;
    font-weight: normal !important;
}

label.check-label.h8 {
    font-size: 0.75em !important;
    font-weight: normal !important;
}

label.check-label.h9 {
    font-size: 0.625em !important;
    font-weight: normal !important;
}

/* Стили для обычных label (без класса check-label) */
label.h0:not(.check-label) {
    font-size: 3.5em; 
    font-weight: bold;
}
 
label.h1:not(.check-label) {
    font-size: 2.5em;
    font-weight: bold;
}
label.h2:not(.check-label) {
    font-size: 2em;
    font-weight: bold;
}
label.h3:not(.check-label) {
    font-size: 1.75em;
    font-weight: bold;
}
label.h4:not(.check-label) {
    font-size: 1.5em;
    font-weight: normal;
}
label.h5:not(.check-label) {
    font-size: 1.25em;
    font-weight: normal;
}
label.h6:not(.check-label) {
    font-size: 1em;
    font-weight: normal;
}

label.h7:not(.check-label) {
    font-size: 0.875em;
    font-weight: normal;
}

label.h8:not(.check-label) {
    font-size: 0.75em;
    font-weight: normal;
}

label.h9:not(.check-label) {
    font-size: 0.625em;
    font-weight: normal;
}


