


/* Заголовок фильтра */
.searchclass-filter-title {
    font-size: 16px;
    font-weight: bold;
}

/* Список опций */
.searchclass-filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Пункты списка */
.searchclass-filter-option {
    margin-bottom: 0px; /* Уменьшено расстояние между строками */
}

/* Ссылки */
.searchclass-filter-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #333;
    text-decoration: none; /* Убираем подчёркивание ссылки */
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Галочка */
.checkmark {
    margin-right: 8px;
    font-size: 16px;
    color: transparent; /* Галочка скрыта по умолчанию */
    transition: color 0.3s ease;
}

/* Активная ссылка */
.searchclass-filter-label.active {
    background-color: #e8f7f2; /* Фон активной ссылки */
    color: #25bfa0; /* Цвет текста активной ссылки */
}

.searchclass-filter-label.active .checkmark {
    color: #25bfa0; /* Цвет галочки активной ссылки */
}

/* Hover эффект */
.searchclass-filter-label:hover {
    background-color: #f0e68c; /* Цвет фона при наведении (хаки) */
    color: #8b4513; /* Цвет текста при наведении */
}

.searchclass-filter-label:hover .checkmark {
    color: #8b4513; /* Цвет галочки при наведении */
}

/* Уровень 1 (первая категория) */
.searchclass-filter-option.level-1 .searchclass-filter-label {
    font-weight: bold;
}

/* Уровень 2 (вторая категория) */
.searchclass-filter-option.level-2 .searchclass-filter-label {
    font-size: 13px;
    margin-left: 20px; /* Отступ для подкатегорий */
    font-weight: normal;
}

/* Уровень 3 (третья категория) */
.searchclass-filter-option.level-3 .searchclass-filter-label {
    font-size: 12px;
    margin-left: 40px; /* Больший отступ для третьего уровня */
    font-weight: normal;
}

/* Уровень 4 (четвертая категория) */
.searchclass-filter-option.level-4 .searchclass-filter-label {
    font-size: 11px;
    margin-left: 60px; /* Еще больший отступ для четвертого уровня */
    font-weight: normal;
}

/* Уровень 5 (пятая категория) */
.searchclass-filter-option.level-5 .searchclass-filter-label {
    font-size: 11px;
    margin-left: 80px; /* Максимальный отступ для пятого уровня */
    font-weight: normal;
}

/* Анимация разворачивания списка */
#filter-list-vse_categorii {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

#filter-list-vse_categorii.open {
    max-height: 100% !important;
}










/* Container */
.searchclass-container {
    max-width: 100%;
    margin-left: 0;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 3px 4px 6px rgba(0, 0, 0, 0.1);
}


@media (max-width: 479px) {
    .searchclass-container {
        width: 280px; /* Устанавливаем фиксированную ширину */
    }
}


@media (min-width: 361px) {
    .searchclass-container {
        width: 360px; /* Устанавливаем фиксированную ширину */
    }
}




/* Regular Filter Group Title */
.searchclass-filter-title,
.searchclass-slider-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

/* Accordion Title */
.searchclass-accordion-title::after {
    content: '+';
    float: right;
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.searchclass-accordion-title.active::after {
    content: '-';
}

/* Accordion Content */
.searchclass-accordion-content {
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
    max-height: 0; /* Закрыто по умолчанию */
}

.searchclass-accordion-content.open {
    max-height: 500px; /* Открыто */
    padding: 10px 0;
}

/* Regular Filter Options List */
.searchclass-filter-options {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Individual Filter Option */
.searchclass-filter-option {
    margin-bottom: 8px;
}

/* Label Styling */
.searchclass-filter-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #555;
}

/* Checkbox Styling */
.searchclass-filter-checkbox {
    margin-right: 10px;
    cursor: pointer;
}

/* Count Display */
.searchclass-filter-count {
    margin-left: auto;
    font-size: 12px;
    color: #888;
}

/* Slider Group */
.searchclass-slider-group {
    margin-top: 20px;
}

/* Slider Container */
.searchclass-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Min and Max Values */
.searchclass-slider-min,
.searchclass-slider-max {
    font-size: 12px;
    color: #888;
    margin: 0 10px;
}

/* Slider Buttons */
.searchclass-slider-btn {
    width: 24px;
    height: 24px;
    background: #ccc; /* Серый фон */
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
}

.searchclass-slider-btn:hover {
    background: #aaa; /* Темнее при наведении */
}

/* Slider Wrapper */
.searchclass-slider-wrapper {
    position: relative;
    flex-grow: 1;
}

/* Slider Styling */
.searchclass-slider {
    width: 100%;
    height: 8px;
    background: #ddd;
    outline: none;
    border-radius: 5px;
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    z-index: 1;
}

.searchclass-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-6px); /* Центрируем кружок по вертикали */
}

