.sms-settings .sms-balance{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px;background:linear-gradient(120deg,#f0eaff,#f3f7ff);border:1px solid #ded4f4;border-radius:12px;margin-bottom:20px}.sms-balance small,.sms-balance strong,.sms-balance span{display:block}.sms-balance small{font-size:10px;letter-spacing:1px;color:#625085}.sms-balance strong{font-size:30px;line-height:1.5;color:#493275}.sms-balance span{font-size:12px;color:#655e75}.sms-settings fieldset{border:0;padding:0;margin:0;min-width:0}.sms-settings label{display:grid;gap:8px;margin-bottom:16px}.sms-settings .sms-enable{display:flex;gap:10px;align-items:center;font-weight:600}.sms-enable input{width:auto}.sms-templates,.sms-history{border-top:1px solid #e4e7ef;margin-top:20px;padding-top:16px}.sms-templates summary,.sms-history summary{cursor:pointer;font-weight:600;margin-bottom:16px}.sms-templates [data-sms-template]{padding:12px;background:#f8f9fc;border-radius:8px;margin-bottom:12px}.sms-history article{border-top:1px solid #e4e7ef;padding:14px 0}.sms-history article div{display:grid;gap:6px}.sms-history article small{color:#606c80}.sms-history article p{font-size:12px;overflow-wrap:anywhere}.sms-log-text{white-space:pre-wrap;max-height:140px;overflow:auto}.sms-compose{max-width:560px;margin:auto}.sms-compose-top{display:flex;justify-content:space-between;gap:16px;margin-bottom:20px;font-weight:600}.sms-compose-top small{font-weight:400;color:#66527d}.sms-compose label{display:grid;gap:8px;margin-bottom:16px}.sms-compose textarea{resize:vertical;min-height:48px;background:#fcfaff;border:1px solid #ded3eb;border-radius:10px;line-height:1.6;padding:12px}.sms-compose textarea:focus{outline:2px solid #724493;outline-offset:2px}.sms-compose [name=message]{min-height:145px}.sms-compose-actions{display:flex;justify-content:space-between;gap:12px;margin:18px 0}.sms-compose-actions .primary{background:#49205e;border-color:#49205e;min-width:145px}.sms-compose [hidden]{display:none}.sms-compose [data-sms-result]{line-height:1.6}.sms-compose textarea:disabled{opacity:.75}.sms-compose .sms-template-picker{padding:12px;background:#f8f3fc;border-radius:10px}@media(max-width:550px){.sms-compose-top{flex-direction:column;gap:5px}.sms-settings .sms-balance{padding:14px}.sms-compose-actions{flex-wrap:wrap}.sms-compose-actions button{flex:1}.sms-compose label{font-size:13px}}
.settings-template-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:22px}.settings-template-actions .btn{background:white;border:1px solid #d6dfee;color:#2049a6;min-height:40px;padding:10px 18px;border-radius:9px;font-weight:600}.settings-template-actions .btn:hover{background:#eef4ff;border-color:#9bb7f8}.settings-template-actions .btn:focus-visible{outline:2px solid #2563eb;outline-offset:3px}#editor-content>.sms-settings,#editor-content>.meta-settings{margin:0;border:0;box-shadow:none}#editor-content>.sms-settings>.panel-header,#editor-content>.meta-settings>.panel-header{padding-top:0}@media(max-width:550px){.settings-template-actions{gap:8px}.settings-template-actions .btn{flex:1 1 calc(50% - 8px);padding:10px}}
.settings-template-actions .btn[aria-current=page]{background:#245fe7;color:#fff;border-color:#245fe7;box-shadow:0 3px 8px #245fe71a}.settings-page-view{max-width:1200px}.settings-page-view>.panel{margin-bottom:0}.settings-page-view [data-sms-settings] .panel-body,.settings-page-view [data-meta-settings] .panel-body{max-width:900px}.settings-page-view .sms-history{max-width:900px}.settings-page-view .sms-templates textarea{min-height:90px}.settings-page-view .meta-recent{max-height:450px;overflow:auto}
.sms-status-tabs{display:flex;flex-wrap:wrap;gap:7px;padding:16px 24px;border-bottom:1px solid #e2e8f0;background:#fbfcff}.sms-status-tabs button{font:inherit;font-size:12px;font-weight:600;cursor:pointer;padding:10px 15px;border:1px solid #dbe3f0;border-radius:8px;background:white;color:#52617a}.sms-status-tabs button[aria-selected=true]{background:#245fe7;border-color:#245fe7;color:white;box-shadow:0 3px 8px #245fe71a}.sms-status-tabs button:focus-visible{outline:2px solid #245fe7;outline-offset:3px}.sms-settings [data-sms-pane][hidden]{display:none}.sms-settings [data-status-message]{min-height:160px;line-height:1.8;resize:vertical}.sms-template-variables{display:flex;gap:7px;flex-wrap:wrap;align-items:center}.sms-template-variables>span{width:100%;font-size:11px;color:#69768b}.sms-template-variables .btn{font-size:11px;background:#f4f7fd;border-color:#dee6f5;padding:7px 10px}.sms-template-preview{padding:18px;background:#f1f5ff;border:1px solid #d9e3fa;border-radius:10px;margin:16px 0 24px}.sms-template-preview small{font-size:10px;letter-spacing:1px;color:#687b9b}.sms-template-preview p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.9;margin-bottom:0;color:#263b5b}.sms-settings [data-sms-pane] h3{margin-top:0}.sms-settings [data-status-count]{margin:12px 0}@media(max-width:550px){.sms-status-tabs{padding:12px;gap:6px}.sms-status-tabs button{flex:1 1 calc(50% - 6px);padding:10px 8px;font-size:11px}}
.sms-settings #sms-settings-form[hidden]{display:none}.sms-history-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:18px}.sms-history-heading h3{margin:0 0 6px}.sms-history-heading p{margin:0}.sms-history-filters{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:14px}.sms-history-filters input,.sms-history-filters select{min-width:0}.sms-history-table-wrap{overflow-x:auto;border:1px solid #e1e7f0;border-radius:10px;max-width:100%}.sms-history-table{width:100%;min-width:820px;border-collapse:collapse;font-size:12px}.sms-history-table th{background:#f4f7fc;text-align:left;padding:13px 14px;color:#5a6980;font-weight:600;white-space:nowrap}.sms-history-table td{vertical-align:top;padding:16px 14px;border-top:1px solid #e8edf5;color:#23334e;overflow-wrap:anywhere}.sms-history-table td:first-child{min-width:145px}.sms-history-table td:nth-child(2){min-width:140px}.sms-history-table td:nth-child(3){width:36%;min-width:230px}.sms-history-table small{display:block;font-size:10px;color:#68778f;margin-top:8px}.sms-history-phone{display:block;white-space:nowrap;margin-bottom:5px;font-weight:600;color:#245fe7}.sms-history-message{white-space:pre-wrap;line-height:1.8;margin:0;max-height:250px;overflow:auto}.sms-history-status{display:inline-block;font-size:10px;font-weight:600;padding:6px 9px;border-radius:7px;background:#fff6df;color:#886021}.sms-history-status.accepted{background:#e8faf1;color:#08734b}.sms-history-status.rejected{background:#fff0ef;color:#bb3833}.sms-history-status.sending{background:#edf3ff;color:#2859aa}.sms-history-empty{text-align:center;background:#f8faff;border:1px dashed #dce4f2;border-radius:10px;padding:40px 15px;color:#64748b}@media(max-width:550px){.sms-history-filters{grid-template-columns:1fr;gap:0}.sms-history-heading{flex-wrap:wrap}.sms-history-heading .btn{width:100%}}
.sms-template-cards{display:grid;gap:20px;margin:22px 0}.sms-status-template-card{padding:22px;border:1px solid #dfe6f2;border-radius:12px;background:#fff}.sms-status-template-card>h3{padding-bottom:14px;border-bottom:1px solid #e8edf5;color:#254c91}.sms-status-template-card .sms-template-preview{margin-bottom:0}.sms-status-template-card [data-status-message]{min-height:120px}@media(max-width:550px){.sms-status-template-card{padding:15px}.sms-template-cards{gap:15px}}
.sms-template-heading{display:flex;justify-content:space-between;gap:16px;align-items:center;border-bottom:1px solid #e8edf5;margin-bottom:18px;padding-bottom:14px}.sms-template-heading h3{margin:0!important;color:#254c91}.sms-settings .sms-auto-switch{display:flex;align-items:center;gap:10px;margin:0;position:relative;font-size:12px;font-weight:600;cursor:pointer}.sms-auto-switch input{position:absolute;width:42px;height:24px;right:0;opacity:0;margin:0;cursor:pointer}.sms-switch-track{display:block;width:42px;height:24px;border-radius:20px;background:#b5bfce;position:relative;pointer-events:none;transition:background .15s}.sms-switch-track:after{content:'';position:absolute;width:18px;height:18px;left:3px;top:3px;background:#fff;border-radius:50%;box-shadow:0 1px 3px #0002;transition:transform .15s}.sms-auto-switch input:checked+.sms-switch-track{background:#245fe7}.sms-auto-switch input:checked+.sms-switch-track:after{transform:translateX(18px)}.sms-auto-switch input:focus-visible+.sms-switch-track{outline:2px solid #245fe7;outline-offset:3px}.sms-auto-switch input:disabled+.sms-switch-track{opacity:.5}
#sms-quick-panel{position:fixed;z-index:1200;border:1px solid #dfe4ef;border-radius:15px;background:white;box-shadow:0 12px 40px #26344b26,0 2px 8px #26344b0a;display:flex;flex-direction:column;color:#17243a;isolation:isolate}#sms-quick-panel:before{content:'';position:absolute;top:-6px;left:calc(var(--sms-arrow,28px) - 6px);width:12px;height:12px;background:#fff;border-top:1px solid #dfe4ef;border-left:1px solid #dfe4ef;transform:rotate(45deg);z-index:-1}.sms-quick-heading{display:flex;gap:10px;align-items:center;padding:12px 14px;border-bottom:1px solid #edf0f6;flex-shrink:0}.sms-quick-symbol{display:grid;place-items:center;width:28px;height:28px;border-radius:11px;background:#eee7fc;color:#65418c;font-size:20px}.sms-quick-heading strong{font-size:14px;display:block}.sms-quick-heading small{display:block;color:#778398;font-size:10px;margin-top:3px}.sms-quick-heading button{margin-left:auto;border:0;background:#f3f5f9;border-radius:50%;width:27px;height:27px;font-size:21px;line-height:1;cursor:pointer;color:#67728a}.sms-quick-body{padding:12px 14px;overflow-y:auto;overscroll-behavior:contain;min-height:0}.sms-quick-body .sms-compose-top{margin-bottom:8px;align-items:center;font-size:12px;gap:10px;flex-direction:row}.sms-quick-body .sms-compose-top>span{display:none}.sms-quick-body .sms-compose-top small{margin-left:auto;font-size:10px;background:#f3eefa;color:#6d4589;border-radius:20px;padding:5px 9px}.sms-quick-body label{font-size:11px;font-weight:500;gap:5px;margin-bottom:10px}.sms-quick-body textarea{font-size:12px;min-height:36px;padding:7px 9px;box-sizing:border-box;width:100%;font-family:inherit}.sms-quick-body [name=message]{min-height:76px}.sms-quick-body small,.sms-quick-body .small{font-size:10px;line-height:1.6}.sms-quick-body .sms-compose-actions{margin:10px 0 7px;flex-wrap:nowrap}.sms-quick-body .sms-compose-actions .btn{font-size:11px;padding:8px 10px;min-width:0;flex:initial}.sms-quick-body [data-sms-result]{font-size:11px;margin:8px 0}.sms-quick-body .sms-compose>form>p:last-child{margin-bottom:0}.header-communication button[aria-expanded=true]{background:#eee8fa;border-color:#ceb8e7;color:#633b86;box-shadow:0 0 0 3px #f5f0fc}

.sms-quick-body [data-sms-result]:empty{display:none}.sms-quick-body [data-sms-count]{margin:7px 0}.sms-quick-body .sms-compose>form>p:last-child{font-size:9px}
.settings-page-view [data-sms-settings]>.panel-body{max-width:none}.sms-gallery-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:20px}.sms-gallery-filters{display:flex;flex-wrap:wrap;gap:6px}.sms-gallery-filters button{border:1px solid #dce5f3;background:#fff;color:#354e70;border-radius:9px;padding:9px 12px;font:inherit;font-size:11px;cursor:pointer}.sms-gallery-filters [aria-pressed=true]{background:#183b68;border-color:#183b68;color:#fff}.sms-settings .sms-gallery-search{margin:0 0 0 auto;min-width:180px}.sms-gallery-toolbar [data-sms-gallery-count]{color:#526379;font-size:11px}.sms-gallery-save-note,.sms-gallery-edit-help{color:#526379;font-size:11px;line-height:1.7}.sms-settings .sms-template-cards{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;margin:18px 0 24px}.sms-status-template-card{min-width:0;padding:18px;box-shadow:0 3px 15px #183b6805}.sms-status-template-card[hidden],.sms-gallery-empty[hidden]{display:none}.sms-template-heading{gap:12px;align-items:flex-start;margin-bottom:14px;padding-bottom:14px}.sms-gallery-icon{display:grid;place-items:center;width:36px;height:36px;flex-shrink:0;border-radius:11px;background:#edf3ff;color:#245fe7;font-size:21px}.sms-gallery-title{flex:1;min-width:0}.sms-gallery-title>small{display:block;color:#61758d;font-size:9px;letter-spacing:1px;margin:0 0 5px}.sms-gallery-title h3{font-size:13px;line-height:1.6;color:#173b61}.sms-template-heading .sms-auto-switch{gap:6px;margin-top:5px;font-size:10px}.sms-status-template-card .sms-gallery-preview{background:#f7f9fd;border:0;border-radius:10px;padding:14px;margin:0;min-height:116px}.sms-gallery-preview p{font-size:12px;line-height:1.85;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;color:#273e59}.sms-status-template-card [data-status-count]{font-size:10px;color:#526379;margin:12px 0}.sms-gallery-editor{border-top:1px solid #e5ebf4;padding-top:12px}.sms-gallery-editor>summary{display:flex;justify-content:space-between;align-items:center;list-style:none;font-weight:600;font-size:12px;color:#245fe7;cursor:pointer;padding:5px 0}.sms-gallery-editor>summary::-webkit-details-marker{display:none}.sms-gallery-editor>div{margin-top:18px}.sms-status-template-card:has(.sms-gallery-editor[open]){grid-column:1/-1;border-color:#9fbdf5;box-shadow:0 5px 22px #245fe70a}.sms-status-template-card:has(.sms-gallery-editor[open]) .sms-gallery-preview p{display:block;overflow:visible}.sms-gallery-editor textarea{width:100%;font-size:13px;background:#fff;min-height:150px!important}.sms-gallery-empty{padding:24px;border:1px dashed #cbd9ec;border-radius:12px;color:#526379;text-align:center}@media(max-width:650px){.sms-settings .sms-template-cards{grid-template-columns:1fr}.sms-settings .sms-gallery-search{margin:0;flex:1;min-width:180px}.sms-gallery-toolbar{gap:10px}.sms-gallery-filters{width:100%}.sms-gallery-filters button{flex:1;padding:9px 6px;font-size:10px}.sms-status-template-card{padding:15px}.sms-gallery-title h3{font-size:12px}.sms-gallery-icon{width:30px;height:30px}.sms-template-heading{gap:9px}.sms-template-heading .sms-auto-switch>span:first-child{display:none}}
/* Quick templates (Settings › SMS › Templates) */
.sms-quick-templates{margin-top:6px}.sms-quick-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.sms-quick-head p{margin:0;max-width:560px}
.sms-quick-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:14px}
.sms-quick-card{display:grid;gap:10px;border:1px solid #e4e7ec;border-radius:16px;background:#fff;padding:16px}.sms-quick-card label{display:grid;gap:6px;font-size:13px;font-weight:600}.sms-quick-card textarea{min-height:96px}
.sms-quick-remove{justify-self:start;color:#b42318;font-size:13px}
/* Quick SMS panel: tap a template to use it */
.sms-template-picker{display:grid;gap:6px;margin:4px 0 2px}.sms-template-picker p{margin:0}.sms-template-chips{display:flex;flex-wrap:wrap;gap:6px;max-height:132px;overflow:auto}
.sms-template-chip{border:1px solid #d0d5dd;background:#f8f9fb;border-radius:999px;padding:6px 12px;font-size:12.5px;font-weight:600;color:#344054;cursor:pointer}.sms-template-chip:hover{border-color:#6941c6;background:#f4f0ff;color:#53389e}
