.wa-fab {
  position: fixed;
  bottom: calc(20px + env(safe-area-inset-bottom, 0));
  right: calc(20px + env(safe-area-inset-right, 0));
  width: 56px;
  height: 56px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.wa-fab.is-pulse {
  animation: wa-pulse 1.5s infinite;
}

.wa-fab svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 900px) {
  .wa-fab {
    width: 46px;
    height: 46px;
    bottom: calc(14px + env(safe-area-inset-bottom, 0));
    right: calc(12px + env(safe-area-inset-right, 0));
  }

  body:has(.cookie-banner) .wa-fab {
    bottom: calc(88px + env(safe-area-inset-bottom, 0));
  }

  .wa-fab svg {
    width: 24px;
    height: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-fab.is-pulse {
    animation: none;
  }
}
