.elfg-filter{
    max-width: 318px;
    width: 100%;
    background: #fff;
    color: #0f172a;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.elfg-filter__title{
    margin: 0 0 28px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #172554;
}

.elfg-filter__group{
    margin-bottom: 28px;
}

.elfg-filter__label{
    display: block;
    margin-bottom: 12px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    color: #1e2b4d;
}

.elfg-filter__search-wrap{
    position: relative;
}

.elfg-filter input[type="text"],
.elfg-filter select{
    width: 100%;
    height: 42px;
    border: 1px solid #d9e1ec;
    border-radius: 6px;
    background: #fff;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.elfg-filter input[type="text"]{
    padding: 0 42px 0 14px;
}

.elfg-filter select{
    padding: 0 14px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 14px;
    padding-right: 38px;
}

.elfg-filter input[type="text"]::placeholder{
    color: #94a3b8;
    font-weight: 500;
}

.elfg-filter input[type="text"]:focus,
.elfg-filter select:focus{
    border-color: #c7d2e3;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.05);
}

.elfg-filter__search-btn{
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
}

.elfg-filter__checkbox-list{
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.elfg-filter__checkbox-item{
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    cursor: pointer;
    color: #1f2a44;
    font-size: 14px;
    line-height: 1.4;
    user-select: none;
}

.elfg-filter__checkbox-item input{
    display: none;
}

.elfg-filter__checkbox-custom{
    width: 18px;
    height: 18px;
    border: 1.5px solid #d6dde8;
    border-radius: 4px;
    background: #fff;
    position: relative;
    display: inline-block;
}

.elfg-filter__checkbox-item input:checked + .elfg-filter__checkbox-custom{
    background: #2563eb;
    border-color: #2563eb;
}

.elfg-filter__checkbox-item input:checked + .elfg-filter__checkbox-custom::after{
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.elfg-filter__term-name{
    min-width: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2a44;
}

.elfg-filter__term-count{
    margin-left: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #7c89a3;
}

.elfg-filter__divider{
    height: 1px;
    margin: 20px 0 24px;
    background: #e8edf3;
}

.elfg-filter__group--reset{
    margin-top: 2px;
    margin-bottom: 0;
}

.elfg-filter__reset{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #bfd4ff;
    border-radius: 6px;
    background: #fff;
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease;
}

.elfg-filter__reset:hover{
    background: #f8fbff;
    border-color: #9ec0ff;
    color: #1d4ed8;
}

.elfg-filter__reset svg,
.elfg-filter__search-btn svg{
    display: block;
}

@media (max-width: 767px){
    .elfg-filter{
        max-width: 100%;
    }
}