.ecchat-app{max-width:1180px;margin:0 auto;padding:0 20px 50px;color:#12233f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;box-sizing:border-box}.ecchat-app *{box-sizing:border-box}.ecchat-app [hidden]{display:none!important}.ecchat-topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;min-height:74px;margin-bottom:22px;border-bottom:1px solid #e3e9f0;background:#fff}.ecchat-topbar>div{text-align:center}.ecchat-topbar>div strong,.ecchat-topbar>div span{display:block}.ecchat-topbar>div strong{font-size:17px}.ecchat-topbar>div span{margin-top:3px;color:#7b899b;font-size:10px}.ecchat-topbar>a:last-child{justify-self:end;color:#2367ed;text-decoration:none;font-size:12px;font-weight:800}.ecchat-shell{display:grid;grid-template-columns:350px minmax(0,1fr);min-height:650px;overflow:hidden;border:1px solid #dbe3ed;border-radius:20px;background:#fff;box-shadow:0 20px 60px rgba(11,36,70,.08)}.ecchat-list{border-right:1px solid #e4eaf1;background:#fbfcfe}.ecchat-list-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid #e4eaf1}.ecchat-list-head strong{font-size:16px}.ecchat-list-head span{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:#eaf2ff;color:#2367ed;font-size:11px;font-weight:850}.ecchat-list-item{display:grid;grid-template-columns:46px minmax(0,1fr) auto;align-items:center;gap:11px;width:100%;padding:14px 15px;border:0;border-bottom:1px solid #edf1f5;background:transparent;text-align:left;cursor:pointer}.ecchat-list-item:hover,.ecchat-list-item.is-active{background:#eef5ff}.ecchat-list-item img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#e6edf6}.ecchat-list-item>span{min-width:0}.ecchat-list-item strong,.ecchat-list-item small,.ecchat-list-item em{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ecchat-list-item strong{font-size:13px}.ecchat-list-item small{margin-top:3px;color:#526a86;font-size:10px}.ecchat-list-item em{margin-top:5px;color:#8793a3;font-size:10px;font-style:normal}.ecchat-list-item time{align-self:start;margin-top:3px;color:#8b97a6;font-size:9px;white-space:nowrap}.ecchat-thread-panel{position:relative;display:flex;min-width:0;background:#f5f7fa}.ecchat-thread-panel>[data-chat-thread]{display:flex;flex-direction:column;width:100%;min-height:650px}.ecchat-placeholder{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;color:#75849a;text-align:center}.ecchat-placeholder strong{color:#253d5d;font-size:18px}.ecchat-placeholder p{margin:6px 0 0;font-size:12px}.ecchat-thread-head{display:grid;grid-template-columns:48px minmax(0,1fr) 40px;align-items:center;gap:11px;min-height:72px;padding:11px 16px;border-bottom:1px solid #dde5ee;background:#fff}.ecchat-property-thumb,.ecchat-other-avatar{display:flex;align-items:center;justify-content:center;overflow:hidden;background:#e6edf5;color:#2367ed;font-size:10px;font-weight:900}.ecchat-property-thumb{width:48px;height:48px;border-radius:10px}.ecchat-other-avatar{width:40px;height:40px;border-radius:50%}.ecchat-property-thumb img,.ecchat-other-avatar img{width:100%;height:100%;object-fit:cover}.ecchat-thread-title{min-width:0}.ecchat-thread-title strong,.ecchat-thread-title span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ecchat-thread-title strong{font-size:14px}.ecchat-thread-title span{margin-top:4px;color:#6f7f93;font-size:10px}.ecchat-messages{flex:1;min-height:0;max-height:510px;overflow:auto;padding:22px 20px;background:linear-gradient(180deg,#f6f8fb,#eef2f7)}.ecchat-message{display:flex;justify-content:flex-start;margin:8px 0}.ecchat-message.is-mine{justify-content:flex-end}.ecchat-message>div{max-width:min(78%,520px);padding:10px 12px;border-radius:15px 15px 15px 4px;background:#fff;color:#213852;box-shadow:0 3px 10px rgba(20,43,73,.06)}.ecchat-message.is-mine>div{border-radius:15px 15px 4px 15px;background:#2367ed;color:#fff}.ecchat-message p{margin:0;font-size:13px;line-height:1.45}.ecchat-message time{display:block;margin-top:5px;color:#8a97a8;font-size:8px;text-align:right}.ecchat-message.is-mine time{color:#d9e7ff}.ecchat-compose{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:9px;padding:12px;border-top:1px solid #dfe6ee;background:#fff}.ecchat-compose textarea{resize:none;width:100%;min-height:46px;max-height:120px;padding:12px;border:1px solid #ccd7e4;border-radius:13px;background:#f9fbfd;color:#172d49;font:inherit;font-size:13px;outline:0}.ecchat-compose textarea:focus{border-color:#8eb5f6;box-shadow:0 0 0 4px rgba(35,103,237,.08)}.ecchat-compose button{min-height:46px;padding:0 18px;border:0;border-radius:12px;background:#2367ed;color:#fff;font-weight:850;cursor:pointer}.ecchat-status{position:absolute;right:15px;bottom:78px;padding:9px 12px;border-radius:10px;background:#047857;color:#fff;font-size:10px;font-weight:800}.ecchat-status.is-error{background:#9f1239}.ecchat-empty-list{padding:30px 20px;color:#78879a;text-align:center}.ecchat-empty-list strong{display:block;color:#2b425e}.ecchat-empty-list p{font-size:11px;line-height:1.5}.ecchat-no-messages{padding:25px;color:#718198;text-align:center;font-size:12px}@media(max-width:780px){.ecchat-app{padding:0 0 40px}.ecchat-topbar{grid-template-columns:1fr auto;padding:0 14px}.ecchat-topbar>div{display:none}.ecchat-shell{grid-template-columns:1fr;border-left:0;border-right:0;border-radius:0}.ecchat-list{max-height:260px;overflow:auto;border-right:0;border-bottom:1px solid #dfe6ee}.ecchat-thread-panel>[data-chat-thread]{min-height:520px}.ecchat-messages{max-height:410px}.ecchat-topbar>a:last-child{font-size:11px}}


/* =========================================================
   Conversas mobile fluidas — eCorretores 1.9.1
   Remove ruído do tema e transforma a tela em experiência
   de app, com lista limpa e thread em tela cheia.
   ========================================================= */
@media(max-width:900px){
  body.ecf-chat-page-active{background:#f5f7fb!important}
  body.ecf-chat-page-active .wp-site-blocks>header,
  body.ecf-chat-page-active .wp-site-blocks>footer,
  body.ecf-chat-page-active header.wp-block-template-part,
  body.ecf-chat-page-active footer.wp-block-template-part,
  body.ecf-chat-page-active .site-header,
  body.ecf-chat-page-active .site-footer,
  body.ecf-chat-page-active .wp-block-post-title,
  body.ecf-chat-page-active .entry-title,
  body.ecf-chat-page-active .page-title,
  body.ecf-chat-page-active main>header{display:none!important}
  body.ecf-chat-page-active .wp-site-blocks,
  body.ecf-chat-page-active .wp-site-blocks>main,
  body.ecf-chat-page-active .wp-block-post-content,
  body.ecf-chat-page-active .entry-content,
  body.ecf-chat-page-active main{margin:0!important;padding:0!important;max-width:none!important;width:100%!important}
  body.ecf-chat-page-active .wp-block-group.alignwide,
  body.ecf-chat-page-active .wp-block-group.alignfull{margin:0!important;padding:0!important;max-width:none!important}
}

.ecchat-topbar-link{justify-self:end;color:#2367ed;text-decoration:none;font-size:12px;font-weight:800}
.ecchat-thread-back{display:none}
@media(max-width:780px){
  .ecchat-app{max-width:none;min-height:100dvh;padding:0;background:#f5f7fb}
  .ecchat-topbar{position:sticky;top:0;z-index:40;display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:58px;margin:0;border-bottom:1px solid #e8edf3;background:rgba(255,255,255,.97);backdrop-filter:blur(16px);padding:0 16px}
  .ecchat-topbar .ecf-brand{font-size:23px}
  .ecchat-topbar-copy{display:none!important}
  .ecchat-topbar-link{font-size:13px}
  .ecchat-shell{display:block;min-height:calc(100dvh - 58px);border:0;border-radius:0;box-shadow:none;background:#f5f7fb}
  .ecchat-list{max-height:none;overflow:auto;border:0;background:#fff}
  .ecchat-list-head{position:sticky;top:0;z-index:2;background:#fff;padding:16px;border-bottom:1px solid #edf1f5}
  .ecchat-list-item{padding:14px 16px}
  .ecchat-thread-panel{display:none;min-height:calc(100dvh - 58px);background:#eef3f8}
  .ecchat-app.is-thread-open .ecchat-list{display:none}
  .ecchat-app.is-thread-open .ecchat-thread-panel{display:flex}
  .ecchat-thread-panel>[data-chat-thread]{display:flex;min-height:calc(100dvh - 58px)}
  .ecchat-placeholder{display:none!important}
  .ecchat-thread-head{position:sticky;top:0;z-index:2;display:grid;grid-template-columns:34px 42px minmax(0,1fr) 34px;gap:10px;min-height:62px;padding:10px 12px;background:rgba(255,255,255,.97);backdrop-filter:blur(10px)}
  .ecchat-thread-back{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border:0;border-radius:50%;background:#eef2f7;color:#203758;font-size:18px;cursor:pointer}
  .ecchat-thread-title strong{font-size:14px}
  .ecchat-thread-title span{font-size:11px}
  .ecchat-messages{flex:1;max-height:none;padding:14px 12px 90px;background:linear-gradient(180deg,#f7f9fc,#eef3f8)}
  .ecchat-message{margin:6px 0}
  .ecchat-message>div{max-width:85%;padding:10px 12px}
  .ecchat-compose{position:sticky;bottom:0;z-index:3;grid-template-columns:minmax(0,1fr) auto;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(255,255,255,.98);backdrop-filter:blur(14px);border-top:1px solid #dfe6ee}
  .ecchat-compose textarea{min-height:42px;max-height:100px;border-radius:16px}
  .ecchat-compose button{min-height:42px;padding:0 16px;border-radius:14px}
  .ecchat-status{bottom:82px;right:12px}
}


/* =========================================================
   DM refinada — eCorretores 1.9.2
   Indicadores de não lida, cabeçalho contextual e envio por ícone.
   ========================================================= */
.ecchat-list-head>div strong,.ecchat-list-head>div small{display:block}
.ecchat-list-head>div small{margin-top:3px;color:#7b899b;font-size:10px;font-weight:600}
.ecchat-list-avatar{position:relative;display:block;width:46px;height:46px}
.ecchat-list-avatar img{width:46px;height:46px;border-radius:50%;object-fit:cover;background:#e6edf6}
.ecchat-list-avatar i{position:absolute;right:0;bottom:1px;width:12px;height:12px;border:2px solid #fff;border-radius:50%;background:#2367ed}
.ecchat-list-copy{min-width:0}
.ecchat-list-meta{align-self:stretch;display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:5px}
.ecchat-list-meta time{margin:0}
.ecchat-list-meta b{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border-radius:999px;background:#2367ed;color:#fff;font-size:10px}
.ecchat-list-item.is-unread{background:#f3f7ff}
.ecchat-list-item.is-unread strong,.ecchat-list-item.is-unread em{color:#12233f;font-weight:800}
.ecchat-thread-title small{display:block;margin-top:3px;color:#2367ed;font-size:10px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ecchat-compose button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.ecchat-compose button svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.ecchat-compose button.is-sending svg{animation:ecchatPulse .8s ease infinite alternate}
@keyframes ecchatPulse{to{transform:translateX(3px);opacity:.55}}
.ecchat-message>div{border:1px solid rgba(210,220,232,.65)}
.ecchat-message.is-mine>div{border-color:#2367ed;background:linear-gradient(135deg,#2367ed,#3185ef)}
@media(max-width:780px){
  .ecchat-list-head{padding:15px 16px}
  .ecchat-list-item{grid-template-columns:52px minmax(0,1fr) auto;gap:11px;min-height:80px}
  .ecchat-list-avatar,.ecchat-list-avatar img{width:52px;height:52px}
  .ecchat-list-copy strong{font-size:15px}
  .ecchat-list-copy small{font-size:11px}
  .ecchat-list-copy em{font-size:11px}
  .ecchat-thread-head{grid-template-columns:34px 44px minmax(0,1fr) 38px}
  .ecchat-property-thumb{width:44px;height:44px}
  .ecchat-other-avatar{width:38px;height:38px}
  .ecchat-message>div{max-width:88%;padding:10px 12px;border-radius:17px 17px 17px 5px}
  .ecchat-message.is-mine>div{border-radius:17px 17px 5px 17px}
  .ecchat-message p{font-size:14px}
  .ecchat-message time{font-size:9px}
  .ecchat-compose{gap:8px}
  .ecchat-compose textarea{min-height:44px;padding:12px 14px;border-radius:22px;background:#f4f7fa}
  .ecchat-compose button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%}
  .ecchat-compose button span{display:none}
  .ecchat-compose button svg{width:21px;height:21px}
}


/* Desktop sem cabeçalho/rodapé do tema — eCorretores 1.14.3 */
@media(min-width:901px){
  body.ecf-chat-page-active{background:#f5f7fb!important}
  body.ecf-chat-page-active .wp-site-blocks>header,
  body.ecf-chat-page-active .wp-site-blocks>footer,
  body.ecf-chat-page-active header.wp-block-template-part,
  body.ecf-chat-page-active footer.wp-block-template-part,
  body.ecf-chat-page-active .site-header,
  body.ecf-chat-page-active .site-footer,
  body.ecf-chat-page-active .wp-block-post-title,
  body.ecf-chat-page-active .entry-title,
  body.ecf-chat-page-active .page-title,
  body.ecf-chat-page-active .entry-footer,
  body.ecf-chat-page-active .post-navigation,
  body.ecf-chat-page-active .comments-area,
  body.ecf-chat-page-active main>header{display:none!important}
  body.ecf-chat-page-active .wp-site-blocks,
  body.ecf-chat-page-active .wp-site-blocks>main,
  body.ecf-chat-page-active .wp-block-post-content,
  body.ecf-chat-page-active .entry-content,
  body.ecf-chat-page-active main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body.ecf-chat-page-active .wp-block-group.alignwide,
  body.ecf-chat-page-active .wp-block-group.alignfull{width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body.ecf-chat-page-active .ecchat-app{padding-top:24px!important;padding-bottom:48px!important}
}
