/* 🎨==============================
   פופ־אפ הורדה / הוספה למסך הבית
   ==============================*/

/* ===== רקע חצי שקוף מעל כל הדף ===== */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(3px);
}

/* ===== תיבת הפופ־אפ עצמה ===== */
.popup-box {
  background: #fff;
  width: min(360px, 92vw);
  border-radius: 1.6rem;
  padding: 1.15rem 1.4rem 1.35rem;
  position: relative;
  text-align: center;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  border: 2px solid #264c49;
  direction: rtl;
}

/* ===== כפתור סגירה (X) נקי — שחור בלי רקע ===== */
.popup-close {
  position: absolute;
  top: 0.55rem;
  left: 0.6rem;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;  /* ביטול רקע אפור */
  border-radius: 0;         /* ביטול עיגול */
  font-size: 1.4rem;        /* טיפה יותר גדול */
  cursor: pointer;
  color: #000;              /* שחור מלא */
  display: grid;
  place-items: center;
  font-weight: 400;
  line-height: 1;
}

/* ===== לוגו בראש הפופ־אפ ===== */
.popup-logo {
  width: 125px;
  display: block;
  margin: 0 auto 0.65rem;
}

/* ===== כותרת ראשית ===== */
.popup-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  color: #000;
}

/* ===== אזור שתי ההנחיות ===== */
.popup-actions {
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: flex-start;
  width: 100%;
}

/* ===== שורה בודדת – אייקון וטקסט ===== */
.popup-chip {
  direction: rtl;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #6a6a6a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Assistant", sans-serif;
  text-align: right;
  width: 100%;
}

/* ===== טקסט בתוך שורה ===== */
.popup-chip .chip-text {
  direction: rtl;
  text-align: right;
  flex: 1;
  margin-left: 0.5rem;
}

/* ===== אייקון שיתוף / פלוס ===== */
.popup-chip-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  margin-left: 0;
}

/* ===== עיצוב SVG ===== */
.popup-chip-icon svg {
  width: 18px;
  height: 18px;
  stroke: #6a6a6a;
  stroke-width: 1.6;
  fill: none;
}

/* ===== השורה השנייה – הפלוס בתוך ריבוע ===== */
.popup-actions .popup-chip:nth-child(2) .popup-chip-icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1.4px solid #6a6a6a;
  border-radius: 4px;
  pointer-events: none;
}

/* ===== מובייל ===== */
@media (max-width: 480px) {
  .popup-box {
    width: calc(100vw - 2.4rem);
  }
}
