.mwfsf-widget,
.mwfsf-widget * {
    box-sizing: border-box;
}

.mwfsf-widget {
    width: 100%;
    margin: 0 0 22px;
    font-family: inherit;
    color: inherit;
}

.mwfsf-widget-title {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 12px;
    margin: 0 0 14px;
    border-bottom: 1px solid rgba(0,0,0,.12);
    font-weight: 700;
    font-size: 15px;
    line-height: 1.8;
    cursor: default;
}

.mwfsf-collapsible .mwfsf-widget-title {
    cursor: pointer;
}

.mwfsf-widget-title i {
    position: relative;
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
}

.mwfsf-widget-title i:before,
.mwfsf-widget-title i:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 12px;
    height: 2px;
    background: currentColor;
    opacity: .65;
    transform: translateY(-50%);
}

.mwfsf-widget-title i:after {
    transform: translateY(-50%) rotate(90deg);
    transition: opacity .18s ease;
}

.mwfsf-widget.mwfsf-open .mwfsf-widget-title i:after {
    opacity: 0;
}

.mwfsf-widget-content {
    display: block;
}

.mwfsf-collapsible:not(.mwfsf-open) .mwfsf-widget-content {
    display: none;
}

.mwfsf-search-wrap {
    margin-bottom: 12px;
}

.mwfsf-search,
.mwfsf-select,
.mwfsf-price-row input {
    width: 100%;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 4px;
    background: #fff;
    color: inherit;
    font: inherit;
    outline: none;
}

.mwfsf-search:focus,
.mwfsf-select:focus,
.mwfsf-price-row input:focus {
    border-color: rgba(0,0,0,.45);
}

.mwfsf-terms-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mwfsf-term-item {
    margin: 0;
    padding: 0;
}

.mwfsf-term-item a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 4px 0;
    color: inherit;
    text-decoration: none;
    transition: opacity .18s ease;
}

.mwfsf-term-item a:hover {
    opacity: .75;
}

.mwfsf-checkbox {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    border: 1px solid rgba(0,0,0,.28);
    border-radius: 2px;
    background: #fff;
}

.mwfsf-selected .mwfsf-checkbox {
    border-color: currentColor;
    background: currentColor;
}

.mwfsf-selected .mwfsf-checkbox:after {
    content: "";
    position: absolute;
    top: 2px;
    right: 5px;
    width: 5px;
    height: 9px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.mwfsf-term-name {
    flex: 1 1 auto;
    line-height: 1.7;
}

.mwfsf-count {
    flex: 0 0 auto;
    min-width: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(0,0,0,.06);
    color: rgba(0,0,0,.66);
    font-size: 11px;
    line-height: 21px;
    text-align: center;
}

.mwfsf-selected > a {
    font-weight: 700;
}

.mwfsf-display-two_col .mwfsf-terms-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px 14px;
}

.mwfsf-display-inline .mwfsf-terms-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mwfsf-display-inline .mwfsf-term-item a {
    min-height: 34px;
    padding: 5px 12px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 999px;
}

.mwfsf-display-inline .mwfsf-selected a {
    border-color: currentColor;
}

.mwfsf-size-small .mwfsf-term-item a {
    font-size: 12px;
    min-height: 27px;
}

.mwfsf-size-small .mwfsf-checkbox {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
}

.mwfsf-size-large .mwfsf-term-item a {
    font-size: 16px;
    min-height: 38px;
}

.mwfsf-size-large .mwfsf-checkbox {
    width: 18px;
    height: 18px;
    flex-basis: 18px;
}

.mwfsf-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.mwfsf-button {
    width: 100%;
    min-height: 40px;
    border: none;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.mwfsf-button:hover {
    opacity: .88;
}

.mwfsf-hidden-by-search {
    display: none !important;
}

@media (max-width: 480px) {
    .mwfsf-display-two_col .mwfsf-terms-list {
        grid-template-columns: 1fr;
    }
}
