.scroll-to-top-button {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 75;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.14);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.scroll-to-top-button.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-to-top-button:hover {
  border-color: rgba(37, 99, 235, 0.32);
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  transform: translateY(-1px);
}

.scroll-to-top-button:active {
  transform: translateY(1px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.13);
}

.scroll-to-top-button:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

.scroll-to-top-icon {
  font-size: 16px;
  line-height: 1;
}

.scroll-to-top-label {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .scroll-to-top-button {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
    padding: 0;
  }

  .scroll-to-top-label {
    display: none;
  }
}
