/* Wefox Tech v4: aviso de cookies + widget de chat. Mesmo sistema do site (laranja chapado, sem degradê).
   Carregado sem bloquear a renderização; as variáveis do v4.css estão disponíveis. */

/* ===== Aviso de cookies (molde: flutuantes.css da Media) ===== */
.wt-cookies{
  position:fixed;left:12px;right:12px;bottom:12px;z-index:9000;max-width:760px;margin:0 auto;
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 14px 12px 18px;
  background:#1A140C;color:#fff;border-radius:14px;
  box-shadow:0 0 0 1px rgba(255,255,255,.14),0 16px 40px -16px rgba(13,9,0,.7);
  font-size:14px;line-height:1.4;animation:wt-cookies-entrar .3s cubic-bezier(.2,.8,.2,1);
}
.wt-cookies--saindo{opacity:0;transform:translateY(8px);transition:opacity .2s ease,transform .2s ease}
.wt-cookies__texto{margin:0;flex:1 1 260px;color:#CFC6B8}
.wt-cookies__texto a{color:#fff;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:13px 4px;margin:-13px -4px}
.wt-ck-curto{display:none}
.wt-cookies__botoes{display:flex;gap:8px;margin-left:auto}
.wt-cookies__btn{
  appearance:none;min-height:44px;min-width:104px;padding:0 18px;border-radius:99px;font:inherit;font-weight:600;font-size:14.5px;
  border:1px solid rgba(255,255,255,.4);background:transparent;color:#fff;cursor:pointer;
}
.wt-cookies__btn:hover{background:rgba(255,255,255,.1)}
.wt-cookies__btn--aceitar{border-color:transparent;background:#FF4200;color:#0D0900}
.wt-cookies__btn--aceitar:hover{background:#FF4200;opacity:.92}
@keyframes wt-cookies-entrar{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
@media (prefers-reduced-motion:reduce){.wt-cookies{animation:none}}

/* ===== Widget de chat ===== */
.wt-chat-botao{
  position:fixed;right:20px;bottom:20px;z-index:8500;display:inline-flex;align-items:center;gap:10px;
  min-height:52px;padding:0 22px;border-radius:99px;border:none;background:#FF4200;color:#0D0900;
  font:inherit;font-weight:600;font-size:15px;cursor:pointer;
  box-shadow:0 14px 30px -10px rgba(255,66,0,.7),inset 0 -1px rgba(0,0,0,.14);
  transition:transform .2s cubic-bezier(.2,.8,.2,1),opacity .25s;
}
.wt-chat-botao:hover{transform:translateY(-2px)}
.wt-chat-botao:active{transform:scale(.97)}
body:has(.wt-cookies) .wt-chat-botao{bottom:96px}

.wt-chat-painel{
  position:fixed;right:16px;left:16px;bottom:80px;z-index:8600;max-width:380px;margin-left:auto;background:#fff;border-radius:22px;
  box-shadow:0 0 0 1px #ECE5DA,0 24px 60px -20px rgba(13,9,0,.4);display:flex;flex-direction:column;max-height:min(70vh,560px);overflow:hidden;
}
.wt-chat-painel[hidden]{display:none}
.wt-chat-cabecalho{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:#0D0900;color:#fff}
.wt-chat-cabecalho h2{font-size:15px;margin:0;font-weight:700;letter-spacing:-.01em}
.wt-chat-fechar{appearance:none;border:none;background:transparent;color:inherit;font-size:22px;line-height:1;min-width:44px;min-height:44px;cursor:pointer}
.wt-chat-aviso{margin:0;padding:10px 16px;font-size:12.5px;color:#4A4239;background:#F7F3EA;border-bottom:1px solid #ECE5DA}
.wt-chat-mensagens{flex:1 1 auto;overflow-y:auto;padding:14px 16px;display:flex;flex-direction:column;gap:10px;font-size:14px;line-height:1.5}
.wt-chat-msg{max-width:88%;padding:10px 12px;border-radius:14px}
.wt-chat-msg--usuario{align-self:flex-end;background:#0D0900;color:#fff}
.wt-chat-msg--ia{align-self:flex-start;background:#F7F3EA;color:#0D0900}
.wt-chat-rodape{padding:12px;border-top:1px solid #ECE5DA;display:flex;flex-direction:column;gap:10px}
.wt-chat-form{display:flex;gap:8px}
.wt-chat-campo{flex:1 1 auto;min-height:44px;border-radius:12px;border:1px solid #DDD3C4;padding:10px 12px;font:inherit;font-size:14px;resize:none}
.wt-chat-campo:focus{outline:none;border-color:#0D0900;box-shadow:0 0 0 3px rgba(255,66,0,.2)}
.wt-chat-enviar{min-width:44px;min-height:44px;border-radius:12px;border:none;background:#FF4200;color:#0D0900;font-weight:700;cursor:pointer}
.wt-chat-whats{display:inline-flex;justify-content:center;align-items:center;min-height:44px;border-radius:12px;background:#0D0900;color:#fff;text-decoration:none;font-weight:600;font-size:14px}

/* celular: o aviso e o botão sobem para não ficar atrás da barra "Ver planos / WhatsApp" */
@media (max-width:860px){
  .wt-cookies{bottom:calc(var(--barra-cel,76px) + 8px);left:8px;right:8px;padding:10px 12px;gap:6px;font-size:12.5px}
  .wt-cookies__texto{flex-basis:100%}
  .wt-ck-longo{display:none}.wt-ck-curto{display:inline}
  .wt-cookies__botoes{width:100%;margin-left:0}
  .wt-cookies__btn{flex:1;min-width:0}
  .wt-chat-botao{bottom:calc(var(--barra-cel,76px) + 12px);right:12px;min-height:48px;padding:0 18px;font-size:14px}
  body:has(.wt-cookies) .wt-chat-botao,body.hero-visivel .wt-chat-botao{display:none}
  .wt-chat-painel{bottom:calc(var(--barra-cel,76px) + 68px)}
}
