/* WhatsApp Premium Floating */
.wcf-wa-floating{
  position: fixed;
  bottom: 22px;
  z-index: 99999;
  pointer-events: none;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Inter,Arial,sans-serif;
}
.wcf-wa-floating.wcf-right{ right: 22px; }
.wcf-wa-floating.wcf-left{ left: 22px; }

.wcf-wa-bubble{
  pointer-events: auto;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 999px !important; /* force rond même si le thème style les button en carré */
  cursor: pointer;
  background: #25D366;
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transform: translateY(8px) scale(.98);
  opacity: 0;
  transition: opacity .25s ease, transform .25s ease, filter .2s ease;
}
.wcf-wa-floating:not(.wcf-hidden) .wcf-wa-bubble{ opacity: 1; transform: translateY(0) scale(1); }
.wcf-wa-bubble:hover{ filter: brightness(.96); }
.wcf-hidden{ display: none !important; }

/* Pulse behind — ne participe pas au survol : zone de détection = bouton uniquement */
.wcf-wa-pulse{
  position:absolute;
  inset: -6px;
  border-radius: 999px !important;
  background: rgba(37,211,102,0.35);
  z-index: 0;
  pointer-events: none;
  animation: wcfPulse 1.8s infinite;
}
@keyframes wcfPulse{
  0% { transform: scale(.75); opacity: .65; }
  70% { transform: scale(1.25); opacity: 0; }
  100% { transform: scale(1.25); opacity: 0; }
}
.wcf-wa-icon{ position: relative; z-index: 1; display:inline-flex; color:#fff; }
.wcf-wa-svg{ display:block; fill: currentColor; }
/* Premium : icône reste blanche au survol. Minimal garde currentColor (vert). */
.wcf-wa-floating:not(.wcf-style-minimal) .wcf-wa-bubble:hover .wcf-wa-icon,
.wcf-wa-floating:not(.wcf-style-minimal) .wcf-wa-bubble:hover .wcf-wa-icon .wcf-wa-svg,
.wcf-wa-floating:not(.wcf-style-minimal) .wcf-wa-bubble:hover .wcf-wa-icon .wcf-wa-svg path{ color:#fff !important; fill:#fff !important; }

/* Minimal style: disable pulse only (tooltip kept) */
/* Tooltip card — ne capture pas la souris : affichage uniquement au survol du bouton */
.wcf-wa-card{
  pointer-events: none;
  position: absolute;
  bottom: 70px;
  width: 240px;
  padding: 12px 12px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  border: 1px solid #fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
}
.wcf-style-minimal .wcf-wa-card{ width: 210px; }

.wcf-right .wcf-wa-card{ right: 0; }
.wcf-left .wcf-wa-card{ left: 0; }

.wcf-wa-card:after{
  content:"";
  position:absolute;
  bottom:-9px;
  width: 16px;
  height: 16px;
  background:#111827;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
}
.wcf-right .wcf-wa-card:after{ right: 18px; }
.wcf-left .wcf-wa-card:after{ left: 18px; }

.wcf-wa-card-title{ font-weight: 800; font-size: 14px; margin-bottom: 4px; }
.wcf-wa-card-sub{ font-size: 13px; opacity: .9; }
.wcf-card-show{ opacity: 1; transform: translateY(0); }

/* CTA */
.wcf-wa-cta{ margin: 14px 0; cursor: pointer; }
.wcf-wa-cta.wcf-align-center{ text-align:center; }
.wcf-wa-cta.wcf-align-right{ text-align:right; }

.wcf-wa-cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  font-family: inherit;
  font-weight: inherit;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
  transition: transform .15s ease, filter .2s ease;
  cursor: pointer;
}
.wcf-wa-cta-btn:hover{ transform: translateY(-1px); filter: brightness(.97); }
.wcf-wa-cta-btn:focus{ outline: 2px solid rgba(37,211,102,.35); outline-offset: 2px; }

.wcf-primary{ background:#25D366; color:#fff; }
.wcf-wa-cta-btn.wcf-primary:hover,
.wcf-wa-cta-btn.wcf-primary:hover .wcf-wa-cta-text{ color:#fff !important; }
.wcf-ghost{
  background: rgba(37,211,102,.10);
  color:#0f5132;
  box-shadow: none;
  border: 1px solid rgba(37,211,102,.35);
}
.wcf-wa-cta-btn.wcf-ghost:hover,
.wcf-wa-cta-btn.wcf-ghost:hover .wcf-wa-cta-text{ color:#0f5132 !important; }
/* Icône CTA toujours blanche + curseur main (thème peut forcer color au survol) */
.wcf-wa-cta-icon{ display:inline-flex; color:#fff !important; }
.wcf-wa-cta-icon .wcf-wa-svg{ width:18px; height:18px; fill:#fff !important; }
.wcf-wa-cta-icon .wcf-wa-svg path{ fill:#fff !important; }
.wcf-wa-cta-btn:hover .wcf-wa-cta-icon,
.wcf-wa-cta-btn:focus .wcf-wa-cta-icon{ color:#fff !important; }
.wcf-wa-cta-btn:hover .wcf-wa-cta-icon .wcf-wa-svg,
.wcf-wa-cta-btn:focus .wcf-wa-cta-icon .wcf-wa-svg,
.wcf-wa-cta-btn:hover .wcf-wa-cta-icon .wcf-wa-svg path,
.wcf-wa-cta-btn:focus .wcf-wa-cta-icon .wcf-wa-svg path{ fill:#fff !important; }

/* --- Minimal redesign (improved hover + pulse) --- */
.wcf-style-minimal .wcf-wa-bubble{
  border-radius: 999px !important;
  background: rgb(37 211 102 / 90%);
  color: #25D366;
  border: 2px solid rgba(37,211,102,0.55);
  box-shadow: 0 10px 22px rgba(0,0,0,0.14);
}
.wcf-style-minimal .wcf-wa-bubble:hover{
  filter: none;
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}
.wcf-style-minimal .wcf-wa-pulse{
  background: rgb(165, 165, 165);
  inset: -10px;
  animation-duration: 2.2s;
}
.wcf-style-minimal .wcf-wa-card{
  width: 220px;
}

/* More reliable tooltip on hover (minimal uses CSS hover instead of JS timing) */
.wcf-style-minimal:hover .wcf-wa-card,
.wcf-style-minimal .wcf-wa-bubble:hover + .wcf-wa-card{
  opacity: 1;
  transform: translateY(0);
}
