/* chat do site */
.agvc { --c: #0b4fb3; --c2: #083b87; position: fixed; right: 18px; bottom: 18px; z-index: 9990; font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c2533; }
.agvc *, .agvc *::before { box-sizing: border-box; }
.agvc-bolha { width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--c); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 24px rgba(11,79,179,.35); position: relative; transition: transform .15s; }
.agvc-bolha:hover { transform: scale(1.06); }
.agvc.aberto .agvc-bolha { transform: scale(.9); }
.agvc-n { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; border-radius: 11px; background: #e5383b; color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; border: 2px solid #fff; }
.agvc-janela { position: absolute; right: 0; bottom: 74px; width: 370px; height: min(600px, calc(100vh - 110px)); background: #fff; border-radius: 16px; box-shadow: 0 16px 48px rgba(16,24,40,.25); display: flex; flex-direction: column; overflow: hidden; }
.agvc-janela[hidden] { display: none; }
.agvc-janela header { background: linear-gradient(135deg, var(--c), var(--c2)); color: #fff; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agvc-janela header b { display: block; font-size: 16px; }
.agvc-janela header small { color: #dbe6ff !important; font-size: 12px; display: block; }
.agvc-janela header b { color: #fff; }
.agvc-x { background: rgba(255,255,255,.15); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; }
.agvc-corpo { flex: 1; overflow-y: auto; padding: 14px 12px; background: #f1f4f9; display: flex; flex-direction: column; gap: 8px; }
.agvc-msg { max-width: 86%; display: flex; flex-direction: column; }
.agvc-msg small { font-size: 11px; color: #7a8699; margin: 2px 6px 0; }
.agvc-msg.eu { align-self: flex-end; align-items: flex-end; }
.agvc-b { padding: 8px 12px; border-radius: 14px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.06); word-wrap: break-word; overflow-wrap: anywhere; }
.agvc-msg.eu .agvc-b { background: var(--c); color: #fff; border-bottom-right-radius: 4px; }
.agvc-msg.ele .agvc-b { border-bottom-left-radius: 4px; }
.agvc-msg.equipe .agvc-b { background: #e3f6e8; }
.agvc-b a { color: inherit; text-decoration: underline; }
.agvc-dig .agvc-b { display: flex; gap: 4px; padding: 12px 14px; }
.agvc-dig i { width: 7px; height: 7px; border-radius: 50%; background: #9aa6b8; animation: agvc-p 1s infinite; }
.agvc-dig i:nth-child(2) { animation-delay: .15s; } .agvc-dig i:nth-child(3) { animation-delay: .3s; }
@keyframes agvc-p { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.agvc-aviso { align-self: center; background: #fff3cd; color: #7a5a00; font-size: 13px; padding: 6px 10px; border-radius: 8px; }
.agvc-ini { padding: 16px; display: grid; gap: 10px; border-top: 1px solid #e6eaf0; }
.agvc-ini[hidden], .agvc-enviar[hidden] { display: none; }
.agvc-ini p { margin: 0; font-weight: 600; }
.agvc-ini small { color: #7a8699; font-size: 12px; }
.agvc-ini input { width: 100%; padding: 10px 12px; border: 1px solid #ccd4df; border-radius: 10px; font: inherit; }
.agvc-bt { padding: 11px; border: 0; border-radius: 10px; background: var(--c); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.agvc-bt:disabled { opacity: .6; }
.agvc-rapidas { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px; background: #f1f4f9; }
.agvc-rapidas:not(:empty) { padding: 0 12px 10px; }
.agvc-rapidas button { border: 1px solid var(--c); background: #fff; color: var(--c); border-radius: 16px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.agvc-rapidas button:hover { background: var(--c); color: #fff; }
.agvc-enviar { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e6eaf0; align-items: flex-end; }
.agvc-enviar textarea { flex: 1; resize: none; border: 1px solid #ccd4df; border-radius: 18px; padding: 9px 14px; font: inherit; max-height: 110px; }
.agvc-enviar button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.agvc-wa { display: block; text-align: center; font-size: 12.5px; padding: 8px; color: #128c4b; text-decoration: none; border-top: 1px solid #eef1f5; }
.agvc-wa:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .agvc { right: 12px; bottom: 12px; }
  .agvc.aberto { right: 0; bottom: 0; left: 0; top: 0; }
  .agvc.aberto .agvc-bolha { display: none; }
  .agvc-janela { position: fixed; inset: 0; width: auto; height: 100%; border-radius: 0; }
}
@media (max-width: 900px) { .agvc.onde-painel:not(.aberto) { bottom: 78px; } } /* acima das abas do painel no celular */
@media print { .agvc { display: none; } }
