/* Botão flutuante do WhatsApp. O mesmo arquivo desenha a prévia em Aparência › Botão do WhatsApp. */

.whatsapp-float {
  --wa: #25d366;
  --wa-strong: #1aa64f;
  --wa-ink: #0f7a3d;
  --wa-grad: linear-gradient(140deg, #2fdc74 0%, #1fb456 100%);
  --wa-shadow: 0 14px 30px -10px rgba(16, 122, 61, .55), 0 4px 12px rgba(4, 21, 47, .12);
  --wa-card-ink: var(--ink, #0b1f3a);
  --wa-card-muted: var(--muted, #5b6b80);
  --wa-card-line: var(--line, #e3e8ef);
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .25s ease, transform .25s ease, box-shadow .2s ease, background-color .2s ease;
}
.whatsapp-float.wa-esquerda { right: auto; left: 24px; }
.whatsapp-float.is-hidden { opacity: 0; transform: translateY(16px); pointer-events: none; }
.whatsapp-float:focus-visible { outline: 3px solid color-mix(in srgb, var(--wa) 55%, #fff); outline-offset: 3px; }
.whatsapp-float .wa-icon { display: grid; place-items: center; flex: none; }
.whatsapp-float .wa-icon .icon { width: 26px; height: 26px; }
.whatsapp-float .wa-text { display: grid; gap: 1px; }
.whatsapp-float .wa-text strong { font-weight: inherit; }
.whatsapp-float .wa-text small { font-size: 12px; font-weight: 600; }

/* Rótulo que aparece ao passar o mouse (Círculo e Nas cores do site) */
.wa-circulo .wa-text, .wa-marca .wa-text {
  position: absolute;
  top: 50%;
  right: calc(100% + 12px);
  padding: 8px 12px;
  border-radius: 9px;
  color: #fff;
  background: #0b1f3a;
  box-shadow: 0 8px 20px rgba(4, 21, 47, .22);
  font-size: 13.5px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(6px, -50%);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
}
.wa-circulo.wa-esquerda .wa-text, .wa-marca.wa-esquerda .wa-text { right: auto; left: calc(100% + 12px); transform: translate(-6px, -50%); }
.wa-circulo:hover .wa-text, .wa-circulo:focus-visible .wa-text,
.wa-marca:hover .wa-text, .wa-marca:focus-visible .wa-text { opacity: 1; transform: translate(0, -50%); }

/* Pílula: ícone em um círculo branco dentro do botão verde */
.wa-pilula { height: 58px; padding: 6px 22px 6px 6px; border-radius: 29px; background: var(--wa-grad); box-shadow: var(--wa-shadow); }
.wa-pilula .wa-icon { width: 46px; height: 46px; border-radius: 50%; color: var(--wa-strong); background: #fff; }
.wa-pilula .wa-icon .icon { width: 25px; height: 25px; }
.wa-pilula:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(16, 122, 61, .6), 0 6px 14px rgba(4, 21, 47, .14); }

/* Círculo: só o ícone */
.wa-circulo { width: 62px; height: 62px; justify-content: center; border-radius: 50%; background: var(--wa-grad); box-shadow: var(--wa-shadow); }
.wa-circulo .wa-icon .icon { width: 31px; height: 31px; }
.wa-circulo:hover { transform: translateY(-2px) scale(1.03); }

/* Círculo que abre em pílula ao passar o mouse */
.wa-expandir { height: 60px; padding: 0 17px; gap: 0; border-radius: 30px; background: var(--wa-grad); box-shadow: var(--wa-shadow); }
.wa-expandir .wa-icon .icon { width: 26px; height: 26px; }
.wa-expandir .wa-text { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0; transition: max-width .35s ease, opacity .25s ease, margin .35s ease; }
.wa-expandir:hover .wa-text, .wa-expandir:focus-visible .wa-text { max-width: 260px; margin-left: 10px; opacity: 1; }

/* Discreto: círculo branco menor */
.wa-discreto { width: 50px; height: 50px; justify-content: center; border: 1px solid var(--wa-card-line); border-radius: 50%; color: var(--wa-strong); background: #fff; box-shadow: 0 10px 24px -10px rgba(4, 21, 47, .35); }
.wa-discreto .wa-icon .icon { width: 26px; height: 26px; }
.wa-discreto:hover { color: #fff; border-color: transparent; background: var(--wa-grad); transform: translateY(-2px); }

/* Contorno: pílula branca com borda verde */
.wa-contorno { height: 54px; padding: 0 20px 0 15px; border: 2px solid var(--wa); border-radius: 27px; color: var(--wa-ink); background: #fff; box-shadow: 0 12px 26px -12px rgba(16, 122, 61, .45); }
.wa-contorno .wa-icon { color: var(--wa-strong); }
.wa-contorno:hover { color: #fff; background: var(--wa-strong); transform: translateY(-2px); }
.wa-contorno:hover .wa-icon { color: #fff; }

/* Escuro: pílula grafite */
.wa-escuro { height: 58px; padding: 6px 22px 6px 6px; border-radius: 29px; color: #fff; background: #111b21; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
.wa-escuro .wa-icon { width: 46px; height: 46px; border-radius: 50%; color: #fff; background: var(--wa-grad); }
.wa-escuro .wa-icon .icon { width: 25px; height: 25px; }
.wa-escuro .wa-text small { color: #9fb3ad; }
.wa-escuro:hover { background: #1f2c33; transform: translateY(-2px); }

/* Barra inferior: aba presa na borda de baixo */
.wa-barra { bottom: 0; gap: 9px; padding: 12px 20px 13px; border-radius: 14px 14px 0 0; background: var(--wa-grad); box-shadow: 0 -6px 24px -8px rgba(16, 122, 61, .55); font-size: 14.5px; }
.wa-barra .wa-icon .icon { width: 22px; height: 22px; }
.wa-barra:hover { padding-bottom: 17px; }
.wa-barra.is-hidden { transform: translateY(100%); }

/* Balão de conversa: chamada em um balão com ponta, ao lado do círculo */
.wa-balao { gap: 14px; color: var(--wa-card-ink); }
.wa-balao .wa-icon { width: 60px; height: 60px; border-radius: 50%; color: #fff; background: var(--wa-grad); box-shadow: var(--wa-shadow); transition: transform .2s; }
.wa-balao .wa-icon .icon { width: 30px; height: 30px; }
.wa-balao .wa-text { order: -1; position: relative; padding: 11px 16px 12px; border: 1px solid var(--wa-card-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 28px -8px rgba(4, 21, 47, .22); font-size: 14.5px; }
.wa-balao .wa-text::after { content: ""; position: absolute; top: 50%; right: -7px; width: 12px; height: 12px; margin-top: -6px; border: solid var(--wa-card-line); border-width: 1px 1px 0 0; background: #fff; transform: rotate(45deg); }
.wa-balao .wa-text small { color: var(--wa-card-muted); }
.wa-balao.wa-esquerda .wa-text { order: 1; }
.wa-balao.wa-esquerda .wa-text::after { right: auto; left: -7px; border-width: 0 0 1px 1px; }
.wa-balao:hover .wa-icon { transform: translateY(-2px); }

/* Cartão: duas linhas em um cartão branco, com seta */
.wa-cartao { gap: 12px; padding: 9px 16px 9px 9px; border: 1px solid var(--wa-card-line); border-radius: 18px; color: var(--wa-card-ink); background: #fff; box-shadow: 0 16px 36px -12px rgba(4, 21, 47, .3), 0 2px 6px rgba(4, 21, 47, .06); }
.wa-cartao .wa-icon { width: 46px; height: 46px; border-radius: 14px; color: #fff; background: var(--wa-grad); }
.wa-cartao .wa-text small { color: var(--wa-ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wa-cartao .wa-text strong { font-size: 15px; }
.wa-cartao::after { content: ""; flex: none; width: 8px; height: 8px; margin: 0 2px 0 6px; border: solid var(--wa-card-muted); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s, border-color .2s; }
.wa-cartao:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -12px rgba(4, 21, 47, .34), 0 2px 6px rgba(4, 21, 47, .06); }
.wa-cartao:hover::after { border-color: var(--wa-strong); transform: translateX(2px) rotate(45deg); }

/* Aba lateral presa na borda da tela */
.wa-aba { top: 50%; right: 0; bottom: auto; flex-direction: column; gap: 12px; padding: 12px 10px 18px; border-radius: 16px 0 0 16px; background: var(--wa-grad); box-shadow: -6px 10px 28px -10px rgba(16, 122, 61, .6); font-size: 14px; letter-spacing: .01em; transform: translateY(-50%); }
.wa-aba .wa-icon { width: 34px; height: 34px; border-radius: 50%; color: var(--wa-strong); background: #fff; }
.wa-aba .wa-icon .icon { width: 20px; height: 20px; }
.wa-aba .wa-text { writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.wa-aba:hover { padding-right: 14px; }
.wa-aba.wa-esquerda { right: auto; left: 0; border-radius: 0 16px 16px 0; box-shadow: 6px 10px 28px -10px rgba(16, 122, 61, .6); }
.wa-aba.wa-esquerda:hover { padding-right: 10px; padding-left: 14px; }
.wa-aba.is-hidden { transform: translateY(-50%) translateX(14px); }
.wa-aba.wa-esquerda.is-hidden { transform: translateY(-50%) translateX(-14px); }

/* Nas cores do site: quadrado arredondado na cor principal do modelo */
.wa-marca { width: 58px; height: 58px; justify-content: center; border-radius: var(--radius-btn, 14px); color: #fff; background: var(--brand-navy, #071f42); box-shadow: 0 14px 30px -10px color-mix(in srgb, var(--brand-navy-deep, #04152f) 70%, transparent); }
.wa-marca .wa-icon .icon { width: 28px; height: 28px; }
.wa-marca::before { content: ""; position: absolute; top: 9px; right: 9px; width: 9px; height: 9px; border: 2px solid var(--brand-navy, #071f42); border-radius: 50%; background: var(--wa); }
.wa-marca:hover { transform: translateY(-2px); background: var(--brand-navy-deep, #04152f); }
.wa-marca:hover::before { border-color: var(--brand-navy-deep, #04152f); }

/* ---------- Animações (classe wa-anim-*, valem para qualquer estilo) ---------- */
.wa-fx { display: none; }
.wa-anim-pulsar .wa-fx, .wa-anim-ondas .wa-fx, .wa-anim-brilho .wa-fx, .wa-anim-aviso .wa-fx { display: block; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; }
.wa-balao .wa-fx { top: 50%; right: 0; bottom: auto; left: auto; width: 60px; height: 60px; margin-top: -30px; border-radius: 50%; }
.wa-balao.wa-esquerda .wa-fx { right: auto; left: 0; }

/* Anel pulsante: um halo verde cheio que se espalha e some */
.wa-anim-pulsar .wa-fx { animation: wa-anel 2.4s ease-out infinite; }

/* Ondas: dois contornos finos que se afastam, como sinal de rádio */
.wa-anim-ondas .wa-fx::before, .wa-anim-ondas .wa-fx::after { content: ""; position: absolute; inset: 0; border: 2px solid var(--wa); border-radius: inherit; opacity: 0; animation: wa-ondas 2.6s cubic-bezier(.2, .6, .35, 1) infinite; }
.wa-anim-ondas .wa-fx::after { animation-delay: 1.3s; }

/* Brilho: reflexo de luz atravessando o botão */
.wa-anim-brilho .wa-fx { z-index: 1; overflow: hidden; }
.wa-anim-brilho .wa-fx::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-18deg); animation: wa-brilho 3.6s ease-in-out infinite; }
.wa-anim-brilho:is(.wa-contorno, .wa-discreto, .wa-cartao) .wa-fx::before { background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--wa) 30%, transparent), transparent); }

/* Respirar: cresce devagar e ganha uma sombra verde */
.wa-anim-respirar:not(.wa-balao), .wa-anim-respirar.wa-balao .wa-icon { animation: wa-respirar 3.4s ease-in-out infinite; }

/* Telefone tocando: o ícone vibra em rajadas curtas */
.wa-anim-tocar .wa-icon .icon { animation: wa-tocar 3.2s ease-in-out infinite; transform-origin: 50% 55%; }

/* Saltar: pula, achata ao tocar o chão e se ajeita */
.wa-anim-quicar:not(.wa-balao):not(.wa-aba):not(.wa-barra), .wa-anim-quicar.wa-balao .wa-icon, .wa-anim-quicar:is(.wa-aba, .wa-barra) .wa-icon { animation: wa-quicar 3.6s ease infinite; transform-origin: 50% 100%; }

/* Notificação: um selo vermelho com “1” aparece, como mensagem nova */
.wa-anim-aviso .wa-fx { z-index: 2; }
.wa-anim-aviso .wa-fx::after { content: "1"; position: absolute; top: -5px; right: -5px; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 5px; border: 2px solid #fff; border-radius: 11px; color: #fff; background: #e5332a; box-shadow: 0 3px 8px rgba(229, 51, 42, .45); font-size: 11.5px; font-weight: 800; line-height: 1; animation: wa-aviso 6s 1s ease infinite backwards; }
.wa-anim-aviso.wa-esquerda .wa-fx::after { right: auto; left: -5px; }
.wa-anim-aviso.wa-aba .wa-fx::after { top: -8px; right: auto; left: -6px; }
.wa-anim-aviso.wa-barra .wa-fx::after { top: -9px; }

/* Mostrar o texto ao abrir */
.wa-anim-lembrete:is(.wa-circulo, .wa-marca, .wa-discreto) .wa-text { animation: wa-lembrete 7s 2.5s 1 backwards; }
.wa-anim-lembrete.wa-esquerda:is(.wa-circulo, .wa-marca, .wa-discreto) .wa-text { animation-name: wa-lembrete-esq; }
.wa-anim-lembrete.wa-expandir .wa-text { animation: wa-lembrete-abre 7s 2.5s 1 backwards; }
.wa-anim-lembrete.wa-expandir:hover .wa-text { animation: none; }

@keyframes wa-anel { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--wa) 55%, transparent); } 75%, 100% { box-shadow: 0 0 0 20px color-mix(in srgb, var(--wa) 0%, transparent); } }
@keyframes wa-ondas { 0% { inset: 0; opacity: .85; } 100% { inset: -22px; opacity: 0; } }
@keyframes wa-brilho { 0%, 50% { left: -60%; } 80%, 100% { left: 130%; } }
@keyframes wa-respirar {
  0%, 100% { scale: 1; filter: drop-shadow(0 0 0 color-mix(in srgb, var(--wa) 0%, transparent)); }
  50% { scale: 1.1; filter: drop-shadow(0 0 14px color-mix(in srgb, var(--wa) 60%, transparent)); }
}
@keyframes wa-tocar {
  0%, 100% { rotate: 0deg; }
  3%, 11%, 19% { rotate: -20deg; } 7%, 15%, 23% { rotate: 20deg; }
  27% { rotate: 0deg; }
  37%, 45% { rotate: -16deg; } 41%, 49% { rotate: 16deg; }
  53% { rotate: 0deg; }
}
@keyframes wa-quicar {
  0%, 52%, 100% { translate: 0 0; scale: 1 1; }
  58% { translate: 0 0; scale: 1.08 .9; }
  68% { translate: 0 -18px; scale: .95 1.06; }
  78% { translate: 0 0; scale: 1.1 .88; }
  85% { translate: 0 -5px; scale: 1 1; }
  92% { translate: 0 0; scale: 1.03 .97; }
}
@keyframes wa-aviso { 0%, 6% { scale: 0; } 11% { scale: 1.3; } 15%, 82% { scale: 1; } 88%, 100% { scale: 0; } }
@keyframes wa-lembrete { 0% { opacity: 0; transform: translate(6px, -50%); } 6%, 90% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; transform: translate(6px, -50%); } }
@keyframes wa-lembrete-esq { 0% { opacity: 0; transform: translate(-6px, -50%); } 6%, 90% { opacity: 1; transform: translate(0, -50%); } 100% { opacity: 0; transform: translate(-6px, -50%); } }
@keyframes wa-lembrete-abre { 0%, 100% { max-width: 0; margin-left: 0; opacity: 0; } 8%, 88% { max-width: 260px; margin-left: 10px; opacity: 1; } }

/* Rótulo do Discreto ao passar o mouse */
.wa-discreto .wa-text { position: absolute; top: 50%; right: calc(100% + 12px); padding: 8px 12px; border-radius: 9px; color: #fff; background: #0b1f3a; box-shadow: 0 8px 20px rgba(4, 21, 47, .22); font-size: 13.5px; white-space: nowrap; opacity: 0; transform: translate(6px, -50%); pointer-events: none; transition: opacity .18s, transform .18s; }
.wa-discreto.wa-esquerda .wa-text { right: auto; left: calc(100% + 12px); transform: translate(-6px, -50%); }
.wa-discreto:hover .wa-text, .wa-discreto:focus-visible .wa-text { opacity: 1; transform: translate(0, -50%); }

@media (max-width: 760px) {
  .whatsapp-float:not(.wa-aba):not(.wa-barra) { right: 16px; bottom: 16px; }
  .whatsapp-float.wa-esquerda:not(.wa-aba):not(.wa-barra) { right: auto; left: 16px; }
  .wa-pilula, .wa-cartao, .wa-contorno, .wa-escuro, .wa-expandir { width: 56px; height: 56px; padding: 0; justify-content: center; border: 0; border-radius: 50%; color: #fff; background: var(--wa-grad); box-shadow: var(--wa-shadow); }
  .wa-pilula .wa-text, .wa-cartao .wa-text, .wa-balao .wa-text, .wa-circulo .wa-text, .wa-marca .wa-text, .wa-contorno .wa-text, .wa-escuro .wa-text, .wa-expandir .wa-text, .wa-discreto .wa-text { display: none; }
  .wa-pilula .wa-icon, .wa-cartao .wa-icon, .wa-contorno .wa-icon, .wa-escuro .wa-icon { width: auto; height: auto; color: #fff; background: none; }
  .wa-pilula .wa-icon .icon, .wa-cartao .wa-icon .icon, .wa-contorno .wa-icon .icon, .wa-escuro .wa-icon .icon { width: 28px; height: 28px; }
  .wa-escuro { background: #111b21; }
  .wa-escuro .wa-icon { color: var(--wa); }
  .wa-cartao::after { display: none; }
  .wa-balao .wa-icon, .wa-circulo { width: 56px; height: 56px; }
  .wa-balao .wa-fx { width: 56px; height: 56px; margin-top: -28px; }
  .wa-marca { width: 54px; height: 54px; }
  .wa-aba { gap: 10px; padding: 10px 8px 14px; font-size: 12.5px; }
  .wa-aba .wa-icon { width: 30px; height: 30px; }
  .wa-barra, .wa-barra.wa-esquerda { right: 0; left: 0; justify-content: center; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); border-radius: 0; }
  .wa-barra:hover { padding-bottom: calc(13px + env(safe-area-inset-bottom)); }
  body:has(.wa-barra) { padding-bottom: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-float *, .whatsapp-float .wa-fx::before, .whatsapp-float .wa-fx::after { animation: none !important; }
  .whatsapp-float:hover, .wa-balao:hover .wa-icon { transform: none; }
  .wa-aba:hover { transform: translateY(-50%); }
}

/* Prévia no painel: o botão fica dentro do quadro, com o texto à mostra */
.whatsapp-float.is-demo { position: absolute; right: 16px; bottom: 16px; z-index: 1; pointer-events: none; transform: none; }
.whatsapp-float.is-demo.wa-aba { top: 50%; right: 0; bottom: auto; transform: translateY(-50%); }
.whatsapp-float.is-demo.wa-barra { bottom: 0; }
.whatsapp-float.is-demo:is(.wa-circulo, .wa-marca, .wa-discreto) .wa-text { opacity: 1; transform: translate(0, -50%); animation: none; }
.whatsapp-float.is-demo.wa-expandir .wa-text { max-width: 260px; margin-left: 10px; opacity: 1; animation: none; }

/* Miniaturas das animações no painel: só o círculo, para comparar o movimento */
.whatsapp-float.is-demo.is-mini .wa-text { display: none; }
.whatsapp-float.is-demo.is-mini.wa-anim-lembrete .wa-text { display: grid; animation: wa-lembrete 4s .4s infinite backwards; }
