.pwp-productfacets {
    color: #17233a;
}

#products {
    position: relative;
}

.pwp-productfacets__loading-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

#products.pwp-productfacets-loading::after {
    position: absolute;
    z-index: 9;
    inset: 0;
    background: rgb(0 0 0 / 35%);
    content: "";
    pointer-events: none;
}

#products.pwp-productfacets-loading .pwp-productfacets__loader {
    z-index: 10;
    color: #fff;
    opacity: .8;
    pointer-events: none;
}

#waitmsg.pwp-productfacets-loading {
    background-color: rgb(0 0 0 / 35%);
    opacity: 1;
    filter: none;
}

#waitmsg.pwp-productfacets-loading .loader {
    opacity: .8;
}

@media (prefers-reduced-motion: reduce) {
    #products.pwp-productfacets-loading .pwp-productfacets__loader .inner {
        animation: none;
    }

    #waitmsg.pwp-productfacets-loading .loader .inner {
        animation: none;
    }
}

body#category,
body#category #wrapper,
body#category #main {
    background-color: #fff !important;
}

body#category #left-column {
    border-right: 0 !important;
}

body#category #main h1.page-titre {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    background-color: transparent !important;
    color: var(--bs-secondary, #05498c) !important;
}

.pwp-productfacets__group-heading,
.pwp-productfacets__dialog-header,
.pwp-productfacets__dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pwp-productfacets__group-heading,
.pwp-productfacets__dialog-header h3 {
    margin: 0;
    color: inherit;
    font-size: 13px;
    font-weight: 700;
}

.pwp-productfacets__groups {
    display: grid;
    gap: 0;
}

.pwp-productfacets__group,
.pwp-productfacets__feature {
    min-width: 0;
    margin: 0;
    padding: 8px 10px 8px 0;
    border: 0;
    border-top: 1px solid #e8edf2;
    border-radius: 0;
    background: transparent;
}

.pwp-productfacets__group:first-child {
    border-top: 0;
}

.pwp-productfacets__group-heading {
    min-height: 24px;
    margin-bottom: 4px;
    cursor: pointer;
    list-style: none;
}

.pwp-productfacets__group-heading::-webkit-details-marker {
    display: none;
}

.pwp-productfacets__group-heading::after {
    width: 8px;
    height: 8px;
    margin-right: 3px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    content: "";
    transform: rotate(45deg) translateY(-2px);
}

.pwp-productfacets__group:not([open]) .pwp-productfacets__group-heading::after {
    transform: rotate(-45deg);
}

.pwp-productfacets__feature:not([open]) .pwp-productfacets__group-heading::after {
    transform: rotate(-45deg);
}

.pwp-productfacets__open,
.pwp-productfacets__clear {
    min-height: 30px;
    margin: 2px 0 0 4px;
    padding: 5px 6px;
    border: 0;
    background: none;
    color: var(--bs-primary);
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

.pwp-productfacets__feature-preview {
    max-height: none;
    overflow: visible;
}

.pwp-productfacets__search {
    display: block;
    margin: 14px 0 10px;
}

.pwp-productfacets__search input {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #b8c2cf;
    border-radius: 4px;
    background: #fff;
    color: #17233a;
}

.pwp-productfacets__options {
    display: grid;
    max-height: 290px;
    gap: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    list-style: none;
}

.pwp-productfacets__group > .pwp-productfacets__options {
    max-height: none;
    overflow: visible;
}

.pwp-productfacets__options li[hidden] {
    display: none;
}

.pwp-productfacets__options li + li {
    border-top: 1px solid #edf0f4;
}

.pwp-productfacets__options li > label {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    margin: 0;
    cursor: pointer;
}

.pwp-productfacets__options li > label > span:first-of-type {
    flex: 1;
}

.pwp-productfacets__option {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 23px;
    margin: 0;
    padding: 3px 6px;
    border-radius: 3px;
    color: #435875;
    font-size: 12px;
    line-height: 1.25;
    cursor: pointer;
}

.pwp-productfacets__option:hover,
.pwp-productfacets__option:has(input:checked) {
    background: rgba(var(--bs-primary-rgb), .05);
    color: var(--bs-primary);
}

.pwp-productfacets__option-label {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    min-width: 0;
}

.pwp-productfacets__option-label > span {
    overflow-wrap: anywhere;
}

.pwp-productfacets__options input {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    margin: 1px 0 0;
    accent-color: var(--bs-primary);
}

.pwp-productfacets__count {
    flex: 0 0 auto;
    color: #718198;
    font-variant-numeric: tabular-nums;
}

.pwp-productfacets__all-option {
    font-weight: 600;
}

.pwp-productfacets__open {
    font-size: 12px;
    font-weight: 600;
    text-align: left;
}

.pwp-productfacets__dialog {
    display: none;
    position: fixed;
    inset: 0 auto 0 0;
    flex-direction: column;
    width: min(420px, calc(100vw - 40px));
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 1px solid #cbd2d9;
    border-radius: 0 10px 10px 0;
    color: #17233a;
    box-shadow: 0 16px 42px rgb(19 29 47 / 24%);
    overflow: hidden;
}

.pwp-productfacets__dialog[open] {
    display: flex;
    animation: pwp-productfacets-slide-in 180ms ease-out;
}

@keyframes pwp-productfacets-slide-in {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .pwp-productfacets__dialog[open] {
        animation: none;
    }
}

.pwp-productfacets__dialog::backdrop {
    background: rgb(18 28 44 / 58%);
}

.pwp-productfacets__dialog-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e5eb;
}

