.catalog-category-view .xbau-category-tree,
.catalog-category-view .xbau-category-tree * {
    box-sizing: border-box;
}
.catalog-category-view .xbau-category-tree__level {
    margin: 0;
    padding: 0;
    list-style: none;
}
.catalog-category-view .xbau-category-tree__level .xbau-category-tree__level {
    margin-left: 20px;
    padding-left: 8px;
    border-left: 2px solid rgba(30, 153, 164, 0.14);
}
.catalog-category-view .xbau-category-tree details[open] > .xbau-category-tree__level {
    margin-top: 8px;
    margin-bottom: 12px;
}
.catalog-category-view .xbau-category-tree__branch {
    margin: 6px 0;
}
.catalog-category-view .xbau-category-tree__summary {
    position: relative;
    min-height: 46px;
    cursor: pointer;
    list-style: none;
}
.catalog-category-view .xbau-category-tree__control {
    display: grid;
    min-height: 46px;
    align-items: center;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease,
        box-shadow 180ms ease;
}
.catalog-category-view .xbau-category-tree__summary .xbau-category-tree__control {
    padding-right: 36px;
}
.catalog-category-view .xbau-category-tree__checkbox {
    width: 24px;
    height: 24px;
    margin: 0;
    align-self: center;
    transform: none;
    cursor: pointer;
    accent-color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__summary::-webkit-details-marker {
    display: none;
}
.catalog-category-view .xbau-category-tree__summary::after {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 8px;
    height: 8px;
    border-right: 2px solid #4D4D4F;
    border-bottom: 2px solid #4D4D4F;
    content: '';
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
    transition: border-color 180ms ease, transform 180ms ease;
}
.catalog-category-view .xbau-category-tree details[open] > .xbau-category-tree__summary::after {
    transform: translateY(-30%) rotate(225deg);
}
.catalog-category-view .xbau-category-tree__link {
    display: flex;
    min-width: 0;
    min-height: 30px;
    align-items: center;
    padding: 3px 0;
    color: #4D4D4F;
    line-height: 1.35;
    overflow-wrap: anywhere;
}
.catalog-category-view .xbau-category-tree__selected {
    margin: 0 0 18px;
    padding: 14px;
    border: 1px solid rgba(30, 153, 164, 0.24);
    border-radius: 14px;
    background: linear-gradient(135deg, #f7fcfc 0%, #edf8f9 100%);
    box-shadow: 0 8px 22px rgba(77, 77, 79, 0.06);
}
.catalog-category-view .xbau-category-tree__selected-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #4D4D4F;
}
.catalog-category-view .xbau-category-tree__selected-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}
.catalog-category-view .xbau-category-tree__selected-count {
    display: inline-grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #1E99A4;
    color: #fff;
    font-size: 13px;
    line-height: 1;
}
.catalog-category-view .xbau-category-tree__clear {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 9px;
    color: #1E99A4;
    font-weight: 600;
    transition: background-color 180ms ease, color 180ms ease;
}
.catalog-category-view .xbau-category-tree__clear:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.10);
    color: #157b84;
    outline: none;
}
.catalog-category-view .xbau-category-tree__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
.catalog-category-view .xbau-category-tree__chip {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 6px 7px 6px 12px;
    border: 1px solid #1E99A4;
    border-radius: 999px;
    background: #fff;
    color: #157b84;
    box-shadow: 0 3px 10px rgba(77, 77, 79, 0.06);
    line-height: 1.2;
    transition: border-color 180ms ease, box-shadow 180ms ease, color 180ms ease,
        transform 180ms ease;
}
.catalog-category-view .xbau-category-tree__chip:is(:hover, :focus-visible) {
    border-color: #157b84;
    background: #fff;
    color: #0f6269;
    box-shadow: 0 5px 14px rgba(30, 153, 164, 0.18);
    outline: none;
    transform: translateY(-1px);
}
.catalog-category-view .xbau-category-tree__chip-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.catalog-category-view .xbau-category-tree__chip-remove {
    display: inline-grid;
    width: 24px;
    min-width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: rgba(30, 153, 164, 0.12);
    color: #157b84;
    font-size: 18px;
    line-height: 1;
    transition: background-color 180ms ease, color 180ms ease;
}
.catalog-category-view .xbau-category-tree__chip:is(:hover, :focus-visible)
    .xbau-category-tree__chip-remove {
    background: #1E99A4;
    color: #fff;
}
.catalog-category-view .xbau-category-tree__level--0 > .xbau-category-tree__branch > details >
    .xbau-category-tree__summary .xbau-category-tree__link,
