
/* ==========================================================================
   Viatura Core Engine v0.7.3.11 — Visual Guard
   --------------------------------------------------------------------------
   Objetivo: tornar todos os componentes públicos do plugin independentes do
   modo claro/escuro do tema. A estratégia é "daylight": fundo claro + texto
   escuro + links vermelhos, com seletor forte e carregamento no footer.
   ========================================================================== */

/* 1) Raiz VCE: impedir que o tema force dark color-scheme ou opacity/filter. */
html body :is(
  .vce-vehicle-page,
  .vce-ficha-tecnica,
  .vce-ficha-tecnica-pro,
  .vce-public-catalog,
  .vce-catalog-wrap,
  .vce-catalog-section,
  .vce-cost-rankings-page,
  .vce-comparator,
  .vce-tco-simulator,
  .vce-siv-card,
  .vce-vehicle-related,
  .vce-vehicle-alternatives,
  .vce-vehicle-deep-links,
  .vce-intelligent-links
){
  color-scheme: light !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

/* 2) Ilhas claras: superfícies principais do plugin. */
html body :is(
  .vce-card,
  .vce-panel,
  .vce-theme-card,
  .vce-catalog-card,
  .vce-term-card,
  .vce-stat-card,
  .vce-catalog-section,
  .vce-comparator,
  .vce-comparator-form,
  .vce-comparator-table-wrap,
  .vce-comparator-tco-table-wrap,
  .vce-tco-simulator,
  .vce-ranking-table-wrap,
  .vce-ranking-seo-intro,
  .vce-ranking-highlight-card,
  .vce-ranking-hub-card,
  .vce-cost-rankings-page,
  .vce-siv-card,
  .vce-siv-explain,
  .vce-siv-profile,
  .vce-siv-profile-item,
  .vce-siv-component,
  .vce-cost-badges,
  .vce-cost-hub-links,
  .vce-vehicle-related,
  .vce-vehicle-related-list,
  .vce-vehicle-alternatives,
  .vce-vehicle-deep-links,
  .vce-related-vehicle-card,
  .vce-alternative-card,
  .vce-intelligent-links,
  .vce-intelligent-link-card,
  .vce-smart-summary,
  .vce-auto-highlights,
  .vce-vehicle-highlights,
  .vce-brand-costs,
  .vce-quality-card,
  .vce-quality-section,
  .vce-seo-block,
  .vce-seo-links,
  .vce-related-categories,
  .vce-quick-links,
  .vce-ranking-actions
){
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #071426 !important;
  border-color: #d7dee8 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

/* 3) Texto textual dentro de componentes VCE.
   Nota: evitamos spans genéricos para não afetar barras/progressos. */
html body [class*="vce-"] :is(h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,th,td,strong,em,small,figcaption),
html body [class*="vce-"] .vce-catalog-eyebrow,
html body [class*="vce-"] .vce-related-kicker,
html body [class*="vce-"] .vce-related-meta,
html body [class*="vce-"] .vce-ranking-note,
html body [class*="vce-"] .vce-note,
html body [class*="vce-"] .vce-catalog-lead{
  color: #071426 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

/* 4) Texto secundário controlado. */
html body [class*="vce-"] :is(p,small,em),
html body [class*="vce-"] .vce-related-meta,
html body [class*="vce-"] .vce-ranking-note,
html body [class*="vce-"] .vce-note,
html body [class*="vce-"] .vce-catalog-lead{
  color: #334155 !important;
}

/* 5) Links e botões tipo pill. */
html body [class*="vce-"] a,
html body [class*="vce-"] a :is(strong,em,small){
  color: #ef233c !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
html body :is(.vce-badge,.vce-chip,.vce-pill,.vce-ranking-actions a,.vce-quick-links a,.vce-cost-badges a,.vce-cost-hub-links a,.vce-catalog-button,.vce-button,.vce-tco-winner-badge,.vce-auto-highlights a,.vce-vehicle-highlights a){
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #071426 !important;
  border: 1px solid #d7dee8 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
html body :is(.vce-badge,.vce-chip,.vce-pill,.vce-ranking-actions a,.vce-quick-links a,.vce-cost-badges a,.vce-cost-hub-links a,.vce-catalog-button,.vce-button,.vce-tco-winner-badge,.vce-auto-highlights a,.vce-vehicle-highlights a) :is(strong,em,small,span){
  color: inherit !important;
  opacity: 1 !important;
}

/* 6) Botões principais vermelhos. */
html body :is(.vce-comparator-submit,.vce-compare-toggle,.vce-compare-go,.vce-compare-clear,button.vce-comparator-submit,button.vce-compare-toggle,.vce-catalog-filters button){
  background: #ef233c !important;
  background-color: #ef233c !important;
  color: #ffffff !important;
  border-color: #ef233c !important;
}
html body :is(.vce-comparator-submit,.vce-compare-toggle,.vce-compare-go,.vce-compare-clear,button.vce-comparator-submit,button.vce-compare-toggle,.vce-catalog-filters button) *{
  color:#ffffff !important;
}

/* 7) Inputs/selects. */
html body [class*="vce-"] :is(input,select,textarea),
html body .vce-catalog-filters :is(input,select,textarea){
  color-scheme: light !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #071426 !important;
  border-color: #cbd5e1 !important;
  opacity: 1 !important;
}
html body [class*="vce-"] select option{
  background:#ffffff !important;
  color:#071426 !important;
}

/* 8) Tabelas. */
html body [class*="vce-"] table,
html body [class*="vce-"] table :is(thead,tbody,tr,th,td),
html body :is(.vce-comparator-table,.vce-comparator-tco-table,.vce-tco-dynamic-table,.vce-ranking-table),
html body :is(.vce-comparator-table,.vce-comparator-tco-table,.vce-tco-dynamic-table,.vce-ranking-table) :is(thead,tbody,tr,th,td){
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#071426 !important;
  border-color:#d7dee8 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}
html body [class*="vce-"] table :is(th,thead th),
html body :is(.vce-comparator-section-row th,.vce-comparator-section-row td){
  background:#f1f5f9 !important;
  background-color:#f1f5f9 !important;
  color:#071426 !important;
}
html body [class*="vce-"] table :is(th,td) *{
  color:inherit !important;
  opacity:1 !important;
}
html body .vce-ranking-table .vce-ranking-main-metric{
  background:#fff1f2 !important;
  background-color:#fff1f2 !important;
  color:#ef233c !important;
}

/* 9) SIV — correção explícita para fichas técnicas. */
html body .vce-siv-card{
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#071426 !important;
  border-color:#d7dee8 !important;
}
html body .vce-siv-card :is(.vce-catalog-eyebrow,.vce-siv-score-row,.vce-siv-explain,.vce-siv-profile,.vce-siv-profile-grid,.vce-siv-components){
  background:transparent !important;
  background-color:transparent !important;
  color:#071426 !important;
  opacity:1 !important;
}
html body .vce-siv-card .vce-siv-profile,
html body .vce-siv-card .vce-siv-component,
html body .vce-siv-card .vce-siv-profile-item{
  background:#f8fafc !important;
  background-color:#f8fafc !important;
  color:#071426 !important;
  border-color:#d7dee8 !important;
  opacity:1 !important;
}
html body .vce-siv-card :is(h2,h3,p,strong,em,small,label),
html body .vce-siv-card .vce-siv-score-row :is(h2,strong,p),
html body .vce-siv-card .vce-siv-profile-head :is(h3,p),
html body .vce-siv-card .vce-siv-profile-title strong,
html body .vce-siv-card .vce-siv-profile-rating :is(span,em),
html body .vce-siv-card .vce-siv-profile-item small,
html body .vce-siv-card .vce-siv-explain :is(h3,p),
html body .vce-siv-card .vce-siv-component :is(strong,small,em){
  color:#071426 !important;
  opacity:1 !important;
  filter:none !important;
  text-shadow:none !important;
}
html body .vce-siv-card .vce-catalog-eyebrow{
  color:#ef233c !important;
}
html body .vce-siv-card .vce-siv-score-row p,
html body .vce-siv-card .vce-siv-profile-head p,
html body .vce-siv-card .vce-siv-profile-item small,
html body .vce-siv-card .vce-siv-component small,
html body .vce-siv-card .vce-ranking-note{
  color:#334155 !important;
}

/* 10) Barras SIV: só a barra é colorida; o texto fica fora da barra e legível. */
html body .vce-siv-card .vce-siv-component > span,
html body .vce-siv-card .vce-siv-profile-bar,
html body .vce-siv-card .vce-progress{
  display:block !important;
  height:10px !important;
  border-radius:999px !important;
  background:#e5e7eb !important;
  background-color:#e5e7eb !important;
  color:transparent !important;
  overflow:hidden !important;
  opacity:1 !important;
}
html body .vce-siv-card .vce-siv-component > span *,
html body .vce-siv-card .vce-siv-profile-bar *,
html body .vce-siv-card .vce-progress *{
  color:transparent !important;
}
html body .vce-siv-card .vce-siv-component > span i,
html body .vce-siv-card .vce-siv-profile-bar i,
html body .vce-siv-card .vce-progress i{
  display:block !important;
  height:100% !important;
  border-radius:999px !important;
  background:#16a34a !important;
  background-color:#16a34a !important;
}

/* 11) Relacionadas/alternativas/ligações internas. */
html body :is(.vce-related-vehicle-card,.vce-alternative-card,.vce-intelligent-link-card),
html body :is(.vce-related-vehicle-card,.vce-alternative-card,.vce-intelligent-link-card) a{
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#071426 !important;
  border-color:#d7dee8 !important;
}
html body :is(.vce-related-vehicle-card,.vce-alternative-card,.vce-intelligent-link-card) :is(strong,h3,h4,p,small,span){
  color:#071426 !important;
  opacity:1 !important;
}
html body :is(.vce-related-vehicle-card,.vce-alternative-card,.vce-intelligent-link-card) a :is(strong,h3,h4){
  color:#ef233c !important;
}

/* 12) Resumo e destaques. */
html body :is(.vce-smart-summary,.vce-auto-highlights,.vce-vehicle-highlights) :is(h2,h3,h4,p,strong,em,small,span){
  color:#071426 !important;
  opacity:1 !important;
}


/* ==========================================================================
   v0.7.3.12 — VCE Final Contrast Lock
   --------------------------------------------------------------------------
   Corrige temas que, em modo escuro, aplicam color/opacity/text-fill com
   !important a todos os descendentes da área de conteúdo. 
   Estratégia: todos os componentes públicos VCE mantêm "daylight mode"
   (fundo claro + texto escuro) e usam seletores de especificidade alta.
   ========================================================================== */

html body .site .site-content .entry-content :is(
  .vce-siv-card,
  .vce-siv-explain,
  .vce-siv-component,
  .vce-siv-profile,
  .vce-siv-profile-item,
  .vce-vehicle-related,
  .vce-related-vehicle-card,
  .vce-vehicle-alternatives,
  .vce-alternative-card,
  .vce-intelligent-links,
  .vce-intelligent-link-card,
  .vce-cost-badges,
  .vce-cost-hub-links,
  .vce-ranking-actions,
  .vce-tco-simulator,
  .vce-comparator,
  .vce-comparator-form,
  .vce-comparator-table-wrap,
  .vce-ranking-table-wrap,
  .vce-ranking-seo-intro,
  .vce-ranking-highlight-card,
  .vce-ranking-hub-card,
  .vce-smart-summary,
  .vce-auto-highlights,
  .vce-vehicle-highlights,
  .vce-quick-links
),
html body #page #content .entry-content :is(
  .vce-siv-card,
  .vce-siv-explain,
  .vce-siv-component,
  .vce-siv-profile,
  .vce-siv-profile-item,
  .vce-vehicle-related,
  .vce-related-vehicle-card,
  .vce-vehicle-alternatives,
  .vce-alternative-card,
  .vce-intelligent-links,
  .vce-intelligent-link-card,
  .vce-cost-badges,
  .vce-cost-hub-links,
  .vce-ranking-actions,
  .vce-tco-simulator,
  .vce-comparator,
  .vce-comparator-form,
  .vce-comparator-table-wrap,
  .vce-ranking-table-wrap,
  .vce-ranking-seo-intro,
  .vce-ranking-highlight-card,
  .vce-ranking-hub-card,
  .vce-smart-summary,
  .vce-auto-highlights,
  .vce-vehicle-highlights,
  .vce-quick-links
),
html body :is(
  .vce-siv-card,
  .vce-siv-explain,
  .vce-siv-component,
  .vce-siv-profile,
  .vce-siv-profile-item,
  .vce-vehicle-related,
  .vce-related-vehicle-card,
  .vce-vehicle-alternatives,
  .vce-alternative-card,
  .vce-intelligent-links,
  .vce-intelligent-link-card,
  .vce-cost-badges,
  .vce-cost-hub-links,
  .vce-ranking-actions,
  .vce-tco-simulator,
  .vce-comparator,
  .vce-comparator-form,
  .vce-comparator-table-wrap,
  .vce-ranking-table-wrap,
  .vce-ranking-seo-intro,
  .vce-ranking-highlight-card,
  .vce-ranking-hub-card,
  .vce-smart-summary,
  .vce-auto-highlights,
  .vce-vehicle-highlights,
  .vce-quick-links
){
  color-scheme: light !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  border-color: #d7dee8 !important;
}

/* Texto de todos os componentes VCE: inclui text-fill para temas que usam efeitos/gradientes. */
html body .site .site-content .entry-content [class*="vce-"] :is(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,th,td,strong,b,em,small,span,div,figcaption
),
html body #page #content .entry-content [class*="vce-"] :is(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,th,td,strong,b,em,small,span,div,figcaption
),
html body [class*="vce-"] :is(
  h1,h2,h3,h4,h5,h6,p,li,dt,dd,label,th,td,strong,b,em,small,span,div,figcaption
){
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}

/* Texto secundário legível, sem ficar demasiado claro no modo escuro do tema. */
html body [class*="vce-"] :is(p,small,em,figcaption),
html body [class*="vce-"] :is(.vce-note,.vce-ranking-note,.vce-related-meta,.vce-catalog-lead,.vce-siv-profile-desc){
  color: #334155 !important;
  -webkit-text-fill-color: #334155 !important;
}

/* Links e botões secundários/pills. */
html body [class*="vce-"] a,
html body [class*="vce-"] a *,
html body :is(.vce-ranking-actions a,.vce-cost-badges a,.vce-cost-hub-links a,.vce-quick-links a,.vce-auto-highlights a,.vce-vehicle-highlights a,.vce-button,.vce-catalog-button),
html body :is(.vce-ranking-actions a,.vce-cost-badges a,.vce-cost-hub-links a,.vce-quick-links a,.vce-auto-highlights a,.vce-vehicle-highlights a,.vce-button,.vce-catalog-button) *{
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}
html body [class*="vce-"] a:not(.vce-comparator-submit):not(.vce-compare-go):not(.vce-compare-clear):not(button),
html body :is(.vce-ranking-actions a,.vce-cost-badges a,.vce-cost-hub-links a,.vce-quick-links a,.vce-auto-highlights a,.vce-vehicle-highlights a,.vce-button,.vce-catalog-button){
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d7dee8 !important;
}

/* Links textuais principais em vermelho Viatura.pt dentro de tabelas/cards. */
html body :is(.vce-ranking-table,.vce-comparator-table,.vce-tco-dynamic-table,.vce-related-vehicle-card,.vce-alternative-card,.vce-intelligent-link-card) a{
  color: #ef233c !important;
  -webkit-text-fill-color: #ef233c !important;
}

/* Tabelas em daylight mode. */
html body [class*="vce-"] table,
html body [class*="vce-"] table :is(thead,tbody,tr,th,td),
html body :is(.vce-comparator-table,.vce-comparator-tco-table,.vce-tco-dynamic-table,.vce-ranking-table),
html body :is(.vce-comparator-table,.vce-comparator-tco-table,.vce-tco-dynamic-table,.vce-ranking-table) :is(thead,tbody,tr,th,td){
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  opacity: 1 !important;
  border-color: #d7dee8 !important;
}
html body [class*="vce-"] table :is(th,thead th),
html body :is(.vce-comparator-section-row th,.vce-comparator-section-row td){
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
}

/* SIV: cartões, cabeçalho, perfil e componentes sempre claros. */
html body .vce-siv-card .vce-catalog-eyebrow,
html body .vce-siv-card .vce-siv-score-row h2,
html body .vce-siv-card .vce-siv-score-row strong,
html body .vce-siv-card .vce-siv-score-row span,
html body .vce-siv-card .vce-siv-score-row p,
html body .vce-siv-card .vce-siv-profile-head h3,
html body .vce-siv-card .vce-siv-profile-head p,
html body .vce-siv-card .vce-siv-explain h3,
html body .vce-siv-card .vce-siv-explain p,
html body .vce-siv-card .vce-siv-component strong,
html body .vce-siv-card .vce-siv-component small,
html body .vce-siv-card .vce-siv-component em,
html body .vce-siv-card .vce-siv-profile-title strong,
html body .vce-siv-card .vce-siv-profile-score,
html body .vce-siv-card .vce-siv-profile-desc{
  color: #071426 !important;
  -webkit-text-fill-color: #071426 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}
html body .vce-siv-card .vce-catalog-eyebrow{
  color:#ef233c !important;
  -webkit-text-fill-color:#ef233c !important;
}

/* Preservar barras e indicadores cromáticos. */
html body [class*="vce-"] :is(.vce-siv-component span,.vce-siv-profile-bar,.vce-progress-track){
  background:#e5e7eb !important;
  background-color:#e5e7eb !important;
  -webkit-text-fill-color: initial !important;
}
html body [class*="vce-"] :is(.vce-siv-component span i,.vce-siv-profile-bar i,.vce-progress-fill){
  background:#16a34a !important;
  background-color:#16a34a !important;
  color:transparent !important;
  -webkit-text-fill-color:transparent !important;
}
html body [class*="vce-"] :is(.vce-dot,.vce-level-dot,.vce-siv-profile-level-dot){
  -webkit-text-fill-color: initial !important;
}

/* Controlos do comparador/simulador. */
html body [class*="vce-"] :is(input,select,textarea,option),
html body .vce-catalog-filters :is(input,select,textarea,option){
  color-scheme: light !important;
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#071426 !important;
  -webkit-text-fill-color:#071426 !important;
  border-color:#cbd5e1 !important;
  opacity:1 !important;
}

/* Botões principais vermelhos continuam brancos sobre vermelho. */
html body :is(.vce-comparator-submit,.vce-compare-toggle,.vce-compare-go,.vce-compare-clear,button.vce-comparator-submit,button.vce-compare-toggle,.vce-catalog-filters button),
html body :is(.vce-comparator-submit,.vce-compare-toggle,.vce-compare-go,.vce-compare-clear,button.vce-comparator-submit,button.vce-compare-toggle,.vce-catalog-filters button) *{
  background:#ef233c !important;
  background-color:#ef233c !important;
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  border-color:#ef233c !important;
}

/* Evita que plugins/temas escondam conteúdo por opacity em blocos VCE. */
html body [class*="vce-"],
html body [class*="vce-"] *{
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
}


/* ==========================================================================
   v0.7.3.13 — VCE Light Island Lock
   --------------------------------------------------------------------------
   Correção transversal final para temas com modo escuro agressivo.
   Regra base: todos os componentes públicos do Viatura Core Engine usam
   superfícies claras e texto escuro, independentemente do modo do tema.
   ========================================================================== */

html body .vce-siv-card,
html body .vce-siv-profile,
html body .vce-siv-explain,
html body .vce-tco-simulator,
html body .vce-comparator,
html body .vce-comparator-form,
html body .vce-comparator-table-wrap,
html body .vce-ranking-table-wrap,
html body .vce-cost-rankings-page,
html body .vce-catalog-section,
html body .vce-vehicle-related,
html body .vce-vehicle-alternatives,
html body .vce-vehicle-deep-links,
html body .vce-intelligent-links,
html body .vce-smart-summary,
html body .vce-auto-highlights,
html body .vce-cost-badges,
html body .vce-cost-hub-links {
  color-scheme: light !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #061326 !important;
  -webkit-text-fill-color: #061326 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

/* Texto descendente: bloqueia herança de color:#fff/opacity do tema escuro. */
html body .vce-siv-card *,
html body .vce-siv-profile *,
html body .vce-siv-explain *,
html body .vce-tco-simulator *,
html body .vce-comparator *,
html body .vce-ranking-table-wrap *,
html body .vce-cost-rankings-page *,
html body .vce-catalog-section *,
html body .vce-vehicle-related *,
html body .vce-vehicle-alternatives *,
html body .vce-vehicle-deep-links *,
html body .vce-intelligent-links *,
html body .vce-smart-summary *,
html body .vce-auto-highlights *,
html body .vce-cost-badges *,
html body .vce-cost-hub-links * {
  color: #061326 !important;
  -webkit-text-fill-color: #061326 !important;
  opacity: 1 !important;
  filter: none !important;
  text-shadow: none !important;
  mix-blend-mode: normal !important;
}

/* Superfícies internas claras. */
html body .vce-siv-profile-item,
html body .vce-siv-component,
html body .vce-tco-card,
html body .vce-ranking-highlight-card,
html body .vce-ranking-hub-card,
html body .vce-term-card,
html body .vce-catalog-card,
html body .vce-related-vehicle-card,
html body .vce-alternative-card,
html body .vce-intelligent-link-card,
html body .vce-card,
html body .vce-panel,
html body .vce-theme-card {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
  color: #061326 !important;
  -webkit-text-fill-color: #061326 !important;
  border-color: #d7dee8 !important;
}

/* Tabelas: fundo claro e texto escuro em todas as células. */
html body .vce-comparator table,
html body .vce-comparator table th,
html body .vce-comparator table td,
html body .vce-ranking-table-wrap table,
html body .vce-ranking-table-wrap table th,
html body .vce-ranking-table-wrap table td,
html body .vce-tco-simulator table,
html body .vce-tco-simulator table th,
html body .vce-tco-simulator table td {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #061326 !important;
  -webkit-text-fill-color: #061326 !important;
  border-color: #d7dee8 !important;
}
html body .vce-comparator table th,
html body .vce-ranking-table-wrap table th,
html body .vce-tco-simulator table th {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
}

/* Links VCE: vermelho da marca, sempre visível em fundos claros. */
html body .vce-siv-card a,
html body .vce-tco-simulator a,
html body .vce-comparator a,
html body .vce-ranking-table-wrap a,
html body .vce-cost-rankings-page a,
html body .vce-catalog-section a,
html body .vce-vehicle-related a,
html body .vce-vehicle-alternatives a,
html body .vce-intelligent-links a,
html body .vce-cost-badges a,
html body .vce-cost-hub-links a {
  color: #ef233c !important;
  -webkit-text-fill-color: #ef233c !important;
  text-decoration-color: #ef233c !important;
}

/* Botões/pills claros que não são CTA vermelho. */
html body .vce-ranking-actions a,
html body .vce-cost-badges a,
html body .vce-cost-hub-links a,
html body .vce-pill,
html body .vce-chip,
html body .vce-badge {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #061326 !important;
  -webkit-text-fill-color: #061326 !important;
  border: 1px solid #d7dee8 !important;
}

/* CTA vermelhos: texto branco intencional. */
html body .vce-comparator-submit,
html body .vce-compare-toggle,
html body .vce-compare-go,
html body .vce-compare-clear,
html body button.vce-comparator-submit,
html body button.vce-compare-toggle {
  background: #ef233c !important;
  background-color: #ef233c !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border-color: #ef233c !important;
}

/* Formulários/selects: impedir selects escuros dentro de ilhas claras. */
html body .vce-tco-simulator select,
html body .vce-tco-simulator input,
html body .vce-comparator select,
html body .vce-comparator input,
html body .vce-catalog-section select,
html body .vce-catalog-section input {
  color-scheme: light !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #061326 !important;
  -webkit-text-fill-color: #061326 !important;
  border-color: #cbd5e1 !important;
}

/* Barras de progresso: preservar cores, sem texto. */
html body .vce-siv-component span,
html body .vce-siv-profile-bar,
html body .vce-progress-track {
  background: #e5e7eb !important;
  background-color: #e5e7eb !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
html body .vce-siv-component span i,
html body .vce-siv-profile-bar i,
html body .vce-progress-fill {
  background: #16a34a !important;
  background-color: #16a34a !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

/* Marcadores e ícones mantêm a cor/emoji original sempre que possível. */
html body .vce-siv-profile-icon,
html body .vce-dot,
html body .vce-level-dot {
  -webkit-text-fill-color: initial !important;
}

/* Específico para títulos/descrições SIV observados nas fichas. */
html body .vce-siv-card .vce-catalog-eyebrow {
  color: #ef233c !important;
  -webkit-text-fill-color: #ef233c !important;
}
html body .vce-siv-card h2,
html body .vce-siv-card h3,
html body .vce-siv-card strong,
html body .vce-siv-card p,
html body .vce-siv-card small,
html body .vce-siv-card em,
html body .vce-siv-card span:not(.vce-siv-profile-icon) {
  color: #061326 !important;
  -webkit-text-fill-color: #061326 !important;
}

/* Garante que o Perfil Económico não mantém os cartões escuros das versões anteriores. */
html body .vce-siv-profile,
html body .vce-siv-profile-grid,
html body .vce-siv-profile-item {
  background: #f8fafc !important;
  background-color: #f8fafc !important;
}



/* v0.7.3.16 — Comparador UX Refinement
   Substitui os antigos badges pretos "melhor" por destaque claro, profissional e compatível com modo claro/escuro.
*/
.vce-comparator-table td.vce-best-value,
.vce-comparator-table-blocks td.vce-best-value,
.vce-comparator .vce-comparator-table td.vce-best-value,
.vce-comparator .vce-comparator-table-blocks td.vce-best-value {
    background: #eef9ef !important;
    color: #0b1f3a !important;
    -webkit-text-fill-color: #0b1f3a !important;
    border-left: 4px solid #16a34a !important;
    box-shadow: inset 0 0 0 9999px rgba(238,249,239,.78) !important;
    font-weight: 900 !important;
}

.vce-comparator-table td.vce-best-value::before,
.vce-comparator-table-blocks td.vce-best-value::before,
.vce-comparator .vce-comparator-table td.vce-best-value::before,
.vce-comparator .vce-comparator-table-blocks td.vce-best-value::before {
    content: "🥇 ";
    display: inline !important;
    margin-right: 2px !important;
    color: #0b1f3a !important;
    -webkit-text-fill-color: #0b1f3a !important;
}

.vce-comparator-table td.vce-best-value::after,
.vce-comparator-table-blocks td.vce-best-value::after,
.vce-comparator .vce-comparator-table td.vce-best-value::after,
.vce-comparator .vce-comparator-table-blocks td.vce-best-value::after {
    content: "" !important;
    display: none !important;
    background: transparent !important;
    color: inherit !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

/* Garante que qualquer span/link dentro da célula vencedora não herda texto invisível do tema. */
.vce-comparator-table td.vce-best-value *,
.vce-comparator-table-blocks td.vce-best-value *,
.vce-comparator .vce-comparator-table td.vce-best-value *,
.vce-comparator .vce-comparator-table-blocks td.vce-best-value * {
    color: #0b1f3a !important;
    -webkit-text-fill-color: #0b1f3a !important;
}
