/* ALX CRM one-click mail: presentation-only CSS, scoped to extension controls. */
.alxmail-open {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:35px;padding:7px 13px;border:1px solid #4277cf;border-radius:9px;background:linear-gradient(110deg,#155db7,#4e52c8);color:#fff!important;font:700 12px/1.2 inherit;cursor:pointer;white-space:nowrap;box-shadow:0 4px 12px rgba(18,70,160,.2)}
.alxmail-open:hover{filter:brightness(1.12)}
.alxmail-backdrop{position:fixed;z-index:2147482000;inset:0;display:flex;justify-content:center;align-items:center;background:rgba(4,9,23,.72);padding:18px;overflow-y:auto}
.alxmail-dialog{color:#162946!important;max-width:790px;width:100%;max-height:94vh;overflow-y:auto;background:#fff;border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.35);font-family:Inter,Arial,Helvetica,sans-serif}
.alxmail-header{background:#07152f;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:18px 24px}
.alxmail-brand{font-size:14px;letter-spacing:.13em;font-weight:900}
.alxmail-close{border:0;background:transparent;color:#fff;font-size:28px;line-height:1;cursor:pointer}
.alxmail-body{padding:27px 28px 20px}
.alxmail-kicker{font-size:10px;color:#2467b5;letter-spacing:.15em;font-weight:800;margin-bottom:9px}
.alxmail-title{font-size:23px;line-height:1.25;margin:0;color:#0b2047;font-weight:800}
.alxmail-description{font-size:13px;line-height:1.65;color:#60708b;margin:9px 0 17px}
.alxmail-address{font-size:12px;font-weight:700;color:#234376;background:#edf5ff;border:1px solid #d0e1ff;border-radius:10px;padding:11px 12px;overflow-wrap:anywhere}
/* Actual HTML email preview is isolated from CRM CSS and scripts. */
.alxmail-preview{margin-top:17px;background:#f3f7fc;color:#152d52;border-radius:13px;border:1px solid #d7e3f5;overflow:hidden}
.alxmail-preview-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:13px 15px;background:#0c2348;color:#fff;align-items:center}
.alxmail-preview-label{font-size:11px!important;letter-spacing:.1em;color:#e0efff!important;font-weight:800}
.alxmail-preview-hint{font-size:11px;color:#b8d4fa}
.alxmail-subject{font-size:12px;font-weight:650;background:#e9f1ff;color:#244879;padding:11px 15px;border-bottom:1px solid #d4e2f5}
.alxmail-preview-frame{width:100%;height:475px;display:block;border:0;background:#edf2f9;color:#152d52}
.alxmail-status{min-height:19px;font-size:12px;margin-top:13px;color:#667896;line-height:1.5}
.alxmail-error{color:#bd273c}
.alxmail-ok{color:#147344;font-weight:750}
.alxmail-settings{display:inline-block;margin-top:8px;font-size:12px;color:#2268c2;text-decoration:underline}
.alxmail-footer{padding:15px 28px 22px;display:flex;justify-content:flex-end;gap:10px}
.alxmail-footer button{border-radius:9px;min-height:39px;padding:10px 15px;font-size:12px;font-weight:750;cursor:pointer}
.alxmail-cancel{background:#fff;border:1px solid #bdc9d9;color:#34465d}
.alxmail-send{background:#2267dc;border:1px solid #2267dc;color:#fff}
.alxmail-send:disabled{opacity:.55;cursor:default}
@media(max-width:560px){.alxmail-body{padding:19px}.alxmail-footer{padding:14px 19px}.alxmail-title{font-size:20px}.alxmail-dialog{max-height:95vh;overflow-y:auto}.alxmail-preview-frame{height:56vh}.alxmail-preview-hint{font-size:10px}}
/* v1.1.0: explicit two-template chooser, selected state and full template preview. */
.alxmail-choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:16px 0 16px}
.alxmail-choice{display:flex;text-align:left;align-items:flex-start;gap:12px;width:100%;min-height:112px;padding:16px!important;border:1px solid #d0ddef!important;border-radius:14px!important;background:#f7faff!important;color:#193557!important;cursor:pointer;box-shadow:none!important;transition:border-color .16s,background .16s,box-shadow .16s}
.alxmail-choice:hover{border-color:#6396e9!important;background:#edf5ff!important}
.alxmail-choice[aria-pressed="true"]{background:#ebf3ff!important;border:2px solid #2563eb!important;padding:15px!important;box-shadow:0 4px 15px rgba(37,99,235,.10)!important}
.alxmail-choice:disabled{cursor:wait;opacity:.6}
.alxmail-choice-icon{display:flex;align-items:center;justify-content:center;flex:0 0 38px;height:38px;background:#dae9ff;border-radius:10px;color:#2059be;font:800 21px/1 Arial,sans-serif}
.alxmail-choice-copy{display:flex;flex-direction:column;gap:7px;min-width:0}
.alxmail-choice-title{font:800 13px/1.3 Arial,sans-serif;color:#183968}
.alxmail-choice-description{font:400 11px/1.55 Arial,sans-serif;color:#596c89}
.alxmail-preview[hidden]{display:none!important}
.alxmail-send{max-width:100%;white-space:normal;text-align:center}
@media(max-width:620px){.alxmail-choices{grid-template-columns:1fr}.alxmail-choice{min-height:80px}.alxmail-choice-title{font-size:12px}.alxmail-choice-description{font-size:11px}}
