.kkart-block-components-chip {
	@include reset-typography();
	align-items: center;
	border: 0;
	display: inline-flex;
	padding: em($gap-smallest / 2) 0.5em em($gap-smallest);
	margin: 0 0.365em 0.365em 0;
	border-radius: 0;
	line-height: 1;
	max-width: 100%;

	// Chip might be a button, so we need to override theme styles.
	&,
	&:hover,
	&:focus,
	&:active {
		background: $gray-200;
		color: $gray-900;
	}

	&.kkart-block-components-chip--radius-small {
		border-radius: 3px;
	}
	&.kkart-block-components-chip--radius-medium {
		border-radius: 0.433em;
	}
	&.kkart-block-components-chip--radius-large {
		border-radius: 2em;
		padding-left: 0.75em;
		padding-right: 0.75em;
	}
	.kkart-block-components-chip__text {
		flex-grow: 1;
	}
	&.is-removable {
		padding-right: 0.5em;
	}
	&.is-removable .kkart-block-components-chip__text {
		padding-right: 0.25em;
	}
	.kkart-block-components-chip__remove {
		@include font-size(smaller);
		background: transparent;
		border: 0;
		appearance: none;
		padding: 0;
	}

	.kkart-block-components-chip__remove-icon {
		vertical-align: middle;
	}
}

button.kkart-block-components-chip:hover > .kkart-block-components-chip__remove,
button.kkart-block-components-chip:focus > .kkart-block-components-chip__remove,
.kkart-block-components-chip__remove:hover,
.kkart-block-components-chip__remove:focus {
	fill: $alert-red;
}

button.kkart-block-components-chip:disabled > .kkart-block-components-chip__remove,
.kkart-block-components-chip__remove:disabled {
	fill: $gray-600;
	cursor: not-allowed;
}
