/* Стили для динамических фильтров - преобразование select в чекбоксы */
.views-exposed-form.bef-exposed-form {
  margin-bottom: 2rem;
}

.bef-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.bef-checkboxes .form-item {
  margin: 0 !important;
}

.bef-checkbox-item {
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.bef-checkbox-item:hover {

}

.bef-checkbox-item.selected {

}

.bef-checkbox-item input[type="checkbox"] {
  margin-right: 10px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  display: none;
}


.bef-checkbox-item input[type="checkbox"] {
    display: none;
}
.bef-checkbox-item input[type="checkbox"] + label {
  position: relative;
  padding-left: 20px;
  color: #001B72;
  font-weight: 400;
  line-height: 1;
  display: block;
  margin-bottom: 0;
}
.bef-checkbox-item input[type="checkbox"] + label::before {
    content: "";
    width: 13px;
    height: 13px;
    background: url(../css/images/checkbox.png) no-repeat;
    background-position: 0 0;
    background-size: 12px;
    position: absolute;
    top: 0px;
    left: 0;
    display: inline-block;
    width: 100%;
}
.bef-checkbox-item input[type="checkbox"]:checked + label::before {
    background-position: 0 -16px;
}

.bef-checkbox-item label {
  cursor: pointer;
  margin-bottom: 0;
  font-weight: normal;
  flex: 1;
}

/* Скрываем оригинальные select элементы */
.bef-checkboxes + select {
  display: none !important;
}

/* Стили для группы фильтров */
.bef-filter-group {
  margin-bottom: 0;
}

.bef-filter-group .form-item {
  margin-bottom: 0.5rem;
}

.bef-filter-group label {
  font-weight: bold;
  color: #495057;
  margin-bottom: 0.75rem;
  display: block;
}

/* Стили для кнопок */
.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #dee2e6;
}

/* Адаптивность */
@media (max-width: 768px) {
  .bef-checkbox-item {
    padding: 8px 10px;
  }
  
  .bef-filter-group {
    padding: 0.75rem;
  }
}
form.views-exposed-form .form-type-select select {
  display: none;
}

.bef-filter-group {
    position: relative;
}
.bef-filter-group .bef-apply-button {
    background-color: #007bff !important;
    font-family: "Inter", sans-serif;
    color: #ffffff !important;
    font-weight: 300;
    z-index: 200;
    width: auto !important;
    font-size: 12px;
    padding: 3px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto !important;
    right: -16px;
    cursor: pointer;
    height: 26px;
    transition: none;
    border-radius: 5px;
}
.bef-filter-group .bef-apply-button:hover {
    background-color: #001B72 !important;
}
.bef-filter-group .bef-apply-button::before {
    display: block;
    content: "";
    position: absolute;
    left: -7px;
    top: 3px;
    background-image: linear-gradient(45deg, #007bff, #007bff);
    width: 20px;
    height: 20px;
    border-radius: 4px;
    transform: rotate(135deg);
    z-index: 0;
}
.bef-filter-group .bef-apply-button:hover::before {
    background-image: linear-gradient(45deg, #001B72, #001B72);
}
.bef-filter-group .bef-apply-button span {
    z-index: 2;
    position: relative;
    padding-top: 1px;
    display: block;
    padding-right: 4px;
}