.neofire-filter {
    margin: 0 0 24px;
}

.neofire-filter-title {
    font-weight: 700;
    margin: 0 0 8px;
}

.neofire-filter-group {
    margin: 0 0 12px;
}

.neofire-filter-name {
    font-weight: 600;
    font-size: .92em;
    margin: 0 0 6px;
    opacity: .85;
}

.neofire-filter-values {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#all .neofire-filter-value {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,.18);
    border-radius: 6px;
    font-size: .9em;
    line-height: 1;
    text-decoration: none;
    color: inherit;
    background: transparent;
    cursor: pointer;
    transition: background .15s,border-color .15s;
}

#all .neofire-filter-value:hover {
    border-color: rgba(0,0,0,.45);
}

#all .neofire-filter-value.is-active {
    background: #222;
    border-color: #222;
    color: #fff;
}

.neofire-filter-swatch {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,.25);
    display: inline-block;
}

.neofire-filter-label {
    opacity: .65;
    font-size: .9em;
}

.neofire-filter-count {
    opacity: .55;
    font-size: .82em;
}

.neofire-filter--list .neofire-filter-values {
    flex-direction: column;
    gap: 2px;
}

#all .neofire-filter--list .neofire-filter-value {
    border: 0;
    padding: 4px 0;
    border-radius: 0;
}

#all .neofire-filter--list .neofire-filter-value.is-active {
    background: transparent;
    color: inherit;
    font-weight: 700;
}

#all .neofire-filter-reset {
    display: inline-block;
    margin-top: 4px;
    font-size: .88em;
    text-decoration: underline;
    color: inherit;
}

.neofire-filter.is-busy {
    opacity: .5;
    pointer-events: none;
}

.neofire-filter--dropdown {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-start;
}

.neofire-filter-dd {
    position: relative;
    min-width: 180px;
    max-width: 100%;
    flex: 0 1 220px;
}

.neofire-filter--dropdown.is-grid {
    display: grid;
    align-items: start;
}

.neofire-filter--dropdown.is-grid .neofire-filter-dd {
    min-width: 0;
    max-width: none;
    width: 100%;
    flex: none;
}

.neofire-filter-dd-hint {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    padding: 3px 2px;
    white-space: nowrap;
}

.neofire-filter-dd.is-open.has-search .neofire-filter-dd-hint {
    display: none;
}

.neofire-filter-dd-box {
    position: relative;
}

#all .neofire-filter-dd-count {
    display: none;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    background: #222;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    margin-left: 8px;
    box-sizing: border-box;
}

#all .neofire-filter-dd.has-sel .neofire-filter-dd-count {
    display: inline-block;
}

#all .neofire-filter-dd.is-open .neofire-filter-dd-count {
    display: none;
}

.neofire-filter-dd-sep {
    border-top: 1px solid rgba(0,0,0,.15);
    margin: 6px 4px;
}

#all .neofire-filter-dd-input {
    display: none;
}

.neofire-filter-dd.is-open.has-search .neofire-filter-dd-input {
    display: block !important;
}

.neofire-filter-dd-field {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    min-height: 48px;
    padding: 8px 36px 8px 14px;
    border: 1px solid rgba(0,0,0,.25);
    border-radius: var(--neofire-filter-radius,8px);
    background: #fff;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.neofire-filter-dd.is-open.has-search .neofire-filter-dd-field {
    cursor: text;
}

.neofire-filter-dd.is-open .neofire-filter-dd-field {
    border-color: rgba(0,0,0,.6);
    box-shadow: 0 0 0 3px rgba(0,0,0,.06);
}

.neofire-filter-dd-chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
}

#all .neofire-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 6px;
    background: #222;
    font-size: 14px !important;
    line-height: 1.2;
    text-decoration: none;
}

#all .neofire-filter-chip,
#all .neofire-filter-chip span {
    color: #fff !important;
}

.neofire-filter-chip-x {
    font-weight: 700;
    opacity: .8;
}

#all .neofire-filter-dd-input {
    flex: 1 1 50px;
    min-width: 50px;
    width: auto !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    padding: 3px 2px !important;
    margin: 0 !important;
    font-size: 15px !important;
    color: #222 !important;
    box-shadow: none !important;
    height: 28px !important;
    line-height: 1.3 !important;
}

.neofire-filter-dd-caret {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    transform: translateY(-70%) rotate(45deg);
    opacity: .6;
    pointer-events: none;
}

.neofire-filter-dd.is-open .neofire-filter-dd-caret {
    transform: translateY(-30%) rotate(225deg);
}

.neofire-filter-dd-panel {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    z-index: 50;
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: var(--neofire-filter-radius,8px);
    box-shadow: 0 10px 28px rgba(0,0,0,.14);
    padding: 6px;
}

.neofire-filter-dd.is-open .neofire-filter-dd-panel {
    display: block;
}

.neofire-filter-dd-list {
    max-height: 280px;
    overflow: auto;
}

#all .neofire-filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px !important;
    line-height: 1.2;
}

#all .neofire-filter-item,
#all .neofire-filter-item span {
    color: #222 !important;
}

#all .neofire-filter-item:hover {
    background: rgba(0,0,0,.05);
}

#all .neofire-filter-item.is-hidden {
    display: none !important;
}

.neofire-filter-check {
    width: 30px;
    height: 17px;
    border-radius: 17px;
    background: #cfcfcf;
    flex: 0 0 auto;
    position: relative;
    transition: background .15s;
}

.neofire-filter-check:after {
    content: "";
    position: absolute;
    left: 2px;
    top: 2px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
    transition: transform .15s;
}

.neofire-filter-item.is-active .neofire-filter-check {
    background: #222;
}

.neofire-filter-item.is-active .neofire-filter-check:after {
    transform: translateX(13px);
}

.neofire-filter-item .neofire-filter-count {
    margin-left: auto;
}

.neofire-filter-dd-empty {
    padding: 8px;
    font-size: .85em;
    opacity: .6;
}

#all .neofire-filter--dropdown .neofire-filter-reset {
    align-self: center;
    margin: 0;
}