/* DFW v3.13 — stable WhatsApp floating contact
   Replaces the old separated glow/background implementation. */

/* Hide the legacy floating WhatsApp component if an older template still
   renders it. This avoids the two-green-circle / detached-background bug. */
.whatsapp-fixed-btn {
  display: none !important;
}

.dfw-whatsapp-float {
  position: fixed;
  right: 26px;
  bottom: 118px;
  z-index: 2147482000;
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: none;
  contain: layout style;
}

.dfw-whatsapp-float__button {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .26);
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 31px;
  line-height: 1;
  pointer-events: auto;
  isolation: isolate;
  box-shadow:
    0 13px 34px rgba(0, 0, 0, .36),
    0 0 0 0 rgba(37, 211, 102, .50);
  transition:
    transform .2s ease,
    background-color .2s ease,
    box-shadow .2s ease;
  animation: dfwWhatsappRing 2.6s ease-out infinite;
}

.dfw-whatsapp-float__button:hover,
.dfw-whatsapp-float__button:focus-visible {
  transform: translateY(-3px) scale(1.035);
  background: #20c45a;
  box-shadow:
    0 17px 38px rgba(0, 0, 0, .42),
    0 0 0 8px rgba(37, 211, 102, .13);
}

.dfw-whatsapp-float__button:focus-visible {
  outline: 3px solid rgba(240, 190, 78, .92);
  outline-offset: 4px;
}

.dfw-whatsapp-float__button i {
  display: block;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0;
  line-height: 1;
  transform: none !important;
}

.dfw-whatsapp-float__note {
  min-width: 124px;
  max-width: 190px;
  padding: 10px 14px;
  border: 1px solid rgba(222, 179, 77, .38);
  border-radius: 999px;
  background: rgba(10, 10, 10, .94);
  color: #f6ead0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .04em;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .26);
  opacity: 0;
  transform: translateX(8px) scale(.96);
  transition: opacity .32s ease, transform .32s ease;
  pointer-events: none;
}

.dfw-whatsapp-float__note.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@keyframes dfwWhatsappRing {
  0% {
    box-shadow:
      0 13px 34px rgba(0, 0, 0, .36),
      0 0 0 0 rgba(37, 211, 102, .46);
  }
  68% {
    box-shadow:
      0 13px 34px rgba(0, 0, 0, .36),
      0 0 0 13px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow:
      0 13px 34px rgba(0, 0, 0, .36),
      0 0 0 0 rgba(37, 211, 102, 0);
  }
}

@media (max-width: 991px) {
  .dfw-whatsapp-float {
    right: 18px;
    bottom: 94px;
    gap: 9px;
  }

  .dfw-whatsapp-float__button {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    font-size: 28px;
  }

  .dfw-whatsapp-float__note {
    min-width: 0;
    max-width: 148px;
    padding: 9px 11px;
    font-size: 11px;
  }
}

@media (max-width: 420px) {
  .dfw-whatsapp-float {
    right: 14px;
    bottom: 88px;
  }

  .dfw-whatsapp-float__button {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    font-size: 27px;
  }

  .dfw-whatsapp-float__note {
    max-width: 138px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dfw-whatsapp-float__button {
    animation: none;
  }

  .dfw-whatsapp-float__button,
  .dfw-whatsapp-float__note {
    transition: none;
  }
}
