.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__label {
    min-width: 0;
    overflow-wrap: anywhere;
}
.catalog-category-view .xbau-category-tree__result-count {
    flex: 0 0 auto;
    margin-left: auto;
    padding-left: 8px;
    color: #9C9EA1;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.catalog-category-view .xbau-category-tree__control:is(:hover, :focus-within)
    .xbau-category-tree__result-count,
.catalog-category-view .xbau-category-tree__branch.is-active
    .xbau-category-tree__result-count {
    color: #1E99A4;
}
.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__checkbox:disabled,
.catalog-category-view .xbau-category-tree__link.is-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.catalog-category-view .xbau-category-tree__control.is-disabled {
    background: transparent;
    border-color: transparent;
}
.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;
    }
}

/* Unified Xbau layered-navigation system for category and search result pages. */
:is(.catalog-category-view, .catalogsearch-result-index) .block.filter {
    color: #4D4D4F;
}
:is(.catalog-category-view, .catalogsearch-result-index) .block.filter .filter-content {
    border: 1px solid rgba(156, 158, 161, 0.22);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(77, 77, 79, 0.055);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current {
    gap: 8px;
    padding: 14px 14px 4px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .items > .item {
    position: relative;
    display: flex;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 36px 6px 11px;
    border: 1px solid rgba(30, 153, 164, 0.28);
    border-radius: 999px;
    background: #f7fcfc;
    color: #4D4D4F;
    line-height: 1.25;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .action.remove {
    position: absolute;
    top: 50%;
    right: 7px;
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    transform: translateY(-50%);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-current .action.remove:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.13);
    outline: 2px solid transparent;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-actions {
    display: flex;
    justify-content: flex-end;
    padding: 4px 14px 12px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .block-actions .action.clear {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 9px;
    color: #1E99A4;
    font-size: 13px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .block-actions .action.clear:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.09);
    color: #157b84;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options {
    padding: 0 12px 10px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item {
    border-bottom: 1px solid rgba(156, 158, 161, 0.20);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item:last-child {
    border-bottom: 0;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title,
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
    min-height: 50px;
    align-items: center;
    margin: 0;
    padding: 13px 12px !important;
    border: 0;
    border-radius: 10px;
    color: #4D4D4F;
    font-size: 14px;
    line-height: 1.35;
    transition: background-color 160ms ease, color 160ms ease;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title:is(:hover, :focus-visible),
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
    background: rgba(30, 153, 164, 0.075);
    color: #1E99A4;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title:focus-visible {
    box-shadow: inset 0 0 0 2px #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-content {
    padding: 2px 8px 14px;
    border-bottom: 0;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items {
    max-height: min(48vh, 430px);
    margin: 0;
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(30, 153, 164, 0.55) transparent;
    scrollbar-width: thin;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items::-webkit-scrollbar,
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree::-webkit-scrollbar {
    width: 6px;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items::-webkit-scrollbar-thumb,
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(30, 153, 164, 0.48);
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li {
    margin: 3px 0;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a {
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 9px;
    color: #4D4D4F;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a:is(:hover, :focus-visible) {
    background: rgba(30, 153, 164, 0.075);
    color: #1E99A4;
    outline: none;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a .count {
    margin-left: auto;
    padding-left: 8px;
    color: #9C9EA1;
    font-size: 12px;
    font-weight: 500;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a:is(:hover, :focus-visible) .count {
    color: #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a input[type='checkbox'] {
    width: 22px;
    min-width: 22px;
    height: 22px;
    margin: 0;
    accent-color: #1E99A4;
}
:is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a label {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}
:is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree {
    max-height: min(58vh, 560px);
    padding-right: 4px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: rgba(30, 153, 164, 0.55) transparent;
    scrollbar-width: thin;
}
:is(.catalog-category-view, .catalogsearch-result-index) .category-list-view.is-updating {
    min-height: 360px;
    opacity: 0.58;
    pointer-events: none;
    transition: opacity 140ms ease;
}
:is(.catalog-category-view, .catalogsearch-result-index) #layered-filter-block.is-updating {
    opacity: 0.72;
    pointer-events: none;
    transition: opacity 140ms ease;
}
.xbau-filter-status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}
:is(.catalog-category-view, .catalogsearch-result-index) .mobile-toggle-filters {
    width: 100%;
    min-height: 50px;
    gap: 10px;
    border-color: rgba(30, 153, 164, 0.32);
    background: #fff;
    box-shadow: 0 5px 16px rgba(77, 77, 79, 0.055);
    color: #4D4D4F;
}
:is(.catalog-category-view, .catalogsearch-result-index) .mobile-toggle-filters:is(:hover, :focus-visible) {
    border-color: #1E99A4;
    background: #f7fcfc;
    outline: none;
}
.xbau-filter-toggle__count,
.xbau-filter-panel__count {
    display: inline-grid;
    min-width: 24px;
    height: 24px;
    place-items: center;
    padding: 0 7px;
    border-radius: 999px;
    background: #1E99A4;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}
.xbau-filter-toggle__count {
    margin-left: auto;
}
.xbau-filter-panel__count {
    margin-left: 8px;
}

@media (max-width: 767px) {
    body.xbau-filter-drawer-open {
        overflow: hidden;
        overscroll-behavior: none;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-toggle-content-container.filter-content-active {
        inset: 0;
        z-index: 10000;
        padding: 0 !important;
        overflow: hidden !important;
        background: #fff;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-toggle-content-container.filter-content-active .block-content.filter-content {
        position: fixed;
        inset: 0;
        display: block;
        padding: 0 16px 28px;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .filter-toggle-content-container.filter-content-active .mobile-menu-default-title {
        position: sticky;
        top: 0;
        z-index: 3;
        display: flex;
        min-height: 68px;
        align-items: center;
        margin: 0 -16px 12px !important;
        padding: max(8px, env(safe-area-inset-top)) 16px 8px;
        border-bottom: 1px solid rgba(156, 158, 161, 0.22);
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .mobile-menu-default-title .close-filters {
        display: inline-grid;
        width: 44px;
        min-width: 44px;
        height: 44px;
        place-items: center;
        margin: 0;
        padding: 0;
        border: 1px solid rgba(156, 158, 161, 0.24);
        border-radius: 12px;
        background: #fff;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .mobile-menu-default-title .close-filters:is(:hover, :focus-visible) {
        border-color: #1E99A4;
        background: #f7fcfc;
        outline: none;
    }
    :is(.catalog-category-view, .catalogsearch-result-index)
        .mobile-menu-default-title .title {
        height: auto !important;
        margin-left: 12px;
        color: #4D4D4F;
        font-size: 18px;
        font-weight: 700;
        line-height: 1.25 !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-current {
        padding-right: 0;
        padding-left: 0;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-actions {
        position: sticky;
        top: 68px;
        z-index: 2;
        margin: 0 -16px 8px;
        padding: 8px 16px;
        border-bottom: 1px solid rgba(156, 158, 161, 0.16);
        background: #fff;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options {
        padding-right: 0;
        padding-left: 0;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content > .items,
    :is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree {
        max-height: none;
        overflow: visible;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title,
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
        min-height: 54px;
        font-size: 15px;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-content .items > li > a {
        min-height: 48px;
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    :is(.catalog-category-view, .catalogsearch-result-index) .block.filter .filter-content {
        border-radius: 14px;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options {
        padding-right: 8px;
        padding-left: 8px;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item .filter-options-title,
    :is(.catalog-category-view, .catalogsearch-result-index) .filter-options-item.active .filter-options-title {
        padding-right: 9px !important;
        padding-left: 9px !important;
    }
    :is(.catalog-category-view, .catalogsearch-result-index) .xbau-category-tree__level .xbau-category-tree__level {
        margin-left: 12px;
        padding-left: 5px;
    }
}
