/*
 * Padrões de conversão de todas as landing pages do modelo novo (e das publicadas pelo ERP).
 * Mudou aqui, mudou em todas no próximo deploy. Os seletores levam "html body" para vencer o CSS de cada página.
 */

/* Botões que abrem o WhatsApp: ícone antes do texto e frase de reforço embaixo */
html body a.button[href^='https://wa.me']:not(:has(img)) {
  position: relative;
  margin-bottom: 1.75rem;
  text-wrap: balance;
}

html body a.button[href^='https://wa.me']:not(:has(img))::before {
  content: '';
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  margin-right: 0.5em;
  vertical-align: -0.25em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-84 -140 726 842'%3E%3Cpath fill-rule='evenodd' d='m407 336-47-22c-7-3-11-4-16 3l-22 27c-4 5-8 6-15 2-7-3-29-11-56-34-21-19-34-42-39-48-4-7 0-11 4-15l10-12 7-11c2-5 1-9-1-13l-21-51c-6-14-11-12-16-12h-13c-5 0-12 1-19 8-6 7-24 24-24 58s25 68 28 72c4 5 49 75 119 105a399 399 0 0 0 40 15c16 5 32 4 44 2 13-2 41-16 46-33 6-16 6-30 4-33-1-3-6-4-13-8M280 509a231 231 0 0 1-117-32l-9-5-87 23 23-85-5-9a231 231 0 0 1-36-123C49 151 153 47 280 47a230 230 0 0 1 164 68 230 230 0 0 1 68 163 232 232 0 0 1-232 231M477 82A278 278 0 0 0 2 279a278 278 0 0 0 37 138L0 561l147-39a278 278 0 0 0 133 34A278 278 0 0 0 477 82'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-84 -140 726 842'%3E%3Cpath fill-rule='evenodd' d='m407 336-47-22c-7-3-11-4-16 3l-22 27c-4 5-8 6-15 2-7-3-29-11-56-34-21-19-34-42-39-48-4-7 0-11 4-15l10-12 7-11c2-5 1-9-1-13l-21-51c-6-14-11-12-16-12h-13c-5 0-12 1-19 8-6 7-24 24-24 58s25 68 28 72c4 5 49 75 119 105a399 399 0 0 0 40 15c16 5 32 4 44 2 13-2 41-16 46-33 6-16 6-30 4-33-1-3-6-4-13-8M280 509a231 231 0 0 1-117-32l-9-5-87 23 23-85-5-9a231 231 0 0 1-36-123C49 151 153 47 280 47a230 230 0 0 1 164 68 230 230 0 0 1 68 163 232 232 0 0 1-232 231M477 82A278 278 0 0 0 2 279a278 278 0 0 0 37 138L0 561l147-39a278 278 0 0 0 133 34A278 278 0 0 0 477 82'/%3E%3C/svg%3E") center / contain no-repeat;
}

html body a.button[href^='https://wa.me']:not(:has(img))::after {
  content: 'Atendimento pelo WhatsApp · Sem compromisso';
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-color-foreground, #555);
  pointer-events: none;
}

@media (max-width: 767px) {
  /* Fonte e respiro menores para o texto do botão caber em uma linha (até ~24 caracteres em telas de 360px) */
  html body a.button[href^='https://wa.me'] {
    padding: 16px 20px;
    font-size: 0.9rem;
  }

  /* O botão redondo flutuante vira uma barra fixa no rodapé da tela */
  html body .whatsapp-btn {
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: 56px;
    padding: 0 16px;
    gap: 10px;
    border-radius: 0;
    animation: none;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.15);
  }

  html body .whatsapp-btn img {
    width: 26px;
    height: 26px;
    animation: none;
  }

  html body .whatsapp-btn::after {
    content: 'Falar no WhatsApp';
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  html body {
    padding-bottom: 56px;
  }
}
