/* ---------- Botão flutuante ---------- */
.chat-float { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 34px -8px rgba(var(--p1-rgb),.7); transition: transform .2s; }
.chat-float svg { width: 30px; height: 30px; }
.chat-float:hover { transform: scale(1.07); }
.chat-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--p1); animation: pulse 2.2s infinite; }
.chat-float-tip { position: absolute; right: 74px; white-space: nowrap; background: var(--card-2); border: 1px solid var(--line); color: var(--text); font: 600 13px Inter, sans-serif; padding: 9px 14px; border-radius: 12px; box-shadow: var(--shadow); animation: tip 8s ease 2s both; pointer-events: none; }
@keyframes tip { 0%, 100% { opacity: 0; transform: translateX(8px); } 8%, 85% { opacity: 1; transform: none; } }
.chat-open .chat-float { display: none; }

/* ---------- Card na seção de contato ---------- */
.assist-card { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: grid; gap: 20px; }
.assist-top, .chat-head { display: flex; align-items: center; gap: 12px; }
.assist-top img, .chat-head img { width: 44px; height: 44px; }
.assist-top strong, .chat-head strong { display: block; font-family: Poppins, sans-serif; }
.assist-top span, .chat-head span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.assist-top .dot, .chat-head .dot { width: 7px; height: 7px; box-shadow: none; }
.assist-preview { background: var(--bg); border-radius: 16px; padding: 16px; display: grid; gap: 10px; }
.assist-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.assist-chips span { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(var(--p1-rgb),.45); color: var(--soft); }
.assist-steps { list-style: none; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.assist-steps b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: rgba(var(--p1-rgb),.2); color: var(--soft); font-size: 13px; margin-right: 8px; }

/* ---------- Janela do chat ---------- */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 120; width: 390px; height: min(640px, calc(100vh - 44px)); background: var(--bg-2); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s ease; }
.chat[hidden] { display: none; }
.chat-head { padding: 14px 16px; background: linear-gradient(135deg, rgba(var(--p1-rgb),.25), rgba(var(--p2-rgb),.12)); border-bottom: 1px solid var(--line); }
.chat-head div { flex: 1; }
.chat-head button { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.06); color: var(--text); font-size: 20px; cursor: pointer; }
.chat-head button:hover { background: rgba(255,255,255,.12); }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; animation: pop .2s ease; overflow-wrap: anywhere; }
.msg.bot { background: var(--card-2); border-bottom-left-radius: 6px; align-self: flex-start; }
.msg.user { background: var(--grad); color: #fff; border-bottom-right-radius: 6px; align-self: flex-end; }
.msg p { margin-bottom: 10px; }
.msg .wa-go { background: var(--wa); box-shadow: 0 10px 24px -10px rgba(37,211,102,.7); }
.summary { font-size: 13.5px; color: #f1e6f2; background: rgba(0,0,0,.2); padding: 10px 12px; border-radius: 10px; border-left: 3px solid var(--p2); }
.typing { display: flex; gap: 5px; padding: 14px 16px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .25; transform: translateY(-3px); } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 16px 10px; max-height: 38%; overflow-y: auto; }
.chat-chips:empty { display: none; }
.qc { padding: 8px 13px; border-radius: 999px; border: 1px solid rgba(var(--p1-rgb),.55); background: transparent; color: var(--soft); font: 500 13.5px Inter, sans-serif; cursor: pointer; transition: .15s; }
.qc:hover { background: rgba(var(--p1-rgb),.15); }
.qc.on { background: rgba(var(--p1-rgb),.35); color: #fff; }
.qc.on::before { content: '✓ '; }
.qc.ok { background: var(--grad); border-color: transparent; color: #fff; font-weight: 600; }
.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--bg); }
.chat-input input { flex: 1; border-radius: 999px; padding: 12px 18px; }
.chat-input button { width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 0; background: var(--grad); color: #fff; font-size: 17px; cursor: pointer; }

@media (max-width: 560px) {
  .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .chat-float-tip { display: none; }
  .assist-card { padding: 22px; }
}
