*,
*:after,
*:before {
    box-sizing: border-box;
}
.range-slider {
    height: 50px;
    background-color: #e5eaee;
    border-radius: 5px;
    color: #fff;
    max-width: 250px;
    width: 200%;
    position: relative;
    margin: 0 auto;
    left: -15px;
}
@media only screen and (min-width: 370px) {
    .range-slider {
        max-width: 880px;
        width: 190%;
        left: -11px;
    }
}
@media only screen and (min-width: 640px) {
    .range-slider {
        max-width: 880px;
        width: 180%;
        left: -11px;
    }
}
@media only screen and (min-width: 700px) {
    .range-slider {
        max-width: 880px;
        width: 105%;
        left: -11px;
    }
}
@media only screen and (min-width: 730px) {
    .range-slider {
        max-width: 880px;
        width: 170%;
        left: -11px;
    }
}
@media only screen and (min-width: 740px) {
    .range-slider {
        max-width: 880px;
        width: 170%;
        left: -11px;
    }
}
@media only screen and (min-width: 760px) {
    .range-slider {
        max-width: 880px;
        width: 110%;
        left: -11px;
    }
}
@media only screen and (min-width: 800px) {
    .range-slider {
        max-width: 880px;
        width: 105%;
        left: -11px;
    }
}
@media only screen and (min-width: 830px) {
    .range-slider {
        max-width: 880px;
        width: 103%;
        left: -11px;
    }
}
@media only screen and (min-width: 1000px) {
    .range-slider {
        max-width: 880px;
        width: 102%;
        left: -11px;
    }
}
.range-slider + .range-slider {
    margin-top: 60px;
}
.range-slider:before,
.range-slider:after {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    font-size: 14px;
    line-height: 20px;
    height: 20px;
    font-weight: 600;
    color: #000;
}
.range-slider:before {
    content: attr(data-start);
    left: 20px;
}
.range-slider:after {
    content: attr(data-end);
    right: 20px;
}
.range-number {
    position: absolute;
    left: 5px;
    top: 0;
    background-color: #e5eaee;
    padding: 5px;
    border-radius: 100%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transform: translateY(0%);
    user-select: none;
    transition: transform 0.25s cubic-bezier(0.02, 1.02, 0.27, 1.15);
    z-index: 2;
}
.range-number span {
    font-size: 14px;
    line-height: 40px;
    display: block;
    height: 40px;
    width: 40px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    border-radius: 100%;
    background-color: #ed1a2d;
    position: relative;
}
.range-number:before {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 10px;
    background: #5877fe;
    background: linear-gradient(135deg, transparent 10px, #5877fe 0) top left,
        linear-gradient(225deg, transparent 10px, #5877fe 0) top right;
    background-image: radial-gradient(
            circle at 0 0,
            transparent 10px,
            #e5eaee 11px
        ),
        radial-gradient(circle at 100% 0, transparent 10px, #e5eaee 11px);
    background-size: 51% 10px;
    background-repeat: no-repeat;
    transition: all 0.25s cubic-bezier(0.02, 1.02, 0.27, 1.15);
}
.range-slider.tap .range-number {
    transform: translateY(-100%);
}
.range-slider.tap .range-number:before {
    bottom: -1px;
    left: -4px;
    width: calc(100% + 8px);
}
