:root.ejabh-ed-modal-open { overflow: hidden; }
html.ejabh-ed-modal-open body .ejabh-du-button-widget,
html.ejabh-ed-modal-open body .ejabh-du-standalone-button.is-sticky,
html.ejabh-ed-modal-open body [class*="sticky-donation"],
html.ejabh-ed-modal-open body [class*="fixed-donation"] { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }
html.ejabh-ed-modal-open body > iframe[title="زر التبرع المستمر"] { opacity: 0 !important; pointer-events: none !important; visibility: hidden !important; }

.ejabh-ed-root {
  --ejabh-ed-primary: #0f766e;
  --ejabh-ed-bg: #fff;
  --ejabh-ed-text: #123c35;
  font-family: "Cairo", "Tajawal", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  position: relative;
  z-index: 2147483000;
}

.ejabh-ed-bar {
  align-items: center;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--ejabh-ed-bg), transparent 4%);
  border-top: 1px solid rgba(15, 118, 110, .18);
  bottom: 0;
  box-shadow: 0 -12px 40px rgba(11, 45, 40, .14);
  color: var(--ejabh-ed-text);
  display: flex;
  gap: 18px;
  justify-content: center;
  left: 0;
  min-height: 72px;
  padding: 9px max(18px, env(safe-area-inset-right)) calc(9px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  position: fixed;
  right: 0;
  z-index: 2147483000;
}

.ejabh-ed-bar-title { font-size: 15px; font-weight: 800; }
.ejabh-ed-launchers { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(142px, 188px)); }

