/* خلفية شفافة تغطي الصفحة */
.salla-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* صندوق البوب أب في المنتصف */
.salla-popup {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
  max-width: 380px;          /* تقدر تكبر/تصغر العرض */
  width: 90%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9999;
}

/* زر الإغلاق فوق الصورة داخل الصندوق */
.salla-popup__close {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px; /* تناسب الاتجاه العربي */
  background: rgba(0,0,0,0.55);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.salla-popup__close:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.05);
}

/* الصورة داخل الصندوق */
.salla-popup__image {
  width: 100%;
  display: block;
}

/* الجزء السفلي (زر النسخ + رسالة) */
.salla-popup__bottom {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* زر نسخ الكود */
.salla-popup__copy-btn {
  border: none;
  outline: none;
  cursor: pointer;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 18px;
  text-align: center;
  width: 100%;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.1s ease;
}

.salla-popup__copy-btn:hover {
  background: #000000;
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.35);
}

/* رسالة تم النسخ */
.salla-popup__copied-msg {
  display: none;
  font-size: 13px;
  color: #059669;
  text-align: center;
}

.salla-popup__copied-msg.is-visible {
  display: block;
}

/* موبايل */
@media (max-width: 480px) {
  .salla-popup {
    max-width: 340px;
    border-radius: 12px;
  }
}