/* Chip — design FF.pen, id Pencil YzfDd, V4CKei, jqzUF */
.ff-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--ff-space-2);
  height: 44px;
  min-width: 44px;
  padding: 0 var(--ff-space-4);
  border: 1px solid var(--ff-border);
  border-radius: var(--ff-radius-control);
  background-color: var(--ff-surface);
  color: var(--ff-text);
  font-family: var(--ff-font-body);
  font-size: var(--ff-font-size-s);
  font-weight: 500;
  line-height: normal;
  white-space: nowrap;
  appearance: none;
  cursor: pointer;
  transition: background-color .14s ease;
}

.ff-chip__label {
  white-space: nowrap;
}

.ff-chip__icon {
  flex-shrink: 0;
  color: var(--ff-text-muted);
  font-size: 18px;
  line-height: 1;
}

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

.ff-chip:focus-visible,
.ff-chip.is-focus {
  outline: 2px solid var(--ff-focus);
  outline-offset: 2px;
}

.ff-chip:active,
.ff-chip.is-active {
  background-color: var(--ff-border);
}

.ff-chip.ff-chip--selected {
  background-color: var(--ff-text);
  border-color: var(--ff-text);
  color: var(--ff-bg);
}

.ff-chip--selected .ff-chip__label {
  font-weight: 600;
  color: var(--ff-bg);
}

.ff-chip--selected .ff-chip__icon {
  color: var(--ff-bg);
}

.ff-chip:disabled,
.ff-chip.is-disabled {
  background-color: var(--ff-surface-alt);
  border-color: transparent;
  color: var(--ff-text-disabled);
  cursor: not-allowed;
}

.ff-chip:disabled .ff-chip__icon,
.ff-chip.is-disabled .ff-chip__icon {
  color: var(--ff-text-disabled);
}

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