/* MenuChefe — chat da Hellen (balão + janela) e aviso de cookies, separados do CSS antigo para a página principal nova (19/11/2026). */
:root { --ink: #17150f; --ink-2: #3b382f; --mute: #6c6a62; --mute-2: #a09d92; --line: #ebe8dd; --y: #ffd60a; --wa: #25d366; --band: #fffbe9; --ease: cubic-bezier(.2,.8,.2,1); --f-head: 'Poppins', 'Segoe UI', system-ui, sans-serif; }
/* ═════ CHAT (balão + avatar, como um atendente) ═════ */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; align-items: flex-end; gap: 0; padding: 0; border: 0; background: transparent; }
.chat-fab .bubble { position: relative; margin-right: -14px; margin-bottom: 14px; max-width: 230px; padding: 12px 22px 12px 16px; border-radius: 14px 14px 4px 14px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 28px -12px rgba(60, 45, 0, .35); text-align: left; font-size: .86rem; line-height: 1.4; color: var(--ink); opacity: 0; transform: translateY(8px) scale(.96); transform-origin: 100% 100%; transition: opacity .4s, transform .4s var(--ease); pointer-events: none; }
.chat-fab.show .bubble { opacity: 1; transform: none; pointer-events: auto; }
.chat-fab .avatar { position: relative; flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--y); border: 3px solid #fff; box-shadow: 0 10px 24px -8px rgba(60, 45, 0, .45); display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; transition: transform .25s var(--ease); }
.chat-fab:hover .avatar { transform: scale(1.06); }
.chat-fab .avatar::after { content: ''; position: absolute; right: 0; bottom: 1px; width: 13px; height: 13px; border-radius: 50%; background: #22c55e; border: 2.5px solid #fff; }
.chat-fab.hide { opacity: 0; transform: scale(.8); pointer-events: none; transition: opacity .2s, transform .2s; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 81; display: flex; flex-direction: column; width: min(380px, 100% - 24px); height: min(620px, 100dvh - 40px); overflow: hidden; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -24px rgba(23, 21, 15, .4); transform-origin: 100% 100%; transform: translateY(16px) scale(.97); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
.chat.open { transform: none; opacity: 1; pointer-events: auto; }
.chat-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-h .av { position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--y); display: grid; place-items: center; font-family: var(--f-head); font-weight: 700; }
.chat-h .av::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.chat-h b { display: block; font-family: var(--f-head); font-size: .95rem; letter-spacing: -.02em; line-height: 1.2; }
.chat-h small { font-size: .76rem; color: var(--mute); }
.chat-h .acts { display: flex; gap: 4px; margin-left: auto; }
.chat-h .acts button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent; font-size: 1.3rem; line-height: 1; color: var(--mute); transition: background .2s, color .2s; }
.chat-h .acts button:hover { background: var(--band); color: var(--ink); }
.chat-h .acts svg { width: 18px; height: 18px; }
.chat-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 8px; overflow-y: auto; background: #fff; scroll-behavior: smooth; }
.chat-day { align-self: center; font-size: .7rem; font-weight: 600; color: var(--mute-2); }
.mrow { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; animation: pop .3s var(--ease); }
.mrow.user { align-self: flex-end; }
.mrow .mav { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--y); font-family: var(--f-head); font-weight: 700; font-size: .7rem; }
.m { padding: 10px 14px; border-radius: 14px; font-size: .92rem; line-height: 1.5; white-space: pre-line; }
.m a { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.m b { font-weight: 600; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.mrow.bot .m { background: #f5f4ef; border-bottom-left-radius: 4px; }
.mrow.user .m { background: var(--y); border-bottom-right-radius: 4px; font-weight: 500; }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #b7b2a0; animation: bl 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 30% { transform: translateY(-4px); background: var(--ink); } }
.qchips { display: flex; flex-wrap: nowrap; gap: 6px; padding: 6px 16px 12px; overflow-x: auto; scrollbar-width: none; background: #fff; }
.qchips::-webkit-scrollbar { display: none; }
.qchip { flex: none; white-space: nowrap; padding: 7px 13px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 500; transition: all .2s; }
.qchip:hover { background: var(--band); border-color: var(--y-deep); }
.qchips { cursor: grab; -webkit-mask: linear-gradient(90deg, #000 86%, transparent); mask: linear-gradient(90deg, #000 86%, transparent); }
.qchips.arrastando { cursor: grabbing; user-select: none; }
.qchips.arrastando .qchip { pointer-events: none; }
/* linha das sugestões: as perguntas rolam para o lado e, no fim da linha, fica um botão pequeno do WhatsApp (sempre visível, sem pesar) */
.qlinha { display: flex; align-items: center; background: #fff; }
.qlinha .qchips { flex: 1; min-width: 0; padding-right: 4px; }
.qlinha .qchip.wa { flex: none; margin: 6px 14px 12px 4px; padding: 7px 12px; }
.qchip.wa { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-color: var(--wa); color: #128c4a; font-weight: 600; cursor: pointer; }
.qchip.wa:hover { background: var(--wa); color: #05301a; }
.qchip.wa svg { width: 15px; height: 15px; }
.qchip.wa.chama { background: var(--wa); color: #05301a; animation: waChama 1.2s ease-in-out 2; }
@keyframes waChama { 0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 50% { box-shadow: 0 0 0 6px rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .qchip.wa.chama { animation: none; } }
.chat-f { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-f input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: .93rem; outline: none; transition: border-color .2s; }
.chat-f input:focus { border-color: var(--ink); }
.chat-f button { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--y); transition: background .2s; }
.chat-f button:hover { background: #ffdc33; }
.chat-f button svg { width: 18px; height: 18px; }
.chat-foot { padding: 0 14px 10px; background: #fff; text-align: center; color: var(--mute-2); font-size: .72rem; }
@media (max-width: 1080px) {
  .chat-fab .bubble { display: none; }
  .chat-fab .avatar { width: 52px; height: 52px; }
  .chat { right: 0; bottom: 0; width: 100%; height: 100dvh; border-radius: 0; }
}
@media (max-width: 640px) { .chat-fab { bottom: calc(14px + var(--cookie-h, 0px) + 10px); } }

/* chat no celular: uma tela própria que acompanha o teclado (altura e deslocamento ajustados por JS), sem zoom e sem a página aparecendo atrás */
html.chat-lock { background: #fff; overscroll-behavior: none; }
html.chat-lock body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
html.chat-lock body > *:not(#chat) { visibility: hidden; }
@media (max-width: 640px) {
  .chat { top: 0; left: 0; right: 0; bottom: auto; width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; box-shadow: none; transform: none; transform-origin: 50% 0; transition: opacity .18s ease; will-change: transform, height; overscroll-behavior: none; }
  .chat.open { transform: none; }
  .chat-h { padding-top: max(14px, env(safe-area-inset-top)); }
  .chat-f input { font-size: 16px !important; }
  .chat-f { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
  .chat-msgs { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
  .chat-msgs { touch-action: pan-y; }
  .qchips { touch-action: pan-x; }   /* sugestões arrastam para o lado com o dedo */
  .chat-f, .chat-h, .chat-foot { touch-action: manipulation; }
}
.chat-fab .avatar, .chat-h .av, .mrow .mav { padding: 0; }
.chat-fab .avatar img, .chat-h .av img, .mrow .mav img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.chat-fab .avatar { background: #fff; }
.chat-fab .avatar::after { right: -2px; bottom: 0; z-index: 2; }
.chat-h .av::after { right: -3px; bottom: -2px; z-index: 2; }
.chat-fab .avatar::after, .chat-h .av::after { animation: onlinePulse 1.6s ease-in-out infinite; }
@keyframes onlinePulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .65); opacity: 1; } 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .chat-fab .avatar::after, .chat-h .av::after { animation: none; } }

/* celular: foto da Hellen maior e um balão que aparece de vez em quando (site.js liga a classe .fala) */
@media (max-width: 1080px) {
  .chat-fab .avatar { width: 64px; height: 64px; }
  .chat-fab .bubble { display: block; position: absolute; right: 54px; bottom: 30px; width: max-content; max-width: min(250px, calc(100vw - 110px)); margin: 0; font-size: .84rem; line-height: 1.4; opacity: 0; transform: translateY(8px) scale(.96); transform-origin: 100% 100%; pointer-events: none; transition: opacity .35s, transform .35s; }
  .chat-fab.show .bubble { opacity: 0; transform: translateY(8px) scale(.96); pointer-events: none; }
  .chat-fab.fala .bubble { opacity: 1; transform: none; pointer-events: auto; }
}