.searchclass-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #007bff;
    border-radius: 50%;
    cursor: pointer;
    transform: translateY(-6px); /* Центрируем кружок по вертикали */
}

/* Current Value Display */
.searchclass-slider-current-value {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    text-align: center;
    white-space: nowrap;
}

/* Reset Button */
.searchclass-reset-filters {
    text-align: center;
    margin-top: 20px;
}

.searchclass-reset-button {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
cursor: pointer;}

.searchclass-reset-button:hover {
    background-color: green;}



/* Кнопка "Еще фильтры" */
.searchclass-show-more-filters {
    text-align: center;
    margin-top: 15px;
}

.searchclass-show-more-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.searchclass-show-more-button:hover {
    background-color: #0056b3;
}

/* Скрытые фильтры */
.searchclass-hidden-filter {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .searchclass-container {
        padding: 15px;
    }

    .searchclass-filter-title,
    .searchclass-slider-title {
        font-size: 16px;
    }

    .searchclass-filter-label {
        font-size: 13px;
    }

    /* Скрываем фильтры с менее чем 4 опциями */
    .searchclass-hide-on-mobile {
        display: none;
    }
}

@media (min-width: 769px) {
    /* Отменяем скрытие фильтров на десктопе */
    .searchclass-hidden-filter {
        display: block !important;
    }

    /* Кнопка "Еще фильтры" скрыта на десктопе */
    .searchclass-show-more-filters {
        display: none;
    }
}


/* Стили для контейнера формы поиска */
.searchclass-filter-search {
    margin-bottom: 10px; /* Отступ снизу для разделения от списка фильтров */
}

/* Стили для поля ввода поиска */
.searchclass-filter-search-input {
    width: 100%; /* Поле занимает всю доступную ширину */
    padding: 8px 12px; /* Внутренние отступы для текста */
    border: 1px solid #ccc; /* Граница серого цвета */
    border-radius: 20px; /* Закругленные углы */
    font-size: 14px; /* Размер шрифта */
    outline: none; /* Убираем стандартное выделение при фокусе */
    transition: border-color 0.3s ease; /* Плавное изменение цвета границы */
}

/* Изменение цвета границы при фокусе на поле ввода */
.searchclass-filter-search-input:focus {
    border-color: #007bff; /* Цвет границы при фокусе (синий) */
}



.color-circle {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin-right: 5px;
    border: 1px solid #ccc;
    margin-left: 10px; /* Расстояние между названием и кружочком */
}

.color-text {
    display: inline-block;
    margin-right: 5px;
    margin-left: 10px; /* Расстояние между названием и текстовым описанием */
}


/* Стили для контейнера */
        .error-container {
            display: flex;
            align-items: center;
            background-color: rgba(255, 0, 0, 0.2); /* Прозрачный красный фон */
            border: 2px solid rgba(255, 0, 0, 0.8); /* Красная рамка */
            border-radius: 8px; /* Закругленные углы */
            padding: 16px;
            max-width: 400px;
            margin: 20px auto;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Легкая тень */
        }

        /* Стили для восклицательного знака */
        .error-icon {
            font-size: 48px;
            color: rgba(255, 0, 0, 0.8);
            margin-right: 16px;
        }

        /* Общий стиль для параграфов */
        .error_text {
            margin: 0;
            line-height: 1.5;
        }

        /* Стиль для первого параграфа */
        .error_text:first-child {
            font-size: 16px;
            font-weight: bold;
            color: rgba(255, 0, 0, 0.9);
        }

        /* Стиль для второго параграфа */
        .error_text:last-child {
            font-size: 14px;
            color: rgba(0, 0, 0, 0.7);
        }

        /* Стиль для таймера */
        #countdown {
            font-weight: bold;
            color: rgba(255, 0, 0, 0.9);
        }


/* Стиль для внутренней рамки и анимации мигания */
.selected-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30%; /* Размер внутренней рамки */
    height: 30%; /* Размер внутренней рамки */
    background-color: red; /* Черная рамка */
    border-radius: 50%; /* Круглая форма */
    transform: translate(-50%, -50%); /* Центрирование */
    z-index: 1; /* Чтобы рамка была поверх фона */
    animation: pulse 1.5s infinite; /* Анимация мигания */
}

