.whatsapp-float {
  position: fixed;
  z-index: 40;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  display: grid;
  box-sizing: border-box;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  background: #168c4d;
  box-shadow: 0 5px 18px #13294b33;
  text-decoration: none;
  transition: background-color .16s ease, box-shadow .16s ease;
}

.whatsapp-float img {
  display: block;
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  background: #10783f;
  box-shadow: 0 7px 24px #13294b40;
}

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

.whatsapp-float::before {
  position: absolute;
  right: calc(100% + 10px);
  padding: 7px 12px;
  border-radius: 5px;
  color: #fff;
  background: #13294b;
  font: 600 13px/1.5 "Segoe UI", Arial, sans-serif;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  content: "WhatsApp";
}

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

@media (max-width: 540px) {
  .whatsapp-float {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 54px;
    height: 54px;
  }
}

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