/* ÔMEGA 1.6.828 — acabamento restrito ao cabeçalho e à faixa de preço
   do filtro da página Comprar Carro. Sem alterações no painel ou na busca. */

/* O título, descrição e botão Limpar passam a ocupar linhas próprias:
   evita colisões em sidebars estreitas, com zoom ou fonte maior. */
body.public-body .stock-page-reference .stock-refine-reference .stock-refine-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start !important;
  justify-content: normal !important;
  column-gap: 8px !important;
  row-gap: 10px !important;
  padding: 19px 17px 15px !important;
  background: linear-gradient(145deg, #fff 0%, #fcfafb 100%) !important;
  border-bottom: 1px solid #eef0f4 !important;
}
body.public-body.public-body.public-body .stock-page-reference .stock-refine-reference .stock-refine-head .stock-refine-title {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex !important;
  align-items: center !important;
  min-width: 0;
  width: 100%;
  gap: 12px !important;
  flex: none !important;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-filter-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 13px;
  background: #fff0f2;
  border: 1px solid #ffdde1;
  color: #d51b31;
  font-size: 18px;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-refine-heading {
  min-width: 0;
  flex: 1 1 auto;
}
body.public-body.public-body.public-body .stock-page-reference .stock-refine-reference .stock-refine-head h2 {
  margin: 0 0 3px !important;
  font-size: 15px !important;
  font-weight: 750 !important;
  line-height: 1.25 !important;
  letter-spacing: -.3px !important;
  white-space: normal !important;
  overflow-wrap: break-word;
  color: #142139 !important;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-refine-head .stock-refine-subtitle {
  display: block;
  font-size: 11.5px;
  line-height: 1.4;
  color: #7d8ba0;
}
body.public-body.public-body.public-body .stock-page-reference .stock-refine-reference .stock-refine-head > a {
  grid-column: 2;
  grid-row: 2;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  justify-self: end;
  align-self: center !important;
  gap: 5px;
  max-width: 100%;
  padding: 5px 9px !important;
  margin: 0 !important;
  border: 1px solid #f4dce0;
  border-radius: 8px;
  background: #fff !important;
  color: #b51d32 !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-refine-head > a:hover {
  background: #fff2f4 !important;
  border-color: #edbbc3;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-refine-head > a:focus-visible {
  outline: 2px solid #d9273b;
  outline-offset: 2px;
}

/* Bloco de preço: valores legíveis em cartões separados e barra contínua. */
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 9px !important;
  row-gap: 14px !important;
  min-width: 0;
  margin: 0 0 15px !important;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] > span {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 8px 9px;
  margin: 0 !important;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  background: #f8fafc;
  color: #27374f !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1.3;
  letter-spacing: -.22px;
  white-space: nowrap;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] > span::before {
  display: block;
  padding-bottom: 4px;
  color: #8995a5;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] > span[data-price-label="min"]::before { content: 'De'; }
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] > span[data-price-label="max"]::before { content: 'Até'; }

body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
  height: 32px !important;
  margin: 0 !important;
  background: transparent !important;
  border: none !important;
}
/* Regra antiga ocultava ::after com display:none!important; agora ele é o trilho de fundo. */
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider::before {
  display: none !important;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider::after {
  content: '';
  display: block !important;
  position: absolute;
  top: 50%;
  left: 10px;
  right: 10px;
  width: auto;
  height: 5px;
  transform: translateY(-50%);
  border-radius: 100px;
  background: #e6eaf0 !important;
  z-index: 0;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider [data-price-track] {
  display: block !important;
  position: absolute !important;
  top: 50%;
  height: 5px !important;
  min-height: 5px;
  margin: 0 !important;
  border-radius: 100px;
  background: var(--primary, #ed1025) !important;
  z-index: 1;
  pointer-events: none;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider input[type="range"] {
  display: block !important;
  position: absolute !important;
  top: 50%;
  left: 10px;
  width: calc(100% - 20px) !important;
  height: 32px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 2;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider input[type="range"]::-webkit-slider-runnable-track {
  background: transparent !important;
  height: 5px;
  border: none !important;
  box-shadow: none !important;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider input[type="range"]::-webkit-slider-thumb {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 19px;
  height: 19px;
  margin-top: -7px;
  border: 3px solid var(--primary, #ed1025) !important;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(29,43,66,.13) !important;
  pointer-events: auto;
  cursor: grab;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider input[type="range"]::-moz-range-track {
  background: transparent !important;
  border: 0 !important;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider input[type="range"]::-moz-range-thumb {
  width: 19px;
  height: 19px;
  border: 3px solid var(--primary, #ed1025) !important;
  border-radius: 50%;
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(29,43,66,.13) !important;
  pointer-events: auto;
  cursor: grab;
}
body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] .range-slider input[type="range"]:focus-visible {
  outline: 2px solid #f07a85 !important;
  outline-offset: 2px;
}

@media (min-width: 981px) {
  body.public-body .stock-page-reference .stock-refine-reference {
    scrollbar-color: #dee4eb transparent;
    scrollbar-width: thin;
  }
  body.public-body .stock-page-reference .stock-refine-reference::-webkit-scrollbar { width: 4px; }
  body.public-body .stock-page-reference .stock-refine-reference::-webkit-scrollbar-thumb { background: #dce3ea; border-radius: 99px; }
}
@media (max-width: 360px) {
  body.public-body .stock-page-reference .stock-refine-reference .stock-price-range[data-price-range] > span {
    padding: 7px 5px;
    font-size: 10.5px !important;
  }
}
