// Colors
$textColor: #333333;
$buttonColorBg: #f1f1f1;
$hoverItemColorBg: #3875d7;
$borderListColor: #f1f1f1;
$boxShadowListColor: rgba(0, 0, 0, 0.3);

.kit-filter-actions {
	display: inline-flex;
	box-sizing: border-box;
	font-family: Inter, sans-serif;

	> * {
		&:not(:last-child) {
			margin-right: 12px;
		}
	}
}

.kit-filter-actions__popover {
	position: relative;
}

.kit-filter-actions__title {
	&::after {
		content: "";
		display: inline-block;
		margin-left: 5px;
		border-top: 4px solid;
		border-left: 4px solid transparent;
		border-right: 4px solid transparent;
	}
}

.kit-filter-actions__list_hide {
	display: none;
}

.kit-filter-actions__list {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 18;
	width: 180px;
	margin: 10px 0 0;
	padding: 5px 0 0;
	background-color: #ffffff;
	border: solid 1px $borderListColor;
	border-radius: 3px;
	box-shadow: 0 0 6px 0 $boxShadowListColor;
	box-sizing: border-box;
	list-style: none;
	font-family: "PTSans", sans-serif;
	transform: translateX(-50%);

	&::before,
	&::after {
		content: "";
		position: absolute;
		bottom: 100%;
		left: 50%;
	}

	&::before {
		z-index: 2;
		border-left: 6px solid transparent;
		border-right: 6px solid transparent;
		border-bottom: 6px solid;
		color: #ffffff;
	}

	&::after {
		z-index: 1;
		margin-left: -2px;
		border-left: 8px solid transparent;
		border-right: 8px solid transparent;
		border-bottom: 8px solid;
		color: $borderListColor;
	}
}

.kit-filter-actions__list-item {
	display: flex;
	align-items: center;
	min-height: 31px;
	padding-top: 5px;
	padding-right: 16px;
	padding-left: 16px;
	padding-bottom: 5px;
	box-sizing: border-box;
	font-size: 13px;
	line-height: 1.23;
	color: #000000;
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out;
	transition: opacity 0.3s ease-out;
	cursor: pointer;

	&:hover {
		opacity: 0.6;
	}
}
