/* Основные стили фильтров */
.offers-description-filter {
    margin: 20px 0;
    font-family: Arial, sans-serif;
}

.offers-description-filter__title {
    font-weight: bold;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-size: 13px;
    color: #333;
}

.offers-description-filter__row {
    margin-bottom: 20px;
}

.offers-description-filter__label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 12px;
    color: #333;
}

.offers-description-filter__field {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Базовые стили кнопок */
.offers-description-filter-control {
    display: inline-flex;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin: 0;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    box-sizing: border-box;
}

.offers-description-filter-control__switcher-inner {
    padding: 8px 14px;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.offers-description-filter-control:hover {
    border-color: #ccc;
    background-color: #f5f5f5;
}

/* Активная кнопка */
.ytszxgb45,
.offers-description-filter-control.active {
    background-color: #7573f6 !important;
    border-color: #7573f6 !important;
}

.ytszxgb45 .offers-description-filter-control__switcher-inner,
.offers-description-filter-control.active .offers-description-filter-control__switcher-inner {
    background-color: transparent !important;
    color: #fff !important;
}

/* Недоступные варианты */
.sort0,
.nonstockpr {
    position: relative;
    background: transparent !important;
    border: none !important;
}

.sort0 .offers-description-filter-control__switcher-inner,
.nonstockpr .offers-description-filter-control__switcher-inner {
    border: 1px dashed #999 !important;
    background-color: #f9f9f9 !important;
    color: #999 !important;
}

.sort0:hover .offers-description-filter-control__switcher-inner,
.nonstockpr:hover .offers-description-filter-control__switcher-inner {
    border-color: #777 !important;
    color: #777 !important;
    background-color: #f0f0f0 !important;
}

/* Для длинных текстов */
.long-text-option {
    flex: 1 1 auto;
}

.long-text-option .offers-description-filter-control__switcher-inner {
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    padding: 6px 8px;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .offers-description-filter__field {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 8px;
    }
    
    .offers-description-filter-control {
        width: 100%;
    }
    
    .offers-description-filter-control__switcher-inner {
        white-space: normal;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding: 6px 8px;
    }
    
    .long-text-option .offers-description-filter-control__switcher-inner {
        -webkit-line-clamp: 3;
    }
}