/* Premium floating WhatsApp button */
.wa-float {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 9999;
  width: 60px;
  height: 60px;
  text-decoration: none;
  color: #fff;
  outline: none;
}

.wa-float__inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  animation: wa-float-bob 3.2s ease-in-out infinite;
}

.wa-float__ripples {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.wa-float__ripple {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-float-ripple 2.5s ease-out infinite;
}

.wa-float__ripple:nth-child(2) {
  animation-delay: 0.83s;
}

.wa-float__ripple:nth-child(3) {
  animation-delay: 1.66s;
}

.wa-float__btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: wa-float-pulse 2.5s ease-in-out infinite;
}

.wa-float__icon {
  display: block;
  width: 30px;
  height: 30px;
}

.wa-float__tooltip {
  position: absolute;
  right: calc(100% + 14px);
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  padding: 8px 14px;
  border-radius: 8px;
  background: #0f172a;
  color: #fff;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.wa-float__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  width: 12px;
  height: 12px;
  background: #0f172a;
  transform: translateY(-50%) rotate(45deg);
}

.wa-float:hover .wa-float__btn,
.wa-float:focus-visible .wa-float__btn {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 10px 32px rgba(37, 211, 102, 0.58);
}

.wa-float:hover .wa-float__tooltip,
.wa-float:focus-visible .wa-float__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.wa-float:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 4px;
  border-radius: 50%;
}

@keyframes wa-float-bob {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes wa-float-pulse {
  0%,
  100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38);
  }

  50% {
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
  }
}

@keyframes wa-float-ripple {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }

  100% {
    transform: scale(2.3);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .wa-float {
    right: 20px;
    bottom: 20px;
    width: 55px;
    height: 55px;
  }

  .wa-float__btn {
    width: 55px;
    height: 55px;
  }

  .wa-float__icon {
    width: 28px;
    height: 28px;
  }

  .wa-float__tooltip {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wa-float__inner,
  .wa-float__btn,
  .wa-float__ripple {
    animation: none !important;
  }

  .wa-float__btn,
  .wa-float__tooltip {
    transition: none !important;
  }
}
