::-webkit-scrollbar {
    width: var(--space-2);
    height: var(--space-2);
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: var(--color-scrollbar-thumb);
    background-clip: content-box;

    border: 2px solid transparent;
    border-radius: var(--radius-pill);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-button:single-button {
    display: block;

    background-color: transparent;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 6px 6px;
}

::-webkit-scrollbar-button:single-button:vertical {
    height: 12px;
}

::-webkit-scrollbar-button:single-button:horizontal {
    width: 12px;
}

::-webkit-scrollbar-button:single-button:vertical:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3E%3Cpath d='M3 1.5 5 4.5H1z' fill='rgba(110,112,118,0.35)' stroke='rgba(110,112,118,0.35)' stroke-linejoin='round'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:single-button:vertical:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3E%3Cpath d='M3 4.5 5 1.5H1z' fill='rgba(110,112,118,0.35)' stroke='rgba(110,112,118,0.35)' stroke-linejoin='round'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:single-button:horizontal:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3E%3Cpath d='M1.5 3 4.5 1V5z' fill='rgba(110,112,118,0.35)' stroke='rgba(110,112,118,0.35)' stroke-linejoin='round'/%3E%3C/svg%3E");
}

::-webkit-scrollbar-button:single-button:horizontal:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 6'%3E%3Cpath d='M4.5 3 1.5 1V5z' fill='rgba(110,112,118,0.35)' stroke='rgba(110,112,118,0.35)' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: thin;
        scrollbar-color: var(--color-scrollbar-thumb) transparent;
    }
}
