/* ====================================
   EGUD – CSS אחוד מלא לעמוד ההטבות
   ==================================== */

html, body{
  overflow-x: hidden; /* מניעת גלילה אופקית גלובלית */

}

.egud-modal-close{
  background: #F4EA67;
  color: #000;
  border: 2px solid #000;
}

.egud-scope,
.egud-scope * {
  box-sizing: border-box;
  font-family: 'Heebo', Arial, sans-serif;

.egud-modal-logo:empty{
  display: none !important;
}

/* ===== כותרת מקטע ===== */
.egud-section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 40px;
  font-weight: 900;
  line-height: 1.2;
  color: #000;
}
.egud-section-title::before {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background-color: #F4EA67;
  margin: 0 auto 10px;
}
section.egud.egud-offer-card{
  flex-basis: 0ex;
  margin: 0%;
  padding: 0%;
}

/* ====================================
   גריד — 2 כרטיסים בשורה (דסקטופ)
   ==================================== */
.egud-offers-grid{
  direction: rtl;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  justify-items: stretch;
  align-items: stretch;
  gap: 20px 24px;
  padding: 0 !important; /* ללא רווח בשוליים של הגריד */
  margin: 0;
  /* ביטול גלילה פנימית בגריד הראשי – הגלילה תהיה של הדף */
  max-height: none;
  overflow: visible;
}

.egud-offers-grid::-webkit-scrollbar{
  width: 8px;
}

.egud-offers-grid::-webkit-scrollbar-track{
  background: #F0F0F0;
  border-radius: 4px;
}

.egud-offers-grid::-webkit-scrollbar-thumb{
  background: #F4EA67;
  border-radius: 4px;
}

.egud-offers-grid::-webkit-scrollbar-thumb:hover{
  background: #E4D75A;
}

/* ====================================
   כרטיס הטבה — גודל 480×280
   ==================================== */
.egud-offer-card{
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;            /* צמוד לשוליים של הגריד ללא מרווח חיצוני */
  width: 100%;
  max-width: 100%;
  height: auto;          /* גובה דינמי – מונע גלילה אנכית בתוך הכרטיס */
  min-height: 252px;     /* שומר על מינימום גובה עיצובי */
  padding: 36px 64px 32px;
  background: #F6F6F6;
  border: 1px solid #000;
  border-radius: 140px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  overflow: hidden;
  transition: transform .25s ease,
              box-shadow .25s ease,
              border-color .3s ease,
              background-color .3s ease;
}

.egud-offer-card:nth-child(odd){
  border-radius: 140px 0 0 140px;

}

.egud-offer-card:nth-child(even){
  border-radius: 0 140px 140px 0;
}

.egud-offer-card.is-yellow{
  background: #FFF4AE;
  border: 1px solid #000;
}

/* ריחוף */
.egud-offer-card:hover{
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
  background-color: #FFF8B0;
  border: 1px solid #000;
}

/* ====================================
   טקסטים בכרטיס
   ==================================== */
.egud-offer-title{
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 900;
  color: #000;
  line-height: 1;
  text-align: right;
}

.egud-offer-short{
  font-size: 20px;
  line-height: 1.1;
  color: #222;
  text-align: right;
  margin-bottom: 18px;
}

.egud-offer-date{
  font-size: 16px;
  color: #666;
  text-align: right;
  margin-bottom: 18px;
}

.egud-offer-logo{
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
  overflow: hidden;
  margin: 0 0 16px 0;
  align-self: flex-end;
}

.egud-offer-logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

/* ====================================
   כפתורים בשורה — גובה 50px
   מימוש = 200px
   פירוט = 100px
   ==================================== */
