.catalog-category-layout,
.catalog-category-layout * {
    box-sizing: border-box;
}

.catalog-category-content {
    min-width: 0;
}

.catalog-filters-controls {
    margin-bottom: 18px !important;
}

.catalog-facets-shell {
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
}

.catalog-facets,
.catalog-facets * {
    box-sizing: border-box;
}

.catalog-facets {
    background: #fff;
    /* border: 1px solid #dde1e8; */
    border-radius: 6px;
    color: #222840;
    padding: 14px;
    position: relative;    
}
.catalog-facets::after{
    content: "";
	position: absolute;
	width: 100%;
	height: 1px;
	background-color: #ebebec;

	left: 0;
	bottom: 0px;
}

.catalog-facets__header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

.catalog-facets__header strong {
    font-family: "Manrope", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.catalog-facets__result {
    color: #606475;
    font-size: 13px;
    margin: 2px 0 0;
}

.catalog-facets__close,
.catalog-facets-mobile-toggle,
.catalog-facets-overlay {
    display: none;
}

.catalog-facets__loading {
    align-items: flex-start;
    background: rgba(255, 255, 255, .92);
    display: flex;
    font-size: 13px;
    inset: 0;
    justify-content: center;
    padding-top: 72px;
    position: absolute;
    z-index: 4;
}

.catalog-facets__loading[hidden] {
    display: none;
}

.catalog-facets__groups {
    display: block;
}

.catalog-facets__additional-title {
    border-top: 1px solid #dde1e8;
    font-family: "Manrope", sans-serif;
    font-size: 14px;
    margin: 8px 0 0;
    padding: 12px 2px 4px;
}

.catalog-facet {
    border: 0;
    border-top: 1px solid #e5e7ec;
    margin: 0;
    min-width: 0;
    padding: 9px 2px 8px;
}

.catalog-facet:first-of-type {
    border-top: 0;
}

.catalog-facet__legend {
    align-items: center;
    display: flex;
    float: none;
    gap: 5px;
    max-width: 100%;
    padding: 0;
    width: 100%;
}

.catalog-facet__section-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #222840;
    cursor: pointer;
    display: flex;
    flex: 1 1 auto;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    gap: 6px;
    min-width: 0;
    padding: 2px 0;
    text-align: left;
}

.catalog-facet__title {
    display: inline !important;
    margin: 0 !important;
    min-width: 0;
}

.catalog-facet__chevron {
    border-bottom: 1.5px solid #606475;
    border-right: 1.5px solid #606475;
    display: block !important;
    flex: 0 0 auto;
    height: 7px;
    margin: -3px 2px 0 auto !important;
    transform: rotate(45deg);
    transition: transform .18s ease, margin .18s ease;
    width: 7px;
}

.catalog-facet.is-section-collapsed .catalog-facet__chevron {
    margin-top: 2px !important;
    transform: rotate(-45deg);
}

.catalog-facet__body[hidden] {
    display: none;
}

.catalog-facet__selected-count,
.catalog-facets-mobile-toggle__count {
    align-items: center;
    background: #d92832;
    border-radius: 50%;
    color: #fff;
    display: inline-flex !important;
    font-size: 11px;
    height: 18px;
    justify-content: center;
    margin: 0 !important;
    min-width: 18px;
    padding: 0 4px;
}

.catalog-facet__selected-count:empty {
    display: none !important;
}

.catalog-facet__clear {
    background: transparent;
    border: 0;
    color: #6a7182;
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 11px;
    padding: 2px 0 2px 3px;
}

.catalog-facet__search-label {
    display: block;
    margin: 6px 0 5px;
}

.catalog-facet__search {
    border: 1px solid #ccd1dc;
    border-radius: 4px;
    font: inherit;
    font-size: 13px;
    max-width: 100%;
    padding: 6px 8px;
    width: 100%;
}

.catalog-facet__values {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-top: 4px;
}

.catalog-facet__option {
    align-items: center;
    cursor: pointer;
    display: grid;
    font-size: 13px;
    gap: 6px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    line-height: 1.25;
    margin: 0;
    min-height: 22px;
    min-width: 0;
    padding: 2px 0;
}

.catalog-facet__option[hidden] {
    display: none;
}

.catalog-facet__option.is-unavailable {
    color: #9298a5;
}

.catalog-facet__option input {
    accent-color: #d92832;
    height: 16px;
    margin: 0;
    width: 16px;
}

