/* IA Acácia, a assistente do e.acácia (chat web) */
.ea-chat { --ea-verde: #19653E; --ea-verde2: #2F6B49; --ea-amarelo: #F2B33D; --ea-fundo: #F3F5F7; position: fixed; right: 18px; bottom: 18px; z-index: 900; font-family: inherit; }
.ea-chat__abrir { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 999px; padding: 12px 18px 12px 14px; background: var(--ea-verde); color: #fff; font: 700 15px/1 inherit; box-shadow: 0 10px 30px rgba(20, 83, 40, .35); cursor: pointer; }
.ea-chat__abrir svg { width: 22px; height: 22px; fill: none; stroke: var(--ea-amarelo); stroke-width: 2; stroke-linejoin: round; }
.ea-chat__abrir:hover, .ea-chat__abrir:focus-visible { background: var(--ea-verde2); outline: 3px solid rgba(242, 179, 61, .55); outline-offset: 2px; }
.ea-chat.aberto .ea-chat__abrir span { display: none; }
.ea-chat__painel { position: absolute; right: 0; bottom: 64px; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 110px)); display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: 0 24px 60px rgba(10, 30, 22, .32); overflow: hidden; }
.ea-chat__painel[hidden] { display: none; }
.ea-chat__topo { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; background: var(--ea-verde); color: #fff; }
.ea-chat__topo div { flex: 1; display: grid; }
.ea-chat__topo strong { font-size: 15px; }
.ea-chat__topo small { opacity: .8; font-size: 12px; }
.ea-chat__avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ea-verde); display: flex; align-items: center; justify-content: center; font: 800 20px/1 inherit; }
.ea-chat__avatar b { color: var(--ea-amarelo); }
.ea-chat__fechar { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 4px; }
.ea-chat__mensagens { flex: 1; overflow-y: auto; padding: 14px; background: var(--ea-fundo); display: flex; flex-direction: column; gap: 8px; }
.ea-chat__msg { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 14px; line-height: 1.45; word-wrap: break-word; }
.ea-chat__msg--bot { align-self: flex-start; background: #fff; color: #1B2A22; border-top-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.ea-chat__msg--eu { align-self: flex-end; background: var(--ea-verde2); color: #fff; border-top-right-radius: 4px; }
.ea-chat__msg a { color: var(--ea-verde2); font-weight: 600; word-break: break-all; }
.ea-chat__rodape { display: block; margin-top: 6px; color: #5F6F66; font-size: 12px; }
.ea-chat__opcoes { display: flex; flex-wrap: wrap; gap: 6px; }
.ea-chat__opcao { border: 1px solid #C9DCCF; background: #fff; color: var(--ea-verde); border-radius: 999px; padding: 6px 12px; font: 600 13px/1.2 inherit; cursor: pointer; }
.ea-chat__opcao:hover:not(:disabled) { background: #E6F5EA; }
.ea-chat__opcao:disabled { opacity: .55; cursor: default; }
.ea-chat__opcao.escolhida { opacity: 1; background: var(--ea-verde); color: #fff; border-color: var(--ea-verde); }
.ea-chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #E2E8F0; background: #fff; }
.ea-chat__form input { flex: 1; border: 1px solid #D5DED9; border-radius: 999px; padding: 10px 14px; font: 14px inherit; }
.ea-chat__form input:focus { outline: 2px solid var(--ea-amarelo); border-color: transparent; }
.ea-chat__form button { width: 42px; height: 42px; border: 0; border-radius: 50%; background: var(--ea-verde); cursor: pointer; display: grid; place-items: center; }
.ea-chat__form button svg { width: 20px; height: 20px; fill: #fff; }
.ea-chat__pontos { display: inline-flex; gap: 4px; }
.ea-chat__pontos i { width: 7px; height: 7px; border-radius: 50%; background: #9BB5A6; animation: ea-pulso 1s infinite ease-in-out; }
.ea-chat__pontos i:nth-child(2) { animation-delay: .15s; }
.ea-chat__pontos i:nth-child(3) { animation-delay: .3s; }
@keyframes ea-pulso { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 480px) { .ea-chat { right: 12px; bottom: 12px; } .ea-chat__painel { position: fixed; inset: 8px; width: auto; height: auto; bottom: 74px; } }
@media print { .ea-chat { display: none; } }