.egud-offer-actions{
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.egud-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 500px;
  border: 2px solid #666;
  background: #F4EA67;
  color: #000;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}

/* כפתור פירוט */
.egud-btn.egud-view{
  width: 90px;
  height: 50px;
  background: #F4EA67;
  border-color: #666;
  color: #000;
  border-radius: 600px;
}
.egud-btn.egud-view:hover{
  transform: translateY(-2px) scale(1.1);
  background: #000;
  color: #fff;
  border-color: #000;
}


/* כפתור מימוש */
.egud-btn.egud-claim{
  width: 200px;
  border-color: #000;

}

/* כפתור "הטבה מומשה" */
.egud-btn.egud-claimed{
  background: #000 !important;
  color: #fff !important;
  border-color: #000 !important;
}

/* לפני התחברות – עיצוב כפתור "מימוש הטבה" זהה לכפתור הצהוב בתמונה (Elementor-style) */
.egud-btn.egud-claim.egud-login-required{
  background: #F4EA67;
  color: #212121;
  border: none;
  height: 50px;
  padding: 12px 24px;
  border-radius: 24px;
  font-size: 16px;
  border-color: #000;

}
.egud-btn.egud-claim.egud-login-required:hover{
  transform: translateY(-2px) scale(1.2);
  background: #000;
  color: #fff;
  border-color: #000;
}


/* ריחוף כפתורים */
.egud-btn:hover{
  transform: translateY(-2px);
  background: #000;
  color: #FFF;
  border-color: #000;
}

.egud-card-footer{
  margin-top: auto;
}

/* ====================================
   אזור אישי – כרטיסים קומפקטיים
   ==================================== */
.egud-my-offers-grid{
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 24px;
  margin: 0 auto;
  /* ביטול גלילה פנימית באזור האישי – הגלילה תהיה של הדף */
  max-height: none;
  overflow: hidden;
  padding: 0 12px;
  width: 390px !important;
  max-width: 390px !important;
  box-sizing: border-box;
}

.egud-my-offers-grid::-webkit-scrollbar{
  width: 8px;
}
/* ============================
   EGUD: highlight offers with code
   ============================ */
.egud-offer-card.is-code{
  border: 3px solid #000 !important;
  box-shadow: 0 18px 60px rgba(0,0,0,0.18) !important;
  background: #FFF7C5 !important;
  position: relative;
}

.egud-offer-card.is-code::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:10px;
  background:#F4EA67;
}

.egud-my-offers-grid::-webkit-scrollbar-track{
  background: #F0F0F0;
  border-radius: 4px;
}

.egud-my-offers-grid::-webkit-scrollbar-thumb{
  background: #F4EA67;
  border-radius: 4px;
}

.egud-my-offers-grid::-webkit-scrollbar-thumb:hover{
  background: #E4D75A;
}

