.tagsinput {
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-flex-wrap: wrap;
	-ms-flex-wrap: wrap;
	flex-wrap: wrap;
	box-sizing: border-box;
	background: #ffffff;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 20px;
	color: #172b4d;
	padding: 8px 12px 4px 12px;
	border: 1px solid #dfe1e6;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
	position: relative;
	min-height: 40px;
}

.tagsinput::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 2px;
	background: linear-gradient(90deg, #0052cc 0%, #2684ff 100%);
	opacity: 0;
	transition: opacity 0.2s ease;
	border-radius: 6px 6px 0 0;
}

.tagsinput.focus {
	border-color: #2684ff;
	box-shadow: 0 0 0 3px rgba(38, 132, 255, 0.1);
}

.tagsinput.focus::before {
	opacity: 1;
}

.tagsinput * {
	box-sizing: border-box;
}

.tagsinput .tag {
	position: relative;
	background: #f4f5f7;
	display: inline-flex;
	align-items: center;
	max-width: 100%;
	word-wrap: break-word;
	color: #172b4d;
	padding: 4px 8px;
	border-radius: 4px;
	margin: 0 4px 4px 0;
	font-weight: 500;
	font-family: inherit;
	font-size: 13px;
	border: 1px solid #dfe1e6;
	transition: all 0.15s ease;
	cursor: default;
}

.tagsinput .tag:hover {
	background: #ebecf0;
	border-color: #c1c7d0;
}

.tagsinput .tag.primary {
	background: #deebff;
	color: #0052cc;
	border-color: #b3d4ff;
}

.tagsinput .tag.success {
	background: #e3fcef;
	color: #006644;
	border-color: #79e2ae;
}

.tagsinput .tag.error {
	background: #ffebe6;
	color: #de350b;
	border-color: #ffbdad;
}

.tagsinput .tag.warning {
	background: #fffae6;
	color: #ff8b00;
	border-color: #ffd700;
}

.tagsinput .tag.info {
	background: #e6fcff;
	color: #0065ff;
	border-color: #b3f5ff;
}

.tagsinput .tag .tag-remove {
	position: relative;
	background: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 16px;
	height: 16px;
	margin-left: 6px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	color: #6b778c;
	padding: 0;
	border: 0;
	border-radius: 3px;
	transition: all 0.15s ease;
	flex-shrink: 0;
}

.tagsinput .tag .tag-remove:hover {
	background: rgba(0, 0, 0, 0.08);
	color: #172b4d;
}

.tagsinput .tag .tag-remove:active {
	background: rgba(0, 0, 0, 0.12);
}

.tagsinput .tag .tag-remove:before,
.tagsinput .tag .tag-remove:after {
	background: currentColor;
	position: absolute;
	display: block;
	width: 8px;
	height: 1px;
	content: '';
	top: 50%;
	left: 50%;
	transform-origin: center;
}

.tagsinput .tag .tag-remove:before {
	transform: translate(-50%, -50%) rotate(45deg);
}

.tagsinput .tag .tag-remove:after {
	transform: translate(-50%, -50%) rotate(-45deg);
}

.tagsinput div {
	-webkit-box-flex: 1;
	-webkit-flex-grow: 1;
	-ms-flex-positive: 1;
	flex-grow: 1;
	min-width: 120px;
}

.tagsinput div input {
	background: transparent;
	display: block;
	width: 100%;
	font-size: 14px;
	line-height: 20px;
	padding: 4px 2px;
	border: 0 none;
	margin: 0;
	font-family: inherit;
	color: #172b4d;
	outline: none;
}

.tagsinput div input.error {
	color: #de350b;
}

.tagsinput div input::-ms-clear {
	display: none;
}

.tagsinput div input::-webkit-input-placeholder {
	color: #6b778c;
	opacity: 1.0;
}

.tagsinput div input:-moz-placeholder {
	color: #6b778c;
	opacity: 1.0;
}

.tagsinput div input::-moz-placeholder {
	color: #6b778c;
	opacity: 1.0;
}

.tagsinput div input:-ms-input-placeholder {
	color: #6b778c;
	opacity: 1.0;
}

/* Small size variant */
.tagsinput.small {
	padding: 4px 8px 0px 8px;
	min-height: 32px;
	font-size: 12px;
}

.tagsinput.small .tag {
	padding: 2px 6px;
	font-size: 11px;
	margin: 0 2px 4px 0;
}

.tagsinput.small .tag .tag-remove {
	width: 14px;
	height: 14px;
	margin-left: 4px;
}

.tagsinput.small .tag .tag-remove:before,
.tagsinput.small .tag .tag-remove:after {
	width: 6px;
}

.tagsinput.small div input {
	font-size: 12px;
	padding: 2px;
}

/* Large size variant */
.tagsinput.large {
	padding: 12px 16px 8px 16px;
	min-height: 48px;
	font-size: 16px;
}

.tagsinput.large .tag {
	padding: 6px 10px;
	font-size: 14px;
	margin: 0 6px 4px 0;
}

.tagsinput.large .tag .tag-remove {
	width: 18px;
	height: 18px;
	margin-left: 8px;
}

.tagsinput.large .tag .tag-remove:before,
.tagsinput.large .tag .tag-remove:after {
	width: 10px;
}

.tagsinput.large div input {
	font-size: 16px;
	padding: 6px 2px;
}
