/* Assistente (chat por regras, sem IA/sem custo) — botão flutuante + painel
   compacto no canto inferior direito, estilo Mercado Livre. Todo o estilo vive
   aqui (CSP: sem inline). O JS só alterna classes. Paleta da marca (gold/preto). */

.bd-chat { position: fixed; right: 20px; bottom: 20px; z-index: 9000;
  font-family: 'DM Sans', system-ui, sans-serif; }

/* Botão flutuante */
.bd-chat__fab { display: flex; align-items: center; gap: 8px;
  background: #F59E0B; color: #0C0A06; border: none; border-radius: 50px;
  padding: 12px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.25); font-family: inherit; }
.bd-chat__fab:hover { background: #D97706; }
.bd-chat__fab-ic { font-size: 18px; line-height: 1; }
.bd-chat.is-open .bd-chat__fab { display: none; }

/* Painel */
.bd-chat__panel { display: none; flex-direction: column;
  width: 340px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 100px);
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,.3); border: 1px solid #e5e5e5; }
.bd-chat.is-open .bd-chat__panel { display: flex; }

.bd-chat__header { background: #0F0C04; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; }
.bd-chat__title { font-weight: 700; font-size: 15px; color: #FBBF24; }
.bd-chat__sub { font-size: 11px; color: #c9c4b5; margin-top: 2px; }
.bd-chat__actions { display: flex; align-items: center; gap: 2px; }
.bd-chat__hbtn { background: none; border: none; color: #fff; font-size: 18px;
  cursor: pointer; line-height: 1; padding: 2px 6px; border-radius: 6px; }
.bd-chat__hbtn:hover { color: #FBBF24; background: rgba(255,255,255,.08); }

/* Tamanho ampliado do assistente (toggle pelo botão ⤢) */
.bd-chat--lg .bd-chat__panel { width: 440px; height: 620px; }

.bd-chat__msgs { flex: 1; overflow-y: auto; padding: 14px;
  background: #f8f7f4; display: flex; flex-direction: column; gap: 10px; }
.bd-chat__msg { max-width: 85%; padding: 9px 12px; border-radius: 12px;
  font-size: 13px; line-height: 1.45; }
.bd-chat__msg--bot { align-self: flex-start; background: #fff;
  border: 1px solid #e5e5e5; color: #1a1a1a; border-bottom-left-radius: 3px; }
.bd-chat__msg--user { align-self: flex-end; background: #F59E0B; color: #0C0A06;
  border-bottom-right-radius: 3px; font-weight: 600; }
.bd-chat__msg a { color: #D97706; font-weight: 600; }
.bd-chat__msg strong { font-weight: 700; }

.bd-chat__quick { display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 12px; border-top: 1px solid #e5e5e5; background: #fff; }
.bd-chat__chip { background: #fff; border: 1px solid #F59E0B; color: #B45309;
  border-radius: 50px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  cursor: pointer; font-family: inherit; }
.bd-chat__chip:hover { background: #fffbeb; }

.bd-chat__form { display: flex; gap: 6px; padding: 10px 12px;
  border-top: 1px solid #e5e5e5; background: #fff; }
.bd-chat__field { flex: 1; border: 1px solid #ddd9ce; border-radius: 50px;
  padding: 9px 14px; font-size: 13px; outline: none; font-family: inherit; }
.bd-chat__send { background: #F59E0B; color: #0C0A06; border: none;
  border-radius: 50px; padding: 0 16px; font-weight: 700; cursor: pointer;
  font-family: inherit; }
.bd-chat__send:hover { background: #D97706; }

.bd-chat__disc { font-size: 10px; color: #888; text-align: center;
  padding: 0 12px 9px; background: #fff; }

@media (max-width: 420px) {
  .bd-chat { right: 12px; bottom: 12px; }
  .bd-chat__panel { width: calc(100vw - 24px); height: calc(100vh - 90px); }
}
