/* Klever v50 — reliable public "scroll to top" button.
   The element is controlled independently from old jQuery fade rules so it remains
   available after long pages and never competes with the Bitrix public editor. */
html body.klever-site-page:not(.klever-bitrix-admin-mode) #Go_Top.go_top {
  position: fixed !important;
  right: 30px !important;
  bottom: 30px !important;
  z-index: 12000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  line-height: 1 !important;
  text-decoration: none !important;
  opacity: .96 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  transform: translateZ(0);
}

html body.klever-site-page:not(.klever-bitrix-admin-mode) #Go_Top.go_top.klever-go-top--visible {
  display: flex !important;
}

html body.klever-site-page:not(.klever-bitrix-admin-mode) #Go_Top.go_top .fa {
  display: block !important;
  line-height: 1 !important;
}

html body.klever-site-page:not(.klever-bitrix-admin-mode) #Go_Top.go_top:hover,
html body.klever-site-page:not(.klever-bitrix-admin-mode) #Go_Top.go_top:focus {
  color: #fff !important;
  opacity: 1 !important;
}

@media (max-width: 767.98px) {
  html body.klever-site-page:not(.klever-bitrix-admin-mode) #Go_Top.go_top {
    right: 14px !important;
    bottom: calc(108px + env(safe-area-inset-bottom)) !important;
  }
}

/* In Bitrix public editing mode the button must not create a new layer over dialogs. */
html body.klever-bitrix-admin-mode #Go_Top.go_top {
  display: none !important;
}
