/* Figma SPG-AB 903:2977 — Default: glass pill + border rgba(255,255,255,0.5); Hover: border white */
.backToTop {
  position: fixed;
  z-index: 920;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px 12px 14px;
  max-width: min(calc(100vw - 32px), 320px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  font-weight: 500;
  font-style: normal;
  line-height: 1.5;
  letter-spacing: 0;
  white-space: nowrap;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.backToTop:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.backToTop:focus {
  outline: none;
}
.backToTop:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.backToTop:active {
  opacity: 0.92;
}
.backToTop__icon {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}
.backToTop__chevron {
  display: block;
  width: 24px;
  height: 24px;
}
.backToTop__label {
  position: relative;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .backToTop {
    touch-action: manipulation;
    padding: 10px 18px 10px 12px;
    font-size: 15px;
    gap: 6px;
  }
  .backToTop__icon {
    width: 22px;
    height: 22px;
  }
  .backToTop__chevron {
    width: 22px;
    height: 22px;
  }
}
