/*
 * Chip (.cw-chip). Variants: default, --active (selected option) and --filter (applied filter that can
 * be removed with .cw-chip__remove).
 */
.cw-chip {
	display: inline-flex;
	height: 38px;
	align-items: center;
	gap: 8px;
	padding: 0 16px;
	border: 1px solid var(--cw-color-line-strong);
	border-radius: var(--cw-radius);
	background: var(--cw-color-surface);
	color: var(--cw-color-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
}

button.cw-chip,
a.cw-chip {
	cursor: pointer;
}

a.cw-chip:hover,
button.cw-chip:hover {
	border-color: var(--cw-color-ink);
	color: var(--cw-color-ink);
	text-decoration: none;
}

.cw-chip--active,
a.cw-chip--active:hover,
button.cw-chip--active:hover {
	border-color: transparent;
	background: var(--cw-color-button);
	color: var(--cw-color-button-ink);
}

.cw-chip--filter {
	height: 32px;
	padding: 0 6px 0 12px;
	border-color: var(--cw-color-brand);
	background: var(--cw-color-brand-soft);
	font-size: 13px;
}

.cw-chip__remove {
	display: inline-grid;
	width: 22px;
	height: 22px;
	margin: 0;
	padding: 0;
	place-items: center;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--cw-color-ink);
	cursor: pointer;
}

.cw-chip__remove:hover {
	background: var(--cw-color-brand-soft);
	color: var(--cw-color-ink);
	text-decoration: none;
}

.cw-chip__remove .cw-icon {
	width: 14px;
	height: 14px;
}
