.whatsapp-widget {
  position: fixed;
  right: 98px;
  bottom: 20px;
  z-index: 200;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #087e4b;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(8, 126, 75, 0.34);
}

.whatsapp-widget:hover {
  background: #06653c;
}

.whatsapp-widget:focus-visible {
  outline: 3px solid #087e4b;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-widget::after {
    position: absolute;
    inset: 0;
    border: 2px solid #128c55;
    border-radius: inherit;
    content: "";
    pointer-events: none;
    animation: whatsapp-widget-pulse 2.4s ease-out 2;
    opacity: 0;
  }
}

@keyframes whatsapp-widget-pulse {
  0% {
    opacity: 0.65;
    transform: scale(1);
  }

  75%, 100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

@media (max-width: 640px) {
  .whatsapp-widget {
    right: calc(max(14px, env(safe-area-inset-right)) + 78px);
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  body:has(> #dem-lombard-chat.is-open) .whatsapp-widget {
    visibility: hidden;
  }
}
