:root {
    --pc-layer-xpad: 22px;
}

.layers-list-item.is-range-layer {
    position: relative;
    padding: 12px 0 22px;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f1f1;
}

.layers-list-item.is-range-layer .range-wrap--vertical {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 6px;
    padding-left: var(--pc-layer-xpad);
    padding-right: var(--pc-layer-xpad);
    box-sizing: border-box;
    width: 100%;
}

.layers-list-item.is-range-layer .choice-range {
    width: 100%;
    height: 6px;
    appearance: none;
    background: #e5e5e5;
    border-radius: 9999px;
    outline: none;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}

.layers-list-item.is-range-layer .choice-range:hover,
.layers-list-item.is-range-layer .choice-range:focus {
    background: #dcdcdc;
}

.layers-list-item.is-range-layer .choice-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d81d16; /* Boeck-Rot */
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.layers-list-item.is-range-layer .choice-range::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #d81d16;
    border: 2px solid #fff;
    box-shadow: 0 0 3px rgba(0,0,0,0.25);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.layers-list-item.is-range-layer .choice-range::-webkit-slider-thumb:hover,
.layers-list-item.is-range-layer .choice-range::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 0 5px rgba(216,29,22,0.5);
}

.layers-list-item.is-range-layer .range-number-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    margin-top: 4px;
    padding-left: var(--pc-layer-xpad);
    padding-right: var(--pc-layer-xpad);
}

.layers-list-item.is-range-layer .choice-number {
    width: 90px;
    height: 36px;
    line-height: 36px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fff;
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    color: #26292c;

    pointer-events: none;
    user-select: none;
    cursor: default;
}

.layers-list-item.is-range-layer .choice-number::-webkit-outer-spin-button,
.layers-list-item.is-range-layer .choice-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.layers-list-item.is-range-layer .choice-number {
    -moz-appearance: textfield;
}

.layers-list-item.is-range-layer .unit {
    font-size: 0.9em;
    opacity: 0.7;
    color: #444;
}

.layers-list-item.is-range-layer span.selected-choice {
    display: block;
    font-weight: 500;
    font-size: 0.9em;
    color: #555;
    margin-top: 4px;
    text-align: left;
    text-transform: none !important;
}

@media (max-width: 768px) {
    .layers-list-item.is-range-layer .choice-number {
        width: 70px;
        height: 32px;
        font-size: 0.9rem;
    }

    .layers-list-item.is-range-layer .choice-range {
        height: 5px;
    }

    .layers-list-item.is-range-layer .range-wrap--vertical {
        gap: 10px;
    }

    :root {
        --pc-layer-xpad: 16px;
    }
}

.layers-list-item.is-range-layer .choice-range:focus-visible {
    outline: 2px solid #d81d16;
    outline-offset: 2px;
}

.layers-list-item.is-range-layer .choice-number:focus-visible {
    outline: none;
}

.layers-list-item.is-range-layer .range-wrap {
    width: 100%;
    box-sizing: border-box;
}

.layers-list-item.is-range-layer:last-child {
    border-bottom: none;
}
