/* ===========================================================
   donate.css — DONATE ask, above the join/poll form (digidash-286)
   Reuses the lp2 donation mechanism (amount chips -> /donate-checkout/)
   and the hero video, restyled with primaries tokens (navy/lime/white).
   Desktop: scaled-stage pattern (1920 canvas), matches hero/join/cards.
   Mobile:  flow layout inside .m, matches .m-pjvote/.m-hero conventions.
   =========================================================== */

/* ---------- Desktop ---------- */
.pjdonate {
  position: relative;
  width: 100vw; max-width: 100%;
  height: calc(100vw * 620 / 1920);
  overflow: hidden;
  background: var(--navy-deep);
}
.pjdonate__stage {
  position: absolute; top: 0; left: 0;
  width: 1920px; height: 620px;
  transform: scale(calc(100vw / 1920px));
  transform-origin: top left;
  display: flex; align-items: center; justify-content: center;
  flex-direction: row-reverse;
  gap: 96px;
  z-index: 1;
}

.pjdonate__video {
  position: relative;
  flex: 0 0 auto;
  width: 340px; height: 460px;
  border-radius: var(--r-img);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
  cursor: pointer;
  z-index: 2;
}
.pjdonate__video-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.pjdonate__mute {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 90px; height: 90px;
  border: 1px solid #F0C723; border-radius: 50%;
  background: transparent;
  -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 3;
  transition: opacity .5s ease, transform .12s ease, box-shadow .15s ease;
}
.pjdonate__mute:hover  { box-shadow: 0 0 0 5px rgba(240,199,35,.25), 0 6px 22px rgba(0,0,0,.35); }
.pjdonate__mute:active { transform: translate(-50%,-50%) scale(.94); }
.pjdonate__mute-icon { width: 34px; height: 43px; margin-left: 4px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }
.pjdonate__mute:not(.is-paused) { opacity: 0; pointer-events: none; }

.pjdonate__text { flex: 0 0 auto; width: 760px; text-align: right; z-index: 2; }
.pjdonate__eyebrow {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-100); color: var(--navy);
  font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: 24px; line-height: 34px; letter-spacing: 0.9px;
  height: 34px; padding: 0 16px;
}
.pjdonate__title {
  margin: 20px 0 0;
  font-family: var(--font-display); font-weight: var(--w-display);
  color: var(--white); font-size: 56px; line-height: 66px;
}
.pjdonate__body {
  margin: 18px 0 0; max-width: 680px;
  font-family: var(--font-body); color: var(--text-muted);
  font-size: 22px; line-height: 32px;
}

.pjdonate__amounts { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 14px; margin-top: 30px; }
.pjdonate__chip {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-width: 118px; height: 58px; padding: 0 18px;
  background: rgba(255,255,255,0.06);
  border: 2px solid rgba(255,255,255,0.22);
  border-radius: var(--r-sm);
  font-family: var(--font-display); font-weight: var(--w-bold);
  color: var(--white); font-size: 26px;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.pjdonate__chip:hover { border-color: var(--lime); transform: translateY(-2px); }
.pjdonate__chip .amt { display: inline-flex; align-items: baseline; gap: 2px; flex-direction: row-reverse; }
.pjdonate__chip .ils { font-size: 14px; }
.pjdonate__chip--picked { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.pjdonate__chip-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: var(--white);
  font-family: var(--font-body); font-weight: var(--w-bold);
  font-size: 13px; line-height: 20px; padding: 0 10px; border-radius: 20px;
  white-space: nowrap;
}
.pjdonate__cta {
  display: inline-flex; margin-top: 18px;
  font-family: var(--font-body); font-weight: var(--w-medium);
  color: var(--white); font-size: 18px; text-decoration: underline;
  text-underline-offset: 3px; opacity: .85;
}
.pjdonate__cta:hover { opacity: 1; }

.pjdonate__trust { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-family: var(--font-body); color: var(--text-muted); font-size: 15px; }
.pjdonate__trust .pay { display: inline-flex; align-items: center; gap: 6px; }
.pjdonate__trust .pay img { width: 14px; height: 14px; filter: brightness(0) invert(1); opacity: .8; }
.pjdonate__trust .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* ---------- Mobile (flow layout, shown by mobile.css @max-width:768px) ---------- */
.m-donate { position: relative; padding: 50px 16px 46px; text-align: center; background: var(--navy-deep); }
.m-donate__video {
  position: relative; width: 100%; max-width: 320px; height: 380px; margin: 0 auto 24px;
  border-radius: 8.256px; overflow: hidden; border: 1px solid var(--blue-200);
}
.m-donate__video-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-donate__mute {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 78px; height: 78px; border: 1px solid #F0C723; border-radius: 50%; background: transparent;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; z-index: 2; cursor: pointer;
  transition: opacity .5s ease;
}
.m-donate__mute:not(.is-paused) { opacity: 0; pointer-events: none; }
.m-donate__mute-icon { width: 28px; height: 35px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.55)); }

