/* ===========================================================
   🎯 Offer Popup – Full Client-Level Design Control (V3)
   =========================================================== */

/* שכבת הרקע */
.offer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.offer-overlay.active {
  opacity: 1;
}

/* תיבת הפופאפ */
/* תיבת הפופאפ */
.offer-popup {
  position: fixed; /* ✅ חוזר להיות ממורכז במסך */
  overflow: hidden !important; 
   top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);

  background: #ffffff;
  border-radius: 32px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
  width: 92%;
  max-width: 420px;
  height: 490px;
  max-height: 80vh;

  display: flex;
  flex-direction: column;
  justify-content: space-between; /* מחלק את הגובה בין האזורים */

  scrollbar-width: thin;
  scrollbar-color: rgba(0,0,0,0.3) transparent;

  opacity: 0;
  z-index: 9999;
  transition: opacity 0.3s ease;
  font-family: "Heebo", "Assistant", sans-serif;

}

.offer-popup.visible {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* תוכן הפופאפ */
.offer-content {
  min-height: 460px;
  background-color: #ffffff;
  color: #000000;
  padding: 0 !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.offer-content::before {
  display: none !important;
}

.offer-text-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  padding: 30px 20px;
  gap: 20px;
}

/* 🏷️ כותרת פופאפ */
.offer-title {
  order: 3;
  color: #003366;
  font-size: 26px;
  font-weight: 800;
  text-align: center;
    margin-top: 40px !important; /* 👈 עכשיו זה יעבוד */
  margin-bottom: -40px !important; /* 👈 עכשיו זה יעבוד */
  line-height: 1.4;
  letter-spacing: -0.5px;
  font-family: 'Heebo', 'Assistant', sans-serif;
  white-space: normal;
  word-break: break-word;
}

@media (max-width: 480px) {
  .offer-title {
    font-size: 22px;
    margin: 8px 0 12px;
    line-height: 1.3;
  }
}

/* 📄 טקסט */
.offer-text {
  order: 2;
  font-size: 17px;
  color: #000000;
  font-weight: 400;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 25px;
  width: 90%;
}

/* 🎯 טיימר */
/* ✅ מציב את הטיימר בחלק העליון של הפופאפ */
.offer-countdown {
  position: absolute;            /* נצמד ל־offer-popup */
  top: 0px;                    /* 👈 תזוזה למעלה כך שיוצג במלואו */
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 22px;
  padding: 0px 0;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
}

.offer-countdown .icon {
  font-size: 18px;
  color: #ffcc00;
}

/* ביטול ריווחים כלליים */
.offer-popup,
.offer-content {
  margin: 0 !important;
  padding: 0 !important;
}

.offer-countdown .time {
  letter-spacing: 1px;
  font-family: 'Open Sans', sans-serif;
}

.countdown-label {
  display: block;
  color: #0d47a1;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 2;
  padding: 6px 12px;
  border-radius: 10px;
    margin-top: 0;        /* 👈 ודא שאין רווח עליון */
  line-height: 1.1;     /* 👈 מקרב את השורה עצמה */
}

.countdown-time {
  color: #810b0b;
  font-weight: 700;
  font-size: 22px;
}

/* 🖱️ כפתור */
.offer-btn {
  order: 4;
  display: inline-block;
  background: #ffffff;
  color: #000000;
  padding: 10px 26px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  margin-top: auto;
}
.offer-btn:hover {
  background: #001f4d;
  transform: translateY(-2px);
}

.package-box {
  position: relative; /* 👈 מאפשר למקם ילדים באופן חופשי */
  background: #f5f8ff;
  border: 2px solid #e0e7ff;
  border-radius: 16px;
  text-align: center;
  width: 100%;
  max-width: 380px;
  height: 210px;
  max-height: 220px;
  margin-top: 30px !important;

  padding: 0px 16px 16px; /* עדיין יש ריווח בסיסי */
  box-sizing: border-box;
}



.package-icon {
  font-size: 22px;
}

.package-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: -20px !important;


}
.package-list li {
  padding: 6px 0;
  color: #333;
  font-size: 15px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-bottom: 1px solid #e0e7ff;
  text-align: right;

}
.package-list li:last-child {
  border-bottom: none;
}
.package-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  font-size: 18px;
  flex-shrink: 0;
  margin-top: -5px;
}

/* מחיר */
.price-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #d8f7d0;
  color: #000000;
  font-family: 'Heebo', 'Assistant', sans-serif;
  font-size: 19px;
  font-weight: 600;
  border-radius: 10px;
  width: 150px;
  height: 50px;
  text-align: center;
  position: relative;
  margin-top: -30px !important;;
}
.discount-tag {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #dc2626;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.4);
  z-index: 2;
}
.old-price {
  color: #991b1b;
  text-decoration: line-through;
  font-size: 15px;
  opacity: 0.7;
  margin-bottom: 2px;
}
.new-price {
  color: #000;
  font-weight: 600;
  direction: rtl;
  text-align: center;
  display: block;
  width: 100%;
  margin-top: 0px;
  margin-bottom: -9px;
}
.price-note {
  color: #92400e;
  font-size: 14px;
  font-weight: 600;
  margin-top: 5px;
}

/* רספונסיבי */
@media (max-width: 480px) {
  .package-box,
  .price-box {
    padding: 20px;
  }
  .new-price {
    font-size: 36px;
  }
}

/* טקסט נוסף */
.offer-text {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 17px;
  line-height: 1.6;
  color: #000;
  margin: 10px 0 25px;
}
.offer-text * {
  text-align: inherit;
  font-family: inherit;
  color: inherit;
  margin: 0 auto;
}

/* 📱 רספונסיביות */
@media (max-width: 480px) {
  .offer-popup {
    width: 94%;
    border-radius: 18px;
  }
  .offer-title {
    font-size: 23px;
  }
  .offer-text {
    font-size: 15px;
  }
  .offer-countdown {
    font-size: 14px;
  }
}
