/* Selector global reutilizable de elementos mediante etiquetas. */
.tag-selector.tag-selector {
	position: relative;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 7px;
	box-sizing: border-box;
	width: 100%;
	min-height: 46px;
	padding: 7px 9px;
	border-radius: 7px;
	background: #eeeeee;
}

.tag-selector__tags {
	display: contents;
}

.tag-selector__tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 32px;
	box-sizing: border-box;
	padding: 5px 9px;
	border-radius: 6px;
	background: #d3d3d3;
	color: #444444;
	font-size: 12px;
	line-height: 18px;
}

.tag-selector__remove {
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #777777;
	font-size: 18px;
	line-height: 16px;
	cursor: pointer;
}

.tag-selector__add {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	min-height: 32px;
	padding: 5px 10px;
	border: 1px solid #aaaaaa;
	border-radius: 6px;
	background: #ffffff;
	color: #4a4a4a;
	font: inherit;
	font-size: 12px;
	cursor: pointer;
}

.tag-selector__add:hover,
.tag-selector__add[aria-expanded="true"] {
	border-color: #00b4ce;
	color: #008ca2;
}

.tag-selector__add.is-icon-only {
	width: 32px;
	padding: 0;
	justify-content: center;
}

.tag-selector__add-icon {
	font-size: 18px;
	line-height: 16px;
}

.tag-selector__popover {
	position: absolute;
	z-index: 1000;
	top: calc(100% + 6px);
	left: 0;
	width: min(360px, 100%);
	box-sizing: border-box;
	padding: 10px;
	border: 1px solid #cccccc;
	border-radius: 6px;
	background: #ffffff;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .16);
}

.tag-selector__popover[hidden] {
	display: none;
}

.tag-selector__search {
	box-sizing: border-box;
	width: 100%;
	height: 34px;
	margin-bottom: 8px;
	padding: 0 9px;
	border: 1px solid #999999;
	border-radius: 4px;
	background: #ffffff;
}

.tag-selector__options {
	max-height: 220px;
	overflow-y: auto;
}

.tag-selector .tag-selector__option {
	display: flex;
	align-items: center;
	gap: 9px;
	box-sizing: border-box;
	width: 100%;
	height: auto;
	min-height: 38px;
	padding: 6px 8px;
	border-bottom: 1px solid #eeeeee;
	color: #333333;
	font-size: 13px;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
}

.tag-selector .tag-selector__option:hover,
.tag-selector .tag-selector__option.is-selected {
	background: #e0f7fa;
}

.tag-selector .tag-selector__option[hidden] {
	display: none !important;
}

.tag-selector .tag-selector__option input {
	flex: 0 0 auto;
	width: 18px !important;
	height: 18px;
	margin: 0;
}

.tag-selector__empty {
	color: #777777;
	font-size: 12px;
}

@media (max-width: 600px) {
	.tag-selector__popover { width: 100%; }
}
