/*!
 * tags.css
 * Copyright 2017 - 2020 by ChartIQ, Inc.
 * All rights reserved.
 */

.tags-menu-wrapper {
	height: 24px;
	border-radius: 12px;
	background: var(--tag-background-color);
	color: var(--tag-font-color);
	padding: 0 5px 0 9px;
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	user-select: none;
	font-size: var(--menu-font-size);
	font-weight: var(--tag-font-weight);
	transition: 0.2s background;
}

.tags-menu-wrapper:hover {
	background-color: var(--tag-background-hover-color);
}

.filter-sort .tags-menu-wrapper {
	position: fixed;
	top: 13px;
	right: 8px;
}

/* Different positioning for the catalog vs the launcher. */
.app-catalog .tags-menu-wrapper {
	top: 8px;
	right: 22px;
}

.tags-menu-wrapper span {
	line-height: 17px;
	font-size: var(--tag-font-size);
	cursor: pointer;
}

.tags-menu-wrapper span i {
	padding: 0 5px;
	font-size: 6px;
}

.tags-menu {
	z-index: 11;
	top: 22px;
	position: absolute;
	width: 130px;
	max-height: 200px;
	overflow-y: auto;
	border-radius: 3px;
	background-color: var(--tag-background-color);
	padding: 5px 0;
	margin-top: 5px;
}

.tags-menu ul {
	padding: 0;
	margin: 0;
}

.tags-menu li {
	cursor: pointer;
	line-height: 19px;
	font-size: 11px;
	list-style: none;
	color: var(--tag-font-color);
	padding: 0 6px;
	display: flex;
	align-items: center;
}

.tags-menu .ff-check-mark {
	color: var(--tag-checkmark-icon-color);
}

.tags-checkmark-wrapper {
	width: 10px;
}

.app-tag {
	height: 20px;
	border-radius: 12px;
	background-color: var(--tag-background-color);
	user-select: none;
	margin: 0 4px 4px 0;
	padding: 5px 7px 0 9px;
}

.app-tag .tag-content {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	font-size: var(--tag-font-size);
	font-weight: var(--tag-font-weight);
	font-style: normal;
	font-stretch: normal;
	line-height: normal;
	letter-spacing: normal;
	color: var(--tag-font-color);
	cursor: default;
}

.tag-delete {
	cursor: pointer;
	padding: 0 2px;
	font-size: 8px;
}

.tag-delete:hover {
	color: var(--tag-close-icon-hover-color);
}

.tag-name {
	margin-right: 2px;
}

.app-card .tag-name:hover {
	text-decoration: underline;
}

.tag-content .ff-close {
	padding-top: 0;
}

.label-bar .ff-close {
	padding-top: 2px;
	font-size: 8px;
}
