/* ==========================================================================
   ASSISTENTE — janelinha de conversa estilo WhatsApp da vitrine
   "Não achou o seu segmento? Conta pra gente"
   ========================================================================== */

.ns-lancador { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; align-items: center; gap: 10px; background: #0E1A36; color: #fff; border: 0; border-radius: 999px; padding: 10px 18px 10px 10px; font: 700 .92rem 'Inter', system-ui, sans-serif; box-shadow: 0 12px 30px rgba(14, 26, 54, .35); cursor: pointer; transition: transform .2s; }
.ns-lancador:hover { transform: translateY(-3px); }
.ns-lancador .ns-bola { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #2BD17E; }
.ns-lancador .ns-bola::after { content: ''; position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%; background: #ff5a5f; border: 2px solid #0E1A36; }
.ns-lancador.lido .ns-bola::after { display: none; }
.ns-lancador[hidden] { display: none; }

.ns-janela { position: fixed; right: 20px; bottom: 20px; z-index: 1000; width: min(380px, calc(100vw - 24px)); height: min(600px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #efeae2; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px rgba(14, 26, 54, .35); font-family: 'Inter', system-ui, sans-serif; transform-origin: bottom right; animation: ns-abrir .25s ease; }
.ns-janela[hidden] { display: none; }
@keyframes ns-abrir { from { opacity: 0; transform: scale(.9) translateY(10px); } }

.ns-topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0E1A36; color: #fff; }
.ns-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #16264d; flex-shrink: 0; }
.ns-avatar svg { width: 20px; height: 20px; }
.ns-topo b { display: block; font-family: 'Sora', 'Inter', sans-serif; font-size: 1rem; }
.ns-topo small { display: flex; align-items: center; gap: 5px; color: #9fb0cf; font-size: .78rem; }
.ns-topo small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #2BD17E; }
.ns-fechar { margin-left: auto; background: none; border: 0; color: #cfd6e4; font-size: 1.6rem; line-height: 1; cursor: pointer; }

.ns-corpo { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 8px;
  background-image: radial-gradient(rgba(14, 26, 54, .05) 1px, transparent 1px); background-size: 18px 18px; }
.ns-balao { max-width: 84%; padding: 9px 12px 18px; border-radius: 12px; font-size: .93rem; line-height: 1.45; position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.08); animation: ns-surgir .2s ease; color: #111b21; }
@keyframes ns-surgir { from { opacity: 0; transform: translateY(6px); } }
.ns-balao.ela { background: #fff; align-self: flex-start; border-top-left-radius: 4px; }
.ns-balao.eu { background: #d9fdd3; align-self: flex-end; border-top-right-radius: 4px; }
.ns-balao time { position: absolute; right: 8px; bottom: 3px; font-size: .68rem; color: #667781; }
.ns-balao.eu time::after { content: ' ✓✓'; color: #53bdeb; }
.ns-digitando { display: flex; gap: 4px; padding: 14px 16px; }
.ns-digitando span { width: 7px; height: 7px; border-radius: 50%; background: #9aa3ad; animation: ns-pula 1s infinite; }
.ns-digitando span:nth-child(2) { animation-delay: .15s; }
.ns-digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes ns-pula { 50% { transform: translateY(-4px); opacity: .5; } }

.ns-resposta { padding: 10px 12px 12px; background: #f0f2f5; display: flex; flex-direction: column; gap: 8px; }
.ns-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ns-chip { background: #fff; border: 1.5px solid #1faa64; color: #117a45; border-radius: 999px; padding: 7px 12px; font: 600 .86rem 'Inter', system-ui, sans-serif; cursor: pointer; transition: .12s; }
.ns-chip:hover, .ns-chip.marcado { background: #1faa64; color: #fff; }
.ns-acoes { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.ns-link { background: none; border: 0; color: #54656f; text-decoration: underline; font: 500 .84rem 'Inter', sans-serif; cursor: pointer; }
.ns-linha { display: flex; gap: 8px; align-items: center; }
.ns-linha input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 12px 16px; font: 500 .95rem 'Inter', sans-serif; background: #fff; outline: none; }
.ns-enviar { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; border: 0; background: #1faa64; color: #fff; cursor: pointer; }
.ns-enviar:disabled { opacity: .45; cursor: not-allowed; }
.ns-botao { display: flex; align-items: center; justify-content: center; gap: 8px; background: #1faa64; color: #fff; border: 0; border-radius: 999px; padding: 13px; font: 700 .95rem 'Inter', sans-serif; text-decoration: none; cursor: pointer; }

/* Card e faixa na vitrine */
.card-sugerir { border: 2px dashed #b9c6da !important; background: #fbfcfe !important; align-items: center; justify-content: center; text-align: center; padding: 28px 20px; cursor: pointer; font: inherit; color: inherit; min-height: 260px; }
.card-sugerir .mais { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #e6f9ef; color: #1faa64; font-size: 2rem; font-weight: 800; margin: 0 auto 14px; }
.card-sugerir h3 { font-size: 1.1rem; margin-bottom: 6px; }
.card-sugerir p { color: #5B6478; font-size: .9rem; }
.card-sugerir .ver { color: #1faa64 !important; }
.faixa-sugerir { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 28px; background: #0E1A36; color: #fff; border-radius: 20px; padding: 22px 26px; }
.faixa-sugerir b { font-family: 'Sora', 'Inter', sans-serif; font-size: 1.15rem; display: block; }
.faixa-sugerir span { color: #b9c4dc; font-size: .95rem; }
.faixa-sugerir button { background: #2BD17E; color: #05301a; border: 0; border-radius: 999px; padding: 12px 22px; font: 700 .95rem 'Inter', sans-serif; cursor: pointer; }

@media (max-width: 640px) {
  .ns-janela { left: 0; right: 0; bottom: 0; width: auto; max-width: none; height: 88vh; border-radius: 22px 22px 0 0; }
  .ns-lancador .ns-texto { display: none; }
  .ns-lancador { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ns-janela, .ns-balao { animation: none; } }