.m-donate__title { margin-top: 16px; font-family: var(--font-display); font-weight: var(--w-bold); color: var(--white); font-size: 40px; line-height: 46px; }
.m-donate__body { margin: 14px auto 0; max-width: 340px; color: var(--text-muted); font-family: var(--font-body); font-size: 20px; line-height: 28px; }

.m-donate__amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.m-donate__chip {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  min-width: 130px; height: 56px; padding: 0 16px;
  background: rgba(255,255,255,0.06); border: 2px solid rgba(255,255,255,0.22);
  border-radius: 6px; font-family: var(--font-display); font-weight: var(--w-bold);
  color: var(--white); font-size: 26px;
}
.m-donate__chip .amt { display: inline-flex; align-items: baseline; gap: 2px; flex-direction: row-reverse; }
.m-donate__chip .ils { font-size: 14px; }
.m-donate__chip--picked { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.m-donate__chip-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: var(--white); font-family: var(--font-body); font-weight: var(--w-bold);
  font-size: 12px; line-height: 18px; padding: 0 8px; border-radius: 20px; white-space: nowrap;
}
.m-donate__cta { display: inline-flex; margin-top: 16px; color: var(--white); font-family: var(--font-body); font-size: 17px; text-decoration: underline; opacity: .85; }

.m-donate__trust { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; color: var(--text-muted); font-family: var(--font-body); font-size: 14px; }
.m-donate__trust .pay { display: inline-flex; align-items: center; gap: 6px; }
.m-donate__trust .pay img { width: 13px; height: 13px; filter: brightness(0) invert(1); opacity: .8; }
.m-donate__trust .sep { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }

/* ---------- "סכום אחר" custom-amount popup (shared desktop+mobile) -----------
   Ported from wp-content/themes/hello-theme-child-master/lp2 (the original
   donations page popup, id=lp2-custom-price-overlay) — same overlay/card
   pattern, restyled with primaries tokens (navy/blue-200/white) instead of
   the lp2 blue palette. Submits to the same /donate-checkout/?amount=<n>
   flow as the fixed chips (digidash-286 follow-up). --------------------- */
.pjdonate-popup-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(12,29,55,.78);
  display: none; align-items: center; justify-content: center; padding: 20px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.pjdonate-popup-overlay.is-open { display: flex; }
.pjdonate-popup {
  position: relative; background: var(--white); border-radius: var(--r-card);
  padding: 40px 32px 28px; width: min(420px, 92vw);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
  display: flex; flex-direction: column; gap: 18px;
  direction: rtl; text-align: center;
}
.pjdonate-popup__close {
  position: absolute; top: 10px; left: 14px;
  background: transparent; border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--navy); padding: 6px 10px;
}
.pjdonate-popup__close:hover { color: var(--navy-deep); }
.pjdonate-popup__title {
  font-family: var(--font-display); font-weight: var(--w-bold);
  font-size: 32px; color: var(--navy); margin: 0; text-align: center;
}
.pjdonate-popup__input {
  font-family: var(--font-body); font-size: 22px; font-weight: var(--w-medium);
  text-align: center; color: var(--navy);
  padding: 14px 18px; border: 2px solid var(--blue-200); border-radius: var(--r-sm);
  background: var(--white); outline: none; width: 100%; box-sizing: border-box; direction: rtl;
}
.pjdonate-popup__input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(16,67,124,.18); }
.pjdonate-popup__submit {
  font-family: var(--font-display); font-weight: var(--w-bold); font-size: 24px; color: var(--white);
  background: var(--navy); border: 0; border-radius: var(--r-sm); cursor: pointer;
  padding: 14px 24px; transition: transform .12s ease, filter .15s ease;
}
.pjdonate-popup__submit:hover { filter: brightness(1.1); }
.pjdonate-popup__submit:active { transform: translateY(1px) scale(.99); }
