/* Formulário e tipografia */
.fi-cjf-form {
  display: grid;
  gap: 25px;
  border: 1px solid #e5e5e5;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
}

.fi-cjf-label {
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.fi-cjf-form,
.fi-cjf-form input,
.fi-cjf-form select,
.fi-cjf-form label {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 400;
}

/* Select de categoria */
.fi-cjf-select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
}

/* Listas de tamanho, cor e marca: sem caixas, apenas checkbox + texto */
.fi-cjf-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: block;
}

.fi-cjf-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

/* Remover estilo “pill” (fundo/borda) e manter apenas texto simples */
.fi-cjf-pill {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  cursor: pointer;
  transition: none;
  color: #111;
}

/* Checkbox visível à esquerda; não ocultar inputs */
.fi-cjf-item input,
.fi-cjf-list li input {
  display: inline-block !important;
  margin-right: 6px;
}

/* Scroll quando houver mais de 7 itens */
.fi-cjf-list.scrollable {
  max-height: 220px; /* ~7 itens */
  overflow-y: auto;
  padding-right: 6px; /* espaço para a barra de rolagem */
}

/* Preço: slider e inputs */
.fi-cjf-price {
  display: grid;
  gap: 10px;
}

.fi-cjf-range {
  position: relative;
  height: 24px;
}

.fi-cjf-range input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  position: absolute;
  pointer-events: none;
  height: 24px;
  background: transparent;
}

/* Bolinhas acima da linha */
.fi-cjf-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #3f7ae0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(63,122,224,.3);
  z-index: 10;
  position: relative;
}

.fi-cjf-range input[type="range"]::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  background: #3f7ae0;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(63,122,224,.3);
  z-index: 10;
  position: relative;
}

.fi-cjf-range-track {
  position: absolute;
  top: 9px;
  left: 0;
  height: 6px;
  width: 100%;
  background: #e6e6e6;
  border-radius: 3px;
}

/* Inputs de preço com prefixo R$ (sem duplicação do texto) */
.fi-cjf-price-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fi-cjf-price-wrapper {
  position: relative;
}

.fi-cjf-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: #111;
  pointer-events: none;
}

.fi-cjf-price-wrapper input {
  padding: 8px 10px 8px 50px; /* aumenta o espaço à esquerda */
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 100%;
  background: #fff;
  box-sizing: border-box;
}



/* Botões */
.fi-cjf-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.fi-cjf-btn {
  font-family: 'Rubik', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000;
  border: 2px solid #000;
  background: transparent;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all .2s ease;
}

.fi-cjf-btn:hover {
  background: #000;
  color: #fff;
}

.fi-cjf-clear {
  color: #666;
  text-decoration: underline;
}