.scroll-progress {
    --scroll-progress-fill-color: #009900;
    --scroll-progress-offset: 0;
    --scroll-progress-thickness: 10px;
    --scroll-progress-track-color: #e6e6e6;
    box-sizing: border-box;
    color: #1d2327;
    left: 0;
    pointer-events: none;
    position: fixed;
    width: 100%;
    z-index: 99999;
}

.scroll-progress[hidden] {
    display: none;
}

.scroll-progress--top {
    top: var(--scroll-progress-offset);
}

.scroll-progress--bottom {
    bottom: 0;
}

.scroll-progress--left,
.scroll-progress--right {
    height: calc(100vh - var(--scroll-progress-offset));
    top: var(--scroll-progress-offset);
    width: var(--scroll-progress-thickness);
}

.scroll-progress--left {
    left: 0;
}

.scroll-progress--right {
    left: auto;
    right: 0;
}

.scroll-progress__track {
    background: var(--scroll-progress-track-color);
    display: block;
    height: var(--scroll-progress-thickness);
    overflow: visible;
    position: relative;
    width: 100%;
}

.scroll-progress--left .scroll-progress__track,
.scroll-progress--right .scroll-progress__track {
    height: 100%;
    width: var(--scroll-progress-thickness);
}

.scroll-progress__fill {
    background: var(--scroll-progress-fill-color);
    display: block;
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    transform: scaleX(0);
    transform-origin: left center;
    width: 100%;
    will-change: transform;
}

.scroll-progress--left .scroll-progress__fill,
.scroll-progress--right .scroll-progress__fill {
    height: 100%;
    transform: scaleY(0);
    transform-origin: center top;
    width: 100%;
}

.scroll-progress__indicator {
    background: var(--scroll-progress-fill-color);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.28);
    height: 20px;
    height: max(18px, calc(var(--scroll-progress-thickness) * 2));
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    width: max(18px, calc(var(--scroll-progress-thickness) * 2));
}

.scroll-progress--left .scroll-progress__indicator,
.scroll-progress--right .scroll-progress__indicator {
    left: 50%;
    top: 0;
}

.scroll-progress__percentage {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
    font: 600 11px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-width: 3.6em;
    padding: 1px 5px;
    position: absolute;
    right: 8px;
    text-align: center;
}

.scroll-progress--top .scroll-progress__percentage {
    top: calc(var(--scroll-progress-thickness) + 5px);
}

.scroll-progress--bottom .scroll-progress__percentage {
    bottom: calc(var(--scroll-progress-thickness) + 5px);
}

.scroll-progress--left .scroll-progress__percentage,
.scroll-progress--right .scroll-progress__percentage {
    bottom: 8px;
    right: auto;
}

.scroll-progress--left .scroll-progress__percentage {
    left: calc(var(--scroll-progress-thickness) + 5px);
}

.scroll-progress--right .scroll-progress__percentage {
    right: calc(var(--scroll-progress-thickness) + 5px);
}

html.scroll-progress-hide-native-scrollbar,
html.scroll-progress-hide-native-scrollbar body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html.scroll-progress-hide-native-scrollbar::-webkit-scrollbar,
html.scroll-progress-hide-native-scrollbar body::-webkit-scrollbar {
    display: none;
}

@media (min-width: 783px) {
    html.scroll-progress-hide-native-scrollbar-desktop,
    html.scroll-progress-hide-native-scrollbar-desktop body {
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    html.scroll-progress-hide-native-scrollbar-desktop::-webkit-scrollbar,
    html.scroll-progress-hide-native-scrollbar-desktop body::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 782px) {
    .scroll-progress--hide-mobile {
        display: none;
    }
}

@media print {
    .scroll-progress {
        display: none;
    }
}
