/* Shared floating controls. This file is loaded by every frontend asset bundle. */
.float-whatsapp {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 1490;
  display: block;
  width: 96px;
  height: 96px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-decoration: none;
  transform-origin: center bottom;
  transition: transform 0.25s ease-in-out;
}

.float-whatsapp-robot {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: contain;
  transition: opacity 0.18s ease-in-out;
}

.float-whatsapp-robot--hover {
  opacity: 0;
}

.float-whatsapp:hover,
.float-whatsapp:focus-visible {
  transform: scale(1.08);
}

.float-whatsapp:hover .float-whatsapp-robot--idle,
.float-whatsapp:focus-visible .float-whatsapp-robot--idle {
  opacity: 0;
}

.float-whatsapp:hover .float-whatsapp-robot--hover,
.float-whatsapp:focus-visible .float-whatsapp-robot--hover {
  opacity: 1;
}

.float-whatsapp:focus-visible {
  border-radius: 16px;
  outline: 3px solid #bb8b16;
  outline-offset: 3px;
}

html[dir="rtl"] .float-whatsapp {
  right: auto;
  left: 20px;
}

@media (max-width: 640px) {
  .float-whatsapp {
    right: 12px;
    bottom: 70px;
    width: 80px;
    height: 80px;
  }

  html[dir="rtl"] .float-whatsapp {
    right: auto;
    left: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-whatsapp,
  .float-whatsapp-robot {
    transition: none;
  }
}