/* Анимация плавного мигания */
@keyframes pulse {
    0% {
        opacity: 1; /* Полностью видимый */
    }
    50% {
        opacity: 0.2; /* Почти прозрачный */
    }
    100% {
        opacity: 1; /* Полностью видимый */
    }
}

    /* Стили для контейнера */
    .filtr_color-container {
        border: 1px solid #ccc;
        padding: 10px; /* Отступы внутри контейнера */
        border-radius: 8px;
        width: 100%; /* Контейнер во всю ширину страницы */
        box-sizing: border-box; /* Учитываем padding в ширину */
        position: relative; /* Для позиционирования заголовка */
        text-align: center; /* Центрируем содержимое */
        background-color: #f9f9f9; /* Фон контейнера */
        margin-left: 0; /* Убираем отступ слева */
        transition: box-shadow 0.3s ease; /* Плавное изменение тени */
    }

    /* Заголовок "Выберите цвет" */
    .filtr_color-container h3 {
        position: absolute;
        bottom: -10px; /* Опускаем заголовок под рамку */
        left: 50%; /* Центрируем по горизонтали */
        transform: translateX(-50%); /* Корректируем центрирование */
        background: white; /* Фон заголовка совпадает с фоном страницы */
        padding: 0 10px; /* Добавляем отступы по бокам */
        margin: 0; /* Убираем стандартные отступы */
        font-size: 16px;
        color: #333;
        z-index: 1; /* Чтобы заголовок был поверх рамки */
        border-radius: 20px; /* Закругление фона заголовка */
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Легкая тень для аккуратного вида */
        transition: color 0.3s ease; /* Плавное изменение цвета текста */
    }

    /* Общий стиль для кружочков */
    .filtr_color-circle {
        display: inline-block;
        width: 25px; /* Размер кружочка до наведения */
        height: 25px; /* Размер кружочка до наведения */
        border-radius: 50%;
        margin: 5px;
        cursor: pointer;
        transition: transform 0.2s ease, border 0.3s ease; /* Плавное увеличение и изменение рамки */
        box-sizing: border-box; /* Учитываем border в размер */
        border: 2px solid transparent; /* Прозрачная рамка по умолчанию */
    }

    /* Эффект при наведении */
    .filtr_color-circle:hover {
        transform: scale(1.5); /* Увеличиваем кружочек при наведении */
        border: 3px solid; /* Жирная рамка */
        border-color: inherit; /* Цвет рамки совпадает с цветом кружка */
    }

    /* Медиа-запросы для контейнера */
    @media (max-width: 479px) {
        .contact__feedback--role--inner, .filtr_color-container {
            width: 300px; /* Устанавливаем фиксированную ширину */
        }
		.contact__feedback--role--inner a{font-size: 14px;}
		 #select_cat {display:none;}

		    .contact__title--inner {
        margin-top: 0rem;
    }
		
		
		
    }

    @media (min-width: 479px) and (max-width: 769px) {
        .contact__feedback--role--inner, .filtr_color-container {
            width: 360px; /* Устанавливаем фиксированную ширину */
        }
		.contact__feedback--role--inner a{font-size: 15px;}
		
		
		
		
    }

    @media (min-width: 770px) {
        .contact__feedback--role--inner, .filtr_color-container {
            width: 100%; /* Возвращаем ширину на 100% */
        }
    }
	
	

	/* Стили для vertical-container */
.vertical-container {
    position: relative; /* Обеспечивает корректное позиционирование floating-ad */
    max-height: 100%; /* Учитывает фиксированную высоту родителя */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Стили для floating-ad */
.floating-ad {
    display: none; /* По умолчанию скрыт */
    position: sticky; /* Прилипает при прокрутке */
    top: 0; /* Начальная позиция для sticky */
    align-self: flex-start; /* Выравнивание по левому краю */
    margin-top: 1rem; /* Отступ от searchclass-container */
    z-index: 10; /* Чтобы не перекрывал другие элементы */
    width: 360px; /* Ширина равна ширине контейнера */
    box-sizing: border-box; /* Учитывает padding и border в ширине */
}

/* Показываем floating-ad только на десктопе */
@media (min-width: 768px) {
    .floating-ad {
        display: block; /* Показываем блок на десктопе */
    }
}


