/* Back to top — Phase 11.3 / H.1(k) */
.sr-back-to-top {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--savorroots-main-black, #181818);
  color: var(--savorroots-main-white, #fbfbfb);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
  box-shadow: 0 4px 16px rgba(27, 27, 27, 0.18);
}

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

.sr-back-to-top:hover,
.sr-back-to-top:focus-visible {
  background: var(--savorroots-main-accent, #d08117);
  outline: none;
}

.sr-back-to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* Keep clear of CookieYes floating widget (usually bottom-left) */
@media (max-width: 560px) {
  .sr-back-to-top {
    right: 16px;
    bottom: 20px;
    width: 44px;
    height: 44px;
  }
}
