/* Slider til afstandsfiltret på /nos-revendeurs. Farver fra sitets globale Elementor-farver. */

.jsf-location-distance {
    flex-wrap: wrap;
}

.jsf-location-distance .jsf-location-distance__location {
    flex: 1 1 100%;
}

.jsf-location-distance .scanline-distance__select {
    display: none;
}

.scanline-distance {
    flex: 1 1 100%;
    margin-top: 18px;
}

.scanline-distance__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    font-size: 13px;
    color: #595959;
}

.scanline-distance__value {
    font-variant-numeric: tabular-nums;
    color: var(--e-global-color-fb5934e, #BB7E53);
    font-weight: 600;
}

.scanline-distance__range {
    --fill: 0%;
    -webkit-appearance: none;
    appearance: none;
    display: block;
    width: 100%;
    height: 22px;
    margin: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.scanline-distance__range::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(
        to right,
        var(--e-global-color-fb5934e, #BB7E53) var(--fill),
        var(--e-global-color-c2fcfc7, #F2EAE3) var(--fill)
    );
}

.scanline-distance__range::-moz-range-track {
    height: 4px;
    border-radius: 2px;
    background: var(--e-global-color-c2fcfc7, #F2EAE3);
}

.scanline-distance__range::-moz-range-progress {
    height: 4px;
    border-radius: 2px;
    background: var(--e-global-color-fb5934e, #BB7E53);
}

.scanline-distance__range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-top: -8px;
    border: 0;
    border-radius: 50%;
    background: var(--e-global-color-fb5934e, #BB7E53);
    transition: transform 150ms ease-out;
}

.scanline-distance__range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: var(--e-global-color-fb5934e, #BB7E53);
    transition: transform 150ms ease-out;
}

.scanline-distance__range:active::-webkit-slider-thumb {
    transform: scale(1.1);
}

.scanline-distance__range:active::-moz-range-thumb {
    transform: scale(1.1);
}

.scanline-distance__range:focus-visible {
    outline: 2px solid var(--e-global-color-fb5934e, #BB7E53);
    outline-offset: 4px;
}

/* Afstandsmærket på forhandlerkortet ([scanline_afstand]). */
.elementor-widget.scanline-afstand-widget {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    margin: 0;
}

/* Lange forhandlernavne må ikke løbe ind under mærket. */
.scanline-afstand-widget:has(.scanline-afstand) + .elementor-widget-heading .elementor-heading-title {
    padding-right: 64px;
}

.scanline-afstand {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--e-global-color-4d06540, #6C7C69);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
