.bksff-filters {
  --bksff-red: #B71E23;
  --bksff-blue: #242951;
  direction: rtl;
  display: grid;
  gap: 14px;
  color: inherit;
}

.bksff-field {
  display: grid;
  gap: 8px;
}

.bksff-field label,
.bksff-label {
  color: var(--bksff-blue);
  font-weight: 700;
  line-height: 1.6;
}

.bksff-field input,
.bksff-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d8dbe5;
  border-radius: 8px;
  background: #fff;
  color: #1e2235;
  padding: 8px 10px;
  font: inherit;
}

.bksff-price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.bksff-check,
.bksff-radio {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  color: inherit;
  cursor: pointer;
}

.bksff-check input,
.bksff-radio input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--bksff-red);
}

.bksff-term-list {
  display: grid;
  gap: 4px;
  max-height: 280px;
  overflow: auto;
  padding-inline-end: 4px;
}

.bksff-term-list small {
  color: #747989;
}

.bksff-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.bksff-submit,
.bksff-clear,
.bksff-open-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.bksff-submit,
.bksff-open-button {
  background: var(--bksff-red);
  color: #fff;
}

.bksff-clear {
  background: #eef0f6;
  color: var(--bksff-blue);
}

.bksff-filters.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.bksff-filters.has-error {
  outline: 2px solid var(--bksff-red);
  outline-offset: 3px;
}

@media (max-width: 767px) {
  .bksff-filters--desktop {
    display: none;
  }

  .bksff-filters.is-open {
    display: grid;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 9999;
    max-height: 86vh;
    overflow: auto;
    background: #fff;
    padding: 16px;
    box-shadow: 0 -12px 28px rgba(36, 41, 81, 0.22);
  }
}