.pwp-productfacets__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: #435265;
    font-size: 24px;
    cursor: pointer;
}

.pwp-productfacets__dialog > .pwp-productfacets__search,
.pwp-productfacets__dialog > .pwp-productfacets__options {
    margin-right: 20px;
    margin-left: 20px;
}

.pwp-productfacets__dialog > .pwp-productfacets__options {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
    overflow: auto;
    overscroll-behavior: contain;
}

.pwp-productfacets__dialog--manufacturer .pwp-productfacets__all-option {
    position: sticky;
    top: 0;
    z-index: 1;
    border-bottom: 1px solid #dce5ee;
    background: #fff;
}

.pwp-productfacets__dialog--category .pwp-productfacets__category-option[data-category-depth="0"] {
    position: sticky;
    top: 0;
    z-index: 2;
    border-bottom-color: #cbd8e5;
    background: #fff;
    color: #17233a;
    font-weight: 700;
    box-shadow: 0 2px 3px rgb(20 44 80 / 5%);
}

.pwp-productfacets__no-results {
    padding: 14px 8px;
    color: #718198;
    font-size: 13px;
}

.pwp-productfacets__dialog-actions {
    position: sticky;
    bottom: 0;
    padding: 12px 20px;
    border-top: 1px solid #e0e5eb;
    background: #fff;
}

.pwp-productfacets__active,
.pwp-productfacets__active-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
}

.pwp-productfacets__active-compact {
    margin: 0 0 14px;
}

.pwp-productfacets__badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    gap: 8px;
    padding: 4px 9px;
    border: 1px solid rgba(var(--bs-primary-rgb), .24);
    border-radius: 3px;
    background: rgba(var(--bs-primary-rgb), .05);
    color: var(--bs-primary);
    font: inherit;
    font-size: 11px;
    cursor: pointer;
}

.pwp-productfacets__badge span {
    font-size: 15px;
    line-height: 1;
}

.pwp-productfacets__badge:hover {
    border-color: var(--bs-primary);
    background: rgba(var(--bs-primary-rgb), .1);
}

.pwp-productfacets__clear-active {
    margin-left: 4px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--bs-primary);
    font: inherit;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

@media (min-width: 992px) {
    body#category #left-column {
        box-sizing: border-box;
        flex: 0 0 230px;
        width: 230px;
        min-width: 230px;
        position: sticky !important;
        top: var(--pwp-productfacets-sticky-top, 12px);
        align-self: flex-start;
        height: fit-content;
        max-height: calc(100vh - var(--pwp-productfacets-sticky-top, 12px) - 12px);
        max-height: calc(100dvh - var(--pwp-productfacets-sticky-top, 12px) - 12px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior-y: contain;
    }

    body#category #content-wrapper {
        flex: 1 1 0%;
        min-width: 0;
    }
}

.pwp-productfacets a:focus-visible,
.pwp-productfacets button:focus-visible,
.pwp-productfacets input:focus-visible,
.pwp-productfacets summary:focus-visible {
    outline: 3px solid rgba(var(--bs-primary-rgb), .45);
    outline-offset: 2px;
}

@media (max-width: 767.98px) {
    .pwp-productfacets__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
    }

    .pwp-productfacets__group > .pwp-productfacets__options {
        max-height: 220px;
        overflow-y: auto;
    }

    .pwp-productfacets__dialog {
        width: min(390px, calc(100vw - 36px));
    }

    .pwp-productfacets__dialog > .pwp-productfacets__options {
        max-height: none;
    }
}
