/* Chat do site: cores da marca (dourado #9F6F29, marrom #553a2f, creme) */
#smc{--smc-ouro:#9F6F29;--smc-marrom:#553a2f;--smc-creme:#faf7f2;--smc-linha:#ece3d6;--smc-tinta:#2b1d14;--smc-mudo:#7a6a5e;--smc-base:20px;
  position:fixed;right:20px;bottom:var(--smc-base);z-index:99990;font:15px/1.45 Roboto,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--smc-tinta)}
#smc *{box-sizing:border-box}
#smc svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
#smc button{font:inherit;cursor:pointer}

/* bolha */
#smc .smc-bolha{position:relative;width:62px;height:62px;border-radius:50%;border:0;padding:0;background:var(--smc-ouro);color:#fff;
  box-shadow:0 8px 24px rgba(85,58,47,.35),0 0 0 4px rgba(255,255,255,.9);display:grid;place-items:center;transition:transform .2s ease,box-shadow .2s ease}
#smc .smc-bolha:hover{transform:translateY(-2px) scale(1.04)}
#smc .smc-bolha:focus-visible{outline:3px solid #b18050;outline-offset:3px}
#smc .smc-bolha-foto{position:absolute;inset:0;width:100%;height:100%;border-radius:50%;object-fit:cover}
#smc .smc-bolha-ico{position:absolute;right:-4px;bottom:-4px;width:28px;height:28px;border-radius:50%;background:var(--smc-ouro);display:grid;place-items:center;box-shadow:0 0 0 3px #fff}
#smc .smc-bolha-ico svg{width:16px;height:16px}
#smc .smc-bolha-x{display:none}
#smc.smc-aberto .smc-bolha-foto,#smc.smc-aberto .smc-bolha-ico{display:none}
#smc.smc-aberto .smc-bolha-x{display:grid;place-items:center}
#smc .smc-bolha::after{content:"";position:absolute;inset:-6px;border-radius:50%;border:2px solid var(--smc-ouro);opacity:0;animation:smc-pulso 3.2s ease-out 2s 3}
#smc.smc-aberto .smc-bolha::after{display:none}
@keyframes smc-pulso{0%{transform:scale(.9);opacity:.7}100%{transform:scale(1.35);opacity:0}}
#smc .smc-badge{position:absolute;top:-4px;left:-4px;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#d93025;color:#fff;font-size:12px;font-weight:700;line-height:22px;text-align:center;box-shadow:0 0 0 2px #fff}
#smc.smc-on .smc-bolha-ico{background:#1c8a4b}

/* convite */
#smc .smc-convite{position:absolute;right:76px;bottom:8px;width:max-content;max-width:240px;padding:11px 34px 11px 14px;border-radius:14px 14px 4px 14px;background:#fff;
  box-shadow:0 8px 26px rgba(43,29,20,.18);font-size:14px;cursor:pointer;animation:smc-entra .35s ease-out}
#smc .smc-convite-x{position:absolute;top:4px;right:4px;width:24px;height:24px;border:0;background:none;color:var(--smc-mudo);display:grid;place-items:center;padding:0}
#smc .smc-convite-x svg{width:14px;height:14px}
@keyframes smc-entra{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* janela */
#smc .smc-janela{position:absolute;right:0;bottom:76px;width:370px;height:min(580px,calc(100vh - 120px));display:flex;flex-direction:column;background:var(--smc-creme);
  border-radius:18px;overflow:hidden;box-shadow:0 18px 50px rgba(43,29,20,.28);animation:smc-entra .25s ease-out}
#smc .smc-janela[hidden]{display:none}
#smc .smc-topo{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:linear-gradient(135deg,var(--smc-marrom),#7a5236);color:#fff}
#smc .smc-av{position:relative;flex:none;width:46px;height:46px;border-radius:50%;background:var(--smc-ouro);display:grid;place-items:center;font-weight:700;font-size:20px;box-shadow:0 0 0 2px rgba(255,255,255,.8)}
#smc .smc-av img{width:100%;height:100%;border-radius:50%;object-fit:cover}
#smc .smc-ponto{position:absolute;right:0;bottom:1px;width:12px;height:12px;border-radius:50%;background:#c9b9a8;box-shadow:0 0 0 2px var(--smc-marrom)}
#smc.smc-on .smc-ponto{background:#3ccf73}
#smc .smc-quem{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
#smc .smc-quem b{font-size:16px}
#smc .smc-quem small{font-size:12px;opacity:.85}
#smc .smc-estado{margin-top:2px;opacity:1!important;color:#f3e3c7}
#smc .smc-fechar{flex:none;width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:grid;place-items:center;padding:0}
#smc .smc-fechar:hover{background:rgba(255,255,255,.22)}
#smc .smc-fechar svg{width:18px;height:18px}

