.ebap-dialog,.ebap-dialog *{box-sizing:border-box}
.ebap-dialog{font-family:Ebrahimi,Tahoma,sans-serif!important;width:min(460px,calc(100% - 28px));max-width:none;max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:32px;border:1px solid #ffffffbb;border-radius:24px;background:#f3faf8f5;color:#123649;box-shadow:0 28px 90px #001d3970;line-height:1.8;text-align:right}
.ebap-dialog::backdrop{background:#001f36b8;backdrop-filter:blur(10px)}
.ebap-dialog .ebap-close{position:absolute;top:12px;left:12px;width:40px;height:40px;border-radius:12px;border:1px solid #c3dadc;background:#fff;color:#123649;font-size:26px;padding:0;line-height:1;cursor:pointer}
.ebap-dialog .ebap-brand{display:flex;align-items:center;gap:10px;padding-left:25px;color:#285363;font-size:13px;margin-bottom:22px}
.ebap-dialog .ebap-mark{width:30px;height:30px;flex-shrink:0;border-radius:50% 50% 8px 50%;background:linear-gradient(135deg,#26d4cf,#006478)}
.ebap-dialog h2{font-size:27px!important;line-height:1.65;color:#123649!important;margin:0 0 8px;letter-spacing:0}
.ebap-dialog .ebap-description{color:#466575;font-size:14px;line-height:1.9;margin:0 0 24px}
.ebap-dialog .ebap-method{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #c4d9dd;padding-bottom:12px;margin-bottom:20px;font-size:13px}
.ebap-dialog .ebap-method strong{color:#005d70;border-bottom:3px solid #007588;padding-bottom:11px;margin-bottom:-14px}
.ebap-dialog .ebap-method span{color:#526b75;font-size:12px}
.ebap-dialog :is(.ebap-login-form,.ebap-register-form,.ebap-profile-form,.ebap-recovery-form){margin:0;padding:0;border:0;background:none;box-shadow:none;display:block}
.ebap-dialog :is(.ebap-login-form,.ebap-register-form,.ebap-profile-form,.ebap-recovery-form) p{margin:0 0 16px;padding:0}
.ebap-dialog :is(.ebap-login-form,.ebap-register-form,.ebap-profile-form,.ebap-recovery-form) label{display:block;color:#183e50;font-size:14px;font-weight:600;margin-bottom:6px}
.ebap-dialog :is(.ebap-login-form,.ebap-register-form,.ebap-profile-form,.ebap-recovery-form) input:not([type=checkbox]):not([type=hidden]):not([type=submit]){display:block;width:100%;height:50px;border:1px solid #9bbdc5;border-radius:10px;background:#fff;color:#123649;font:inherit;font-size:16px;padding:10px 12px;box-shadow:none;direction:ltr;text-align:left}
.ebap-dialog :is(.ebap-login-form,.ebap-register-form,.ebap-profile-form,.ebap-recovery-form) .login-remember label{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400;min-height:32px}
.ebap-dialog input[name=rememberme]{width:18px;height:18px;margin:0;accent-color:#006476}
.ebap-dialog .ebap-submit{width:100%;min-height:50px;padding:10px 20px;border:0;border-radius:11px;background:#07596b;color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 6px 18px #07596b20}
.ebap-dialog .ebap-links{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;margin-top:-4px}
.ebap-dialog .ebap-links a,.ebap-dialog .ebap-fallback{color:#006073!important;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:inline-flex;align-items:center}
.ebap-dialog .ebap-links button{border:0;background:none;padding:8px 0;min-height:44px;color:#315a6a;font:inherit;cursor:pointer}
.ebap-dialog .ebap-register{margin-top:16px;padding-top:16px;border-top:1px solid #c4d9dd;font-size:14px;color:#123649}
.ebap-dialog .ebap-register p{margin:4px 0 0;font-size:13px;color:#466575}
.ebap-dialog .ebap-fallback{font-size:12px;margin-top:8px}
.ebap-dialog :focus-visible{outline:3px solid #b44c1e!important;outline-offset:3px}
.ebap-launch{display:inline-flex;padding:12px 22px;background:#07596b;color:white!important;border-radius:12px;font-family:inherit;text-decoration:none;min-height:48px;align-items:center}
@media(max-width:480px){.ebap-dialog{padding:26px 22px 20px;max-height:calc(100dvh - 24px)}.ebap-dialog h2{font-size:24px!important}.ebap-dialog .ebap-brand{font-size:12px;margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.ebap-dialog::backdrop{backdrop-filter:none}}

.ebap-dialog.ebap-inline{position:relative;display:block;max-height:none;margin:24px auto;overflow:visible;background:#f3faf8}
.ebap-dialog h3{color:#123649!important;font-size:18px!important;line-height:1.8;margin:0 0 14px}
.ebap-dialog .ebap-switch{display:flex;gap:8px;margin:0 0 24px;border-bottom:1px solid #bed4da;padding-bottom:12px}
.ebap-dialog .ebap-switch[hidden],.ebap-dialog [hidden]{display:none!important}
.ebap-dialog .ebap-switch button{flex:1;min-height:46px;border:1px solid #adc9cf;border-radius:10px;background:#fff;color:#174757;font:inherit;font-size:13px;cursor:pointer;padding:8px}
.ebap-dialog .ebap-switch button[aria-pressed=true]{background:#07596b;color:#fff;border-color:#07596b}
.ebap-dialog .ebap-switch:not([hidden])~.ebap-register{border:0;padding:0;margin:0}
.ebap-dialog .ebap-register-form .woocommerce-privacy-policy-text{font-size:12px;color:#466575;margin:12px 0;line-height:1.9}

.ebap-dialog .ebap-error{display:block;color:#a31832;font-weight:600;font-size:13px;margin-top:6px}
.ebap-dialog input[aria-invalid=true]{border:2px solid #b51e39!important;background:#fff3f5!important}
.ebap-dialog .ebap-notice{padding:12px 14px;border-right:4px solid #007588;background:#e0f0f2;color:#183e50;font-size:14px}
.ebap-dialog .ebap-profile-form input{direction:rtl!important;text-align:right!important}
.ebap-dialog small{font-size:12px;color:#466575}
#ebap-manager-logout{margin:12px;text-align:center}
#ebap-manager-logout .ebap-launch{background:#8e2440;color:#fff!important;font-size:14px;white-space:nowrap}
.ebm-heading #ebap-manager-logout{margin:0}
@media(max-width:600px){.ebm-heading #ebap-manager-logout{align-self:stretch}.ebm-heading #ebap-manager-logout a{display:flex;justify-content:center}}

.ebap-dialog .ebap-notice-error{color:#a31832;background:#fff3f5;border-color:#b51e39}

/* Scope modal visibility to the actual dialog, never the inline account form. */
dialog#ebap-dialog:not([open]),dialog#ebap-dialog[hidden]{display:none!important}
dialog#ebap-dialog[open]:not([hidden]){display:block!important;position:fixed!important;inset:0;margin:auto;z-index:1000000}

/* 0.4.0: compact forms remain usable at narrow mobile widths. */
.ebap-dialog .ebap-profile-form select{display:block;width:100%;max-width:100%;min-width:0;min-height:50px;border:1px solid #9bbdc5;border-radius:10px;background:#fff;color:#123649;font:inherit;font-size:16px;padding:10px 12px}
.ebap-dialog form,.ebap-dialog p{min-width:0;overflow-wrap:anywhere}
.ebap-dialog .ebap-recovery-hint{font-size:12px;margin:12px 0 0}
.ebap-dialog .ebap-links{flex-wrap:wrap}
.ebap-dialog form[aria-busy=true] .ebap-submit{cursor:progress;opacity:.8}
@media(max-width:360px){.ebap-dialog{padding:24px 16px 18px}.ebap-dialog .ebap-switch{gap:5px}.ebap-dialog h2{font-size:22px!important}}
/* Registration verification */
.ebap-otp{padding:14px;border:1px solid #b9d7d9;background:#f0f8f7;border-radius:12px;margin:14px 0}.ebap-otp [data-otp-send]{padding:10px 16px;border:1px solid #087b85;border-radius:8px;background:#fff;color:#075766;cursor:pointer;min-height:44px}.ebap-otp [data-otp-send]:disabled{opacity:.6;cursor:wait}.ebap-otp [name=otp_code]{direction:ltr;letter-spacing:.3em;text-align:center}.ebap-otp [data-otp-status]{font-size:13px;line-height:1.9;margin-bottom:0;overflow-wrap:anywhere}
