.dp-shop-filters {
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0 0 28px
}

.dp-shop-filters__form {
    position: relative
}

.dp-shop-filters__bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 64px;
    padding: 8px;
    border: 1px solid rgba(17,17,19,.1);
    border-radius: 22px;
    background: rgb(77 77 77 / 90%);
    box-shadow: 0 14px 38px rgba(24,24,28,.055);
    overflow-x: auto;
    scrollbar-width: none
}

.dp-shop-filters__bar::-webkit-scrollbar {
    display: none
}

.dp-shop-filter-trigger,.dp-shop-filters__clear-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid rgb(2 2 2);
    border-radius: 15px;
    background: #111111;
    color: #ef4d54;
    font: inherit;
    font-size: 12px;
    font-weight: 760;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer
}

.dp-shop-filter-trigger:hover,.dp-shop-filter-trigger[aria-expanded="true"] {
    border-color: #242426;
    background: #242426;
    color: #fff
}

.dp-shop-filter-trigger__count {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ef4e54;
    color: #fff;
    font-size: 10px;
    font-weight: 850
}

.dp-shop-filters__clear-all {
    margin-left: auto;
    border-color: transparent;
    background: transparent;
    color: #cf3841
}

.dp-shop-filter-panel {
    position: absolute;
    top: 72px;
    left: 0;
    z-index: 45;
    width: min(620px,calc(100vw - 44px));
    max-height: min(72vh,700px);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 24px;
    background: #15191a;
    color: #fff;
    box-shadow: 0 26px 70px rgba(0,0,0,.28)
}

.dp-shop-filter-panel__head {
    display: grid;
    grid-template-columns: 38px minmax(0,1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 70px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,.12)
}

.dp-shop-filter-panel__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 820;
    line-height: 1.1
}

.dp-shop-filter-panel__head button,.dp-shop-filter-panel__head a {
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 12px;
    font-weight: 720;
    text-decoration: none;
    cursor: pointer
}

.dp-shop-filter-panel__close {
    display: grid!important;
    place-items: center!important;
    width: 38px;
    height: 38px;
    padding: 0!important;
    font-size: 28px!important;
    font-weight: 300!important
}

.dp-shop-filter-panel__body {
    max-height: 520px;
    padding: 18px;
    overflow: auto;
    overscroll-behavior: contain
}

.dp-shop-filter-panel__body--grid,.dp-shop-filter-attribute__choices {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 10px
}

.dp-shop-filter-attribute {
    margin: 0 0 22px;
    padding: 0;
    border: 0
}

.dp-shop-filter-attribute:last-child {
    margin-bottom: 0
}

.dp-shop-filter-attribute legend {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    color: #f7f7f8;
    font-size: 15px;
    font-weight: 820
}

.dp-shop-filter-choice {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 54px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 14px;
    background: #171c1d;
    color: #f7f7f8;
    font-size: 13px;
    font-weight: 620;
    text-decoration: none;
    cursor: pointer
}

.dp-shop-filter-choice:hover,.dp-shop-filter-choice:has(input:checked),.dp-shop-filter-choice.is-selected {
    border-color: #ef4e54;
    background: #202526
}

.dp-shop-filter-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none
}

.dp-shop-filter-choice small {
    color: #8f9698;
    font-size: 10px;
    font-weight: 700
}

.dp-shop-filter-choice:has(input:checked)::after,.dp-shop-filter-choice.is-selected::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ef4e54
}

.dp-shop-filter-panel__footer {
    position: sticky;
    bottom: 0;
    padding: 12px 16px 16px;
    border-top: 1px solid rgba(255,255,255,.1);
    background: #15191a
}

.dp-shop-filter-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
    border: 0;
    border-radius: 14px;
    background: #ef4e54;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer
}

.dp-shop-filters__backdrop {
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(0,0,0,.18)
}

@media(max-width: 782px) {
    body.dp-filter-open {
        overflow:hidden
    }

    .dp-shop-filters {
        margin-bottom: 18px
    }

    .dp-shop-filters__bar {
        min-height: 56px;
        padding: 6px;
        border-radius: 24px;
    }

    .dp-shop-filter-trigger,.dp-shop-filters__clear-all {
        min-height: 42px;
        padding: 0 13px;
        border-radius: 24px;
        font-size: 11px
    }

    .dp-shop-filter-panel {
        position: fixed;
        inset: 0;
        z-index: 1002;
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        border: 0;
        border-radius: 0;
        background: #15191a
    }

    .dp-shop-filter-panel__head {
        min-height: 76px;
        padding: 12px 18px
    }

    .dp-shop-filter-panel__head h2 {
        font-size: 20px
    }

    .dp-shop-filter-panel__body {
        height: calc(100dvh - 152px);
        max-height: none;
        padding: 20px 18px 96px
    }

    .dp-shop-filter-panel__body--grid,.dp-shop-filter-attribute__choices {
        grid-template-columns: repeat(2,minmax(0,1fr));
        gap: 10px
    }

    .dp-shop-filter-choice {
        min-height: 58px;
        padding: 10px 13px;
        font-size: 13px
    }

    .dp-shop-filter-panel__footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 2;
        padding: 12px 18px max(18px,env(safe-area-inset-bottom));
        background: linear-gradient(180deg,rgba(21,25,26,.4),#15191a 28%)
    }

    .dp-shop-filter-apply {
        min-height: 54px
    }

    .dp-shop-filters__backdrop {
        display: none
    }
}

@media(max-width: 390px) {
    .dp-shop-filter-panel__body--grid,.dp-shop-filter-attribute__choices {
        grid-template-columns:1fr 1fr
    }

    .dp-shop-filter-choice {
        font-size: 12px
    }
}