.catalog-category-view .xbau-category-tree__level--0 > .xbau-category-tree__branch >
    .xbau-category-tree__control > .xbau-category-tree__link {
    font-weight: 600;
}
.catalog-category-view .xbau-category-tree__link:hover,
.catalog-category-view .xbau-category-tree__link:focus-visible,
.catalog-category-view .xbau-category-tree__link[aria-current='page'] {
    color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__control:is(:hover, :focus-within) {
    background: rgba(30, 153, 164, 0.08);
    border-color: rgba(30, 153, 164, 0.16);
}
.catalog-category-view .xbau-category-tree__control:is(:hover, :focus-within) .xbau-category-tree__link {
    color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__branch.is-active > .xbau-category-tree__control,
.catalog-category-view .xbau-category-tree__branch.is-active > details > .xbau-category-tree__summary
    .xbau-category-tree__control {
    border-color: rgba(30, 153, 164, 0.22);
    background: rgba(30, 153, 164, 0.10);
}
.catalog-category-view .xbau-category-tree__summary:is(:hover, :focus-visible)::after {
    border-color: #1E99A4;
}
.catalog-category-view .xbau-category-tree__checkbox:focus-visible {
    outline: 2px solid #1E99A4;
    outline-offset: 3px;
}
.catalog-category-view .xbau-category-tree__link:focus-visible,
.catalog-category-view .xbau-category-tree__summary:focus-visible {
    outline: 2px solid #1E99A4;
    outline-offset: -2px;
}

/* Keep the native ElasticSuite Brand facet visually aligned with the root
   category selector.  The renderer can provide either .filter-search or a
   search-type input depending on the deployed ElasticSuite patch level. */
.catalog-category-view .filter-options-content
    :is(input.filter-search, .field.search input.input-text, input[type='search']) {
    width: 100%;
    height: 44px;
    margin: 4px 0 14px;
    padding: 0 14px;
    border: 1px solid rgba(77, 77, 79, 0.24);
    border-radius: 12px;
    background: #fff;
    color: #4D4D4F;
    box-shadow: none;
    font-size: 13px;
    line-height: 1.4;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}
.catalog-category-view .filter-options-content .field.search {
    margin: 4px 0 14px;
}
.catalog-category-view .filter-options-content .field.search
    :is(input.filter-search, input.input-text, input[type='search']) {
    margin: 0;
}
.catalog-category-view .filter-options-content
    :is(input.filter-search, .field.search input.input-text, input[type='search']):is(:hover, :focus) {
    border-color: #1E99A4;
    box-shadow: 0 0 0 3px rgba(30, 153, 164, 0.12);
    outline: none;
}
.catalog-category-view .filter-options-content
    :is(input.filter-search, .field.search input.input-text, input[type='search']) + .items,
.catalog-category-view .filter-options-content .field.search + .items {
    margin-top: 12px;
}
.catalog-category-view .filter-options-content .items > li {
    margin: 2px 0 4px;
}
.catalog-category-view .filter-options-content .items > li > a {
    min-height: 46px;
    align-items: center;
    gap: 12px;
    padding: 7px 10px;
    border-radius: 10px;
    transition: background-color 180ms ease, color 180ms ease;
}
.catalog-category-view .filter-options-content .items > li > a:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.08);
}
.catalog-category-view .filter-options-content .items > li > a input[type='checkbox'] {
    width: 24px;
    min-width: 24px;
    height: 24px;
    margin: 0;
    transform: none;
}
.catalog-category-view .filter-options-content .items > li > a label {
    min-width: 0;
    margin: 0;
    line-height: 1.35;
}
@media (max-width: 767px) {
    .catalog-category-view .xbau-category-tree__summary,
    .catalog-category-view .xbau-category-tree__control {
        min-height: 48px;
    }
    .catalog-category-view .xbau-category-tree__level .xbau-category-tree__level {
        margin-left: 14px;
        padding-left: 6px;
    }
    .catalog-category-view .xbau-category-tree__selected-heading {
        align-items: flex-start;
    }
    .catalog-category-view .xbau-category-tree__chip {
        width: 100%;
        justify-content: space-between;
    }
}
@media (prefers-reduced-motion: reduce) {
    .catalog-category-view .xbau-category-tree__control,
    .catalog-category-view .xbau-category-tree__summary::after,
    .catalog-category-view .xbau-category-tree__clear,
    .catalog-category-view .xbau-category-tree__chip,
    .catalog-category-view .xbau-category-tree__chip-remove {
        transition: none;
    }
    .catalog-category-view .xbau-category-tree__chip:is(:hover, :focus-visible) {
        transform: none;
    }
}
