/* ===== Persmind WhatsApp Floating ===== */

.whatsapp-float{
  position: fixed;
  bottom: 24px;

  /* هذا السطر هو السر 👇 */
  inset-inline-end: 24px;

  z-index: 99999;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
}

/* الزر */
.whatsapp-btn{
  width:60px;
  height:60px;
  border-radius:50%;
  background:#25D366;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 10px 25px rgba(0,0,0,.25);
  text-decoration:none;

  animation:waFloat 2.2s ease-in-out infinite;
}

.whatsapp-btn svg{
  width:30px;
  height:30px;
}

/* الفقاعة */
.whatsapp-bubble{
  position:relative;
  margin-bottom:12px;
  background:#fff;
  color:#222;
  padding:14px 16px;
  border-radius:14px;
  max-width:240px;
  font-size:14px;
  line-height:1.6;
  box-shadow:0 8px 25px rgba(0,0,0,.15);
}

/* زر الإغلاق */
.wa-close{
  position:absolute;
  top:6px;
  inset-inline-end:8px; /* بدل right */
  border:none;
  background:none;
  font-size:18px;
  cursor:pointer;
  color:#777;
}

/* حركة خفيفة */
@keyframes waFloat{
  0%{transform:translateY(0)}
  50%{transform:translateY(-6px)}
  100%{transform:translateY(0)}
}

/* موبايل */
@media(max-width:768px){

  .whatsapp-float{
    inset-inline-end:16px;
    bottom:16px;
  }

  .whatsapp-btn{
    width:54px;
    height:54px;
  }

  .whatsapp-bubble{
    max-width:200px;
    font-size:13px;
  }

}
