/* === Стили модалки категорий === */

.group-checkbox-dropdown {
	position: relative;
	width: 393px;
	font-size: 20px;
	line-height: 24px;

	font-weight: 400;
	font-family: 'Nunito-Regular';
	color: #212121D9;
}

.group-checkbox-dropdown-selected {
	padding: 0px 35px 0px 16px; /* отступ справа под иконку */
	border: 1px solid #909090;
	border-radius: 8px;
	height: 56px;
	cursor: pointer;
	background: #fff;
	display: flex;
	align-items: center;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

/* иконка визуально внутри блока */
.dropdown-icon {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none; /* чтобы не мешала клику по полю */
	transition: transform 0.3s ease;
}

/* поворот при открытии */
.group-checkbox-dropdown.open .dropdown-icon {
	transform: translateY(-50%) rotate(180deg);
}


/* Чекбоксы */
.category-list {
	display: flex;
	flex-direction: column;
	margin-bottom: 20px;
}

.category-item {
	font-family: 'Nunito-Regular';
	margin-bottom: 10px;
	font-size: 20px;
	line-height:120%;
	display: flex;
	align-items: center;
	font-weight:400;
}

.category-item input[type="checkbox"] {
	margin-right: 10px;
	transform: scale(1.2);
	cursor: pointer;
}

.category-item label {
	cursor: pointer;
}

/* Кнопки */
.modal-buttons {
	display: flex;
	justify-content: space-between;
}

.modal-buttons button {
	padding: 10px 20px;
	border: none;
	border-radius: 5px;
	font-size: 16px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.reset-button {
	background-color: #f44336;
	color: white;
}

.reset-button:hover {
	background-color: #d32f2f;
}

.save-button {
	background-color: #2196F3;
	color: white;
}

.save-button:hover {
	background-color: #1976D2;
}


/* === Адаптив модалки категорий === */
@media (max-width: 768px) {

  /* Вся модалка */
  .modal-categories .modal-content {
    width: 90%;
    max-width: none;
    padding: 20px;
    border-radius: 10px;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
  }

  .group-checkbox-dropdown {
    width: 100%;
    font-size: 16px;
    line-height: 20px;
  }

  .group-checkbox-dropdown-selected {
    padding: 0 30px 0 12px;
    height: 32px;
    font-size: 16px;
  }

  .dropdown-icon {
    right: 12px;
  }

  /* Чтобы длинные списки не ломали модалку */
  .category-list {
    margin-bottom: 15px;
    max-height: 50vh;
    overflow-y: auto;
  }

  .category-item {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .category-item input[type="checkbox"] {
    transform: scale(1);
    margin-right: 8px;
  }

  /* Кнопки вниз — красивым вертикальным блоком */
  .modal-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
  }

  .modal-buttons button {
    width: 100%;
    padding: 12px 0;
    font-size: 15px;
  }
}
