.atg-tags, .atg-tag, input.atg-input, .atg-items {
	box-sizing: border-box;
	-moz-box-sizing: border-box;
	-webkit-box-sizing: border-box;
}
.atg-wrap {
	position: relative;
	z-index: 1;
	display: inline-block;
	width: 400px;
	max-width: 100%;
}
.atg-msg {
	display: none;
	color: #f44;
	padding: 5px 7px;
	border: 1px solid #ccc;
	border-bottom: none;
	background: #fff;
}
.darkmode .atg-msg {
	border-color: #666;
	background: #333;
}
.atg-tags {
	display: inline-block;
	width: 100%;
	border: 1px solid #ccc;
	background: #fff;
}
.atg-tags.disabled {
	pointer-events: none;
	opacity: 0.5;
}
.darkmode .atg-tags {
	border-color: #666;
	background: #222;
}
.atg-tags:focus-within,
.darkmode .atg-tags:focus-within {
	border-color: #00bff3;
}
.atg-tag {
	display: inline-block;
	vertical-align: top;
	line-height: 16px;
	margin: 2px;
	padding: 5px;
	background: #999;
	color: #fff;
	border-radius: 2px;
	max-width: 98%;
	word-wrap: break-word;
}
.atg-x {
	padding-left: 5px;
	cursor: pointer;
}
.atg-x:hover {
	color: #000;
}
input.atg-input {
	display: inline-block;
	vertical-align: top;
	height: 26px;
	line-height: 22px;
	width: 120px;
	margin: 2px;
	padding: 2px;
	border: none;
}
input.atg-input:focus {
	outline: none;
	border: none;
}
.atg-items {
	display: none;
	position: absolute;
	left: 0;
	overflow: auto;
	color: #333;
	min-width: 100%;
	max-height: 250px;
	border: 1px solid #999;
	background: #fff;
}
.darkmode .atg-items {
	color: #ccc;
	background: #333;
}
.atg-item {
	cursor: pointer;
	padding: 5px 20px 5px 5px;
}
.atg-active {
	background: #ccc;
}
.darkmode .atg-active {
	background: #222;
}