.chip:where(button) {
	font: inherit;
}

.chip:where(a) {
	text-decoration: none;
}

.chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-height: 32px;
	padding: 0 12px;
	box-sizing: border-box;
	gap: 2px;
	border: 1px solid var(--sui-color-outline-primary);
	border-radius: 999px;
	color: var(--sui-color-neutral-primary);
	background: transparent;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}

.chip:where(button, a) {
	cursor: pointer;
}

.chip:where(button, a):where(:hover) {
	background: var(--sui-color-highlight-secondary);
}

.chip:where(button, a):where(:active:not(:disabled)) {
	transform: translateY(1px);
}

.chip:where(.active) {
	border-color: var(--sui-color-key-tertiary);
	color: var(--sui-color-key-primary);
	background: var(--sui-color-key-tertiary);
}

.chip:where(:disabled) {
	border-color: transparent;
	color: var(--sui-color-on-neutral-tertiary);
	background: var(--sui-color-disabled-fill);
	cursor: default;
}

.chip .icon {
	width: 1em;
	height: 1em;
}
