/* Floating WhatsApp motion + live purchase toasts — mobile friendly */

.floating-whatsapp{
  position:fixed!important;
  right:max(14px, env(safe-area-inset-right))!important;
  bottom:max(14px, env(safe-area-inset-bottom))!important;
  z-index:9990!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-end!important;
  gap:.65rem!important;
  pointer-events:none;
}
.floating-whatsapp > *{pointer-events:auto;}

.floating-whatsapp .whatsapp-icon-btn{
  position:relative!important;
  width:58px!important;
  height:58px!important;
  min-width:58px!important;
  min-height:58px!important;
  padding:0!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:#16a34a!important;
  border:2px solid #4ade80!important;
  color:#fff!important;
  box-shadow:0 8px 24px rgba(0,0,0,.45)!important;
  font-size:0!important;
  letter-spacing:0!important;
  text-transform:none!important;
  overflow:visible!important;
  animation:waFloat 2.8s ease-in-out infinite, waAttention 5.5s ease-in-out infinite!important;
  transition:transform .2s ease, box-shadow .2s ease!important;
}
.floating-whatsapp .whatsapp-icon-btn .btn-ico,
.floating-whatsapp .whatsapp-icon-btn svg{
  width:28px!important;
  height:28px!important;
  margin:0!important;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
}
.floating-whatsapp .whatsapp-icon-btn:hover{
  transform:scale(1.08)!important;
  box-shadow:0 10px 28px rgba(22,163,74,.55)!important;
  animation-play-state:paused!important;
}
.floating-whatsapp .whatsapp-icon-btn:focus-visible{
  outline:2px solid #fff!important;
  outline-offset:3px!important;
}

/* Pulse rings */
.floating-whatsapp .whatsapp-icon-btn::before,
.floating-whatsapp .whatsapp-icon-btn::after{
  content:""!important;
  position:absolute!important;
  inset:-4px!important;
  border-radius:50%!important;
  border:2px solid rgba(74,222,128,.55)!important;
  animation:waRing 2.4s ease-out infinite!important;
  pointer-events:none!important;
  display:block!important;
  background:transparent!important;
  box-shadow:none!important;
}
.floating-whatsapp .whatsapp-icon-btn::after{
  animation-delay:1.2s!important;
}

.wa-live-dot{
  position:absolute;
  top:2px;right:2px;
  width:12px;height:12px;
  border-radius:50%;
  background:#ef4444;
  border:2px solid #0a0a0a;
  animation:waBlink 1.4s ease-in-out infinite;
  z-index:2;
}

@keyframes waFloat{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
}
@keyframes waAttention{
  0%,78%,100%{transform:translateY(0) rotate(0)}
  82%{transform:translateY(-2px) rotate(-8deg)}
  86%{transform:translateY(-2px) rotate(8deg)}
  90%{transform:translateY(-2px) rotate(-6deg)}
  94%{transform:translateY(0) rotate(0)}
}
@keyframes waRing{
  0%{transform:scale(.92);opacity:.7}
  100%{transform:scale(1.55);opacity:0}
}
@keyframes waBlink{
  0%,100%{opacity:1}
  50%{opacity:.35}
}

/* Purchase / social proof toast */
.purchase-toast-root{
  position:fixed;
  left:max(12px, env(safe-area-inset-left));
  bottom:max(88px, calc(env(safe-area-inset-bottom) + 78px));
  z-index:9985;
  width:min(340px, calc(100vw - 88px));
  pointer-events:none;
}
.purchase-toast{
  display:flex;
  gap:.75rem;
  align-items:flex-start;
  padding:.85rem .95rem;
  border-radius:12px;
  background:#141414;
  border:1px solid #333;
  box-shadow:0 12px 36px rgba(0,0,0,.55);
  color:#eee;
  opacity:0;
  transform:translateY(14px);
  transition:opacity .35s ease, transform .35s ease;
  pointer-events:auto;
}
.purchase-toast.is-in{
  opacity:1;
  transform:translateY(0);
}
.purchase-toast.is-out{
  opacity:0;
  transform:translateY(10px);
}
.purchase-toast__avatar{
  flex-shrink:0;
  width:42px;height:42px;
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:.85rem;
  color:#fff;
  background:#c92932;
}
.purchase-toast__body{min-width:0;flex:1;}
.purchase-toast__title{
  margin:0;
  font-size:.88rem;
  font-weight:600;
  line-height:1.35;
  color:#fff;
}
.purchase-toast__title strong{color:#fff;font-weight:700;}
.purchase-toast__plan{
  margin:.2rem 0 0;
  font-size:.8rem;
  line-height:1.4;
  color:#bdbdbd;
}
.purchase-toast__meta{
  margin:.35rem 0 0;
  display:flex;
  flex-wrap:wrap;
  gap:.45rem .7rem;
  align-items:center;
  font-size:.72rem;
  color:#8c8c8c;
}
.purchase-toast__live{
  display:inline-flex;
  align-items:center;
  gap:.3rem;
  color:#86efac;
  font-weight:600;
}
.purchase-toast__live i{
  width:7px;height:7px;border-radius:50%;
  background:#22c55e;
  display:inline-block;
  animation:waBlink 1.2s ease-in-out infinite;
}
.purchase-toast__close{
  flex-shrink:0;
  width:28px;height:28px;
  border:0;border-radius:6px;
  background:transparent;
  color:#888;
  cursor:pointer;
  font-size:1.1rem;
  line-height:1;
  pointer-events:auto;
}
.purchase-toast__close:hover{color:#fff;background:#222;}

@media (max-width:600px){
  .floating-whatsapp{
    right:12px!important;
    bottom:max(12px, env(safe-area-inset-bottom))!important;
  }
  .floating-whatsapp .whatsapp-icon-btn{
    width:54px!important;
    height:54px!important;
    min-width:54px!important;
    min-height:54px!important;
  }
  .purchase-toast-root{
    left:10px;
    right:72px;
    width:auto;
    bottom:max(78px, calc(env(safe-area-inset-bottom) + 70px));
  }
  .purchase-toast{
    padding:.75rem .8rem;
  }
  .purchase-toast__title{font-size:.82rem;}
  .purchase-toast__plan{font-size:.75rem;}
}

@media (prefers-reduced-motion:reduce){
  .floating-whatsapp .whatsapp-icon-btn,
  .floating-whatsapp .whatsapp-icon-btn::before,
  .floating-whatsapp .whatsapp-icon-btn::after,
  .wa-live-dot,
  .purchase-toast__live i{
    animation:none!important;
  }
  .purchase-toast{transition:none;}
}
