/* Keep browser scroll restoration instant while the page is loading. */
html:not(.atek-smooth-scroll-ready) {
	scroll-behavior: auto !important;
}

/*
 * Bitrix24 fixes the body to the top while its mobile live chat is open.
 * Its own Safari workaround uses a static body; the same approach avoids
 * losing the current scroll position in Chrome and other touch browsers.
 */
body.bx-livechat-mobile-state {
	position: static !important;
}
