/* Only the new brand tree: legacy .cat styles assume two levels and tint
   every descendant of an active row. Keep each deeper row independent. */
.brand_search[data-ad-customer-tree="v05"] .cat {
    margin-left: 0;
    padding-left: 0;
}
.brand_search[data-ad-customer-tree="v05"] .cat ul {
    margin: 0;
    padding: 0 0 0 12px;
}
.brand_search[data-ad-customer-tree="v05"] .cat li {
    margin: 0;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
}
.brand_search[data-ad-customer-tree="v05"] .cat li > .subcat-title {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 9px 10px;
    border: 1px solid #dbdbdb;
    border-top: 0;
    color: #222;
    background: #fff;
    font: inherit;
    font-size: 16px;
    line-height: 1.35;
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}
.brand_search[data-ad-customer-tree="v05"] .cat li > .brand-category-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.brand_search[data-ad-customer-tree="v05"] .cat li > a.subcat-title {
    display: block;
    background: #efefef;
}
.brand_search[data-ad-customer-tree="v05"] .cat li.active > .brand-category-toggle {
    color: #fff;
    border-color: #a12222;
    background: #a12222;
}
.brand_search[data-ad-customer-tree="v05"] .cat li.active > a.subcat-title {
    color: #a12222;
    background: #e2e2e2;
}
.brand_search[data-ad-customer-tree="v05"] .brand-category-label {
    color: inherit !important;
}
.brand_search[data-ad-customer-tree="v05"] .cat li.active > .brand-category-toggle .brand-category-icon::after {
    display: none;
}
.brand_search[data-ad-customer-tree="v05"] .ad-catalog-related-label {
    padding: 10px 10px 4px;
    color: #555;
}
body.mobile .brand_search[data-ad-customer-tree="v05"] .cat li > .subcat-title {
    min-height: 44px;
}
