/* Chat comercial do ecotravel.pt (ver public/chat.js) */
.ec-lancar { position: fixed; right: 18px; bottom: 86px; width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--laranja, #FA880A); color: #fff; display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 40; }
.ec-lancar:hover { background: var(--laranja-escuro, #D67000); }
.ec-lancar svg { width: 28px; height: 28px; fill: currentColor; }
.ec-isca { position: fixed; right: 84px; bottom: 92px; max-width: 250px; background: #fff; color: var(--texto, #333); border-radius: 14px 14px 4px 14px;
  padding: 12px 34px 12px 14px; font: 400 16px/1.35 var(--letra, sans-serif); box-shadow: 0 6px 22px rgba(0,0,0,.18); z-index: 40; cursor: pointer; }
.ec-isca button { position: absolute; top: 4px; right: 6px; border: 0; background: none; font-size: 18px; color: #888; cursor: pointer; padding: 4px; }

.ec-painel { position: fixed; right: 18px; bottom: 18px; width: 380px; height: min(600px, calc(100vh - 36px)); background: #fff; border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.28); z-index: 50; display: flex; flex-direction: column; overflow: hidden; font-family: var(--letra, sans-serif); }
.ec-painel[hidden], .ec-lancar[hidden], .ec-isca[hidden] { display: none; }
.ec-topo { background: var(--petroleo, #2A4450); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
.ec-topo b { display: block; font-weight: 600; font-size: 18px; }
.ec-topo small { opacity: .85; font-size: 14px; }
.ec-topo .ec-fechar { margin-left: auto; background: none; border: 0; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }
.ec-msgs { flex: 1; overflow-y: auto; padding: 14px; background: var(--fundo-suave, #F4F5F4); display: flex; flex-direction: column; gap: 10px; }
.ec-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 16px; line-height: 1.45; font-weight: 400; overflow-wrap: anywhere; }
.ec-msg.ass { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ec-msg.cli { background: var(--azul-escuro, #0D4C70); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ec-msg a { color: var(--azul, #1D81BB); font-weight: 600; }
.ec-msg.cli a { color: #fff; }
.ec-escrever { align-self: flex-start; padding: 12px 14px; background: #fff; border-radius: 14px; }
.ec-escrever i { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: #9aa; animation: ec-p 1s infinite; }
.ec-escrever i:nth-child(2) { animation-delay: .15s } .ec-escrever i:nth-child(3) { animation-delay: .3s }
@keyframes ec-p { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }
.ec-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-chips button { border: 1px solid var(--petroleo, #2A4450); background: #fff; color: var(--petroleo, #2A4450); border-radius: 18px; padding: 6px 12px;
  font: 400 15px var(--letra, sans-serif); cursor: pointer; }
.ec-chips button:hover { background: var(--petroleo, #2A4450); color: #fff; }
.ec-escreve { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7e6; background: #fff; }
.ec-escreve textarea { flex: 1; resize: none; border: 1px solid #cfd3d1; border-radius: 10px; padding: 9px 11px; font: 400 16px/1.35 var(--letra, sans-serif); max-height: 110px; }
.ec-escreve button { flex: none; min-width: 74px; border: 0; background: var(--laranja, #FA880A); color: #fff; border-radius: 10px; padding: 0 14px; font: 600 15px var(--letra, sans-serif); cursor: pointer; }
.ec-escreve button:disabled { opacity: .5; cursor: default; }
.ec-form { background: #fff; border-radius: 12px; padding: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: grid; gap: 8px; font-size: 15px; }
.ec-form b { font-weight: 600; font-size: 16px; color: var(--azul-escuro, #0D4C70); }
.ec-form input, .ec-form select { width: 100%; border: 1px solid #cfd3d1; border-radius: 8px; padding: 8px 10px; font: 400 16px var(--letra, sans-serif); }
.ec-form .ec-duplo { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ec-form label.ec-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.3; }
.ec-form label.ec-check input { width: auto; margin-top: 2px; }
.ec-form button { border: 0; background: var(--laranja, #FA880A); color: #fff; border-radius: 8px; padding: 10px; font: 600 16px var(--letra, sans-serif); cursor: pointer; }
.ec-form .ec-erro { color: #b00020; font-size: 14px; }
.ec-form .sr { position: absolute; left: -9999px; }
.ec-aviso { font-size: 12px; color: #777; text-align: center; padding: 0 10px 8px; background: #fff; }

@media (max-width: 600px) {
  .ec-painel { right: 0; bottom: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; }
  .ec-isca { right: 82px; max-width: calc(100vw - 110px); }
}
