/* ==========================================================================
   Back-to-top floating button
   Markup is injected by js/back-to-top.js. Sits above the Quick Actions FAB
   so the two never overlap.
   ========================================================================== */

.zt-top-btn {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(15, 31, 36, 0.12);
  background: #ffffff;
  color: #0f1f24;
  cursor: pointer;
  z-index: 1040;
  box-shadow: 0 12px 28px -14px rgba(15, 31, 36, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease,
    background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.zt-top-btn.zt-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.zt-top-btn:hover {
  background: #0f1f24;
  border-color: #0f1f24;
  color: #ffffff;
}

.zt-top-btn:focus-visible {
  outline: 3px solid rgba(210, 138, 25, 0.55);
  outline-offset: 3px;
}

.zt-top-btn svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 720px) {
  .zt-top-btn {
    right: 14px;
    bottom: 78px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .zt-top-btn {
    transition: none;
  }
}
