/* GoServ — back to top */

.ais-site-floats {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.ais-back-to-top,
.gs-back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 106, 19, 0.45);
  border-radius: 12px;
  background: #ff6a13;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.ais-back-to-top.is-visible,
.gs-back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ais-back-to-top:hover,
.ais-back-to-top:focus-visible,
.gs-back-to-top:hover,
.gs-back-to-top:focus-visible {
  background: #ff7d33;
  border-color: #ff8a4c;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  outline: none;
}

.ais-back-to-top:active,
.gs-back-to-top:active {
  transform: translateY(0);
}

.ais-back-to-top i,
.ais-back-to-top i::before,
.gs-back-to-top i,
.gs-back-to-top i::before {
  font-size: 0.95rem;
  line-height: 1;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

.gs-back-to-top__icon {
  display: block;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.gs-back-to-top__icon path {
  stroke: #ffffff !important;
}

@media (max-width: 768px) {
  .ais-site-floats {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .ais-back-to-top,
  .gs-back-to-top {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 11px;
  }

  .ais-back-to-top i,
  .gs-back-to-top i {
    font-size: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ais-back-to-top,
  .gs-back-to-top {
    transition: none;
  }
}
