.filter-tabs .elementor-shortcode {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.filter-tabs form.woocommerce-ordering {
    width: 33.333%;
    margin: 0;
}

.filter-tabs form.woocommerce-ordering select.orderby {
    width: 100%;
    -webkit-appearance: none;
    padding: 10px;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    border-bottom: solid 1px #e2e2e2;
    background: #fff url(../assets/images/sorting.svg) no-repeat right;
    background-size: 16px;
    background-position-x: 95%;
    color: #121212;
    outline: none;
    font-weight: 400;
}

a.clear-filter {
    position: absolute;
    right: 55px;
    top: 50%;
    transform: translateY(-50%);
    width: 15px;
    height: 15px;
}

.wpc-filter-pa_color label {
    display: flex;
    align-items: center;
}

.wpc-filter-pa_color label:before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 100%;
    background-color: #ccc;
    background-position: center;
    background-size: cover;
}

.widget-area .widget .wpc-filter-chips-list .wpc-chip-reset-all a,
body .wpc-filter-chips-list li.wpc-chip-reset-all a {
    border-color: #cc8181 !important;
}

.wpc-chip-remove-icon {
    color: #121212;
    opacity: .5;
}

.wpc-chip-remove-icon:hover {
    opacity: 1;
    color: #121212;
}

/* Filter Price Range */

.wpc-filters-range-wrapper input[type="number"] {
    padding: 7px 10px !important;
}

form.wpc-filter-range-form {
    padding: 15px;
}

.wpc-filters-range-min-column {
    margin-right: 0;
}

.wpc-filters-range-column.wpc-filters-range-min-column:before {
    content: "Min";
    font-size: 12px;
    font-weight: 500;
}

.wpc-filters-range-column.wpc-filters-range-max-column:before {
    content: "Max";
    font-size: 12px;
    font-weight: 500;
}

/* End Price Range */

