.chip {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: var(--space-1, 0.25rem);
  max-width: 100%;
  min-height: var(--control-height-sm, 34px);
  padding: var(--space-1, 0.25rem) var(--space-5, 0.75rem);
  border: var(--border-width, 1px) solid var(--border, currentColor);
  border-radius: var(--radius-pill, 999px);
  background: var(--surface, transparent);
  color: var(--text, currentColor);
  font-size: 0.8125rem;
  line-height: 1.3;
}

.chip__label {
  color: var(--muted, currentColor);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip__value {
  min-width: 0;
  overflow: hidden;
  color: var(--text, currentColor);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chip--removable {
  padding-right: var(--space-1, 0.25rem);
}

.chip--removable button {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted, currentColor);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.chip--removable button:hover {
  background: var(--danger-muted, transparent);
  color: var(--danger, currentColor);
}

.chip--removable button:focus-visible {
  outline: 2px solid var(--focus-ring-color, currentColor);
  outline-offset: 1px;
}

.chip[hidden] {
  display: none;
}
