/*
 * Override: força conteúdo visível mesmo quando Framer Motion aplica
 * estados iniciais opacity:0/scale(0) que duram entre hidratação e animação.
 * Sacrifica algumas animações de entrada em troca de UX sem "blink" no mobile.
 */
[style*="opacity: 0"]:not([data-allow-hidden]) {
  opacity: 1 !important;
}
[style*="scale(0)"],
[style*="scale(0,"] {
  transform: none !important;
}

/* ==========================================================================
   Tabela de Taxas — redesign limpo (apenas PIX + Cartão)
   ========================================================================== */
[data-rates-card] {
  padding: 32px !important;
}

/* Linhas: aumenta padding, cria respiro entre elas */
[data-rate-row] {
  padding: 24px 0 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease;
  border-radius: 12px;
  align-items: center !important;
}
[data-rate-row]:last-of-type {
  border-bottom: none;
}

/* Highlight do PIX (taxa-campeã): fundo amarelo sutil + borda à esquerda */
[data-rate-row="pix"] {
  background: linear-gradient(90deg, rgba(254, 242, 15, 0.18), transparent 70%);
  padding-left: 16px !important;
  padding-right: 16px !important;
  border-left: 4px solid #FEF20F;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin: 8px 0 !important;
}

/* Coluna 1: nome do meio - maior e bold */
[data-rate-row] > div:first-child {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #000 !important;
}
@media (min-width: 768px) {
  [data-rate-row] > div:first-child {
    font-size: 1.35rem !important;
  }
}

/* Coluna 2: TAXA - destaque visual principal */
[data-rate-row] > div:nth-child(2) {
  font-size: 2.5rem !important;
  font-weight: 800 !important;
  font-family: 'Oswald', 'Raleway', sans-serif !important;
  color: #000 !important;
  letter-spacing: -0.02em;
  line-height: 1 !important;
}
@media (min-width: 768px) {
  [data-rate-row] > div:nth-child(2) {
    font-size: 3.5rem !important;
  }
}
[data-rate-row="pix"] > div:nth-child(2) {
  color: #b89a00 !important;
}

/* Coluna 3: prazo - leve, secundário */
[data-rate-row] > div:nth-child(3) {
  font-size: 0.95rem !important;
  font-weight: 600 !important;
  color: #555 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
@media (min-width: 768px) {
  [data-rate-row] > div:nth-child(3) {
    font-size: 1.05rem !important;
  }
}

/* Bolinha do meio: maior e com glow no PIX */
[data-rate-row] > div:first-child > div[class*="rounded-full"] {
  width: 14px !important;
  height: 14px !important;
}
[data-rate-row="pix"] > div:first-child > div[class*="rounded-full"] {
  box-shadow: 0 0 12px rgba(254, 242, 15, 0.7);
}

/* Esconde a linha de "Cartão à vista" caso ainda apareça antes do patch JS rodar */
[data-rate-row-hidden] {
  display: none !important;
}

/* Top promo bar: no mobile o "Fale com a gente!" fica espremido. Esconde abaixo de 768px */
@media (max-width: 767px) {
  /* Botão "Fale com a gente!" dentro da barra promo amarela fixa */
  .fixed.top-0.bg-\[\#FEF20F\] button,
  .fixed.top-0.bg-\[\#FEF20F\] a[class*="border"],
  div[class*="fixed"][class*="top-0"][class*="bg-[#FEF20F]"] button {
    display: none !important;
  }
  /* Texto da promo: maior font + padding */
  .fixed.top-0.bg-\[\#FEF20F\],
  div[class*="fixed"][class*="top-0"][class*="bg-[#FEF20F]"] {
    padding: 4px 12px !important;
    font-size: 11px !important;
  }
}

/* Logos das marcas: força contraste em fundos escuros (botão selecionado) */
button.bg-black img[data-brand-logo],
.bg-black img[data-brand-logo],
[class*="bg-black"] > img[data-brand-logo],
[class*="bg-black"] img[data-brand-logo] {
  filter: brightness(1.1) contrast(1.1);
}

/* "Principais Ferramentas" pills: padroniza largura para visual uniforme no marquee */
.bg-gray-100[class*="min-w-[150px]"],
[class*="min-w-[150px]"][class*="rounded-xl"] {
  min-width: 200px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap;
}

/* Logo dentro das pills do marquee fica mais discreto e centralizado */
[class*="rounded-xl"] > img[data-brand-logo] {
  width: 22px !important;
  height: 22px !important;
  margin-right: 8px !important;
}

/* WhatsApp button SEMPRE visível (workaround scale(0) inicial) */
a[href*="wa.me"][class*="fixed"],
a[href*="whatsapp.com"][class*="fixed"] {
  transform: none !important;
  opacity: 1 !important;
}

/* Acessibilidade: respeitar prefer�ncia de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Foco vis�vel acess�vel em qualquer fundo */
*:focus-visible {
  outline: 2px solid #FEF20F;
  outline-offset: 2px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.7);
}

/* Touch targets m�nimos (WCAG AAA: 44x44) */
@media (pointer: coarse) {
  button, a, [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* Banner LGPD */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  z-index: 99999;
  font-family: 'Raleway', sans-serif;
  font-size: 14px;
  border-top: 2px solid #FEF20F;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.lgpd-banner.visible {
  transform: translateY(0);
}
.lgpd-banner p {
  margin: 0;
  flex: 1;
  min-width: 250px;
}
.lgpd-banner a {
  color: #FEF20F;
  text-decoration: underline;
}
.lgpd-banner button {
  background: #FEF20F;
  color: #000;
  border: none;
  padding: 10px 24px;
  font-weight: 700;
  font-family: 'Oswald', sans-serif;
  cursor: pointer;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}
.lgpd-banner button:hover {
  background: #fff;
}
.lgpd-banner .lgpd-decline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

/* Contraste WCAG AA: texto sobre amarelo deve ser preto */
[class*="bg-[#FEF20F]"],
[class*="bg-yellow"],
.bg-\[\#FEF20F\] {
  color: #000 !important;
}
[class*="bg-[#FEF20F]"] *,
.bg-\[\#FEF20F\] * {
  color: #000 !important;
}

/* Garante que botões CTA com fundo amarelo tenham texto preto bold */
button[class*="bg-[#FEF20F]"],
a[class*="bg-[#FEF20F]"] {
  color: #000 !important;
  font-weight: 700;
}

/* Skip link para acessibilidade */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #FEF20F;
  color: #000;
  padding: 8px 16px;
  z-index: 100000;
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 4px 0;
}
.skip-link:focus {
  top: 0;
}
