/* Ligne de filtre — design FF.pen, id Pencil B7yQSE, OCfxI */
.ff-filter-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--ff-space-3);
  width: 100%;
  height: 44px;
  padding: 0 var(--ff-space-2);
  background-color: var(--ff-surface);
  border-radius: var(--ff-radius-s);
  font-family: var(--ff-font-body);
  line-height: normal;
  cursor: pointer;
  transition: background-color 0.14s ease;
}

.ff-filter-row {
  position: relative;
}

.ff-filter-row input[type="checkbox"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
}

.ff-filter-row input[type="checkbox"]:checked + .ff-checkbox__box {
  background-color: var(--ff-crystal-strong);
  border-color: var(--ff-crystal-strong);
}

.ff-filter-row input[type="checkbox"]:checked + .ff-checkbox__box::after {
  opacity: 1;
}

.ff-filter-row input[type="checkbox"]:disabled + .ff-checkbox__box {
  border-color: var(--ff-border);
  background-color: var(--ff-surface-alt);
}

.ff-filter-row__label {
  flex: 1 1 0;
  min-width: 0;
  font-size: var(--ff-font-size-m);
  font-weight: 400;
  color: var(--ff-text);
  text-align: left;
}

.ff-filter-row__count {
  flex: none;
  font-size: var(--ff-font-size-s);
  font-weight: 400;
  color: var(--ff-text-muted);
  white-space: nowrap;
}

.ff-filter-row:hover,
.ff-filter-row.is-hover {
  background-color: var(--ff-surface-alt);
}

.ff-filter-row:has(input:focus-visible),
.ff-filter-row.is-focus {
  outline: 2px solid var(--ff-focus);
  outline-offset: 2px;
}

.ff-filter-row:has(input:checked) .ff-filter-row__label,
.ff-filter-row.is-checked .ff-filter-row__label {
  font-weight: 600;
}

.ff-filter-row.is-empty,
.ff-filter-row:has(input:disabled) {
  cursor: not-allowed;
}

.ff-filter-row.is-empty .ff-filter-row__label,
.ff-filter-row.is-empty .ff-filter-row__count,
.ff-filter-row:has(input:disabled) .ff-filter-row__label,
.ff-filter-row:has(input:disabled) .ff-filter-row__count {
  color: var(--ff-text-disabled);
}

.ff-filter-row.is-empty:hover,
.ff-filter-row:has(input:disabled):hover {
  background-color: var(--ff-surface);
}

@media (prefers-reduced-motion: reduce) {
  .ff-filter-row {
    transition: none;
  }
}
