.lr27-go-to-top {
  --lr27-bottom-desktop: 28px;
  --lr27-bottom-mobile: 88px;
  position: fixed;
  right: max(24px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--lr27-bottom-desktop) + env(safe-area-inset-bottom, 0px));
  z-index: 1040;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #050713;
  box-shadow: 0 4px 20px rgb(5 7 19 / 20%);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, box-shadow 180ms ease;
  animation: lr27-go-to-top-reveal 220ms ease-out backwards;
}
.lr27-go-to-top[hidden] { display: none !important; }
.lr27-go-to-top[data-side="left"] { right: auto; left: max(24px, env(safe-area-inset-left, 0px)); }
.lr27-go-to-top:focus-visible { outline: 3px solid #46c5dc; outline-offset: 4px; }
.lr27-go-to-top__logo { display: block; width: 35px; height: 35px; object-fit: contain; margin: 5px 0 0; pointer-events: none; }
.lr27-go-to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-width: 1.6; pointer-events: none; transform: rotate(-90deg); }
.lr27-go-to-top__track { stroke: #5f4dd0; opacity: .15; }
.lr27-go-to-top__progress { stroke: #5f4dd0; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.lr27-go-to-top[data-progress="0"] .lr27-go-to-top__ring { display: none; }
.lr27-go-to-top__arrow { position: absolute; top: 7px; left: 23px; width: 14px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
@media (hover: hover) {
  .lr27-go-to-top:hover { transform: translateY(-3px); box-shadow: 0 7px 24px rgb(5 7 19 / 26%); }
}
.lr27-go-to-top:active { transform: translateY(-1px); }
@keyframes lr27-go-to-top-reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 991px) {
  .lr27-go-to-top { width: 52px; height: 52px; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(var(--lr27-bottom-mobile) + env(safe-area-inset-bottom, 0px)); }
  .lr27-go-to-top[data-side="left"] { left: max(16px, env(safe-area-inset-left, 0px)); }
  .lr27-go-to-top__logo { width: 30px; height: 30px; }
  .lr27-go-to-top__arrow { top: 5px; left: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  .lr27-go-to-top { animation: none; transition: none; }
  .lr27-go-to-top:hover, .lr27-go-to-top:active { transform: none; }
}
@media print { .lr27-go-to-top { display: none !important; } }
