.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(5, 65, 39, 0.28);
  font: 800 15px/1 "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  text-decoration: none !important;
  transition: transform 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float::before {
  content: "☎";
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  transform: rotate(-18deg);
}

.whatsapp-float:hover {
  background: #1fbd5a;
  box-shadow: 0 16px 36px rgba(5, 65, 39, 0.34);
  transform: translateY(-2px);
}

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

@media (max-width: 640px) {
  .whatsapp-float {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 50px;
    min-height: 50px;
    justify-content: center;
    padding: 0;
    overflow: hidden;
    font-size: 0;
  }

  .whatsapp-float::before {
    width: 28px;
    height: 28px;
    font-size: 17px;
  }
}

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