.mcw-secure-admin,.mcw-login-shell{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.mcw-secure-admin *,.mcw-login-shell *{box-sizing:border-box}.mcw-secure-admin{max-width:1180px;margin:20px auto 40px}.mcw-secure-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;padding:24px;border:1px solid #e1e7f0;border-radius:18px;background:#fff;box-shadow:0 8px 28px rgba(16,24,40,.05)}.mcw-secure-eyebrow{color:#3157ff;font-size:11px;font-weight:800;letter-spacing:.1em}.mcw-secure-head h1{margin:6px 0 4px;font-size:28px}.mcw-secure-head p{margin:0;color:#667085}.mcw-secure-head code{padding:10px 12px;border-radius:10px;background:#f2f4f7;color:#344054}.mcw-secure-notice{margin:14px 0;padding:12px 14px;border:1px solid #abefc6;border-radius:12px;background:#ecfdf3;color:#067647;font-weight:700}.mcw-secure-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:16px 0}.mcw-secure-tabs button{min-height:38px;padding:0 14px;border:1px solid #dce3ee;border-radius:11px;background:#fff;color:#475467;font-weight:700;cursor:pointer}.mcw-secure-tabs button.is-active{border-color:#b8ccff;background:#eef3ff;color:#174cd3}.mcw-secure-panel{display:none;padding:22px;border:1px solid #e1e7f0;border-radius:18px;background:#fff}.mcw-secure-panel.is-active{display:block}.mcw-secure-card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:12px 0 24px}.mcw-secure-toggle-card{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid #e1e7f0;border-radius:14px;background:#fbfcfe;cursor:pointer}.mcw-secure-toggle-card>input{position:absolute;opacity:0;pointer-events:none}.mcw-secure-switch{width:40px;height:23px;padding:3px;border-radius:999px;background:#d0d5dd;transition:.2s}.mcw-secure-switch i{display:block;width:17px;height:17px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.18);transition:.2s}.mcw-secure-toggle-card>input:checked+.mcw-secure-switch{background:#3157ff}.mcw-secure-toggle-card>input:checked+.mcw-secure-switch i{transform:translateX(17px)}.mcw-secure-toggle-card strong,.mcw-secure-toggle-card small{display:block}.mcw-secure-toggle-card small{margin-top:3px;color:#667085}.mcw-secure-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.mcw-secure-field{display:block;margin:12px 0}.mcw-secure-field.is-full{grid-column:1/-1}.mcw-secure-field>span{display:block;margin-bottom:6px;color:#344054;font-weight:700}.mcw-secure-field input,.mcw-secure-field select,.mcw-secure-field textarea{width:100%;max-width:none;border:1px solid #d0d5dd;border-radius:10px;background:#fff;padding:8px 10px;min-height:38px}.mcw-secure-field textarea{min-height:180px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}.mcw-secure-help,.mcw-template-variables{margin:14px 0;padding:12px 14px;border-radius:12px;background:#f8f9fc;color:#475467}.mcw-template-block{padding:18px 0;border-bottom:1px solid #eaecf0}.mcw-template-block:last-child{border-bottom:0}.mcw-shortcode-box{display:flex;gap:10px;align-items:center;padding:16px;border-radius:14px;background:#101828}.mcw-shortcode-box code{flex:1;color:#fff;font-size:16px}.mcw-secure-save{display:flex;justify-content:flex-end;margin-top:16px}.mcw-login-shell{max-width:480px;margin:24px auto;padding:22px;border:1px solid #e1e7f0;border-radius:20px;background:#fff;box-shadow:0 18px 50px rgba(16,24,40,.10)}.mcw-login-head strong,.mcw-login-head span{display:block}.mcw-login-head strong{font-size:24px;color:#101828}.mcw-login-head span{margin-top:4px;color:#667085}.mcw-login-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:18px 0}.mcw-login-tabs button{padding:8px 10px;border:1px solid #dce3ee;border-radius:10px;background:#fff;color:#475467;font-size:12px;font-weight:700;cursor:pointer}.mcw-login-tabs button.is-active{background:#3157ff;border-color:#3157ff;color:#fff}.mcw-login-panel{display:none}.mcw-login-panel.is-active{display:block}.mcw-login-panel label{display:block;margin:12px 0}.mcw-login-panel label span{display:block;margin-bottom:6px;color:#344054;font-size:13px;font-weight:700}.mcw-login-panel input,.mcw-login-panel select{width:100%;min-height:44px;padding:8px 11px;border:1px solid #d0d5dd;border-radius:11px;background:#fff}.mcw-login-panel button[type=submit]{width:100%;min-height:44px;margin-top:8px;border:0;border-radius:11px;background:#3157ff;color:#fff;font-weight:800;cursor:pointer}.mcw-login-message{margin:14px 0;padding:11px 12px;border-radius:10px;font-size:13px}.mcw-login-message.is-success{background:#ecfdf3;color:#067647}.mcw-login-message.is-error{background:#fef3f2;color:#b42318}.mcw-otp-hint{padding:12px;border-radius:12px;background:#f8f9fc}.mcw-otp-hint strong,.mcw-otp-hint span{display:block}.mcw-otp-hint span{margin-top:4px;color:#667085;font-size:12px}.mcw-uvs-phone-cell{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.mcw-uvs-phone-cell .dashicons{width:15px;height:15px;font-size:15px;line-height:15px;color:#667085}.mcw-uvs-template-builder-button{display:inline-flex!important;align-items:center;gap:6px}.mcw-uvs-template-builder-button .dashicons{width:15px;height:15px;font-size:15px;line-height:15px}@media(max-width:782px){.mcw-secure-head{flex-direction:column}.mcw-secure-card-grid,.mcw-secure-grid-2{grid-template-columns:1fr}.mcw-secure-panel{padding:15px}.mcw-login-shell{margin:14px 10px;padding:16px}}

/* v1.4.2 — passwordless simplificado e Template Builder em modal */
.mcw-passwordless-hint{display:flex;align-items:flex-start;gap:9px;margin:10px 0 14px;padding:11px 12px;border:1px solid #dce6ff;border-radius:12px;background:#f6f8ff;color:#475467;font-size:12px;line-height:1.45}.mcw-passwordless-hint .dashicons{flex:0 0 16px;width:16px;height:16px;font-size:16px;line-height:16px;color:#3157ff;margin-top:1px}

html.mcw-template-modal-open,html.mcw-template-modal-open body{overflow:hidden!important}.mcw-template-modal[hidden]{display:none!important}.mcw-template-modal{position:fixed;inset:0;z-index:1000000;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.mcw-template-modal *{box-sizing:border-box}.mcw-template-modal-backdrop{position:absolute;inset:0;background:rgba(16,24,40,.58);backdrop-filter:blur(3px)}.mcw-template-modal-dialog{position:absolute;left:50%;top:50%;width:min(1180px,calc(100vw - 44px));height:min(820px,calc(100vh - 54px));transform:translate(-50%,-50%);border:1px solid rgba(255,255,255,.3);border-radius:22px;background:#f6f8fc;box-shadow:0 34px 90px rgba(16,24,40,.28);overflow:hidden}.mcw-template-modal-form{display:flex;flex-direction:column;height:100%}.mcw-template-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:18px 22px 14px;border-bottom:1px solid #e2e8f0;background:#fff}.mcw-template-modal-header h2{margin:4px 0 2px;color:#101828;font-size:23px;line-height:1.2}.mcw-template-modal-header p{margin:0;color:#667085;font-size:13px}.mcw-template-modal-close{display:inline-flex;align-items:center;justify-content:center;width:38px;height:38px;border:1px solid #dce3ee;border-radius:11px;background:#fff;color:#475467;cursor:pointer}.mcw-template-modal-close:hover{background:#f2f4f7;color:#101828}.mcw-template-channel-tabs{display:flex;gap:8px;padding:12px 22px;border-bottom:1px solid #e2e8f0;background:#fff}.mcw-template-channel-tabs button{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 14px;border:1px solid #dce3ee;border-radius:11px;background:#fff;color:#475467;font-weight:700;cursor:pointer}.mcw-template-channel-tabs button.is-active{border-color:#a9bfff;background:#eef3ff;color:#174cd3}.mcw-template-channel-tabs .dashicons{width:16px;height:16px;font-size:16px;line-height:16px}.mcw-template-modal-body{flex:1;min-height:0;overflow:auto;padding:18px 22px}.mcw-template-channel-panel,.mcw-template-kind-panel,.mcw-wa-template-kind-panel{display:none}.mcw-template-channel-panel.is-active,.mcw-template-kind-panel.is-active,.mcw-wa-template-kind-panel.is-active{display:block}.mcw-template-kind-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:0 0 14px}.mcw-template-kind-tabs button{min-height:34px;padding:0 12px;border:1px solid #dce3ee;border-radius:10px;background:#fff;color:#475467;font-size:12px;font-weight:700;cursor:pointer}.mcw-template-kind-tabs button.is-active{border-color:#b8ccff;background:#3157ff;color:#fff}.mcw-template-editor-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(380px,.98fr);gap:18px;align-items:start}.mcw-template-editor-fields,.mcw-template-preview-card{padding:16px;border:1px solid #e1e7f0;border-radius:16px;background:#fff}.mcw-template-editor-fields .mcw-secure-field:first-child{margin-top:0}.mcw-template-preview-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;color:#344054;font-size:12px;font-weight:800}.mcw-template-preview-label>span:first-child{display:inline-flex;align-items:center;gap:6px}.mcw-template-preview-label .dashicons{width:16px;height:16px;font-size:16px;line-height:16px}.mcw-email-viewer{overflow:hidden;border:1px solid #dfe5ed;border-radius:13px;background:#fff;box-shadow:0 8px 28px rgba(16,24,40,.07)}.mcw-email-viewer-top{display:flex;gap:5px;padding:9px 11px;background:#f2f4f7}.mcw-email-viewer-top span{width:8px;height:8px;border-radius:50%;background:#d0d5dd}.mcw-email-viewer-meta{display:flex;flex-direction:column;gap:3px;padding:12px 15px;border-bottom:1px solid #eaecf0}.mcw-email-viewer-meta strong{color:#101828;font-size:13px}.mcw-email-viewer-meta small{color:#98a2b3}.mcw-email-viewer-body{min-height:280px;padding:18px;color:#344054;line-height:1.55;background:#fff}.mcw-email-viewer-body a{color:#175cd3}.mcw-waziper-config-bar{display:grid;grid-template-columns:260px 1fr;gap:14px;margin-bottom:15px;padding:14px;border:1px solid #dce3ee;border-radius:15px;background:#fff}.mcw-secure-toggle-card.is-compact{margin:0;min-height:100%}.mcw-waziper-config-fields{display:grid;grid-template-columns:1.5fr .65fr 1fr;gap:10px;align-items:end}.mcw-waziper-config-fields label{display:block}.mcw-waziper-config-fields label span{display:block;margin-bottom:5px;color:#344054;font-size:11px;font-weight:700}.mcw-waziper-config-fields input{width:100%;min-height:36px;border:1px solid #d0d5dd;border-radius:9px;padding:6px 9px}.mcw-wa-view-mode{display:inline-flex;padding:2px;border:1px solid #dce3ee;border-radius:9px;background:#f8fafc}.mcw-wa-view-mode button{min-height:27px;padding:0 9px;border:0;border-radius:7px;background:transparent;color:#667085;font-size:10px;font-weight:800;cursor:pointer}.mcw-wa-view-mode button.is-active{background:#fff;color:#175cd3;box-shadow:0 1px 4px rgba(16,24,40,.10)}.mcw-whatsapp-viewer{display:flex;min-height:390px;overflow:hidden;border:1px solid #d8e0e8;border-radius:15px;background:#e9edef;box-shadow:0 8px 28px rgba(16,24,40,.08);transition:max-width .2s ease,margin .2s ease}.mcw-whatsapp-viewer.is-web{width:100%}.mcw-whatsapp-viewer.is-app{max-width:330px;margin:0 auto;border-radius:28px;border:7px solid #1f2937}.mcw-wa-sidebar{width:78px;padding:14px 10px;background:#f0f2f5;border-right:1px solid #dde3e8}.mcw-whatsapp-viewer.is-app .mcw-wa-sidebar{display:none}.mcw-wa-sidebar .mcw-wa-avatar{display:block;width:36px;height:36px;margin:0 auto 16px;border-radius:50%;background:#cbd5e1}.mcw-wa-sidebar i{display:block;height:10px;margin:11px 3px;border-radius:6px;background:#d8dee5}.mcw-wa-phone-shell{display:flex;flex:1;min-width:0;flex-direction:column}.mcw-wa-header{display:flex;align-items:center;gap:9px;min-height:58px;padding:8px 12px;background:#f0f2f5}.mcw-wa-header .mcw-wa-avatar{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:50%;background:#00a884;color:#fff;font-weight:800}.mcw-wa-header div{display:flex;flex-direction:column}.mcw-wa-header strong{font-size:12px;color:#111b21}.mcw-wa-header small{font-size:10px;color:#667781}.mcw-wa-chat-bg{flex:1;padding:18px 16px;background-color:#efeae2;background-image:radial-gradient(rgba(17,27,33,.035) 1px,transparent 1px);background-size:10px 10px}.mcw-wa-message{position:relative;max-width:84%;margin-left:auto;padding:9px 9px 18px;border-radius:8px 2px 8px 8px;background:#d9fdd3;color:#111b21;font-size:12px;line-height:1.45;box-shadow:0 1px 1px rgba(11,20,26,.12);white-space:normal;overflow-wrap:anywhere}.mcw-wa-message small{position:absolute;right:7px;bottom:4px;color:#667781;font-size:9px}.mcw-wa-compose{display:flex;align-items:center;gap:9px;padding:8px 10px;background:#f0f2f5;color:#667781}.mcw-wa-compose div{flex:1;padding:8px 10px;border-radius:9px;background:#fff;font-size:11px}.mcw-template-modal-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 22px;border-top:1px solid #e2e8f0;background:#fff}.mcw-template-modal-footer>div:last-child{display:flex;gap:8px}.mcw-template-modal-tip{display:flex;align-items:center;gap:7px;color:#667085;font-size:11px}.mcw-template-modal-tip .dashicons{width:15px;height:15px;font-size:15px;line-height:15px;color:#3157ff}.mcw-template-saved-toast{position:fixed;right:24px;bottom:24px;z-index:1000001;padding:12px 15px;border:1px solid #abefc6;border-radius:12px;background:#ecfdf3;color:#067647;font-weight:800;box-shadow:0 12px 30px rgba(16,24,40,.14);opacity:0;transform:translateY(8px);transition:.2s}.mcw-template-saved-toast.is-visible{opacity:1;transform:none}

@media(max-width:900px){.mcw-template-editor-grid{grid-template-columns:1fr}.mcw-waziper-config-bar{grid-template-columns:1fr}.mcw-waziper-config-fields{grid-template-columns:1fr}.mcw-template-modal-dialog{width:calc(100vw - 24px);height:calc(100vh - 30px)}}@media(max-width:600px){.mcw-template-modal-header{padding:14px}.mcw-template-channel-tabs{padding:10px 14px}.mcw-template-modal-body{padding:13px}.mcw-template-modal-footer{align-items:stretch;flex-direction:column;padding:10px 14px}.mcw-template-modal-footer>div:last-child{justify-content:flex-end}.mcw-template-modal-tip{display:none}.mcw-template-channel-tabs button{flex:1;justify-content:center}.mcw-whatsapp-viewer.is-app{max-width:290px}}

/* v1.4.4 — mini editor HTML estilo Roundcube + atalhos WhatsApp */
.mcw-roundcube-editor{overflow:hidden;border:1px solid #cfd8e6;border-radius:12px;background:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.6)}
.mcw-roundcube-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:4px;min-height:42px;padding:6px 8px;border-bottom:1px solid #dfe5ed;background:linear-gradient(180deg,#fbfcfe 0%,#f2f5f9 100%)}
.mcw-roundcube-toolbar button{display:inline-flex;align-items:center;justify-content:center;min-width:29px;height:29px;padding:0 7px;border:1px solid transparent;border-radius:6px;background:transparent;color:#344054;font-size:12px;line-height:1;cursor:pointer}
.mcw-roundcube-toolbar button:hover,.mcw-roundcube-toolbar button:focus-visible,.mcw-roundcube-toolbar button.is-active{border-color:#c7d7f7;background:#fff;color:#174cd3;box-shadow:0 1px 3px rgba(16,24,40,.08);outline:none}
.mcw-roundcube-toolbar .dashicons{width:15px;height:15px;font-size:15px;line-height:15px}
.mcw-rc-separator{width:1px;height:20px;margin:0 2px;background:#d8dee8}
.mcw-roundcube-compose{min-height:255px;max-height:390px;overflow:auto;padding:13px 14px;color:#344054;font-family:Arial,Helvetica,sans-serif;font-size:13px;line-height:1.55;outline:none;background:#fff}
.mcw-roundcube-compose:focus{box-shadow:inset 0 0 0 2px rgba(49,87,255,.10)}
.mcw-roundcube-compose a{color:#175cd3;text-decoration:underline}
.mcw-roundcube-source{width:100%;min-height:255px;margin:0!important;border:0!important;border-radius:0!important;padding:13px 14px!important;background:#101828!important;color:#e6edf7!important;font-family:Consolas,"Courier New",monospace!important;font-size:12px!important;line-height:1.55!important;resize:vertical}
.mcw-roundcube-editor.is-enhanced .mcw-roundcube-source{display:none}
.mcw-roundcube-editor.is-enhanced.is-source .mcw-roundcube-compose{display:none}
.mcw-roundcube-editor.is-enhanced.is-source .mcw-roundcube-source{display:block}
.mcw-template-logo-hint{display:flex!important;align-items:center;gap:6px;margin-top:7px!important;color:#667085!important;font-size:10px!important}
.mcw-template-logo-hint .dashicons{width:14px;height:14px;font-size:14px;line-height:14px;color:#3157ff}
.mcw-email-viewer-body .mcw-template-site-logo img{max-width:190px!important;max-height:70px!important;width:auto!important;height:auto!important}

.mcw-wa-editor-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:6px;margin-bottom:7px}
.mcw-wa-editor-toolbar button{display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:0 9px;border:1px solid #dce3ee;border-radius:8px;background:#f8fafc;color:#475467;font-size:10px;font-weight:700;cursor:pointer}
.mcw-wa-editor-toolbar button:hover,.mcw-wa-editor-toolbar button:focus-visible{border-color:#b8ccff;background:#eef3ff;color:#174cd3;outline:none}
.mcw-wa-editor-toolbar .dashicons{width:14px;height:14px;font-size:14px;line-height:14px}
.mcw-wa-message{white-space:normal}
.mcw-wa-message a{color:#027eb5;text-decoration:underline;word-break:break-all}

@media(max-width:600px){.mcw-roundcube-toolbar{gap:3px}.mcw-roundcube-compose,.mcw-roundcube-source{min-height:220px}.mcw-wa-editor-toolbar button{flex:1;justify-content:center}}

/* v1.4.5 — SMTP autenticado + diagnóstico SPF/DKIM/DMARC */
.mcw-secure-notice.is-success{border-color:#abefc6;background:#ecfdf3;color:#067647}.mcw-secure-notice.is-error{border-color:#fecdca;background:#fef3f2;color:#b42318}.mcw-secure-notice small{display:block;margin-top:5px;font-weight:500;overflow-wrap:anywhere}.mcw-smtp-grid{margin-top:4px}.mcw-secure-field small{display:block;margin-top:5px;color:#667085;font-size:11px;line-height:1.4}.mcw-inline-check{display:inline-flex!important;align-items:center;gap:7px;margin:0!important;color:#475467;font-weight:500}.mcw-inline-check input{width:auto!important;min-height:0!important;margin:0}.mcw-smtp-auth-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.mcw-smtp-auth-card{padding:14px;border:1px solid #e1e7f0;border-radius:14px;background:#fbfcfe}.mcw-smtp-auth-card>span,.mcw-smtp-auth-card>strong,.mcw-smtp-auth-card>small{display:block}.mcw-smtp-auth-card>span{margin-bottom:7px;color:#667085;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.mcw-smtp-auth-card>strong{font-size:14px}.mcw-smtp-auth-card>strong.is-ok{color:#067647}.mcw-smtp-auth-card>strong.is-missing{color:#b54708}.mcw-smtp-auth-card>strong.is-unknown{color:#667085}.mcw-smtp-auth-card>small{margin-top:6px;color:#667085;line-height:1.4;overflow-wrap:anywhere}.mcw-deliverability-help code{display:block;margin-top:9px;padding:9px 10px;border-radius:8px;background:#fff;color:#344054;white-space:normal;overflow-wrap:anywhere}.mcw-smtp-test-box{display:flex;align-items:flex-end;gap:10px;margin-top:16px;padding:14px;border:1px solid #dce3ee;border-radius:14px;background:#f8fafc}.mcw-smtp-test-box .mcw-secure-field{flex:1;margin:0}.mcw-smtp-test-button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:38px!important;border-radius:10px!important}.mcw-smtp-test-button .dashicons{width:16px;height:16px;font-size:16px;line-height:16px}.mcw-template-smtp-panel{padding:14px;border:1px solid #e1e7f0;border-radius:16px;background:#fff}
@media(max-width:900px){.mcw-smtp-auth-grid{grid-template-columns:1fr}.mcw-smtp-test-box{align-items:stretch;flex-direction:column}.mcw-smtp-test-button{width:100%}}

/* v1.4.6 — último acesso */
.wp-list-table.users .column-mcw_uvs_last_access{width:118px;min-width:108px;white-space:nowrap}.mcw-uvs-last-access{white-space:nowrap;color:#475467;font-variant-numeric:tabular-nums}


/* v1.4.7 — diagnóstico de entrega e ordenação de último acesso */
.mcw-waziper-test-box{margin-top:14px}.mcw-delivery-log-wrap{overflow:auto;border:1px solid #e1e7f0;border-radius:14px;background:#fff}.mcw-delivery-log{border:0;box-shadow:none}.mcw-delivery-log th{white-space:nowrap}.mcw-delivery-log td{vertical-align:middle}.mcw-log-ok{color:#067647}.mcw-log-error{color:#b42318}.wp-list-table.users th.column-mcw_uvs_last_access a{display:inline-flex;align-items:center}.wp-list-table.users .column-mcw_uvs_last_access{font-variant-numeric:tabular-nums}

/* v1.4.7 — quatro campos de conexão Waziper no modal */
.mcw-waziper-config-fields{grid-template-columns:.9fr 1.5fr .8fr 1fr}.mcw-waziper-config-fields select{width:100%;min-height:36px;border:1px solid #d0d5dd;border-radius:9px;padding:6px 9px;background:#fff}
@media(max-width:1100px){.mcw-waziper-config-fields{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.mcw-waziper-config-fields{grid-template-columns:1fr}}


/* v1.4.9 — seletor de autenticação integrado ao wp-login.php / LoginPress */
#login .mcw-native-auth-switcher {
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#login .mcw-native-auth-switcher * { box-sizing: border-box; }

#login .mcw-native-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0 0 12px;
  padding: 5px;
  border: 1px solid rgba(148,163,184,.32);
  border-radius: 12px;
  background: rgba(248,250,252,.96);
}

#login .mcw-native-auth-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #475467;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: none;
}

#login .mcw-native-auth-tabs button .dashicons {
  width: 15px;
  height: 15px;
  font-size: 15px;
  line-height: 15px;
}

#login .mcw-native-auth-tabs button.is-active {
  border-color: #bfd0ff;
  background: #fff;
  color: #175cd3;
  box-shadow: 0 2px 7px rgba(16,24,40,.08);
}

#login .mcw-native-passwordless-panel {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: rgba(255,255,255,.98);
}

#login .mcw-native-passwordless-panel[hidden] { display: none !important; }
#login .mcw-native-passwordless-panel .mcw-login-panel { display: block; margin: 0; padding: 0; background: transparent; box-shadow: none; border: 0; }
#login .mcw-native-passwordless-panel .mcw-login-panel label { margin: 10px 0; }
#login .mcw-native-passwordless-panel .mcw-login-panel label span { display:block; margin-bottom:6px; color:#344054; font-size:12px; font-weight:700; }
#login .mcw-native-passwordless-panel .mcw-login-panel input[type=text] {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  font-size: 15px;
}
#login .mcw-native-passwordless-panel .mcw-login-panel button[type=submit] {
  width: 100%;
  min-height: 44px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  background: #0866d8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
#login .mcw-native-passwordless-panel .mcw-passwordless-hint,
#login .mcw-native-passwordless-panel .mcw-otp-hint {
  margin-bottom: 10px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f5f8fc;
  color: #475467;
  font-size: 11px;
  line-height: 1.45;
}
#login .mcw-native-passwordless-panel .mcw-passwordless-hint { display:flex; gap:7px; align-items:flex-start; }
#login .mcw-native-passwordless-panel .mcw-passwordless-hint .dashicons { width:15px; height:15px; font-size:15px; line-height:15px; color:#175cd3; }
#login .mcw-native-passwordless-panel .mcw-login-message { margin: 0 0 10px; }

@media (max-width: 400px) {
  #login .mcw-native-auth-tabs { grid-template-columns: 1fr; }
}


/* v1.5.0 — teste rápido de entrega SMTP + Waziper */
.mcw-uvs-delivery-test-button{display:inline-flex!important;align-items:center;gap:6px;border-radius:12px!important}.mcw-uvs-delivery-test-button .dashicons{width:16px;height:16px;font-size:16px;line-height:16px}.mcw-delivery-test-modal[hidden]{display:none!important}.mcw-delivery-test-modal{position:fixed;inset:0;z-index:1000000;display:flex;align-items:center;justify-content:center;padding:22px}.mcw-delivery-test-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.58);backdrop-filter:blur(3px)}.mcw-delivery-test-dialog{position:relative;width:min(660px,calc(100vw - 32px));overflow:hidden;border:1px solid #dce3ee;border-radius:20px;background:#fff;box-shadow:0 28px 70px rgba(15,23,42,.28)}.mcw-delivery-test-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding:20px 22px 16px;border-bottom:1px solid #e5eaf1}.mcw-delivery-test-head h2{margin:4px 0 3px;font-size:22px;line-height:1.15}.mcw-delivery-test-head p{margin:0;color:#667085;font-size:12px}.mcw-delivery-test-body{display:grid;gap:14px;padding:20px 22px}.mcw-delivery-test-info{display:flex;align-items:flex-start;gap:8px;padding:11px 12px;border:1px solid #dbe5ff;border-radius:12px;background:#f5f8ff;color:#475467;font-size:11px;line-height:1.5}.mcw-delivery-test-info .dashicons{width:16px;height:16px;font-size:16px;line-height:16px;color:#3157ff}.mcw-delivery-test-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 22px;border-top:1px solid #e5eaf1;background:#fbfcfe}.mcw-delivery-test-footer>div{display:flex;gap:8px;flex-wrap:wrap}.mcw-delivery-test-footer .button{display:inline-flex;align-items:center;gap:5px;min-height:36px;border-radius:10px}.mcw-delivery-test-footer .dashicons{width:15px;height:15px;font-size:15px;line-height:15px}@media(max-width:650px){.mcw-delivery-test-modal{padding:12px}.mcw-delivery-test-footer{align-items:stretch;flex-direction:column}.mcw-delivery-test-footer>div{display:grid;grid-template-columns:1fr}.mcw-delivery-test-footer .button{justify-content:center;width:100%}}


/* v1.5.1 — link seguro de atualização cadastral na tabela de usuários */
.wp-list-table.users .column-mcw_uvs_profile_update{width:155px;min-width:145px}
.mcw-uvs-profile-link-cell{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0}
.mcw-uvs-profile-copy{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 9px;border:1px solid #d8e1ed;border-radius:8px;background:#fff;color:#34445d;font:600 11px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;cursor:pointer;transition:.15s ease}
.mcw-uvs-profile-copy svg{width:15px;height:15px;fill:currentColor;flex:0 0 auto}
.mcw-uvs-profile-copy:hover,.mcw-uvs-profile-copy:focus-visible{border-color:#2271b1;color:#135e96;background:#f4f9fd;outline:none;box-shadow:0 0 0 2px rgba(34,113,177,.1)}
.mcw-uvs-profile-copy.is-pending{border-color:#f0c36d;background:#fffaf0;color:#8a5a00}
.mcw-uvs-profile-copy.is-complete{border-color:#b9dec7;background:#f1fbf4;color:#24713d}
.mcw-uvs-profile-copy.is-loading{opacity:.66;cursor:wait}
.mcw-uvs-profile-copy.is-copied{border-color:#46a66c;background:#effaf3;color:#1e6d39}
.mcw-uvs-profile-copy.is-error{border-color:#e59a92;background:#fff4f2;color:#a52a20}
.mcw-uvs-profile-copy-state{max-width:155px;color:#68758a;font-size:10px;line-height:1.3;white-space:normal}
@media(max-width:782px){.wp-list-table.users .column-mcw_uvs_profile_update{width:auto}.mcw-uvs-profile-copy{min-height:36px;padding:6px 10px}}


/* v1.5.3 — metadados compactos sem sobreposição */
body.users-php .wp-list-table.users .column-mcw_uvs_birth_date{width:86px!important;min-width:78px!important}
body.users-php .wp-list-table.users .column-mcw_uvs_mobile_phone{width:112px!important;min-width:102px!important}
body.users-php .wp-list-table.users .column-mcw_uvs_last_access{width:104px!important;min-width:96px!important}
body.users-php .wp-list-table.users .column-mcw_uvs_profile_update{width:142px!important;min-width:132px!important}
body.users-php .mcw-uvs-profile-link-cell{min-width:0;max-width:142px}
body.users-php .mcw-uvs-profile-copy{max-width:100%;white-space:nowrap}
body.users-php .mcw-uvs-profile-copy span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:1250px){
  body.users-php .wp-list-table.users .column-mcw_uvs_profile_update{width:128px!important;min-width:120px!important}
  body.users-php .wp-list-table.users .column-mcw_uvs_mobile_phone{width:104px!important;min-width:96px!important}
}


/* v1.5.4 — card de assinantes sem WhatsApp/celular */
.mcw-uvs-users-card{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:12px 0 18px;padding:16px 18px;border:1px solid #dce3ee;border-radius:18px;background:#fff;box-shadow:0 10px 28px rgba(16,24,40,.05)}
.mcw-uvs-users-card__icon{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border-radius:16px;flex:0 0 auto;background:#eef4ff;color:#175cd3}
.mcw-uvs-users-card__icon .dashicons{width:24px;height:24px;font-size:24px;line-height:24px}
.mcw-uvs-users-card__content{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}
.mcw-uvs-users-card__eyebrow{color:#667085;font-size:11px;font-weight:800;letter-spacing:.08em}
.mcw-uvs-users-card__value{color:#101828;font-size:30px;line-height:1;font-weight:800}
.mcw-uvs-users-card__text{margin:0;color:#475467;font-size:13px;line-height:1.45}
.mcw-uvs-users-card__actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.mcw-uvs-users-card__actions .button{min-height:36px;border-radius:10px;padding:0 14px;display:inline-flex;align-items:center}
.mcw-uvs-users-card--missing-phone.has-pending{border-color:#f1d293;background:linear-gradient(180deg,#fffdf8 0%,#ffffff 100%)}
.mcw-uvs-users-card--missing-phone.has-pending .mcw-uvs-users-card__icon{background:#fff2db;color:#b54708}
.mcw-uvs-users-card--missing-phone.is-complete{border-color:#b7e1c5;background:linear-gradient(180deg,#f6fff8 0%,#ffffff 100%)}
.mcw-uvs-users-card--missing-phone.is-complete .mcw-uvs-users-card__icon{background:#ecfdf3;color:#067647}
@media(max-width:782px){.mcw-uvs-users-card{align-items:flex-start;flex-direction:column}.mcw-uvs-users-card__actions{width:100%}.mcw-uvs-users-card__actions .button{justify-content:center}}


/* v1.5.5 — acesso rápido "Autenticar com meu WhatsApp" no login nativo */
#login .mcw-native-whatsapp-quick-wrap{margin:12px 0 4px!important;padding:0;text-align:center}
#login .mcw-native-whatsapp-quick-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;padding:4px 9px;color:#087a5b!important;font-size:12px;font-weight:700;line-height:1.3;text-decoration:none!important;border-radius:8px;transition:background .15s ease,color .15s ease,box-shadow .15s ease}
#login .mcw-native-whatsapp-quick-link .dashicons{width:17px;height:17px;font-size:17px;line-height:17px}
#login .mcw-native-whatsapp-quick-link:hover,#login .mcw-native-whatsapp-quick-link:focus-visible{background:#ecfdf3;color:#05603f!important;box-shadow:0 0 0 2px rgba(18,140,126,.12);outline:none}
#login .mcw-native-whatsapp-quick-link:focus-visible{box-shadow:0 0 0 3px rgba(18,140,126,.20)}


/* v1.5.6 — contador de WhatsApp pendente compacto na toolbar */
.mcw-uvs-users-card{display:none!important}
.mcw-uvs-missing-phone-button{display:inline-flex!important;align-items:center;gap:6px;border-radius:12px!important;text-decoration:none!important}
.mcw-uvs-missing-phone-button .dashicons{width:16px;height:16px;font-size:16px;line-height:16px;color:#b54708}
.mcw-uvs-missing-phone-button b{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:20px;padding:0 6px;border-radius:999px;background:#fff2db;color:#b54708;font-size:10px;font-weight:800;line-height:1}
.mcw-uvs-missing-phone-button:hover b,.mcw-uvs-missing-phone-button:focus-visible b{background:#ffe7bd}
@media(max-width:782px){.mcw-uvs-missing-phone-button{min-height:40px!important}.mcw-uvs-missing-phone-button b{height:22px}}


/* v1.5.8 — botão 'Completar cadastro' em vermelho claro */
.mcw-uvs-profile-copy.is-pending{
  border-color:#f4b4b4;
  background:#fff1f1;
  color:#b42318;
}
.mcw-uvs-profile-copy.is-pending:hover,
.mcw-uvs-profile-copy.is-pending:focus-visible{
  border-color:#f08a8a;
  background:#ffe4e4;
  color:#912018;
  outline:none;
  box-shadow:0 0 0 2px rgba(180,35,24,.10);
}


/* v1.5.9 — teste SMTP direto no Template Builder */
.mcw-smtp-inline-test{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(220px,.8fr) auto;gap:12px;align-items:end;margin-top:14px;padding:14px;border:1px solid #dbe3ef;border-radius:14px;background:#f8fafc}
.mcw-smtp-inline-test__copy{align-self:center;min-width:0}.mcw-smtp-inline-test__copy strong,.mcw-smtp-inline-test__copy small{display:block}.mcw-smtp-inline-test__copy strong{color:#101828;font-size:13px}.mcw-smtp-inline-test__copy small{margin-top:4px;color:#667085;font-size:11px;line-height:1.4}
.mcw-smtp-inline-test__email span{display:block;margin-bottom:5px;color:#344054;font-size:11px;font-weight:700}.mcw-smtp-inline-test__email input{width:100%;min-height:38px;border:1px solid #d0d5dd;border-radius:10px;padding:7px 10px;background:#fff}
.mcw-smtp-inline-test__button{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:38px!important;border-radius:10px!important;white-space:nowrap}.mcw-smtp-inline-test__button .dashicons{width:16px;height:16px;font-size:16px;line-height:16px}.mcw-smtp-inline-test__button.is-loading{opacity:.65;cursor:wait}
.mcw-smtp-inline-test__status{grid-column:1/-1;min-height:18px;padding:0 2px;font-size:11px;font-weight:700;line-height:1.4}.mcw-smtp-inline-test__status.is-loading{color:#475467}.mcw-smtp-inline-test__status.is-success{color:#067647}.mcw-smtp-inline-test__status.is-error{color:#b42318}
@media(max-width:900px){.mcw-smtp-inline-test{grid-template-columns:1fr 1fr}.mcw-smtp-inline-test__copy{grid-column:1/-1}}@media(max-width:600px){.mcw-smtp-inline-test{grid-template-columns:1fr}.mcw-smtp-inline-test__copy,.mcw-smtp-inline-test__status{grid-column:auto}.mcw-smtp-inline-test__button{width:100%}}

/* v1.5.11 — acesso passwordless em formulário nativo do frontend */
.mcw-frontend-passwordless-link{margin:10px 0;text-align:center}.mcw-frontend-passwordless-link a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:6px 12px;border:1px solid #b7e4d5;border-radius:9px;background:#f0fdf8;color:#087a5b;text-decoration:none;font-weight:700}.mcw-frontend-passwordless-link a:hover,.mcw-frontend-passwordless-link a:focus{background:#e4f8f0;color:#05603f;outline:2px solid rgba(8,122,91,.15)}


/* v1.5.13 — widget: ao selecionar WhatsApp/E-mail, exibe somente o campo identificador */
.mcw-login-panel[hidden]{display:none !important;}
.mcw-elementor-login-shell .mcw-login-panel[data-login-panel="passwordless"] label + label{display:none !important;}