@media screen and (min-width: 768px) {
    html.is-active .wpc-filters-overlay {
        background-color: rgb(18, 18, 18) !important;
        opacity: .4 !important;
    }

    .wpc-spinner:after {
        display: none;
    }

    .wpc-spinner {
        position: absolute;
        width: 100px !important;
        height: 100px !important;
        opacity: 1;
        background-image: url(../assets/images/spinner.svg);
        background-position: center;
        background-size: contain;
        background-repeat: no-repeat;
        top: 50%;
        transform: translateY(-50%);
        right: 50%;
        margin-right: -50px;
        margin-top: -50px;
    }

    .widget_wpc_filters_widget {
        width: 100%;
    }

    .wpc-edit-filter-set {
        display: none;
    }

    .wpc-filters-widget-wrapper .wpc-filters-section:not(:last-of-type) {
        margin-right: 10px;
    }

    .wpc-filters-widget-wrapper {
        display: flex;
        margin: 0;
        gap: 0px;
        width: 100%;
    }

    .wpc-filters-widget-wrapper .wpc-filters-section {
        width: 100%;
        margin-bottom: 0;
        position: relative;
        display: inline-block;
        border: 0;
        border-bottom: 0;
    }

    .wpc-filters-section .wpc-filter-title {
        display: block;
        margin: 0;
        font-weight: 400;
    }

    .wpc-filters-section.wpc-filter-has-selected .wpc-filter-header {
        font-weight: 600;
    }

    .wpc-filters-section .wpc-filter-header {
        position: relative;
        cursor: pointer;
        background: #fff url(../assets/images/filter_icon.svg) no-repeat right;
        background-size: 16px;
        background-position-x: 95%;
        padding: 10px 12px;
        z-index: 9;
        border-bottom: 1px solid #e2e2e2;
    }

    .wpc-filters-section .wpc-filter-content .wpc-filters-ul-list {
        overflow: initial !important;
        max-height: 9999px !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .wpc-filters-section .wpc-filter-content {
        display: none;
        position: absolute;
        left: 0px;
        top: 100%;
        width: 100%;
        max-height: 250px;
        overflow: auto;
        box-shadow: 0 10px 15px 0 rgb(0 0 0 / 5%);
        z-index: 3;
        background-color: #fff;
    }

    .wpc-filters-section.open .wpc-filter-content {
        display: block;
        z-index: 99;
    }

    .wpc-filters-section .wpc-filter-content .wpc-term-item {
        margin: 0;
    }

    .wpc-filters-section .wpc-filter-content input:not(.wpc-filters-range-max):not(.wpc-filters-range-min) {
        display: none;
    }

    .wpc-filters-section .wpc-filter-content input:checked+label a {
        font-weight: 600;
        opacity: 1;
    }

    .wpc-filters-section .wpc-filter-content input:checked+label:after {
        opacity: 1;
        background: #283583;
    }

    .wpc-filters-section .wpc-filter-content label {
        position: relative;
        display: flex;
        align-items: center;
        cursor: pointer;
        padding: 10px 30px 10px 10px;
        border-bottom: 1px solid #ddd;
        background-color: #fff;
        width: 100%;
    }

    .wpc-filters-section .wpc-filter-content label a {
        transition: .2s all;
        opacity: .6;
    }

    .wpc-filters-section .wpc-filter-content label:hover a {
        opacity: 1;
    }

    .wpc-filters-section .wpc-filter-content label:after {
        opacity: 1;
        content: '';
        position: absolute;
        right: 12px;
        height: 15px;
        width: 15px;
        border: solid 2px #fff;
        border-radius: 2px;
        outline: 1px solid #ccc;
        background: transparent;
    }

    .wpc-filters-section .wpc-filter-content label:hover:after {
        opacity: 1;
        background: #ccc;
    }

    .wpc-filters-section .wpc-filter-content::-webkit-scrollbar-track {
        background-color: #fff;
    }

    .wpc-filters-section .wpc-filter-content::-webkit-scrollbar {
        width: 5px;
        background-color: #fff;
    }

    .wpc-filters-section .wpc-filter-content::-webkit-scrollbar-thumb {
        background-color: #555;
    }


    .wpc-filters-section .wpc-filter-content label a {
        display: block;
        margin-right: 3px;
        padding-left: 8px;
    }

    .wpc-filters-section .wpc-term-count {
        margin: 0;
    }
}

.woocommerce.columns-3 {
    transition: opacity .3s ease;
}

@media screen and (max-width: 767px) {
    .wpc-filter-pa_color label:before {
        margin-right: 8px;
        width: 15px;
        height: 15px;
    }

    .filter-tabs .elementor-shortcode {
        gap: 2px !important;
    }

    .wpc_show_bottom_widget .wpc-filters-widget-content {
        top: 0 !important;
        width: 95vw !important;
    }

    .wpc_show_bottom_widget .wpc-filters-widget-content:not(.wpc-filters-widget-opened) {
        transform: translate3d(-100%, 0, 0);
    }

    .wpc-filters-widget-content {
        border-radius: 0 !important;
    }

    .wpc-filter-content {
        display: none;
    }

    .wpc-filters-widget-wrapper {
        margin-top: 20px !important;
    }

    .wpc-filter-header {
        cursor: pointer;
        font-size: 18px;
        font-weight: 600;
        margin-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .wpc-filters-widget-main-wrapper li.wpc-term-item:last-child {
        padding-bottom: 100px !important;
    }

    .wpc_show_bottom_widget .wpc-filters-open-button-container {
        width: 100% !important;
    }

    .wpc-icon-html-wrapper {
        display: none !important;
    }

    a.wpc-filters-open-widget {
        display: block !important;
        width: 100% !important;
        -webkit-appearance: none !important;
        padding: 10px !important;
        border-top: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
        border-bottom: solid 1px #e2e2e2 !important;
        background: #fff url(../assets/images/filter_icon.svg) no-repeat right !important;
        background-size: 16px !important;
        background-position-x: 95% !important;
        color: #121212 !important;
        outline: none !important;
    }

    .wpc-filters-widget-controls-container {
        position: fixed !important;
        width: 95vw !important;
    }

    .wpc_show_bottom_widget .wpc-filters-widget-containers-wrapper {
        overflow: auto !important;
    }

    .wpc-filters-ul-list.wpc-filters-checkboxes {
        overflow: visible !important;
    }

    .wpc_show_bottom_widget .wpc-filters-scroll-container {
        min-height: calc(100vh - 160px) !important;
    }

    .wpc-filters-section.open .wpc-filter-header {
        cursor: initial;
        pointer-events: none;
        margin-bottom: 15px;
        border-bottom: 0;
    }

    .wpc-filters-section .wpc-filter-header .widget-title {
        justify-content: flex-start;
        gap: 5px;
    }

    .wpc-filters-section.open .wpc-filter-header:before {
        content: '';
        display: block;
        width: 15px;
        height: 15px;
        margin-bottom: 15px;
        overflow: hidden;
        background: url('../assets/images/back-icon.svg') no-repeat center;
        background-size: contain;
        pointer-events: auto;
        cursor: pointer;
    }

    .wpc-filters-section.open .wpc-filter-content {
        display: block;
    }

    .wpc-filters-section.open {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        z-index: 2;
        padding: 20px;
    }

    a.wpc-widget-close-icon {
        opacity: 0;
        pointer-events: none;
        z-index: -99;
    }

    .wpc-filters-section .wpc-filter-content input:not(.wpc-filters-range-min):not(.wpc-filters-range-max) {
        display: none;
    }

    .wpc-filters-section .wpc-filter-content label:after {
        opacity: 1;
        content: '';
        position: absolute;
        right: 12px;
        height: 15px;
        width: 15px;
        border: solid 2px #fff;
        border-radius: 2px;
        outline: 1px solid #ccc;
        background: transparent;
    }

    .wpc-filters-section .wpc-filter-content input:checked+label a {
        font-weight: 600;
        opacity: 1;
    }

    .wpc-filters-section .wpc-filter-content input:checked+label:after {
        opacity: 1;
        background: #283583;
    }

    .wpc-filters-widget-main-wrapper li.wpc-term-item:not(:last-child) {
        border-bottom: 1px solid #eee !important;
        padding-bottom: 10px !important;
    }

    .wpc-term-count {
        margin: 0 !important;
        opacity: 1 !important;
    }

    .wpc-filters-widget-controls-wrapper {
        gap: 10px;
    }

    .wpc-filters-widget-controls-item {
        width: 50% !important;
    }

    .widget .wpc-filters-widget-controls-container a,
    .widget-area .widget .wpc-filters-widget-controls-container a,
    .wpc-filters-widget-main-wrapper .wpc-filters-widget-controls-container a,
    .wpc-filters-widget-main-wrapper a.wpc-filters-reset-button,
    .wpc-filters-widget-main-wrapper a.wpc-filters-submit-button {
        border-radius: 0 !important;
    }
}

.term-bestsellers .woocommerce-ordering,
.term-bestsellers-da .woocommerce-ordering,
.term-bestsellers-fr .woocommerce-ordering,
.term-bestsellers-de .woocommerce-ordering {
    display: none !important;
}

.wpc-custom-selected-terms {
    display: flex;
    align-items: center;
    justify-content: center;
}

li.wpc-filter-chip {
    margin-right: 0 !important;
}

.wpc-filter-chips-list {
    gap: 5px !important;
}

/* Currency */

body:not(.currency-dkk) .wpc-filter-_price_DKK,
body:not(.currency-nok) .wpc-filter-_price_NOK,
body:not(.currency-sek) .wpc-filter-_price_SEK,
body:not(.currency-eur) .wpc-filter-_price {
    display: none !important;
}

.widget-area .widget .wpc-filter-chips-list a,
body .wpc-filter-chips-list li.wpc-filter-chip a,
.wpc-filter-chips-list a .wpc-filter-chip-name {
    font-weight: 300;
}