/* Chat "Tire suas dúvidas" da página inicial (public/assets/lp-chat.js) */
:root{--lpc-offset:0px} /* altura do banner de cookies enquanto visível (lp-chat.js) */
.lpc-fab{position:fixed;right:1.25rem;bottom:calc(1.25rem + var(--lpc-offset));z-index:55;transition:bottom .2s ease;display:inline-flex;align-items:center;gap:.6rem;padding:.8rem 1.15rem .8rem .9rem;border:0;border-radius:999px;background:linear-gradient(135deg,#C840F0 0%,#8B2FE0 50%,#E040A0 100%);color:#fff;font:600 .9rem/1 Inter,system-ui,sans-serif;box-shadow:0 12px 32px rgba(139,47,224,.45);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.lpc-fab:hover{transform:translateY(-2px);box-shadow:0 16px 40px rgba(139,47,224,.55)}
.lpc-fab svg{width:22px;height:22px;flex:none}
.lpc-fab .lpc-dot{position:absolute;top:-2px;right:-2px;width:12px;height:12px;border-radius:50%;background:#22c55e;border:2px solid #fff}
.lpc-fab[hidden]{display:none}
.lpc-box{position:fixed;right:1.25rem;bottom:calc(1.25rem + var(--lpc-offset));z-index:56;width:min(380px,calc(100vw - 2.5rem));height:min(560px,calc(100dvh - 2.5rem - var(--lpc-offset)));display:flex;flex-direction:column;overflow:hidden;border-radius:1.25rem;background:rgb(var(--surface,255 255 255));color:rgb(var(--ink,17 17 27));border:1px solid rgba(139,47,224,.25);box-shadow:0 24px 64px rgba(0,0,0,.35);font-family:Inter,system-ui,sans-serif;transform-origin:bottom right;animation:lpc-in .22s ease-out}
.lpc-box[hidden]{display:none}
@keyframes lpc-in{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
.lpc-head{display:flex;align-items:center;gap:.75rem;padding:.9rem 1rem;background:linear-gradient(135deg,#C840F0 0%,#8B2FE0 50%,#E040A0 100%);color:#fff}
.lpc-avatar{width:38px;height:38px;flex:none;display:grid;place-items:center;border-radius:50%;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.35)}
.lpc-avatar svg{width:20px;height:20px}
.lpc-head strong{display:block;font-size:.95rem;line-height:1.2}
.lpc-head small{display:flex;align-items:center;gap:.35rem;font-size:.75rem;opacity:.9}
.lpc-head small::before{content:"";width:7px;height:7px;border-radius:50%;background:#4ade80;box-shadow:0 0 0 3px rgba(74,222,128,.3)}
.lpc-head .lpc-actions{margin-left:auto;display:flex;gap:.25rem}
.lpc-head button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:.6rem;background:transparent;color:#fff;cursor:pointer;opacity:.85}
.lpc-head button:hover{background:rgba(255,255,255,.18);opacity:1}
.lpc-head button svg{width:18px;height:18px}
.lpc-msgs{flex:1;overflow-y:auto;padding:1rem;display:flex;flex-direction:column;gap:.6rem;scroll-behavior:smooth;background:rgb(var(--base,248 247 252))}
.lpc-msg{max-width:86%;padding:.65rem .85rem;border-radius:1rem;font-size:.9rem;line-height:1.45;white-space:pre-wrap;word-break:break-word}
.lpc-msg.bot{align-self:flex-start;background:rgb(var(--surface,255 255 255));border:1px solid rgba(139,47,224,.15);border-bottom-left-radius:.3rem}
.lpc-msg.me{align-self:flex-end;background:#8B2FE0;color:#fff;border-bottom-right-radius:.3rem}
.lpc-msg.err{border-color:rgba(239,68,68,.4)}
.lpc-typing{align-self:flex-start;display:inline-flex;gap:4px;padding:.7rem .9rem;border-radius:1rem;background:rgb(var(--surface,255 255 255));border:1px solid rgba(139,47,224,.15)}
.lpc-typing i{width:7px;height:7px;border-radius:50%;background:#8B2FE0;opacity:.35;animation:lpc-blink 1.1s infinite}
.lpc-typing i:nth-child(2){animation-delay:.18s}.lpc-typing i:nth-child(3){animation-delay:.36s}
@keyframes lpc-blink{0%,80%,100%{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}
.lpc-chips{display:flex;flex-wrap:wrap;gap:.4rem;padding:0 1rem .5rem;background:rgb(var(--base,248 247 252))}
.lpc-chips:empty{display:none}
.lpc-chips button{padding:.4rem .7rem;border-radius:999px;border:1px solid rgba(139,47,224,.35);background:transparent;color:inherit;font:500 .78rem/1.1 Inter,system-ui,sans-serif;cursor:pointer}
.lpc-chips button:hover{background:rgba(139,47,224,.12)}
.lpc-form{display:flex;gap:.5rem;align-items:flex-end;padding:.75rem;border-top:1px solid rgba(139,47,224,.15);background:rgb(var(--surface,255 255 255))}
.lpc-form textarea{flex:1;min-height:42px;max-height:120px;resize:none;padding:.6rem .8rem;border-radius:.9rem;border:1px solid rgba(139,47,224,.25);background:rgb(var(--base,248 247 252));color:inherit;font:400 .9rem/1.4 Inter,system-ui,sans-serif;outline:none}
.lpc-form textarea:focus{border-color:#8B2FE0;box-shadow:0 0 0 3px rgba(139,47,224,.18)}
.lpc-form button{width:42px;height:42px;flex:none;display:grid;place-items:center;border:0;border-radius:.9rem;background:linear-gradient(135deg,#C840F0,#8B2FE0);color:#fff;cursor:pointer}
.lpc-form button:disabled{opacity:.5;cursor:default}
.lpc-form button svg{width:18px;height:18px}
.lpc-foot{padding:.35rem .75rem .6rem;text-align:center;font-size:.68rem;opacity:.6;background:rgb(var(--surface,255 255 255))}
.lpc-foot a{text-decoration:underline}
@media (max-width:480px){.lpc-box{right:.5rem;bottom:calc(.5rem + var(--lpc-offset));width:calc(100vw - 1rem);height:min(600px,calc(100dvh - 1rem - var(--lpc-offset)))}.lpc-fab{right:1rem;bottom:calc(1rem + var(--lpc-offset));padding:.9rem}.lpc-fab span{display:none}}
@media (prefers-reduced-motion:reduce){.lpc-box{animation:none}.lpc-fab{transition:none}}
