/* Floating WhatsApp — shared across all pages */
.whatsapp-float {
  position: fixed;
  bottom: max(1.5rem, env(safe-area-inset-bottom, 0px));
  right: max(1.5rem, env(safe-area-inset-right, 0px));
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  min-width: 3.5rem;
  min-height: 3.5rem;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.45),
    0 2px 10px rgba(0, 0, 0, 0.22);
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.whatsapp-float:hover {
  background: #20bd5a;
  color: #fff;
  transform: scale(1.06);
  box-shadow:
    0 6px 28px rgba(37, 211, 102, 0.5),
    0 4px 14px rgba(0, 0, 0, 0.28);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #d6ad60;
  outline-offset: 3px;
}

.whatsapp-float__icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
}

body.has-bottom-bar .whatsapp-float {
  bottom: max(
    var(--whatsapp-offset, 5.5rem),
    calc(1.5rem + env(safe-area-inset-bottom, 0px))
  );
}

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

  .whatsapp-float:hover {
    transform: none;
  }
}
