/* bolinha de chat ao vivo: fica acima do botão flutuante do WhatsApp */
.vpchat { position: fixed; right: 20px; bottom: 96px; z-index: 9998; font: 15px/1.4 system-ui, -apple-system, sans-serif; }
.vpchat-botao {
  width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer; position: relative;
  background: #1b5e20; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.28); display: grid; place-items: center;
  margin-left: auto;
}
.vpchat-botao svg { width: 26px; height: 26px; fill: currentColor; }
.vpchat-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #d32f2f; color: #fff; font-size: 12px; line-height: 20px;
}
.vpchat-janela {
  position: absolute; right: 0; bottom: 70px; width: min(360px, calc(100vw - 32px)); height: min(480px, 70vh);
  background: #fff; color: #1b2a1d; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.3); display: flex; flex-direction: column;
  animation: vpchat-sobe .25s ease-out;
}
.vpchat-janela[hidden] { display: none; }
@keyframes vpchat-sobe { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.vpchat-topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #2e7d32; color: #fff; }
.vpchat-topo img { width: 36px; height: 36px; border-radius: 50%; background: #fff; }
.vpchat-topo div { flex: 1; display: grid; }
.vpchat-topo span { font-size: 12.5px; opacity: .9; display: flex; align-items: center; gap: 5px; }
.vpchat-topo i { width: 8px; height: 8px; border-radius: 50%; background: #69f0ae; display: inline-block; }
.vpchat-fechar { background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.vpchat-lista { flex: 1; overflow-y: auto; padding: 14px; background: #f1f6f1; display: flex; flex-direction: column; gap: 8px; }
.vpchat-msg { max-width: 82%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.vpchat-msg.dele { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.vpchat-msg.minha { background: #c8e6c9; align-self: flex-end; border-bottom-right-radius: 4px; }
.vpchat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e0ece0; background: #fff; }
.vpchat-form input { flex: 1; border: 1px solid #cfe0cf; border-radius: 22px; padding: 10px 14px; font: inherit; color: inherit; background: #fff; min-width: 0; }
.vpchat-form button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: #2e7d32; color: #fff; font-size: 17px; cursor: pointer; flex: none; }
@media (max-width: 760px) { .vpchat { right: 16px; bottom: 88px; } }
@media (prefers-reduced-motion: reduce) { .vpchat-janela { animation: none; } }
