/* === Общие стили для всех модальных окон === */

/* Затемнение фона */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

/* Модальное окно */
.modal-content {
	background-color: white;
	padding: 50px;
	border-radius: 10px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
	max-width: 90%;
	position: relative;
	transform: scale(0.9);
	transition: transform 0.3s ease;
}

/* Крестик закрытия */
.close-button {
	position: absolute;
	top: 30px;
	right: 25px;
	font-size: 24px;
	cursor: pointer;
	color: #aaa;
	transition: color 0.3s ease;
}

.close-button:hover {
	color: #333;
}

/* Класс для блокировки скролла */
.no-scroll {
	overflow: hidden;
}

/* Анимация открытия */
.modal-overlay.active {
	display: flex;
	opacity: 1;
}

.modal-overlay.active .modal-content {
	transform: scale(1);
}

/* Заголовок */
.modal-title {
	font-size: 36px;
	line-height:120%;
	margin-bottom: 20px;
	text-align: left;
	font-weight: 600;
	color: #212121;
}

.category-item input[type="checkbox"] {
    display: none; /* прячем стандартный чекбокс */
}

.category-item label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

/* по умолчанию показываем unchecked, скрываем checked */
.category-item .checkbox-icon.checked {
    display: none;
}

.category-item .checkbox-icon.unchecked {
    display: inline-block;
}

/* если чекбокс отмечен — меняем видимость картинок */
.category-item input[type="checkbox"]:checked + label .checkbox-icon.checked {
    display: inline-block;
}

.category-item input[type="checkbox"]:checked + label .checkbox-icon.unchecked {
    display: none;
}

/* немного отступа */
.category-item .checkbox-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}
