.rangeslider,
.rangeslider__fill {
    display: block;
    /*-moz-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: inset 0px 1px 3px rgba(0, 0, 0, 0.3);
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;*/

    outline: none;
    opacity: 1;

    -webkit-transition: .2s;
    transition: opacity .2s;
    /*accent-color: var(--clr-progress-front1);*/
    border-radius: calc(10px * var(--ui-scale));
    /*margin-bottom: calc(15px * var(--ui-scale));*/
    border: 1px solid #ffffff;
    --slider-bg-clr: #ffffff;
}

.rangeslider {
    /*background: #e6e6e6;*/
    position: relative;

    background: #ffffff;
}

.rangeslider--horizontal {
    /*height: 20px;
    width: 100%;*/

    width: 100%;
    height: calc(6px * var(--ui-scale));

    border-radius: calc(30px * var(--ui-scale));
    padding: calc(3px * var(--ui-scale)) calc(0px * var(--ui-scale));
}

.rangeslider--vertical {
    /* for some weird reason min w and h have to be at least 10/30 px, otherwise the rangeslider will bug out and cause recursive issues with our code - probably something visibility related*/
    min-width: 10px;
    min-height: 30px;

    width: auto;
    height: 100%;
    padding: 0 !important;
    box-sizing: border-box;

    border-radius: 0 !important;
    border-bottom: 0;
    --slider-bg-clr: var(--clr-green3);
    --slider-bg-clr: transparent;

    background: transparent;
}

.rangeslider--disabled {
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=40);
    opacity: 0.4;
}

.rangeslider__fill {
    /*background: #00ff00;*/
    background: #000000;
    position: absolute;
}
.rangeslider--horizontal .rangeslider__fill {
    top: -1px;
    left: -1px;
    height: 100%;
}
.rangeslider--vertical .rangeslider__fill {
    bottom: 0;
    left: -1px;
    width: 100%;
    border-radius: 0;
}

.rangeslider__handle {
    /*background: white;
    border: 1px solid #ccc;*/
    cursor: pointer;
    display: inline-block;
    /*width: 40px;
    height: 40px;*/
    position: absolute;
    /*background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZmZmZmZiIgc3RvcC1vcGFjaXR5PSIwLjAiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xIi8+PC9saW5lYXJHcmFkaWVudD48L2RlZnM+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsbD0idXJsKCNncmFkKSIgLz48L3N2Zz4g');
    background-size: 100%;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(255, 255, 255, 0)), color-stop(100%, rgba(0, 0, 0, 0.1)));
    background-image: -moz-linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
    background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
    background-image: linear-gradient(rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.1));
    -moz-box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;*/


    width: calc(36px * var(--ui-scale));
    height: calc(36px * var(--ui-scale));
    border-radius: calc(18px * var(--ui-scale));
    border: 0;
    background: var(--clr-progress-front1);
    /*background-size: 100% 100%;*/
    cursor: pointer;
    transform: translate3D(calc(var(--slider-thumb-offset-x) * 100%), 0, 0);
    -webkit-transform: translate3D(calc(var(--slider-thumb-offset-x) * 100%), 0, 0);
    border: 1px solid white;

    /* to avoid flickering/improve performance of box-shadow transitions */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
/*
.rangeslider__handle:after {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEzIi8+PHN0b3Agb2Zmc2V0PSIxMDAlIiBzdG9wLWNvbG9yPSIjZmZmZmZmIiBzdG9wLW9wYWNpdHk9IjAuMCIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
    background-size: 100%;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(0, 0, 0, 0.13)), color-stop(100%, rgba(255, 255, 255, 0)));
    background-image: -moz-linear-gradient(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0));
    background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0));
    background-image: linear-gradient(rgba(0, 0, 0, 0.13), rgba(255, 255, 255, 0));
    -moz-border-radius: 50%;
    -webkit-border-radius: 50%;
    border-radius: 50%;
}*/
.rangeslider__handle:active, .rangeslider--active .rangeslider__handle {
    /*background-image: url('data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4gPHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PGxpbmVhckdyYWRpZW50IGlkPSJncmFkIiBncmFkaWVudFVuaXRzPSJvYmplY3RCb3VuZGluZ0JveCIgeDE9IjAuNSIgeTE9IjAuMCIgeDI9IjAuNSIgeTI9IjEuMCI+PHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iIzAwMDAwMCIgc3RvcC1vcGFjaXR5PSIwLjEiLz48c3RvcCBvZmZzZXQ9IjEwMCUiIHN0b3AtY29sb3I9IiMwMDAwMDAiIHN0b3Atb3BhY2l0eT0iMC4xMiIvPjwvbGluZWFyR3JhZGllbnQ+PC9kZWZzPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JhZCkiIC8+PC9zdmc+IA==');
    background-size: 100%;
    background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(0, 0, 0, 0.1)), color-stop(100%, rgba(0, 0, 0, 0.12)));
    background-image: -moz-linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.12));
    background-image: -webkit-linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.12));
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.12));*/

    /*background: #bebebe;*/
    border: 1px solid white;
}
.rangeslider--horizontal .rangeslider__handle {
    /* align centrally */
    top: 0;
    bottom: 0;
    margin: auto 0;

    touch-action: pan-y;
    -ms-touch-action: pan-y;
}
.rangeslider--vertical .rangeslider__handle {
    /* align centrally */
    left: -5%;
    right: -5%;
    margin: 0 auto;
    touch-action: pan-x;
    -ms-touch-action: pan-x;


    width: 110%;
    height: calc(13px * var(--ui-scale));
    border-radius: calc(25px * var(--ui-scale));
    border: 1px solid #ffffff;
    filter: drop-shadow(0 0 3px #ffd700a6);
    /* we can still use xoffset, but apply it veritcally */
    transform: translate3D(0, calc(var(--slider-thumb-offset-x) * -100%), 0);
    -webkit-transform: translate3D(0, calc(var(--slider-thumb-offset-x) * -100%), 0);
    /*transform: none !important;*/
}

input[type="range"]:focus + .rangeslider .rangeslider__handle {
    /*-moz-box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
    -webkit-box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);
    box-shadow: 0 0 8px rgba(255, 0, 255, 0.9);*/
}
/* override default slider behaviour to rather show at max, if min===max*/
.rangeslider--horizontal.rangeslider--max-value .rangeslider__handle {
    right: 0 !important;
    left: auto !important;
}
.rangeslider--horizontal.rangeslider--max-value .rangeslider__fill {
    width: 100% !important;
}
.rangeslider--vertical.rangeslider--max-value .rangeslider__fill,
.rangeslider--vertical.rangeslider--max-value .rangeslider__handle {
    top: 0 !important;
    bottom: auto !important;
}
.rangeslider--vertical.rangeslider--max-value .rangeslider__fill {
    height: 100% !important;
}