/* Native scrolling is retained when the enhancement is unavailable. */
:is(.sf-prose, .editor-styles-wrapper) .wp-block-table {
    scrollbar-width: thin;
    scrollbar-color: rgba(6,119,255,.3) var(--sf-pale);
}
:is(.sf-prose, .editor-styles-wrapper) .wp-block-table::-webkit-scrollbar {
    height: 7px;
}
:is(.sf-prose, .editor-styles-wrapper) .wp-block-table::-webkit-scrollbar-track {
    background: var(--sf-pale);
    border-radius: 100px;
}
:is(.sf-prose, .editor-styles-wrapper) .wp-block-table::-webkit-scrollbar-thumb {
    background: rgba(6,119,255,.3);
    border-radius: 100px;
}
:is(.sf-prose, .editor-styles-wrapper) .wp-block-table::-webkit-scrollbar-button {
    display: none;
    width: 0;
    height: 0;
}
.sf-table-scroll {
    min-width: 0;
    margin: 20px 0 32px;
}
.sf-prose .sf-table-scroll > .wp-block-table {
    margin: 0;
    scrollbar-width: none;
}
.sf-table-scroll > .wp-block-table::-webkit-scrollbar {
    display: none;
    height: 0;
}
.sf-table-scrollbar {
    position: relative;
    height: 7px;
    margin-top: 18px;
    border-radius: 100px;
    background: var(--sf-pale);
    cursor: pointer;
    touch-action: none;
    user-select: none;
}
.sf-table-scrollbar[hidden] {
    display: none;
}
.sf-table-scrollbar::before {
    position: absolute;
    inset: -7px 0;
    content: '';
}
.sf-table-thumb {
    position: absolute;
    inset: 0 auto 0 0;
    height: 7px;
    border-radius: 100px;
    background: rgba(6,119,255,.3);
    cursor: grab;
}
.sf-table-thumb::before {
    position: absolute;
    inset: -7px 0;
    content: '';
}
.sf-table-scrollbar.is-dragging .sf-table-thumb {
    cursor: grabbing;
}
.sf-table-scrollbar:focus-visible {
    outline: 2px solid var(--sf-blue);
    outline-offset: 5px;
}
@media (forced-colors: active) {
    .sf-table-scrollbar { background: Canvas; border: 1px solid CanvasText; }
    .sf-table-thumb { background: Highlight; }
}
