/* Back-to-top button — shared across all Beyonsense pages */
/* Stacked directly above the chatbot trigger so the two never overlap */
.back-to-top {
  font-size: 16px;
  position: fixed;
  right: 2em;
  bottom: 1.5em; /* below the chatbot trigger */
  width: 2.75em;
  height: 2.75em;
  min-width: 2.75em;
  min-height: 2.75em;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 998; /* stays below .chatbot-trigger / .chatbot-panel (999+) */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top img {
  width: 2.75em;
  height: 2.75em;
  min-width: 2.75em;
  min-height: 2.75em;
  max-width: none;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.back-to-top.is-visible:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .back-to-top {
    right: 1.5em;
  }
}
