/* ABNER_BACKTOP_FIX_V241
   Hide back-to-top at page top, show only after scroll, and keep it above Abner AI/chat.
*/

html:not(.ad-backtop-ready) #backToTop,
html:not(.ad-backtop-ready) #back-to-top,
html:not(.ad-backtop-ready) .back-to-top,
html:not(.ad-backtop-ready) .backTop,
html:not(.ad-backtop-ready) .back-top,
html:not(.ad-backtop-ready) .scroll-to-top,
html:not(.ad-backtop-ready) .scrollTop,
html:not(.ad-backtop-ready) .go-top,
html:not(.ad-backtop-ready) .to-top,
html:not(.ad-backtop-ready) .js-back-to-top,
html:not(.ad-backtop-ready) [data-back-to-top],
html:not(.ad-backtop-ready) [data-scroll-top] {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body .ad-backtop-managed {
  position: fixed !important;
  right: 30px !important;
  bottom: calc(142px + env(safe-area-inset-bottom, 0px)) !important;
  z-index: 9997 !important;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
  will-change: opacity, transform !important;
}

body .ad-backtop-managed.ad-backtop-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(14px) scale(.96) !important;
}

body .ad-backtop-managed.ad-backtop-visible {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) scale(1) !important;
}

body .ad-backtop-duplicate {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  body .ad-backtop-managed {
    right: 18px !important;
    bottom: calc(116px + env(safe-area-inset-bottom, 0px)) !important;
  }
}
