/* EZ-Login owns the popup/form styling. Only action buttons may optionally inherit
   the theme. Do NOT use all:revert here: it also erases EZ-Login's own defaults. */

.ez-woo-alert-widget{width:100%;max-width:100%;box-sizing:border-box;direction:rtl;font-family:inherit}
.ez-woo-alert-widget *{box-sizing:border-box}
.ez-woo-alert-card{width:100%;display:flex;flex-direction:column;gap:16px;padding:18px;border:1px solid #e5e7eb;border-radius:16px;background:#fff;box-shadow:0 10px 32px rgba(15,23,42,.07)}
.ez-woo-alert-head{display:flex;align-items:center;gap:12px;min-width:0}
.ez-woo-alert-icon{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#fef3c7;color:#92400e;font-size:22px;line-height:1;flex:0 0 46px}
.ez-woo-alert-icon i,.ez-woo-alert-trigger i{line-height:1}.ez-woo-alert-icon svg,.ez-woo-alert-trigger svg{display:block;width:22px;height:22px;fill:currentColor}
.ez-woo-alert-icon-fallback{display:inline-flex;align-items:center;justify-content:center;line-height:1;font-size:22px}
.ez-woo-alert-content{flex:1 1 auto;min-width:0}.ez-woo-alert-title{font-size:15px;font-weight:800;line-height:1.7;color:#111827;margin:0 0 3px}.ez-woo-alert-desc{font-size:13px;line-height:1.8;color:#64748b;margin:0}
.ez-woo-alert-form{width:100%;display:flex;flex-direction:column;gap:10px;min-width:0}
.ez-woo-alert-type-options{width:100%;margin:0;padding:0;border:0;min-width:0}
.ez-woo-alert-type-options legend{width:100%;margin:0 0 8px;padding:0;font-size:12px;font-weight:800;color:#334155;line-height:1.7}
.ez-woo-alert-type-options__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.ez-woo-alert-type-options__grid.ez-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ez-woo-alert-type-options__grid.ez-count-1{grid-template-columns:minmax(0,1fr)}
.ez-woo-alert-type-option{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;min-height:42px;padding:8px 7px;border:1px solid #dfe5ee;border-radius:10px;background:#fff;color:#475569;font-size:12px;font-weight:750;line-height:1.4;text-align:center;cursor:pointer;transition:border-color .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;user-select:none}
.ez-woo-alert-type-option:hover{border-color:#b9d5ff;background:#f8fbff;color:#1d4ed8}
.ez-woo-alert-type-option input{position:absolute;opacity:0;pointer-events:none}
.ez-woo-alert-type-check{width:17px;height:17px;border:1.5px solid #cbd5e1;border-radius:5px;background:#fff;display:grid;place-items:center;flex:0 0 17px;transition:.16s ease}
.ez-woo-alert-type-check:after{content:"✓";font-size:11px;font-weight:900;line-height:1;color:#fff;opacity:0;transform:scale(.7);transition:.16s ease}
.ez-woo-alert-type-label{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ez-woo-alert-type-option:has(input:checked){border-color:#8fbdff;background:#f3f8ff;color:#1769e8;box-shadow:inset 0 0 0 1px rgba(37,122,255,.08)}
.ez-woo-alert-type-option input:checked + .ez-woo-alert-type-check{border-color:#257AFF;background:#257AFF}
.ez-woo-alert-type-option input:checked + .ez-woo-alert-type-check:after{opacity:1;transform:scale(1)}
.ez-woo-alert-type-option input:focus-visible + .ez-woo-alert-type-check{outline:2px solid #257AFF;outline-offset:2px}
.ez-woo-alert-phone-row{display:block;width:100%;min-width:0}
.ez-woo-alert-phone,.ez-woo-alert-code{display:block;width:100%;height:44px;border:1px solid #d6dbe3;border-radius:11px;padding:0 13px;background:#fff;color:#111827;font:inherit;font-size:14px;outline:0;transition:border-color .18s ease,box-shadow .18s ease;direction:ltr;text-align:right}
.ez-woo-alert-phone:focus,.ez-woo-alert-code:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}
.ez-woo-alert-phone::placeholder,.ez-woo-alert-code::placeholder{color:#94a3b8}
.ez-woo-alert-verify{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center;width:100%}.ez-woo-alert-verify[hidden]{display:none!important}.ez-woo-alert-code{text-align:center;letter-spacing:.18em}
.ez-woo-alert-consent{display:flex;align-items:flex-start;gap:8px;width:100%;font-size:12px;color:#64748b;line-height:1.7;cursor:pointer}.ez-woo-alert-consent input{width:16px;height:16px;flex:0 0 16px;margin:3px 0 0;accent-color:#2563eb}
.ez-woo-alert-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;width:100%;align-items:stretch}
/* Layout only: kept in both modes. Visual button styling below is applied only when
   theme-button inheritance is OFF. */
:where(.ez-woo-alert-submit,.ez-woo-alert-unsubscribe,.ez-woo-alert-cancel-verify){box-sizing:border-box;cursor:pointer;font-family:inherit}
.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-submit,.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-unsubscribe{appearance:none;-webkit-appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;border-radius:11px;padding:9px 16px;margin:0;font:inherit;font-size:13px;font-weight:800;line-height:1.4;text-transform:none;letter-spacing:normal;text-shadow:none;box-shadow:none;transition:transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease;white-space:nowrap}
.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-submit{border:1px solid transparent;background:#111827;color:#fff}.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-submit:hover{transform:translateY(-1px);background:#0f172a;color:#fff}.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-submit:disabled{opacity:.7;cursor:wait;transform:none}.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-submit.is-subscribed{background:#166534;color:#fff}
.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-unsubscribe{border:1px solid #e5e7eb;background:#fff;color:#64748b}.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-unsubscribe:hover{border-color:#fecaca;color:#b91c1c;background:#fff7f7}.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-unsubscribe:disabled{opacity:.6;cursor:wait}
.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-cancel-verify{appearance:none;-webkit-appearance:none;min-height:44px;border:1px solid #e5e7eb;border-radius:11px;padding:7px 13px;margin:0;background:#fff;color:#64748b;font:inherit;font-size:12px;font-weight:700;line-height:1.4;text-transform:none;letter-spacing:normal;text-shadow:none;box-shadow:none;transition:.18s ease}.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-cancel-verify:hover{border-color:#cbd5e1;color:#334155;background:#f8fafc}
.ez-woo-alert-feedback{width:100%;min-height:0;font-size:12px;line-height:1.7}.ez-woo-alert-feedback:empty{display:none}.ez-woo-alert-feedback.is-success{color:#15803d}.ez-woo-alert-feedback.is-error{color:#b91c1c}
.ez-woo-spinner{width:15px;height:15px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;display:inline-block;animation:ezWooSpin .7s linear infinite}@keyframes ezWooSpin{to{transform:rotate(360deg)}}

/* حالت آیکن + پاپ‌آپ */
.ez-woo-alert-mode-popup{display:block;width:100%;max-width:100%;text-align:center}
.ez-woo-alert-trigger{appearance:none;-webkit-appearance:none;width:auto!important;height:auto!important;min-width:0!important;min-height:0!important;display:inline-flex;align-items:center;justify-content:center;border:0!important;border-width:0!important;border-style:none!important;border-color:transparent!important;padding:5px;margin:0;background:transparent!important;color:#334155;cursor:pointer;box-shadow:none!important;line-height:1;transition:color .18s ease,opacity .18s ease}
.ez-woo-alert-trigger:hover{transform:none;box-shadow:none;background:transparent;color:#257AFF}.ez-woo-alert-trigger:hover i,.ez-woo-alert-trigger:hover .ez-woo-alert-icon-fallback{color:inherit}.ez-woo-alert-trigger:hover svg{color:inherit;fill:currentColor}.ez-woo-alert-trigger:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-trigger,.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-trigger:hover,.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-trigger[aria-expanded="true"],.ez-woo-alert-widget.ez-button-theme-isolated .ez-woo-alert-trigger.is-active{background:transparent!important;border:0!important;border-width:0!important;border-style:none!important;border-color:transparent!important;box-shadow:none!important}
.ez-woo-alert-trigger-icon{display:inline-flex;align-items:center;justify-content:center;line-height:1;color:inherit}
.ez-woo-alert-trigger-icon--active{display:none}
.ez-woo-alert-trigger[aria-expanded="true"],.ez-woo-alert-trigger.is-active{color:#257AFF;background:transparent}
.ez-woo-alert-trigger:hover .ez-woo-alert-trigger-icon--normal,.ez-woo-alert-trigger[aria-expanded="true"] .ez-woo-alert-trigger-icon--normal,.ez-woo-alert-trigger.is-active .ez-woo-alert-trigger-icon--normal{display:none}
.ez-woo-alert-trigger:hover .ez-woo-alert-trigger-icon--active,.ez-woo-alert-trigger[aria-expanded="true"] .ez-woo-alert-trigger-icon--active,.ez-woo-alert-trigger.is-active .ez-woo-alert-trigger-icon--active{display:inline-flex}
.ez-woo-alert-popup{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.58);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}
.ez-woo-alert-popup[hidden]{display:none!important}
.ez-woo-alert-popup-dialog{position:relative;width:min(100%,480px);max-height:calc(100vh - 40px);overflow:auto;border-radius:20px;box-shadow:0 24px 80px rgba(15,23,42,.28);animation:ezWooAlertPopupIn .18s ease-out}
.ez-woo-alert-popup-dialog .ez-woo-alert-card{box-shadow:none;border:0;border-radius:20px;padding:22px;padding-top:64px}
/* در پاپ‌آپ، زنگوله و × در یک خط بالایی هستند تا عنوان/توضیح واقعاً وسط قرار بگیرند. */
.ez-woo-alert-popup-dialog .ez-woo-alert-head{display:block;min-width:0}
.ez-woo-alert-popup-dialog .ez-woo-alert-content{width:100%;text-align:center}
.ez-woo-alert-popup-dialog .ez-woo-alert-icon{position:absolute;z-index:2;top:12px;right:12px;width:38px;height:38px;display:grid;place-items:center;flex:0 0 38px;border-radius:12px;background:#fef3c7;color:#92400e}
.ez-woo-alert-popup-dialog .ez-woo-alert-icon i{line-height:1;font-size:20px}
.ez-woo-alert-popup-dialog .ez-woo-alert-icon svg{width:20px;height:20px}
.ez-woo-alert-popup-close{position:absolute;z-index:3;top:12px;left:12px;width:38px;height:38px;display:grid;place-items:center;border:1px solid #e5e7eb;border-radius:50%;padding:0;background:#fff;color:#64748b;font:inherit;font-size:22px;line-height:1;cursor:pointer;transition:.18s ease}.ez-woo-alert-popup-close:hover{background:#f8fafc;color:#111827;border-color:#cbd5e1}
body.ez-woo-alert-popup-open{overflow:hidden}
/* Modal stacking: the popup lives inside the Elementor widget, so an ancestor can create
   a lower stacking context than a sticky header. JS temporarily elevates only that
   ancestor chain while the popup is open, then restores every inline value on close. */
.ez-woo-alert-stack-elevated{z-index:2147482999!important}
/* Fallback for browsers/themes that do not fully honor the inert attribute.
   While a modal is open, background branches (including sticky headers/menus)
   must never receive clicks. */
.ez-woo-alert-bg-locked{pointer-events:none!important;user-select:none!important}
@keyframes ezWooAlertPopupIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}

@media(max-width:620px){
  .ez-woo-alert-card{padding:15px;gap:14px;border-radius:14px}
  .ez-woo-alert-head{align-items:flex-start}
  .ez-woo-alert-icon{width:42px;height:42px;flex-basis:42px;border-radius:12px}
  .ez-woo-alert-type-options__grid{gap:6px}
  .ez-woo-alert-type-option{min-height:40px;padding:7px 5px;gap:5px;font-size:11px}
  .ez-woo-alert-type-check{width:16px;height:16px;flex-basis:16px}
  .ez-woo-alert-actions{grid-template-columns:1fr}
  .ez-woo-alert-submit,.ez-woo-alert-unsubscribe{width:100%}
  .ez-woo-alert-popup{align-items:flex-end;padding:12px}
  .ez-woo-alert-popup-dialog{width:100%;max-height:calc(100vh - 24px);border-radius:18px}
  .ez-woo-alert-popup-dialog .ez-woo-alert-card{border-radius:18px;padding:18px;padding-top:62px}
  .ez-woo-alert-popup-dialog .ez-woo-alert-icon,.ez-woo-alert-popup-close{top:12px}
}
