/* Assistente — botão flutuante e janela de conversa (identidade verde da igreja). */
.jt-ass, .jt-ass *, .jt-ass *::before, .jt-ass *::after { box-sizing: border-box; }
.jt-ass-botao {
  position: fixed; right: 18px; bottom: 18px; z-index: 9998; display: inline-flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #00806f, #00554e); color: #fff;
  font: 700 16px/1 "Open Sans", Arial, sans-serif; box-shadow: 0 10px 28px rgba(0, 70, 64, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.jt-ass-botao svg { width: 24px; height: 24px; fill: currentColor; }
.jt-ass-botao:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0, 70, 64, .42); }
.jt-ass-botao:focus-visible, .jt-ass button:focus-visible, .jt-ass textarea:focus-visible, .jt-ass a:focus-visible {
  outline: 3px solid #f2b705; outline-offset: 2px;
}
@media (max-width: 480px) { .jt-ass-botao span { display: none; } .jt-ass-botao { padding: 0; width: 60px; height: 60px; justify-content: center; } }

.jt-ass {
  width: min(460px, calc(100vw - 20px)); height: min(720px, calc(100vh - 32px)); padding: 0; border: 0; border-radius: 18px;
  margin: auto 16px 16px auto; box-shadow: 0 24px 60px rgba(0, 0, 0, .3); font: 15px/1.55 "Open Sans", Arial, sans-serif;
  color: #1f2a29; background: #f6f9f8; overflow: hidden;
}
.jt-ass[open] { display: flex; flex-direction: column; }
.jt-ass::backdrop { background: rgba(10, 30, 28, .35); }
@media (max-width: 600px) { .jt-ass { width: 100vw; height: 100dvh; max-height: none; max-width: none; margin: 0; border-radius: 0; } }

.jt-ass-topo { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; background: linear-gradient(135deg, #00806f, #00554e); color: #fff; }
.jt-ass-avatar { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; font-size: 20px; }
.jt-ass-titulo { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.jt-ass-titulo small { opacity: .85; font-size: 12.5px; }
.jt-ass-icone { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; }
.jt-ass-icone:hover { background: rgba(255,255,255,.16); }
.jt-ass-icone svg { width: 22px; height: 22px; fill: currentColor; }

.jt-ass-aviso { margin: 0; padding: 8px 16px; font-size: 12px; line-height: 1.45; color: #4d5b5a; background: #eaf2f1; border-bottom: 1px solid #d8e5e3; }
.jt-ass-aviso a { color: #00554e; }

.jt-ass-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.jt-ass-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-wrap: break-word; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.jt-ass-msg p { margin: 0 0 8px; padding: 0; }
.jt-ass-msg p:last-of-type { margin-bottom: 0; }
.jt-ass-usuario { align-self: flex-end; background: #00665e; color: #fff; border-bottom-right-radius: 4px; }
.jt-ass-assistente { align-self: flex-start; background: #fff; border: 1px solid #dfe9e7; border-bottom-left-radius: 4px; }
.jt-ass-msg audio { width: 100%; margin-top: 8px; height: 36px; }
.jt-ass-ouvir {
  margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #b9d0cd; background: #f2f8f7; color: #00554e; font: 600 13px "Open Sans", sans-serif; cursor: pointer;
}
.jt-ass-ouvir svg { width: 18px; height: 18px; fill: currentColor; }
.jt-ass-ouvir:hover { background: #e3f0ee; }
.jt-ass-ouvir.carregando { opacity: .6; }

.jt-ass-boasvindas { align-self: stretch; background: #fff; border: 1px solid #dfe9e7; border-radius: 16px; padding: 14px; }
.jt-ass-boasvindas p { margin: 0 0 10px; }
.jt-ass-sugestoes { display: flex; flex-wrap: wrap; gap: 8px; }
.jt-ass-chip {
  border: 1px solid #b9d0cd; background: #f2f8f7; color: #00554e; border-radius: 999px; padding: 8px 12px; min-height: 40px;
  font: 600 13px/1.3 "Open Sans", sans-serif; cursor: pointer; text-align: left;
}
.jt-ass-chip:hover { background: #e3f0ee; }
.jt-ass-chip:disabled { opacity: .5; cursor: default; }

.jt-ass-digitando { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.jt-ass-digitando span { width: 8px; height: 8px; border-radius: 50%; background: #7fa9a4; animation: jt-pula 1.2s infinite ease-in-out; }
.jt-ass-digitando span:nth-child(2) { animation-delay: .15s; }
.jt-ass-digitando span:nth-child(3) { animation-delay: .3s; }
@keyframes jt-pula { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .jt-ass-digitando span { animation: none; } .jt-ass-botao { transition: none; } }

.jt-ass-erro { margin: 0; padding: 8px 16px; font-size: 13px; color: #a4000f; background: #fff1f1; }
.jt-ass-erro:empty { display: none; }
.jt-ass-form { padding: 10px 12px 12px; background: #fff; border-top: 1px solid #dfe9e7; }
.jt-ass-campo { display: flex; align-items: flex-end; gap: 8px; background: #f2f6f5; border: 1px solid #cfdedb; border-radius: 24px; padding: 6px 6px 6px 14px; }
.jt-ass-campo:focus-within { border-color: #00665e; box-shadow: 0 0 0 3px rgba(0,102,94,.15); }
.jt-ass-campo textarea { flex: 1; border: 0; background: transparent; resize: none; font: 15px/1.45 "Open Sans", sans-serif; padding: 8px 0; max-height: 140px; color: #1f2a29; }
.jt-ass-campo textarea:focus { outline: none; }
.jt-ass-redondo { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; }
.jt-ass-redondo svg { width: 22px; height: 22px; fill: currentColor; }
.jt-ass-enviar { background: #00665e; color: #fff; }
.jt-ass-enviar:hover { background: #00554e; }
.jt-ass-mic { background: #e3eeec; color: #00554e; }
.jt-ass-mic:hover { background: #d3e5e2; }
.jt-ass-mic.gravando { background: #c62828; color: #fff; animation: jt-grava 1.4s infinite; }
@keyframes jt-grava { 50% { box-shadow: 0 0 0 8px rgba(198,40,40,.18); } }
.jt-ass-redondo:disabled { opacity: .5; cursor: default; }
.jt-ass-status { margin: 6px 4px 0; font-size: 12.5px; color: #4d5b5a; min-height: 0; }
.jt-ass-status:empty { display: none; }
.jt-ass-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* gravando: campo indica a gravação; Enviar envia o áudio; o X do microfone cancela */
.jt-ass-form.gravando .jt-ass-campo { border-color: #c62828; box-shadow: 0 0 0 3px rgba(198,40,40,.15); }
.jt-ass-form.gravando textarea { visibility: hidden; }
.jt-ass-form.gravando .jt-ass-status { color: #c62828; font-weight: 700; }
