/* ==========================================================================
   CDLR WHATSAPP BUTTON - CLEAN MINIMALIST FLOATING BUTTON
   ========================================================================== */

/* Root Floating Container */
.cdlr-wa-floating-btn {
  position: fixed !important;
  z-index: 999999 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50% !important;
  background-color: #25D366;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18), 0 4px 10px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  outline: none;
  border: none;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.25s ease, 
              background-color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
}

/* Hover & Active States */
.cdlr-wa-floating-btn:hover {
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22), 0 6px 14px rgba(37, 211, 102, 0.45);
  color: #ffffff !important;
  text-decoration: none !important;
  background-color: #20ba5a;
}

.cdlr-wa-floating-btn:active {
  transform: translateY(-1px) scale(0.96);
}

/* Icon inside Button */
.cdlr-wa-floating-btn .cdlr-wa-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
}

.cdlr-wa-floating-btn .cdlr-wa-icon svg,
.cdlr-wa-floating-btn .cdlr-wa-icon img,
.cdlr-wa-floating-btn .cdlr-wa-icon i {
  width: 34px;
  height: 34px;
  fill: currentColor;
  color: currentColor;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.cdlr-wa-floating-btn:hover .cdlr-wa-icon svg,
.cdlr-wa-floating-btn:hover .cdlr-wa-icon img,
.cdlr-wa-floating-btn:hover .cdlr-wa-icon i {
  transform: scale(1.08);
}

/* ==========================================================================
   DEFAULT CORNER POSITIONS (Overridden by inline styles or Elementor)
   ========================================================================== */

.cdlr-wa-pos-bottom-right {
  bottom: 25px;
  right: 25px;
  top: auto;
  left: auto;
}

.cdlr-wa-pos-bottom-left {
  bottom: 25px;
  left: 25px;
  top: auto;
  right: auto;
}

.cdlr-wa-pos-top-right {
  top: 25px;
  right: 25px;
  bottom: auto;
  left: auto;
}

.cdlr-wa-pos-top-left {
  top: 25px;
  left: 25px;
  bottom: auto;
  right: auto;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

/* 1. Radar Pulse (Waves) */
.cdlr-wa-anim-radar::before,
.cdlr-wa-anim-radar::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: inherit;
  opacity: 0.7;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: none;
  z-index: 1;
  animation: cdlr-wa-radar-kf 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

.cdlr-wa-anim-radar::after {
  animation-delay: 1.1s;
}

@keyframes cdlr-wa-radar-kf {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.65;
  }
  70% {
    opacity: 0.15;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.65);
    opacity: 0;
  }
}

/* 2. Soft Bounce */
.cdlr-wa-anim-bounce {
  animation: cdlr-wa-bounce-kf 3s ease infinite;
}

@keyframes cdlr-wa-bounce-kf {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* 3. Glow Pulse */
.cdlr-wa-anim-glow {
  animation: cdlr-wa-glow-kf 2.2s ease-in-out infinite alternate;
}

@keyframes cdlr-wa-glow-kf {
  0% {
    box-shadow: 0 0 10px rgba(37, 211, 102, 0.3), 0 8px 24px rgba(0, 0, 0, 0.18);
  }
  100% {
    box-shadow: 0 0 28px rgba(37, 211, 102, 0.8), 0 0 45px rgba(37, 211, 102, 0.4), 0 8px 24px rgba(0, 0, 0, 0.18);
  }
}

/* Hide on mobile if class is present */
@media (max-width: 767px) {
  .cdlr-wa-hide-mobile {
    display: none !important;
  }
}
