/* Istikbal Range Filter - fully scoped; does not modify legacy range widgets. */
.istk-rf-widget {
    width: 100%;
    box-sizing: border-box;
}
.istk-rf-widget *,
.istk-rf-widget *::before,
.istk-rf-widget *::after {
    box-sizing: border-box;
}
.istk-rf-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 15px;
}
.istk-rf-widget .istk-rf-title {
    padding: 0;
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}
.istk-rf-widget .istk-rf-clear {
    flex: 0 0 auto;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}
.istk-rf-widget .istk-rf-clear:hover {
    text-decoration: underline;
}
.istk-rf-widget .istk-rf-clear-inactive {
    opacity: .68;
}
.istk-rf-input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 12px;
}
.istk-rf-widget .istk-rf-entry {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 0;
    flex: 1 1 0;
    height: 42px;
    padding: 0 8px;
    margin: 0;
    border: 1px solid #d9d9d9;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none;
    cursor: text;
}
.istk-rf-widget input.istk-rf-input {
    display: block;
    min-width: 0;
    width: 100%;
    height: 100%;
    flex: 1 1 0;
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: inherit;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none;
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: none;
}
.istk-rf-widget .istk-rf-entry:focus-within {
    border-color: var(--wd-primary-color, #055799);
}
.istk-rf-widget .istk-rf-input-unit {
    white-space: nowrap;
    flex: 0 0 auto;
    margin-left: 4px;
    font-size: 12px;
    color: #8d8d8d;
    pointer-events: none;
}
.istk-rf-widget .istk-rf-separator {
    flex: 0 0 auto;
    color: #666;
    font-size: 16px;
}
.istk-rf-slider {
    position: relative;
    height: 32px;
    margin: 0 15px;
    touch-action: none;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}
.istk-rf-rail,
.istk-rf-selected {
    position: absolute;
    height: 2px;
    top: 50%;
    margin-top: -1px;
    border: none;
    border-radius: 0 !important;
    pointer-events: none;
}
.istk-rf-rail {
    left: 0;
    right: 0;
    background: #d9d9d9;
}
.istk-rf-selected {
    left: 0;
    width: 100%;
    background: var(--wd-primary-color, #055799);
}
.istk-rf-widget button.istk-rf-handle {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 32px;
    padding: 0 !important;
    margin: 0;
    font-size: 0;
    line-height: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    cursor: ew-resize;
    touch-action: none;
    z-index: 2;
    appearance: none;
    -webkit-appearance: none;
}
.istk-rf-widget button.istk-rf-handle::after {
    content: '';
    display: block;
    width: 4px;
    height: 16px;
    border-radius: 0 !important;
    background: var(--wd-primary-color, #055799);
}
.istk-rf-widget button.istk-rf-handle:hover::after {
    height: 18px;
}
.istk-rf-widget button.istk-rf-handle:focus-visible {
    outline: 1px solid var(--wd-primary-color, #055799) !important;
    outline-offset: 1px;
}
.istk-rf-limits {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: -2px;
    font-size: 12px;
    font-weight: 400;
    color: #969696;
    line-height: 1.5;
}
.istk-rf-limits span:last-child {
    text-align: right;
}
.istk-rf-visually-hidden {
    position: absolute !important;
    height: 1px;
    width: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (max-width: 480px) {
    .istk-rf-input-row { gap: 8px; }
    .istk-rf-widget .istk-rf-entry { padding: 0 6px; }
}