.catalog-facet__label {
    min-width: 0;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.catalog-facet__count {
    color: #777e8d;
    font-size: 11px;
}

.catalog-facet__toggle {
    background: transparent;
    border: 0;
    color: #b7212b;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.2;
    margin: 4px 0 0;
    padding: 2px 0;
}

.catalog-facets__selected {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
}

.catalog-facets__selected[hidden],
.catalog-facets-summary[hidden] {
    display: none;
}

.catalog-facets__chip {
    background: #f2f3f6;
    border: 1px solid #d8dce5;
    border-radius: 16px;
    color: #222840;
    cursor: pointer;
    font-size: 12px;
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
    padding: 5px 9px;
}

.catalog-facets__actions {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.catalog-facets__clear-all,
.catalog-facet__context-apply-button,
.catalog-facets-mobile-toggle {
    border-radius: 5px;
    cursor: pointer;
    font: inherit;
    min-height: 40px;
    padding: 8px 12px;
}

.catalog-facets__clear-all {
    background: #fff;
    border: 1px solid #c9ced8;
    color: #3d4454;
}

.catalog-facet__context-apply-button {
    background: #d92832;
    border: 1px solid #d92832;
    color: #fff;
    font-weight: 600;
}

.catalog-facet__context-apply {
    display: flex;
    justify-content: flex-end;
    padding: 4px 0 2px;
}

.catalog-facet__context-apply-button {
    box-shadow: 0 5px 14px rgba(34, 40, 64, .18);
    font-size: 12px;
    min-height: 34px;
    padding: 6px 12px;
}

.catalog-facets-toolbar {
    margin: 0 0 10px;
}

.catalog-facets-summary {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.catalog-facets-summary__label {
    color: #606475;
    font-size: 13px;
    font-weight: 600;
}

.catalog-facets-summary__clear {
    border: 0;
    color: #b7212b;
    min-height: auto;
    padding: 5px 2px;
}

.catalog-facets button:focus-visible,
.catalog-facets input:focus-visible,
.catalog-facets-mobile-toggle:focus-visible,
.catalog-facets-summary button:focus-visible {
    outline: 3px solid rgba(217, 40, 50, .35);
    outline-offset: 2px;
}

@media (min-width: 1200px) {
    .catalog-category-layout {
        align-items: start;
        display: grid;
        gap: 24px;
        grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
    }

    .catalog-category-sidebar {
        min-width: 0;
        width: 100%;
    }

    .catalog-category-sidebar > .sidebar {
        float: none;
        margin: 0 !important;
        max-width: none;
        min-width: 0 !important;
        width: 100% !important;
    }

    .catalog-category-sidebar > .catalog-facets-shell {
        clear: both;
        margin-top: 16px;
    }

    .catalog-category-content.products-price {
        padding-left: 0;
        width: auto;
    }

    .catalog-facets__selected--drawer,
    .catalog-facets__actions {
        display: none;
    }
}

@media (max-width: 1199px) {
    body.catalog-facets-lock {
        overflow: hidden;
    }

    body.catalog-facets-lock #header,
    body.catalog-facets-lock .lang_fixed {
        z-index: 1;
    }

    .catalog-category-layout {
        display: block;
    }

    .catalog-category-sidebar {
        height: 0;
    }

    .catalog-category-sidebar > .sidebar {
        display: none;
    }

    .catalog-category-content.products-price {
        padding-left: 0;
        width: 100%;
    }

    .catalog-facets-toolbar {
        margin-bottom: 12px;
    }

    .catalog-facets-summary {
        display: none;
    }

    .catalog-facets-mobile-toggle {
        align-items: center;
        background: #fff;
        border: 1px solid #c9ced8;
        color: #222840;
        display: inline-flex;
        gap: 8px;
        justify-content: center;
        width: min(100%, 360px);
    }

    .catalog-facets-overlay {
        background: rgba(16, 20, 31, .55);
        border: 0;
        height: 100vh;
        inset: 0;
        opacity: 0;
        pointer-events: none;
        position: fixed;
        transition: opacity .2s ease;
        width: 100vw;
        z-index: 10040;
    }

    .catalog-facets-shell.is-open .catalog-facets-overlay {
        display: block;
        opacity: 1;
        pointer-events: auto;
    }

    .catalog-facets {
        border: 0;
        border-radius: 0;
        display: flex;
        flex-direction: column;
        height: 100dvh;
        inset: 0 0 0 auto;
        max-width: 420px;
        overflow: hidden;
        padding: 12px;
        pointer-events: none;
        position: fixed;
        transform: translateX(105%);
        transition: transform .2s ease, visibility 0s linear .2s;
        visibility: hidden;
        width: min(92vw, 420px);
        z-index: 10050;
    }

    .catalog-facets-shell.is-open .catalog-facets {
        pointer-events: auto;
        transform: translateX(0);
        transition-delay: 0s;
        visibility: visible;
    }

    .catalog-facets__header {
        flex: 0 0 auto;
    }

    .catalog-facets__close {
        align-items: center;
        background: transparent;
        border: 0;
        color: #222840;
        cursor: pointer;
        display: inline-flex;
        font-size: 30px;
        height: 40px;
        justify-content: center;
        padding: 0;
        width: 40px;
    }

    .catalog-facets__groups {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 3px;
    }

    .catalog-facet {
        padding-left: 4px;
        padding-right: 4px;
    }

    .catalog-facet__option {
        font-size: 14px;
        min-height: 24px;
    }

    .catalog-facets__selected--drawer {
        flex: 0 0 auto;
        margin-top: 8px;
        max-height: 72px;
        overflow-y: auto;
    }

    .catalog-facets__actions {
        background: #fff;
        flex: 0 0 auto;
    }

    .catalog-facets__clear-all {
        flex: 1 1 0;
        min-height: 42px;
    }
}

@media (max-width: 500px) {
    .catalog-facets-mobile-toggle {
        width: 100%;
    }
}
