/* Assistente virtual da Leve (bot de roteiro). */
.leve-chat-launcher { position: fixed; z-index: 905; right: 24px; bottom: 96px; width: 58px; height: 58px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--green, #0b6b57); color: #fff; cursor: pointer;
  box-shadow: 0 15px 34px rgba(7, 77, 63, .35); transition: transform .15s ease; }
.leve-chat-launcher:hover { transform: translateY(-2px); }
.leve-chat-launcher svg { width: 28px; height: 28px; }
.leve-chat-launcher .dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--brand-accent, #21e7d6); }

.leve-chat-hello { position: fixed; z-index: 906; right: 94px; bottom: 102px; max-width: min(300px, calc(100vw - 120px)); padding: 14px 38px 14px 16px;
  border: 1px solid var(--line, #dfe7e3); border-radius: 18px 18px 4px 18px; background: #fff; color: var(--ink, #13231f);
  box-shadow: 0 18px 40px rgba(15, 56, 46, .16); font-size: 14px; line-height: 1.45; cursor: pointer; animation: leve-chat-pop .35s ease both; }
.leve-chat-hello strong { display: block; margin-bottom: 2px; color: var(--green, #0b6b57); font-size: 12px; letter-spacing: .02em; }
.leve-chat-hello button { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--muted, #60706b); font-size: 18px; cursor: pointer; }

.leve-chat-window { position: fixed; z-index: 10001; right: 24px; bottom: 96px; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 130px));
  display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line, #dfe7e3); border-radius: 22px; background: #fff;
  box-shadow: 0 24px 60px rgba(15, 56, 46, .22); animation: leve-chat-pop .25s ease both; font-family: inherit; }
.leve-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--green-dark, #074d3f); color: #fff; }
.leve-chat-head img { width: 38px; height: 38px; border-radius: 50%; background: #fff; object-fit: contain; padding: 4px; }
.leve-chat-head strong { display: block; font-size: 15px; }
.leve-chat-head small { display: block; color: #bff7ef; font-size: 12px; }
.leve-chat-head button { margin-left: auto; border: 0; background: none; color: #fff; font-size: 22px; cursor: pointer; }
.leve-chat-body { flex: 1; overflow-y: auto; padding: 16px; background: var(--cream, #f7f8f4); }
.leve-msg { max-width: 86%; margin: 0 0 10px; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; white-space: pre-line; animation: leve-chat-pop .2s ease both; }
.leve-msg.bot { border: 1px solid var(--line, #dfe7e3); border-bottom-left-radius: 4px; background: #fff; color: var(--ink, #13231f); }
.leve-msg.user { margin-left: auto; border-bottom-right-radius: 4px; background: var(--green, #0b6b57); color: #fff; }
.leve-msg a { color: var(--green, #0b6b57); font-weight: 700; }
.leve-typing { display: inline-flex; gap: 4px; }
.leve-typing i { width: 6px; height: 6px; border-radius: 50%; background: #9db3ab; animation: leve-dot 1s infinite; }
.leve-typing i:nth-child(2) { animation-delay: .15s; } .leve-typing i:nth-child(3) { animation-delay: .3s; }
.leve-options { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.leve-options button { padding: 9px 14px; border: 1px solid var(--brand-accent-strong, #10c7b6); border-radius: 999px; background: var(--brand-accent-soft, #e4fffb);
  color: var(--green-dark, #074d3f); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.leve-options button:hover { background: var(--mint, #d5faf5); }
.leve-options button.whats { border-color: #25d366; background: #25d366; color: #fff; }
.leve-chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line, #dfe7e3); background: #fff; }
.leve-chat-input[hidden] { display: none; }
.leve-chat-input input, .leve-chat-input textarea { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line, #dfe7e3); border-radius: 12px; font: inherit; font-size: 14px; resize: none; }
.leve-chat-input button { padding: 0 16px; border: 0; border-radius: 12px; background: var(--green, #0b6b57); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.leve-chat-note { padding: 0 16px 10px; background: #fff; color: var(--muted, #60706b); font-size: 11px; line-height: 1.4; }
.leve-chat-note a { color: inherit; }
@keyframes leve-chat-pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes leve-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (max-width: 640px) {
  .leve-chat-launcher { right: 16px; bottom: 88px; width: 54px; height: 54px; }
  .leve-chat-hello { right: 80px; bottom: 92px; }
  .leve-chat-window { right: 8px; left: 8px; bottom: 8px; width: auto; height: calc(100vh - 16px); border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) { .leve-chat-hello, .leve-chat-window, .leve-msg { animation: none; } }
.leve-chat-window[hidden], .leve-chat-launcher[hidden] { display: none; }
