/* =========================================================
   NXS WhatsApp Floating Button – Premium (icon only)
   - mobile only
   - background #256c3c
   - icon alb, mai mare
   - pulse + show/hide
   - fallback: vizibil chiar daca JS nu ruleaza
   - hidden when #nxs-drawer is open
========================================================= */

.nxs-wa-float{
  position: fixed;
  right: 16px;
  bottom: 18px;

  width: 66px;
  height: 66px;
  border-radius: 999px;

  background: #256c3c;
  color: #fff;
  text-decoration: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 14px 40px rgba(0,0,0,.24);
  z-index: 9999;

  -webkit-tap-highlight-color: transparent;

  /* FALLBACK: daca JS nu ruleaza, sa fie vizibil */
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);

  transition: transform .35s ease, opacity .35s ease, box-shadow .25s ease;
}

/* Cand JS ruleaza, activam animatia controlata de clase */
body.nxs-wa-js .nxs-wa-float{
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
}
body.nxs-wa-js .nxs-wa-float.is-ready{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nxs-wa-float:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 54px rgba(0,0,0,.30);
}
.nxs-wa-float:active{ transform: translateY(0); }

/* Icon bubble */
.nxs-wa-float__icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: rgba(255,255,255,.10);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}

/* Icon alb indiferent de culoarea SVG */
.nxs-wa-float__icon img{
  width: 44px;
  height: 44px;
  display: block;
  filter: brightness(0) invert(1);
}

/* Pulse ring */
.nxs-wa-float__pulse{
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  pointer-events: none;
  opacity: .35;
  box-shadow: 0 0 0 0 rgba(37,108,60,.55);
  animation: nxsWaPulse 1.8s infinite;
}
@keyframes nxsWaPulse{
  0%   { box-shadow: 0 0 0 0 rgba(37,108,60,.55); }
  70%  { box-shadow: 0 0 0 20px rgba(37,108,60,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,108,60,0); }
}

/* Hidden (scroll down / drawer open) */
.nxs-wa-float.is-hidden{
  opacity: 0 !important;
  transform: translateY(12px) !important;
  pointer-events: none !important;
}

/* Mobile only */
@media (min-width: 861px){
  .nxs-wa-float{ display: none !important; }
}

/* HARD CSS SAFETY: ascunde butonul cand drawer e deschis */
#nxs-drawer[aria-hidden="false"] ~ .nxs-wa-float{
  display: none !important;
}

/* Daca butonul NU e sibling direct (de obicei nu e), folosim si body flag din JS */
body.nxs-drawer-open .nxs-wa-float{
  display: none !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .nxs-wa-float,
  .nxs-wa-float__pulse{
    transition: none !important;
    animation: none !important;
  }
}