.kll-product-filter {
    width: 100%;
    padding: 22px;
    border: 1px solid rgba(0,0,0,.12);
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.kll-product-filter.kll-loading .kll-filter-grid,
.kll-product-filter.kll-loading .kll-range-block {
    opacity: .65;
}

.kll-filter-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
}

.kll-filter-field { min-width: 0; }

.kll-filter-field label,
.kll-range-header label {
    display: block;
    margin-bottom: 7px;
    font-weight: 600;
}

.kll-filter-field select {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    background: #fff;
}

.kll-range-block {
    --kll-range-left: 0%;
    --kll-range-right: 100%;
    margin-top: 24px;
}

.kll-range-header {
    display: block;
    margin-bottom: 8px;
}

.kll-range-header span {
    display: block;
    font-size: .92em;
    overflow-wrap: anywhere;
}

.kll-dual-range {
    position: relative;
    height: 32px;
}

.kll-dual-range::before,
.kll-dual-range::after {
    content: '';
    position: absolute;
    top: 14px;
    height: 4px;
    border-radius: 99px;
    pointer-events: none;
}

.kll-dual-range::before {
    left: 0;
    right: 0;
    background: #ddd;
}

.kll-dual-range::after {
    left: var(--kll-range-left);
    width: calc(var(--kll-range-right) - var(--kll-range-left));
    background: currentColor;
}

.kll-dual-range input[type="range"] {
    position: absolute;
    left: 0;
    top: 4px;
    width: 100%;
    margin: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
    z-index: 2;
}

.kll-dual-range input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.kll-dual-range input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: #fff;
    pointer-events: auto;
    cursor: pointer;
    -webkit-appearance: none;
}

.kll-dual-range input[type="range"]::-moz-range-track {
    height: 4px;
    background: transparent;
}

.kll-dual-range input[type="range"]::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: #fff;
    pointer-events: auto;
    cursor: pointer;
}

.kll-filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.kll-filter-actions .button {
    box-sizing: border-box;
    width: 100%;
    text-align: center;
}

.kll-reset {
    opacity: .75;
}

@media (max-width: 560px) {
    .kll-product-filter {
        padding: 16px;
    }
}
