:root {
    --scrollthumb-color: var(--color-neutral-400, #a3a3a3);
    --scrollthumb-hover-color: var(--color-neutral-500, #737373);
    --scrolltrack-color: transparent;
}

@supports selector(::-webkit-scrollbar) {
    :root,
    * {
        scrollbar-color: auto;
        scrollbar-width: auto;
    }
}

@supports not selector(::-webkit-scrollbar) {
    * {
        scrollbar-color: var(--scrollthumb-color)
            var(--scrolltrack-color);
        scrollbar-width: thin;
    }
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: var(--scrolltrack-color);
}

*::-webkit-scrollbar-thumb {
    min-width: 32px;
    min-height: 32px;
    border: 1px solid transparent;
    border-radius: 9999px;
    background: var(--scrollthumb-color);
    background-clip: content-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: var(--scrollthumb-hover-color);
    background-clip: content-box;
}

*::-webkit-scrollbar-button,
*::-webkit-scrollbar-button:single-button,
*::-webkit-scrollbar-button:vertical:decrement,
*::-webkit-scrollbar-button:vertical:increment,
*::-webkit-scrollbar-button:horizontal:decrement,
*::-webkit-scrollbar-button:horizontal:increment {
    appearance: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-image: none !important;
}
