/* QI do Mecanico / PATCH 526 — Garagem QI: contraste pontual.
   Escopo: somente a pagina publica .gq-page-market quando a paleta global esta ativa.
   Herda a cor de destaque do painel; nao altera QI MotoClubes, Loja, Admin ou leitor PDF.
*/

/* Os seletores abaixo sobrescrevem o tema legado que deixava letras claras em botoes brancos. */
body.qi-palette-521 .gq-page-market .gq-market-switch a:not(.active){
  background:#292e37!important;border:1px solid #636c7b!important;
  color:#f8f9fc!important;box-shadow:none!important;
}
body.qi-palette-521 .gq-page-market .gq-market-switch a:not(.active)>strong,
body.qi-palette-521 .gq-page-market .gq-market-switch a:not(.active)>small{
  color:#f8f9fc!important;opacity:1!important;
}
body.qi-palette-521 .gq-page-market .gq-market-switch a:not(.active)>small{color:#d7dee9!important}
body.qi-palette-521 .gq-page-market .gq-market-switch a:not(.active):is(:hover,:focus-visible){
  background:#363d49!important;border-color:#e35c65!important;
}
body.qi-palette-521 .gq-page-market .gq-market-switch a.active{
  background:var(--qi523-action,#d52b34)!important;
  border-color:var(--qi523-action,#d52b34)!important;
  box-shadow:inset 4px 0 rgba(255,255,255,.22)!important;
  color:#fff!important;
}
body.qi-palette-521 .gq-page-market .gq-market-switch a.active>strong,
body.qi-palette-521 .gq-page-market .gq-market-switch a.active>small,
body.qi-palette-521 .gq-page-market .gq-market-switch a.active>span{
  color:#fff!important;opacity:1!important;
}

/* A busca principal e os atalhos de localizacao nao podem ter texto invisivel. */
body.qi-palette-521 .gq-page-market .gq-search .gq-chip-btn.primary{
  background:var(--qi523-action,#d52b34)!important;
  border-color:var(--qi523-action,#d52b34)!important;
  color:#fff!important;
}
body.qi-palette-521 .gq-page-market .gq-search .gq-chip-btn.primary:is(:hover,:focus-visible){
  background:var(--qi523-action-hover,#aa1d2b)!important;
  color:#fff!important;
}
body.qi-palette-521 .gq-page-market .gq-location-shortcuts .gq-chip-btn{
  background:#292e37!important;color:#fff!important;
  border:1px solid #70798a!important;
  text-shadow:none!important;opacity:1!important;
}
body.qi-palette-521 .gq-page-market .gq-location-shortcuts .gq-chip-btn.primary{
  background:var(--qi523-action,#d52b34)!important;border-color:var(--qi523-action,#d52b34)!important;color:#fff!important;
}
body.qi-palette-521 .gq-page-market .gq-location-shortcuts .gq-chip-btn:is(:hover,:focus-visible){
  border-color:#f0a4a9!important;background:#3c4350!important;color:#fff!important;
}

/* Titulos e contagem sobre fundo escuro na lista de anuncios. */
body.qi-palette-521 .gq-page-market .gq-section-head>div>h2,
body.qi-palette-521 .gq-page-market #gq-listagens h2{
  color:#f8f9fc!important;
}
body.qi-palette-521 .gq-page-market #gq-listagens p{color:#cdd6e2!important}
body.qi-palette-521 .gq-page-market #gq-listagens .gq-count{
  color:#e2e9f3!important;
}

/* Vitrine vazia: o texto e legivel, mas os links tinham branco sobre branco. */
body.qi-palette-521 .gq-page-market .gq-empty{
  background:#1c2027!important;border:1px dashed #67707f!important;
  color:#f8f9fc!important;
}
body.qi-palette-521 .gq-page-market .gq-empty>strong{color:#fff!important}
body.qi-palette-521 .gq-page-market .gq-empty>span{color:#e0e6ee!important}
body.qi-palette-521 .gq-page-market .gq-empty-actions .gq-chip-btn{
  background:#303741!important;border:1px solid #8490a1!important;
  color:#fff!important;opacity:1!important;
}
body.qi-palette-521 .gq-page-market .gq-empty-actions .gq-chip-btn.primary{
  background:var(--qi523-action,#d52b34)!important;
  border-color:var(--qi523-action,#d52b34)!important;
  color:#fff!important;
}
body.qi-palette-521 .gq-page-market .gq-empty-actions .gq-chip-btn:is(:hover,:focus-visible){
  background:#414c5b!important;border-color:#f0a4a9!important;color:#fff!important;
}
body.qi-palette-521 .gq-page-market .gq-empty-actions .gq-chip-btn.primary:is(:hover,:focus-visible){
  background:var(--qi523-action-hover,#aa1d2b)!important;color:#fff!important;
}

/* Claridade do texto nas opcoes de filtros, sem mudar os campos de formulario. */
body.qi-palette-521 .gq-page-market .gq-quick-filters>summary,
body.qi-palette-521 .gq-page-market .gq-advanced-filters>summary{color:#f8f9fc!important}
body.qi-palette-521 .gq-page-market .gq-market-switch a:focus-visible,
body.qi-palette-521 .gq-page-market .gq-chip-btn:focus-visible{
  outline:3px solid #f2a3a8!important;outline-offset:3px!important;
}
@media(max-width:680px){
  body.qi-palette-521 .gq-page-market .gq-market-switch a:not(.active)>strong{font-size:.91rem!important}
  body.qi-palette-521 .gq-page-market .gq-location-shortcuts .gq-chip-btn,
  body.qi-palette-521 .gq-page-market .gq-empty-actions .gq-chip-btn{min-height:44px!important}
}
