/**
 * OrgReach Scroll Fix
 * Prevents unwanted scrolling behavior
 */

/* Disable smooth scroll globally when interacting with page */
html:focus-within {
    scroll-behavior: auto !important;
}

/* Prevent focus outline from causing layout shift */
*:focus {
    outline-offset: -2px;
}

/* Ensure chat elements don't cause reflow */
.facebook-chat-widget,
.facebook-chat-widget * {
    scroll-margin: 0 !important;
    scroll-padding: 0 !important;
}

/* Prevent anchor elements near chat from causing jumps */
.elementor-widget-orgreach_chat,
.elementor-widget-orgreach_chat + *,
.elementor-widget-orgreach_chat ~ * {
    scroll-snap-type: none !important;
    scroll-behavior: auto !important;
}

/* Override any ID-based anchors that might be triggered */
#notifications,
#donate-button {
    scroll-margin-top: 0 !important;
}