/* Open non-modal inline; showModal promotes the same iframe to the top layer. */
.bizim-form-loading{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px;min-height:220px;padding:24px 18px;border-radius:14px;background:#f7f9fd;color:#425875;font:14px/1.6 "Segoe UI",Tahoma,Arial,sans-serif;text-align:center;box-sizing:border-box}
.bizim-form-loading[hidden]{display:none!important}
html[lang^=ar] .bizim-form-loading{font-family:Cairo,Tahoma,Arial,sans-serif!important;font-size:15px!important;font-weight:600!important;line-height:1.9!important;letter-spacing:0!important}
.bizim-form-spinner{display:block;width:22px;height:22px;border:2px solid #dce5f6;border-top-color:#244594;border-radius:50%;animation:bizim-form-spin .8s linear infinite;flex:none}
.bizim-form-skeleton{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;flex-basis:100%}
.bizim-form-skeleton i{height:38px;background:#e9eef7;border-radius:9px}
.bizim-form-loading{position:relative;overflow:hidden;min-height:240px;background:linear-gradient(145deg,#fff,#f4f7fd);border:1px solid #e5ebf5;box-shadow:0 4px 18px rgba(31,59,105,.04);gap:14px;font-weight:600;color:#24416b}
.bizim-form-spinner{width:26px;height:26px;border-width:3px;border-color:#e5ecf8;border-top-color:#e9ad20;box-shadow:0 0 0 6px #f0f4fc}
.bizim-form-skeleton{gap:9px;padding-top:10px}
.bizim-form-skeleton i{height:40px;background:linear-gradient(110deg,#eaf0f8 25%,#f6f9fd 45%,#eaf0f8 65%);background-size:240% 100%;animation:bizim-form-shimmer 1.8s ease-in-out infinite}
.bizim-form-skeleton::after{content:'';grid-column:1/-1;height:44px;background:#edf2f9;border:1px solid #e4ebf4;border-radius:10px;margin-top:3px}
@keyframes bizim-form-shimmer{to{background-position:-240% 0}}
@media(prefers-reduced-motion:reduce){.bizim-form-skeleton i{animation:none}}
@keyframes bizim-form-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bizim-form-spinner{animation:none}}
dialog.bizim-native-donation:not(.is-form-ready):not(.is-load-slow) :is([data-givewp-embed],.root-data-givewp-embed){position:absolute!important;inset:0;visibility:hidden;pointer-events:none}
dialog.bizim-native-donation.is-form-ready>.bizim-form-loading{display:none!important}
dialog.bizim-native-donation.is-load-slow iframe{opacity:1!important;visibility:visible!important}
dialog.bizim-native-donation{position:relative;inset:auto;display:block;width:100%;min-width:0;max-width:100%;margin:0;padding:8px;color:inherit;background:#fff;border:1px solid #e0e8f2;border-radius:20px;box-shadow:0 8px 28px rgba(28,52,94,.06);overflow:hidden}
.bizim-native-donation,.bizim-native-donation *{box-sizing:border-box}
.bizim-native-donation [data-givewp-embed],.bizim-native-donation .root-data-givewp-embed{width:100%;max-width:100%;margin:0}
.bizim-native-donation iframe{display:block;width:100%!important;max-width:100%;min-height:0!important;border:0!important}
dialog.bizim-native-donation.is-dialog{position:fixed!important;inset:0!important;transform:none;margin:auto!important;width:540px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;height:fit-content;overflow:auto;padding:60px 16px 16px!important;box-shadow:0 24px 80px rgba(10,25,50,.25)}
dialog.bizim-native-donation::backdrop{background:rgba(18,35,64,.62);backdrop-filter:blur(5px)}
.bizim-native-close{position:absolute!important;inset:12px 14px auto auto!important;display:grid!important;place-items:center!important;width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;margin:0!important;padding:0!important;border:1px solid #dce4f0!important;background:#f6f8fc!important;color:#244594!important;border-radius:50%!important;line-height:1!important;cursor:pointer}
.bizim-native-close svg{display:block;flex:none;pointer-events:none}
.bizim-native-close[hidden]{display:none!important}
.bizim-native-close:focus-visible{outline:2px solid #244594;outline-offset:3px}
.bizim-native-donation.is-resetting{visibility:hidden}

/* Keep the close action near the compact form header. */
html dialog.bizim-native-donation.is-dialog{width:540px!important;max-height:calc(100dvh - 40px)!important;padding:46px 18px 16px!important;border-radius:20px!important;scrollbar-width:thin;scrollbar-color:#bdc9dc transparent}
html dialog.bizim-native-donation.is-dialog.is-receipt{width:740px!important;padding:46px 14px 14px!important}
html .bizim-native-close{inset:8px 10px auto auto!important;width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important}
html .bizim-native-close svg{width:16px;height:16px}
@media(max-width:480px){html dialog.bizim-native-donation.is-dialog{padding:44px 8px 10px!important;border-radius:16px!important}}
@media(pointer:coarse){html .bizim-native-close{width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}html dialog.bizim-native-donation.is-dialog{padding-top:56px!important}}
@media(max-width:480px){dialog.bizim-native-donation{padding:4px;border-radius:16px}dialog.bizim-native-donation.is-dialog{padding:58px 8px 8px!important;max-width:calc(100vw - 20px)!important;max-height:calc(100dvh - 20px)!important}}

/* Match the reference card without a second inset card around its iframe. */
dialog.bizim-native-donation:not(.is-dialog){padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;overflow:visible}
/* Reveal as soon as GiveWP renders; avoid the child theme polling/fade delay. */
dialog.bizim-native-donation.is-form-ready iframe{opacity:1!important;transition:none!important}

/* Checkout shell: 560px = 20px + 520px form + 20px; phone keeps 16px gutters. */
html dialog.bizim-native-donation[hidden],.bizim-checkout-resume[hidden],.bizim-checkout-heading[hidden]{display:none!important}
html dialog.bizim-native-donation.is-dialog{width:560px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 32px)!important;padding:0 20px 20px!important;border:1px solid #dce4ef!important;border-radius:20px!important;overscroll-behavior:contain;scroll-padding-top:100px}
html dialog.bizim-native-donation.is-dialog.is-receipt{padding:0 20px 20px!important}
.bizim-checkout-heading{position:sticky;top:0;z-index:2;display:flex;flex-direction:column;gap:3px;margin:0 -20px 20px;padding:20px 72px 18px 20px;background:#fff;border-bottom:1px solid #e5eaf2;text-align:start;color:#18345c;font-family:Lato,"Segoe UI",Arial,sans-serif}
.bizim-checkout-heading strong{font-size:20px;font-weight:700;line-height:1.4}
.bizim-checkout-heading>span{font-size:12px;line-height:1.5;color:#53657b}
html .bizim-checkout-heading .bizim-native-close{inset:16px 16px auto auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;border-radius:10px!important;background:#fff!important;border-color:#dce4ef!important}
html .bizim-checkout-heading .bizim-native-close svg{width:20px;height:20px}
html .bizim-native-close:disabled{opacity:.4;cursor:wait}
.bizim-checkout-resume{padding:20px;border:1px solid #dce4ef;border-radius:16px;background:#fff;color:#53657b;text-align:center;font:14px/1.5 Lato,"Segoe UI",Arial,sans-serif}
.bizim-checkout-resume>button{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:48px;padding:12px 16px;background:#f5b82e;border:0;border-radius:10px;color:#18345c;font-family:inherit;font-size:15px;font-weight:700;line-height:1.5;cursor:pointer}
.bizim-checkout-resume>button::before{content:'';width:18px;height:18px;flex:none;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m9 5 7 7-7 7' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat}
.bizim-checkout-resume>button:focus-visible{outline:2px solid #244594;outline-offset:3px}
.bizim-checkout-resume p{margin:10px 0 0;font-size:13px;line-height:1.6}
html[dir=rtl] .bizim-checkout-heading{padding:20px 20px 18px 72px}
html[dir=rtl] .bizim-checkout-heading .bizim-native-close{inset:16px auto auto 16px!important}
html[dir=rtl] .bizim-checkout-resume>button::before{transform:rotate(180deg)}
html[lang^=ar] :is(.bizim-checkout-heading,.bizim-checkout-resume){font-family:Cairo,Tahoma,Arial,sans-serif;line-height:1.8}
@media(hover:hover) and (pointer:fine){html .bizim-checkout-heading .bizim-native-close:not(:disabled):hover{background:#f1f5fb!important}.bizim-checkout-resume>button:hover{background:#ffca28}}
@media(max-width:480px){html dialog.bizim-native-donation.is-dialog{padding:0 16px 16px!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:16px!important}.bizim-checkout-heading{margin:0 -16px 16px;padding-inline-start:16px}.bizim-checkout-heading strong{font-size:18px}html[dir=rtl] .bizim-checkout-heading{padding-inline-start:16px}}
/* Starting-style adds motion without delaying focus or form interaction. */
@media(prefers-reduced-motion:no-preference){
  html dialog.bizim-native-donation.is-dialog:not(.is-keyboard){transition:opacity 220ms cubic-bezier(.23,1,.32,1),transform 220ms cubic-bezier(.23,1,.32,1),display 220ms allow-discrete,overlay 220ms allow-discrete}
  html dialog.bizim-native-donation.is-dialog::backdrop{background:rgba(18,35,64,.55);backdrop-filter:none}
  html dialog.bizim-native-donation.is-dialog:not(.is-keyboard)::backdrop{transition:opacity 220ms ease-out}
  @starting-style{html dialog.bizim-native-donation.is-dialog:not(.is-keyboard){opacity:0;transform:translateY(12px) scale(.98)!important}html dialog.bizim-native-donation.is-dialog:not(.is-keyboard)::backdrop{opacity:0}}
}
@media(prefers-reduced-motion:reduce){html dialog.bizim-native-donation.is-dialog{transition:none!important;transform:none!important}}

.bizim-checkout-placeholder[hidden]{display:none!important}
.bizim-checkout-placeholder{width:100%;overflow:hidden;pointer-events:none}


/* 2.2.2 — keep the donation flow visually stable without disabling animation. */
html dialog.bizim-native-donation.is-dialog{width:min(960px,calc(100vw - 48px))!important;max-width:calc(100vw - 48px)!important;max-height:calc(100dvh - 48px)!important;border-radius:22px!important;scrollbar-gutter:stable;overscroll-behavior:contain!important;}
html dialog.bizim-native-donation.is-dialog::backdrop{background:rgba(12,26,51,.62)!important;backdrop-filter:blur(4px)!important;-webkit-backdrop-filter:blur(4px)!important;}
html dialog.bizim-native-donation.is-dialog iframe{max-width:100%!important;}
.bizim-checkout-resume:not([hidden]){position:relative!important;inset:auto!important;transform:none!important;width:min(100%,420px)!important;margin:20px auto!important;box-shadow:0 12px 32px rgba(21,42,76,.09)!important;}
.bizim-checkout-placeholder[hidden]{display:none!important;}
@media(max-width:700px){html dialog.bizim-native-donation.is-dialog{width:calc(100vw - 16px)!important;max-width:calc(100vw - 16px)!important;max-height:calc(100dvh - 16px)!important;border-radius:16px!important;padding:0 12px 12px!important}.bizim-checkout-heading{margin-inline:-12px!important;padding-inline:16px 64px!important}html[dir=rtl] .bizim-checkout-heading{padding-inline:64px 16px!important}}
.bizim-mobile-donation-entry{display:none}
/* The inline shortcode stays in layout, but must not paint an empty white card. */
html body .brxe-shortcode.bizim-checkout-host-open{background:transparent!important;background-image:none!important;box-shadow:none!important;border-color:transparent!important}
/* Motion is owned by the interruptible WAAPI shell; avoid two competing systems. */
html dialog.bizim-native-donation.is-dialog{transition:none!important}
html dialog.bizim-native-donation.is-dialog::backdrop{backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transition:none!important;background:rgba(12,26,51,.56)!important}
html dialog.bizim-native-donation.is-closing{pointer-events:none!important}
.bizim-form-skeleton i{animation:bizim-form-breathe 1.4s ease-in-out infinite;background:#edf1f7;background-size:auto}
@keyframes bizim-form-breathe{50%{opacity:.45}}
@media(prefers-reduced-motion:reduce){.bizim-form-skeleton i{animation:none!important}}
@media(max-width:767px){
 .bizim-mobile-donation-entry{display:flex;width:100%;border:0;cursor:pointer;align-items:center;justify-content:center;min-height:48px;padding:10px 20px;box-sizing:border-box;background:#f5b82e;color:#18345c;border-radius:12px;font-family:inherit;font-size:16px;font-weight:700;line-height:1.5;text-align:center;text-decoration:none}
 .bizim-mobile-donation-entry:focus-visible{outline:3px solid #244594;outline-offset:4px}
 html dialog.bizim-native-donation.bizim-has-mobile-entry:not(.is-dialog){display:none!important}
 html body dialog.bizim-native-donation.is-dialog,html body dialog.bizim-native-donation.is-dialog.bizim-checkout-shell{display:block!important;position:fixed!important;inset:0!important;width:100vw!important;max-width:100vw!important;height:100dvh!important;max-height:100dvh!important;margin:0!important;border:0!important;border-radius:0!important;padding:0 0 env(safe-area-inset-bottom)!important;overflow-y:auto!important;overscroll-behavior:contain!important;scrollbar-gutter:auto!important}
 html body dialog.bizim-native-donation.is-dialog>.bizim-checkout-art{display:none!important}
 html body dialog.bizim-native-donation.is-dialog>.bizim-checkout-heading{position:sticky;top:0;margin:0!important;padding:calc(18px + env(safe-area-inset-top)) 18px 18px!important;padding-inline-end:72px!important;border-bottom:1px solid #e8ecf2;background:#fff;z-index:4}
 html body dialog.bizim-native-donation.is-dialog>:is(.root-data-givewp-embed,[data-givewp-embed],.bizim-form-loading){padding:20px 16px 28px!important}
 html body dialog.bizim-native-donation.is-dialog .bizim-native-close{inset-block-start:calc(12px + env(safe-area-inset-top))!important;inset-inline-end:14px!important;inset-inline-start:auto!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important}
}
