/* Shop sidebar filters (restyles the sidebar-product widget area) */
.bwp-sidebar.sidebar-product .tsf-card {
    background: #fff;
    border: 1px solid #e4e4e6;
    border-radius: 10px;
    padding: 18px 18px 6px;
}

.tsf-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.tsf-head b {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.bwp-sidebar.sidebar-product .tsf-clear {
    font-size: 13px;
    color: #d9322a !important;
    text-transform: none;
}

.tsf-clear[hidden] {
    display: none;
}

.tsf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.tsf-chips:empty {
    display: none;
}

.bwp-sidebar.sidebar-product .tsf-chip {
    display: inline-flex;
    text-transform: none;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    line-height: 1.2;
    color: #fff !important;
    background: #1b1c1e;
    border-radius: 99px;
}

.bwp-sidebar.sidebar-product .tsf-chip:hover {
    background: #d9322a;
}

.tsf-chip i {
    font-style: normal;
    opacity: 0.7;
}

/* One group per widget */
.sidebar-product .tsf-card aside.widget_layered_nav {
    margin: 0;
    padding: 14px 0;
    border-top: 1px solid #e4e4e6;
}

.sidebar-product .tsf-card aside.widget_layered_nav .widget-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline-offset: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
}

.sidebar-product .tsf-card aside.widget_layered_nav .widget-title::before,
.sidebar-product .tsf-card aside.widget_layered_nav .widget-title::after {
    display: none;
}

.tsf-n {
    margin-left: 6px;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
    color: #d9322a;
}

.tsf-car {
    flex: none;
    width: 8px;
    height: 8px;
    margin: 0 3px 0 auto;
    border-right: 2px solid #1b1c1e;
    border-bottom: 2px solid #1b1c1e;
    transform: rotate(45deg);
    transition: transform 0.2s;
}

.tsf-shut .tsf-car {
    transform: rotate(-45deg);
}

.tsf-shut .woocommerce-widget-layered-nav-list,
.tsf-shut .tsf-find,
.tsf-shut .tsf-more {
    display: none;
}

/* Options */
.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list {
    max-height: none !important;
    overflow: visible !important;
    margin: 12px 0 0;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0 !important;
    font-size: 14px;
    text-transform: none;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li.tsf-hidden {
    display: none;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li a {
    display: flex;
    text-transform: none;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li a::before {
    content: "";
    flex: none;
    width: 17px;
    height: 17px;
    border: 1.5px solid #b9b9bd;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
    transition: background-color 0.15s, border-color 0.15s;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li a:hover::before {
    border-color: #d9322a;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li.chosen a::before {
    background: #d9322a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat;
    border-color: #d9322a;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li .count {
    float: none;
    margin-left: auto;
    font-size: 12px;
    color: #77777c;
}

.sidebar-product .tsf-card .woocommerce-widget-layered-nav-list li.chosen a {
    font-weight: 500;
}

/* Search and show more */
.tsf-find {
    width: 100%;
    margin: 12px 0 0;
    padding: 7px 10px;
    font-size: 13px;
    border: 1px solid #e4e4e6;
    border-radius: 6px;
    box-sizing: border-box;
}

.tsf-find + .woocommerce-widget-layered-nav-list {
    margin-top: 8px;
}

.sidebar-product .tsf-card .tsf-more {
    height: auto;
    min-height: 0;
    padding: 6px 0 0;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: #1b1c1e !important;
    text-decoration: underline;
    text-transform: none;
    background: none !important;
    border: 0;
    box-shadow: none;
    cursor: pointer;
}

.tsf-more[hidden] {
    display: none;
}