.egud-offer-card.is-owned{
  width: 250px;
  height: 120px;
  max-width: 100%;
  background: #fff;
  border: 1px solid #F4EA67;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 14px 18px;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.egud-offer-card.is-owned .egud-offer-title{
  text-align: right;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.egud-offer-card.is-owned .egud-offer-short,
.egud-offer-card.is-owned .egud-offer-date{
  text-align: right;
  font-size: 13px;
  color: #666;
  margin: 0 0 8px;
}

.egud-offer-card.is-owned .egud-offer-logo{
  display: none;
}

.egud-offer-card.is-owned .egud-offer-actions{
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
}

.egud-btn.egud-view-small{
  width: 80px;
  height: 36px;
  font-size: 14px;
  font-weight: 600;
  padding: 0;
  border-radius: 18px;
  background: #F4EA67;
  border: 1px solid #E4D75A;
  color: #000;
}

.egud-btn.egud-view-small:hover{
  background: #F5E85A;
  border-color: #D4C74A;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ====================================
   הצמדה לקצוות העמוד — דסקטופ בלבד
   ==================================== */
  .egud-offers-grid{
    /* הגריד צמוד לשני הצדדים, ללא ריווח אופקי חיצוני */
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 !important;
  }


/* ====================================
   מודאל פירוט — פופאפ
   ==================================== */
.egud-modal{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
}

.egud-modal-dialog{
  background: #fff;
  width: min(620px, 100%);
  padding: 48px 48px 40px;
  border-radius: 36px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
}

.egud-modal-title{
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 20px;
  text-align: right;
}

.egud-modal-body{
  font-size: 18px;
  line-height: 1.6;
  color: #333;
  text-align: right;
}

.egud-modal-body p{
  margin: 0 0 12px;
}

.egud-modal-body ul{
  margin: 0 0 16px;
  padding-right: 22px;
  list-style: disc;
  text-align: right;
}

.egud-modal-logo{
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: #FFF7C5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 24px;
  border: 2px solid #E4D75A;
}

.egud-modal-logo img{
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.egud-modal-logo-wrapper{
  text-align: center;
  margin: 0 0 24px;
}

.egud-modal-logo-wrapper img{
  width: 120px;
  height: 120px;
  border-radius: 32px;
  background: #FFF7C5;
  padding: 12px;
  border: 2px solid #E4D75A;
  object-fit: contain;
}

.egud-modal-short{
  margin: 0 0 20px;
  padding: 16px;
  background: #FFF9E0;
  border-radius: 12px;
  border-right: 4px solid #F4EA67;
}

.egud-modal-short p{
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.egud-modal-date{
  margin: 0 0 20px;
  padding: 12px 16px;
  background: #F8F8F8;
  border-radius: 8px;
  font-size: 16px;
  color: #555;
}

.egud-modal-date strong{
  color: #000;
  margin-left: 8px;
}

.egud-modal-details{
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #E0E0E0;
}

.egud-modal-details p{
  margin: 0 0 12px;
  line-height: 1.7;
}

.egud-modal-details ul,
.egud-modal-details ol{
  margin: 12px 0;
  padding-right: 24px;
}

.egud-login-dialog{
  max-width: 520px;
}

.egud-login-body{
  max-height: 75vh;
  overflow-y: auto;
}

.egud-success-dialog{
  border-top: 8px solid #F4EA67;
}
.egud-success-logo{
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
}
.egud-success-logo img{
  max-width: 160px;
  height: auto;
}

.egud-modal-close{
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid #000;
  background: #F4EA67;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.egud-modal-close:hover{
  background: #000;
  color: #fff;
  transform: scale(1.05);
}

/* ====================================
   מובייל — כרטיס אחד בשורה
   ==================================== */
@media (max-width: 1024px){

  .egud-offers-grid{
    grid-template-columns: 1fr !important;
    justify-items: center;
    margin: 0;
    gap: 24px;
  }

  .egud-offer-card{
    width: 92%;
    margin: 0;
    border-radius: 48px;
    padding: 28px 24px 32px;
  }
  .egud-offer-card:nth-child(odd),
  .egud-offer-card:nth-child(even){
    margin: 0;
    border-radius: 48px;
    padding-inline-start: 24px;
    padding-inline-end: 24px;
  }

  .egud-offer-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .egud-btn{
    width: 100% !important;
    max-width: 260px;
  }

  .egud-my-offers-grid{
    gap: 18px;
    width: 100%;
    max-width: 390px !important;
  }

  .egud-my-offers-grid .egud-offer-card{
    width: 230px;
    padding: 22px;
  }

  .egud-modal-dialog{
    padding: 40px 28px 32px;
    border-radius: 28px;
  }
}

/* ====================================
   הודעה כשאין הטבות באזור האישי
   ==================================== */
.egud-no-offers-message{
  text-align: center;
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.egud-no-offers-message p{
  font-size: 20px;
  font-weight: 600;
  color: #212121;
  margin: 0 0 24px;
  line-height: 1.6;
}

/* ====================================
   הדגשה להטבה עם קוד
   ==================================== */
.egud-offer-card.is-code{
  border: 2px solid #000;                 /* מודגש יותר */
  box-shadow: 0 16px 55px rgba(0,0,0,0.16);
  background: linear-gradient(0deg, #FFF7C5 0%, #F6F6F6 60%);
}

.egud-offer-card.is-code::before{
  content:"";
  position:absolute;
  top:0;
  right:0;
  left:0;
  height:10px;
  background:#F4EA67;                     /* פס מותג עליון */

}

.egud-code-badge{
  position: absolute;
  top: 14px;
  left: 18px;

  background: transparent;   /* בלי רקע */
  color: #C9A227; /* זהב */
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;

  padding: 0;                /* בלי ריפוד */
  border: none;              /* בלי מסגרת */
  box-shadow: none;          /* בלי צל */
  z-index: 10;
}

.egud-btn.egud-claim.egud-claim-code:hover{
  background:#F4EA67;
  color:#000;
  transform: translateY(-2px) scale(1.06);
  border-color:#000;
}

.egud-btn.egud-view-offers{
  display: inline-block;
  background: #F4EA67;
  color: #212121;
  border: none;
  padding: 14px 32px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 24px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.egud-btn.egud-view-offers:hover{
  background: #212121;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* קפיצה לעוגן בלי שההידר יסתיר */
.egud-offer-card{
  scroll-margin-top: 100px !important;
}

/* במובייל ההידר לרוב גבוה יותר */
@media (max-width: 1024px){
  .egud-offer-card{
    scroll-margin-top: 220px !important;
  }
}
	/* ===== FIX: הצמדה לקצוות רק בדסקטופ ===== */
@media (min-width: 1025px){
  .egud-offers-grid{
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 !important;
  }
}

/* ===== FIX: במובייל לבטל 100vw והסטות ===== */
@media (max-width: 1024px){
  .egud-offers-grid{
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 12px !important; /* אפשר 0 אם אתה רוצה ממש צמוד */
  }

  .egud-offer-actions{
    width: 100%;
  }

  .egud-btn{
    max-width: 100% !important;
  }
}
@media (max-width: 1024px){

  .egud-offer-actions{
    width: 100%;
    padding-inline: 8px; /* מרווח ביטחון מהקצוות */
    box-sizing: border-box;
  }

  .egud-btn{
    width: 100% !important;
    max-width: 100% !important; /* זה החלק הקריטי */
    box-sizing: border-box;
  }
}
@media (max-width: 1024px){
  .egud-offer-actions{
    align-items: stretch;
    justify-content: center;
  }
}
@media (max-width: 1024px){
  .egud-offer-card{
    border-radius: 36px !important;
  }
}
@media (max-width: 1024px){
  .egud-offer-card:nth-child(even) .egud-offer-actions{
    margin-right: 0 !important;
  }
}
/* === FORCE EGUD MODAL CLOSE (override Elementor + reset.css) === */
button.egud-modal-close{
  background-color: #F4EA67 !important;
  color: #000 !important;
  border: 2px solid #000 !important;
  border-radius: 999px !important;
  padding: 0 !important;
}

/* hover */
button.egud-modal-close:hover{
  background-color: #000 !important;
  color: #F4EA67 !important;
  border-color: #000 !important;
}
/* =========================
   FIX: My Offers (אזור אישי) עיצוב קומפקטי
   ========================= */
.egud-my-offers-grid{
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 0 12px !important;
}

/* דריסה חזקה של העיצוב “הגדול” רק באזור האישי */
.egud-my-offers-grid .egud-offer-card{
  height: auto !important;
  min-height: 140px !important;
  padding: 18px 18px 16px !important;

  background: #fff !important;
  border: 1px solid #ddd !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06) !important;

  border-radius: 18px !important;
  overflow: hidden !important;
}

/* מבטל את הרדיוסים של odd/even באזור האישי */
.egud-my-offers-grid .egud-offer-card:nth-child(odd),
.egud-my-offers-grid .egud-offer-card:nth-child(even){
  border-radius: 18px !important;
}

/* טיפוגרפיה קומפקטית */
.egud-my-offers-grid .egud-offer-title{
  font-size: 18px !important;
  line-height: 1.25 !important;
  margin: 0 0 8px !important;
}

.egud-my-offers-grid .egud-offer-date{
  font-size: 13px !important;
  margin: 0 0 10px !important;
  color: #666 !important;
}

/* כפתור פירוט קטן ומסודר */
.egud-my-offers-grid .egud-offer-actions{
  justify-content: flex-start !important;
  gap: 10px !important;
}

.egud-my-offers-grid .egud-btn.egud-view{
  width: 90px !important;
  height: 38px !important;
  font-size: 14px !important;
}

/* אם יש לוגו באזור אישי – להקטין */
.egud-my-offers-grid .egud-offer-logo{
  width: 54px !important;
  height: 54px !important;
  margin: 0 0 10px 0 !important;
}
/* להסיר חסימת גלילה שהייתה על הגריד עצמו */
.egud-my-offers-grid{
  overflow: visible !important;
  max-height: none !important;
}
/* =========================
   אזור אישי – גלילה פנימית אמיתית
   ========================= */

/* קונטיינר של "הטבות שלי" */
.elementor-element-cda0472{
  --height: 400px;        /* במקום height רגיל */
  --min-height: 400px;
  --overflow: hidden;     /* זה מה שה-e-con קורא */
  display: flex;
  flex-direction: column;
}

/* שכבת inner של אלמנטור חייבת לאפשר flex-child לגדול */
.elementor-element-cda0472 > .e-con-inner{
  height: 100%;
  min-height: 0;          /* קריטי ל-scroll פנימי */
  display: flex;
  flex-direction: column;
}

/* ורק הגריד בפנים יגלול */
.elementor-element-cda0472 .egud-my-offers-grid{
  flex: 1;
  min-height: 0;          /* קריטי */
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
/* ===== MY OFFERS: force internal scroll ===== */
.elementor-element-cda0472{
  --height: 400px;
  --min-height: 400px;
  --overflow: hidden;
}

.elementor-element-cda0472 > .e-con-inner{
  height: 100%;
  min-height: 0;
}

/* זה האלמנט שצריך לגלול */
.elementor-element-cda0472 .egud-my-offers-grid{
  height: 100% !important;
  max-height: 100% !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  min-height: 0 !important;
  padding-bottom: 24px !important; /* במקום 92, שלא יחתוך */
}
/* =========================
   RESPONSIVE: stack columns on mobile
   ========================= */

/* זה ה-row/קונטיינר שמחזיק את 3 העמודות (לפי מה שהדבקת: 037219b) */
@media (max-width: 767px){
  .elementor-1142 .elementor-element.elementor-element-037219b{
    --flex-direction: column !important;
    --flex-wrap: nowrap !important;
    --gap: 24px !important;
  }

  /* כל “עמודה” בתוך השורה — להפוך ל-100% */
  .elementor-1142 .elementor-element.elementor-element-037219b > .e-con-inner > .e-con,
  .elementor-1142 .elementor-element.elementor-element-037219b > .e-con-inner > .elementor-element{
    --width: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* העמודה של "הטבות שלי" (לפי מה ששלחת: cda0472) — לבטל גובה קשיח במובייל */
  .elementor-1142 .elementor-element.elementor-element-cda0472{
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* הגריד בפנים: במובייל בלי גלילה פנימית (שייראה טבעי) */
  .elementor-1142 .elementor-element.elementor-element-cda0472 .egud-my-offers-grid{
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    padding-bottom: 24px !important;
  }
}
/* לכבד hidden ולא להציג את הריבוע כשאין לוגו */
.egud-modal-logo[hidden]{
  display: none !important;
}
/* במובייל: לבטל את ה-25% של אלמנטור ולתת לכל עמודה 100% */
@media (max-width: 767px){
  .elementor-1142 .elementor-element.elementor-element-cda0472{
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    --width: 100% !important;
  }

  /* לוודא שהקונטיינר הראשי באמת מאפשר ירידת שורה */
  .elementor-1142 .elementor-element.elementor-element-037219b{
    flex-wrap: wrap !important;
  }
}
