/* Padrão de rolagem compartilhado pela loja, pelos painéis e pelos diálogos. */
:root {
    --rb-scroll-track: #f7f3f6;
    --rb-scroll-thumb: #b97596;
    --rb-scroll-thumb-hover: #a45d80;
    --rb-scroll-thumb-active: #874665;
}
html, body, body * {
    scrollbar-width: thin !important;
    scrollbar-color: var(--rb-scroll-thumb) var(--rb-scroll-track) !important;
}
/* Chrome, Edge e Safari: contorno suave e cursor arredondado. */
@supports selector(::-webkit-scrollbar) {
    html, body, body * {
        scrollbar-width: auto !important;
        scrollbar-color: auto !important;
    }
    ::-webkit-scrollbar { width: 10px; height: 10px; }
    ::-webkit-scrollbar-track {
        background: var(--rb-scroll-track);
        border-radius: 999px;
        margin: 6px;
    }
    ::-webkit-scrollbar-thumb {
        background: var(--rb-scroll-thumb);
        border: 2px solid var(--rb-scroll-track);
        border-radius: 999px;
        min-height: 36px;
        min-width: 36px;
    }
    ::-webkit-scrollbar-thumb:hover { background: var(--rb-scroll-thumb-hover); }
    ::-webkit-scrollbar-thumb:active { background: var(--rb-scroll-thumb-active); }
    ::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
    ::-webkit-scrollbar-corner { background: var(--rb-scroll-track); }
    @media (pointer: coarse) {
        ::-webkit-scrollbar { width: 12px; height: 12px; }
    }
}
/* Respeita o modo de alto contraste escolhido pelo cliente. */
@media (forced-colors: active) {
    html, body, body * { scrollbar-color: auto !important; scrollbar-width: auto !important; }
    ::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: Canvas; }
    ::-webkit-scrollbar-thumb { background: CanvasText; border-color: Canvas; }
    ::-webkit-scrollbar-thumb:hover, ::-webkit-scrollbar-thumb:active { background: Highlight; }
}
