﻿:where(.c-custom-scrollbar) {
    background-color: #d3d3d3;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: clip;
    -webkit-user-select: none;
    user-select: none;
    width: 16px
}

:where(.c-custom-scrollbar[aria-orientation=horizontal]) {
    flex-direction: row;
    height: 16px;
    width: 100%
}

:where(.c-custom-scrollbar>*) {
    flex-grow: 0;
    flex-shrink: 0
}

.c-custom-scrollbar > .c-custom-scrollbar__rail {
    flex-shrink: 1;
    height: 100%;
    position: relative;
    width: 100%
}

:where(.c-custom-scrollbar__handle) {
    background-color: gray;
    height: var(--scrollbar-handle-size, 50%);
    left: 0;
    min-height: 16px;
    position: absolute;
    top: 0;
    transform: translateY(var(--scrollbar-handle-position, 0));
    width: 100%
}

:where(.c-custom-scrollbar[aria-orientation=horizontal] .c-custom-scrollbar__handle) {
    height: 100%;
    min-height: 0;
    min-width: 16px;
    transform: translate(var(--scrollbar-handle-position, 0));
    width: var(--scrollbar-handle-size, 50%)
}

:where(.c-base-scrollbar--has-horizontal) {
    overflow-x: auto;
    padding-bottom: 16px
}

:where(.c-base-scrollbar--has-vertical) {
    overflow-y: auto;
    padding-right: 16px
}

@media (max-width: 59.9em) {
    .c-base-scrollbar .c-custom-scrollbar {
        display: none !important
    }
}

:where(.c-base-scrollbar__horizontal) {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 8px;
    border-radius: var(--theme-borderRadius-full, var(--theme-borderRadius-full--sm))
}

:where(.c-base-scrollbar__vertical) {
    position: absolute;
    right: 0;
    top: 0;
    width: 8px;
    border-radius: var(--theme-borderRadius-full, var(--theme-borderRadius-full--sm))
}

.c-base-scrollbar__handle {
    --un-bg-opacity: 1;
    background-color: rgb(var(--theme-colors-onIndent-on-X) / var(--un-bg-opacity));
    --bgCurrent: rgb(var(--theme-colors-onIndent-on-X) / var(--un-bg-opacity))
}

    .c-base-scrollbar__handle:hover {
        --un-bg-opacity: 1;
        background-color: rgb(var(--theme-colors-onIndentHover-on-X) / var(--un-bg-opacity));
        --bgCurrent: rgb(var(--theme-colors-onIndentHover-on-X) / var(--un-bg-opacity))
    }

:where(.c-base-scrollbar--has-horizontal.c-base-scrollbar--has-vertical) :where(.c-base-scrollbar__horizontal) {
    width: calc(100% - 16px)
}

:where(.c-base-scrollbar--has-horizontal.c-base-scrollbar--has-vertical) :where(.c-base-scrollbar__vertical) {
    height: calc(100% - 16px)
}

.scrollBarFadeIn-enter-active, .scrollBarFadeIn-leave-active {
    transition: opacity .5s ease
}

.scrollBarFadeIn-enter-from, .scrollBarFadeIn-leave-to {
    opacity: 0
}