.ejabh-ed-launch {
  align-items: center;
  border: 0 !important;
  border-radius: 13px;
  cursor: pointer;
  direction: ltr;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 19px;
  font-weight: 650;
  gap: 7px;
  height: 48px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-width: 135px;
  padding: 0 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ejabh-ed-launch:hover { box-shadow: 0 7px 18px rgba(0, 0, 0, .2); transform: translateY(-1px); }
.ejabh-ed-launch:focus-visible, .ejabh-ed-close:focus-visible, .ejabh-ed-amount:focus-visible { outline: 3px solid color-mix(in srgb, var(--ejabh-ed-primary), white 35%); outline-offset: 2px; }
.ejabh-ed-apple { background: #050505 !important; color: #fff !important; }
.ejabh-ed-google { background: #fff !important; border: 1px solid #d4d9df !important; color: #202124 !important; }
.ejabh-ed-root.is-android .ejabh-ed-apple { display: none !important; }
.ejabh-ed-root.is-android .ejabh-ed-launchers { grid-template-columns: minmax(180px, 360px); }
.ejabh-ed-apple-logo { display: inline-block; height: 22px; position: relative; width: 20px; }
.ejabh-ed-apple-logo::before { background: #fff; border-radius: 48% 48% 55% 55% / 57% 57% 45% 45%; bottom: 1px; content: ""; height: 16px; left: 2px; position: absolute; transform: rotate(-7deg); width: 16px; }
.ejabh-ed-apple-logo::after { background: #fff; border-radius: 90% 12% 90% 12%; content: ""; height: 7px; left: 10px; position: absolute; top: 0; transform: rotate(-33deg); width: 6px; }
.ejabh-ed-apple-logo i::after { background: #050505; border-radius: 50%; content: ""; height: 5px; position: absolute; right: 0; top: 8px; width: 5px; }
.ejabh-ed-google-g { background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 42%, #fbbc05 0 67%, #ea4335 0 82%, #4285f4 0); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: Arial, sans-serif; font-size: 24px; font-weight: 800; }

.ejabh-ed-overlay {
  align-items: center;
  background: rgba(4, 22, 19, .72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 2147483646;
}
.ejabh-ed-overlay[hidden] { display: none !important; }
.ejabh-ed-modal {
  background: #fff;
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .3);
  color: #163b35;
  max-height: min(86dvh, 700px);
  max-width: 500px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 26px;
  position: relative;
  width: 100%;
}

html body .ejabh-ed-root .ejabh-ed-modal h2 { color: var(--ejabh-ed-text) !important; font-family: inherit !important; font-size: clamp(23px, 3vw, 28px) !important; font-weight: 850 !important; letter-spacing: 0 !important; line-height: 1.3 !important; margin: 0 42px 20px !important; text-align: center !important; }
.ejabh-ed-close { align-items: center; background: #eaf4f1 !important; border: 0 !important; border-radius: 50%; color: #14544a !important; cursor: pointer; display: flex; font-family: Arial, sans-serif !important; font-size: 25px !important; height: 36px; inset-inline-start: 15px; justify-content: center; line-height: 1 !important; margin: 0 !important; padding: 0 0 3px !important; position: absolute; top: 15px; width: 36px; }

.ejabh-ed-amounts { display: grid; gap: 9px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ejabh-ed-amount {
  background: #f5faf8 !important;
  border: 2px solid #d7e8e3 !important;
  border-radius: 12px;
  color: #153e37 !important;
  cursor: pointer;
  font: inherit;
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  min-height: 54px;
  padding: 8px 5px;
}
.ejabh-ed-amount.is-selected { background: color-mix(in srgb, var(--ejabh-ed-primary), white 88%) !important; border-color: var(--ejabh-ed-primary) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--ejabh-ed-primary), transparent 78%); }
.ejabh-ed-amount .woocommerce-Price-amount { color: inherit; }

.ejabh-ed-custom { display: block; font-size: 14px; font-weight: 750; margin-top: 14px; text-align: center; }
.ejabh-ed-input-wrap { align-items: center; border: 2px solid #d7e8e3; border-radius: 12px; display: flex; gap: 8px; margin-top: 6px; padding: 0 13px; }
.ejabh-ed-input-wrap:focus-within { border-color: var(--ejabh-ed-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ejabh-ed-primary), transparent 85%); }
.ejabh-ed-input-wrap input { background: transparent !important; border: 0 !important; box-shadow: none !important; color: #153e37 !important; font: inherit; font-size: 18px; font-weight: 800; height: 49px; margin: 0; outline: 0; padding: 0; width: 100%; }
.ejabh-ed-error { color: #b42318; font-size: 13px; min-height: 17px; margin: 6px 0 0; }

.ejabh-ed-wallets { border-top: 1px solid #dfebe7; margin-top: 8px; padding-top: 15px; text-align: center; }
.ejabh-ed-wallets > strong { color: var(--ejabh-ed-text); display: block; font-size: 15px; margin-bottom: 10px; }
.ejabh-ed-loading { align-items: center; background: #d92d20; border: 1px solid #b42318; border-radius: 10px; box-shadow: 0 5px 14px rgba(180, 35, 24, .22); color: #fff; display: flex; font-size: 14px; font-weight: 800; justify-content: center; margin: 0; min-height: 48px; padding: 9px; }
.ejabh-ed-loading.is-unavailable { background: #fff7e8; color: #795300; }
.ejabh-ed-root.has-wallets .ejabh-ed-loading { display: none; }
.ejabh-ed-wallet-frame { background: transparent; border: 0; display: block; height: 104px; opacity: 0; pointer-events: none; transition: opacity .18s ease; width: 100%; }
.ejabh-ed-root.has-wallets .ejabh-ed-wallet-frame { opacity: 1; pointer-events: auto; }
.ejabh-ed-wallet-fallback { background: var(--ejabh-ed-primary); border-radius: 10px; color: #fff !important; display: inline-flex; font-size: 14px; font-weight: 800; justify-content: center; margin-top: 10px; padding: 11px 18px; text-decoration: none !important; }
.ejabh-ed-wallet-fallback[hidden], .ejabh-ed-root.has-wallets .ejabh-ed-wallet-fallback { display: none !important; }
.ejabh-ed-unavailable { background: #fff7e6; border-radius: 10px; color: #7a4d00; font-size: 14px; margin: 10px 0 0; padding: 10px; }
.ejabh-ed-editor-warning { background: #fff8df; border: 1px solid #e4c658; color: #624d00; padding: 12px; }

body:not(.elementor-editor-active) { padding-bottom: 72px; }

@media (min-width: 769px) {
  .ejabh-ed-mobile-only { display: none !important; }
}

@media (max-width: 680px) {
  .ejabh-ed-bar { gap: 8px; min-height: 68px; padding: 8px max(9px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left)); }
  .ejabh-ed-bar-title { display: none; }
  .ejabh-ed-launchers { gap: 7px; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ejabh-ed-launch { border-radius: 12px; height: 48px; min-width: 0; width: 100%; }
  .ejabh-ed-overlay { align-items: flex-end; padding: 0; }
  .ejabh-ed-modal { border-radius: 22px 22px 0 0; max-height: 86dvh; max-width: none; padding: 23px 15px calc(18px + env(safe-area-inset-bottom)); }
  html body .ejabh-ed-root .ejabh-ed-modal h2 { font-size: 25px !important; margin: 2px 40px 18px !important; }
  .ejabh-ed-close { height: 34px; inset-inline-start: 12px; top: 12px; width: 34px; }
  .ejabh-ed-amounts { gap: 7px; }
  .ejabh-ed-amount { font-size: 16px; min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .ejabh-ed-launch { transition: none; }
}
