/* A slow perimeter route keeps the WhatsApp shortcut visible without crossing page copy. */
.whatsapp-orbit {
  position: fixed;
  z-index: 40;
  top: 110px;
  left: 18px;
  display: block;
  width: 88px;
  height: 88px;
  border-radius: 18px;
  background: transparent;
  animation: qula-whatsapp-orbit 56s linear infinite;
  will-change: transform;
}

.whatsapp-orbit img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgb(0 0 0 / 27%));
}

.whatsapp-orbit:hover,
.whatsapp-orbit:focus-visible {
  animation-play-state: paused;
}

.whatsapp-orbit:hover img,
.whatsapp-orbit:focus-visible img {
  filter: drop-shadow(0 10px 14px rgb(0 0 0 / 38%));
}

.whatsapp-orbit:focus-visible {
  outline: 3px solid #e8ca89;
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@keyframes qula-whatsapp-orbit {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(calc(100vw - 124px), 0, 0); }
  50% { transform: translate3d(calc(100vw - 124px), calc(100dvh - 295px), 0); }
  75% { transform: translate3d(0, calc(100dvh - 295px), 0); }
}

@media (max-width: 640px) {
  .whatsapp-orbit {
    top: 82px;
    left: 10px;
    width: 66px;
    height: 66px;
    animation-duration: 48s;
  }

  @keyframes qula-whatsapp-orbit {
    0%, 100% { transform: translate3d(0, 0, 0); }
    25% { transform: translate3d(calc(100vw - 86px), 0, 0); }
    50% { transform: translate3d(calc(100vw - 86px), calc(100dvh - 240px), 0); }
    75% { transform: translate3d(0, calc(100dvh - 240px), 0); }
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-orbit {
    animation: none !important;
    top: auto;
    left: auto;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(80px, calc(env(safe-area-inset-bottom) + 64px));
    will-change: auto;
  }
}
