.site-footer .back-to-top {
  position: fixed !important;
  right: 30px !important;
  bottom: 30px !important;
  z-index: 9999 !important;

  width: 48px !important;
  height: 48px !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;

  background: #101315 !important;
  border: 1px solid rgba(244, 245, 242, .18) !important;
  border-radius: 50% !important;
  color: #f4f5f2 !important;
  text-decoration: none !important;
  font-size: 0 !important;
  line-height: 0 !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(10px) !important;
  transition: opacity .2s ease, transform .2s ease,
    background .2s ease, color .2s ease, border-color .2s ease !important;
}

.site-footer .back-to-top > span {
  font-size: 0 !important;
}

.site-footer .back-to-top::before {
  content: "";
  display: block !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  transform: translate(-50%, -50%) !important;
  pointer-events: none;
  background: url('/wp-content/uploads/2026/10/up.svg') center / contain no-repeat;
  filter: brightness(0) invert(1);
  transition: filter .2s ease !important;
}

.site-footer .back-to-top:hover {
  background: #ffc500 !important;
  border-color: #ffc500 !important;
  color: #101315 !important;
}

.site-footer .back-to-top:hover::before {
  filter: brightness(0) !important;
}

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

@media (max-width: 640px) {
  .site-footer .back-to-top {
    right: 16px !important;
    bottom: 18px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .back-to-top,
  .site-footer .back-to-top::before {
    transition: none !important;
  }
}
