.ia-seo-tabs {
    margin: 0 0 20px;
}

.ia-seo-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 8px;
}

.ia-seo-tabs__item,
.ia-seo-tags__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ia-seo-text, #21201f) !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.ia-seo-tabs__item:hover,
.ia-seo-tags__item:hover,
.ia-seo-tabs__item:hover .ia-seo-tabs__label,
.ia-seo-tags__item:hover .ia-seo-tabs__label {
    background: var(--ia-seo-primary-soft, #f3f4f6);
    color: var(--ia-seo-text, #21201f) !important;
    border-color: var(--ia-seo-primary-muted, #9ca3af);
}

.ia-seo-tabs__item.is-active,
.ia-seo-tags__item.is-active,
.ia-seo-tabs__item.is-active .ia-seo-tabs__label,
.ia-seo-tags__item.is-active .ia-seo-tabs__label {
    background: var(--ia-seo-primary, #13475d);
    border-color: var(--ia-seo-primary, #13475d);
    color: #ffffff !important;
    font-weight: 600;
}

.ia-seo-tabs__label {
    color: inherit !important;
}

.ia-seo-tabs__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e85d4c;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.ia-seo-tabs__item.is-active .ia-seo-tabs__badge {
    background: rgba(255, 255, 255, 0.25);
}

.ia-seo-tabs[data-section="mebel_dlya_vannykh_komnat"] + .row .psk151 {
    display: none !important;
}

.ia-seo-tags__title {
    display: none;
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--ia-seo-text, #21201f);
}

.ia-seo-tags {
    display: none;
    gap: 8px;
    overflow-x: auto;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.ia-seo-tags::-webkit-scrollbar {
    display: none;
}

.ia-seo-tags__item {
    flex: 0 0 auto;
    font-size: 13px;
    padding: 7px 12px;
}

/* KSS / тёмные темы: глобальный a{color:#fff} не должен ломать табы */
.ns-bitrix.c-catalog .ia-seo-tabs__item,
.ns-bitrix.c-catalog .ia-seo-tags__item,
.ns-bitrix.c-catalog .ia-seo-tabs__item .ia-seo-tabs__label,
.ns-bitrix.c-catalog .ia-seo-tags__item .ia-seo-tabs__label {
    color: var(--ia-seo-text, #21201f) !important;
}

.ns-bitrix.c-catalog .ia-seo-tabs__item.is-active,
.ns-bitrix.c-catalog .ia-seo-tags__item.is-active,
.ns-bitrix.c-catalog .ia-seo-tabs__item.is-active .ia-seo-tabs__label,
.ns-bitrix.c-catalog .ia-seo-tags__item.is-active .ia-seo-tabs__label {
    color: #ffffff !important;
    background: var(--ia-seo-primary, #13475d) !important;
    border-color: var(--ia-seo-primary, #13475d) !important;
}

@media (max-width: 767px) {
    .ia-seo-tabs__list {
        display: none;
    }

    .ia-seo-tags__title {
        display: block;
    }

    .ia-seo-tags--mobile {
        display: flex;
        padding: 0 0 8px;
    }
}

.ia-seo-quickfilters {
    margin: 12px 0 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ia-seo-quickfilters__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--ia-seo-text, #21201f);
}
.ia-seo-quickfilters__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ia-seo-quickfilters__items--ranges {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
}
.ia-seo-quickfilters__items--ranges::-webkit-scrollbar {
    display: none;
}
.ia-seo-quickfilters__item,
.ia-seo-quickfilters__item--range {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    background: #fff;
    color: var(--ia-seo-text, #21201f) !important;
    text-decoration: none !important;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}
.ia-seo-quickfilters__item:hover,
.ia-seo-quickfilters__item--range:hover {
    background: var(--ia-seo-primary-soft, #f3f4f6);
    border-color: var(--ia-seo-primary-muted, #9ca3af);
}
.ia-seo-quickfilters__item.is-active,
.ia-seo-quickfilters__item--range.is-active {
    background: var(--ia-seo-primary, #13475d);
    border-color: var(--ia-seo-primary, #13475d);
    color: #fff !important;
}