/* Shared scroll-to-top button (POSH course templates) */
.posh-scroll-top {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 99999;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: #1472ba;
  color: #fff;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(20, 114, 186, 0.38);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.posh-scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.posh-scroll-top:hover {
  background: #0f5a95;
}

.posh-scroll-top:focus {
  outline: none;
}

.posh-scroll-top:focus-visible {
  outline: 3px solid rgba(20, 114, 186, 0.45);
  outline-offset: 3px;
}

.posh-scroll-top__icon {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto;
  border-left: 3px solid #fff;
  border-top: 3px solid #fff;
  transform: rotate(45deg) translate(1px, 3px);
}

@media (max-width: 640px) {
  .posh-scroll-top {
    right: 14px;
    bottom: 20px;
    width: 40px;
    height: 40px;
  }
}