#smc .smc-corpo{flex:1;overflow-y:auto;padding:14px 14px 6px;display:flex;flex-direction:column;gap:8px;scroll-behavior:smooth}
#smc .smc-imovel{display:flex;gap:10px;align-items:center;padding:8px;border:1px solid var(--smc-linha);border-radius:12px;background:#fff}
#smc .smc-imovel img{flex:none;width:58px;height:58px;border-radius:8px;object-fit:cover}
#smc .smc-imovel span{display:flex;flex-direction:column;min-width:0;line-height:1.3}
#smc .smc-imovel small{font-size:11px;color:var(--smc-mudo);text-transform:uppercase;letter-spacing:.04em}
#smc .smc-imovel b{font-size:13px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
#smc .smc-imovel em{font-style:normal;font-weight:700;color:var(--smc-ouro);font-size:14px}
#smc .smc-m{display:flex;flex-direction:column;max-width:84%;animation:smc-entra .2s ease-out}
#smc .smc-ela{align-self:flex-start}
#smc .smc-eu{align-self:flex-end;align-items:flex-end}
#smc .smc-b{padding:9px 13px;border-radius:16px;white-space:normal;word-wrap:break-word;overflow-wrap:anywhere}
#smc .smc-ela .smc-b{background:#fff;border:1px solid var(--smc-linha);border-bottom-left-radius:4px}
#smc .smc-eu .smc-b{background:var(--smc-ouro);color:#fff;border-bottom-right-radius:4px}
#smc .smc-sis .smc-b{background:#f3ece1;border-style:dashed;font-size:14px}
#smc .smc-m time{font-size:11px;color:var(--smc-mudo);margin:2px 4px 0}
#smc .smc-ident{background:#fff;border:1px solid var(--smc-linha);border-radius:14px;padding:12px;display:flex;flex-direction:column;gap:8px}
#smc .smc-ident p{margin:0;font-size:14px}
#smc .smc-ident label{display:flex;flex-direction:column;gap:3px;font-size:12px;color:var(--smc-mudo)}
#smc .smc-ident input{font:inherit;font-size:15px;padding:9px 11px;border:1px solid #d9cdbd;border-radius:10px;color:var(--smc-tinta);background:#fff}
#smc .smc-ident input:focus{outline:2px solid var(--smc-ouro);outline-offset:0;border-color:transparent}
#smc .smc-ident button{border:0;border-radius:10px;padding:11px;background:var(--smc-ouro);color:#fff;font-weight:700}
#smc .smc-ident button:disabled{opacity:.6}
#smc .smc-erro{color:#b42318;font-size:13px!important}
#smc .smc-mel{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}
#smc .smc-alerta{align-self:center;font-size:13px;background:#fdecea;color:#8a1c12;padding:6px 10px;border-radius:8px}

#smc .smc-chips{display:flex;gap:6px;padding:0 12px 8px;overflow-x:auto;scrollbar-width:none}
#smc .smc-chips::-webkit-scrollbar{display:none}
#smc .smc-chip{flex:none;border:1px solid var(--smc-ouro);background:#fff;color:var(--smc-marrom);border-radius:999px;padding:7px 12px;font-size:13px;white-space:nowrap}
#smc .smc-chip:hover{background:#f6efe5}
#smc .smc-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;background:#fff;border-top:1px solid var(--smc-linha)}
#smc .smc-form textarea{flex:1;resize:none;font:inherit;font-size:15px;line-height:1.4;max-height:110px;padding:9px 12px;border:1px solid #d9cdbd;border-radius:20px;color:var(--smc-tinta);background:var(--smc-creme)}
#smc .smc-form textarea:focus{outline:2px solid var(--smc-ouro);border-color:transparent;background:#fff}
#smc .smc-enviar{flex:none;width:42px;height:42px;border:0;border-radius:50%;background:var(--smc-ouro);color:#fff;display:grid;place-items:center;padding:0}
#smc .smc-enviar svg{width:19px;height:19px;margin-left:-2px}
#smc .smc-pe{padding:6px 12px 9px;background:#fff;font-size:11px;color:var(--smc-mudo);text-align:center}
#smc .smc-pe a{color:var(--smc-mudo)}
#smc .smc-wa{display:inline-flex;align-items:center;gap:3px;color:#1c8a4b!important;font-weight:600;text-decoration:none}
#smc .smc-wa svg{width:13px;height:13px}

@media (max-width:520px){
  #smc{right:14px}
  #smc .smc-bolha{width:56px;height:56px}
  #smc.smc-aberto{inset:0;right:0;bottom:0}
  #smc.smc-aberto .smc-bolha{display:none}
  #smc .smc-janela{position:fixed;inset:0;width:auto;height:auto;border-radius:0}
  #smc .smc-convite{right:68px}
}
@media (prefers-reduced-motion:reduce){#smc *{animation:none!important;transition:none!important}}

/* 0.22.1: logado no site (barra do WordPress no alto), a janela em tela cheia começa abaixo da barra */
@media (max-width:520px){body.admin-bar #smc .smc-janela{top:46px}}
