/* -------------------------------------------
	Filter
---------------------------------------------- */

.alpha-filters ul {
	list-style-type: none;
	margin: 0;
}

.alpha-filters {
	display: flex;

	>* {
		margin-bottom: 1rem;
	}

	.btn-filter {
		padding: 0 2em;
		display: inline-flex;
		align-items: center;
		border-radius: var(--alpha-corner-sm);
		justify-content: center;
	}

	.select-ul-toggle {
		position: relative;
		display: flex;
		align-items: center;
		border: 1px solid var(--alpha-change-color-light-3);
		padding: side-values(0.65em 3.05em 0.58em 1.07em);
		margin-bottom: 0;
		font-size: 1.3rem;
		line-height: 1.5;
		font-weight: 400;
		height: 100%;
		text-transform: capitalize;
		border-radius: var(--alpha-corner-sm);
		cursor: pointer;
	}

	.alpha-filter {
		position: relative;

		&::before {
			content: '\f078';
			font-family: 'Font Awesome 5 Free';
			position: absolute;
			top: 50%;
			#{$right}: 1.25em;
			margin-top: 1px;
			transform: translateY(-50%);
			font-size: 1.2rem;
			font-weight: 900;
			z-index: 1;
		}
	}

	ul,
	ul::before {
		content: '';
		position: absolute;
		border: 1px solid var(--alpha-change-border-color);
	}

	ul::before {
		top: -6px;
		#{$left}: 22px;
		width: 11px;
		height: 11px;
		border-width: side-values(1px 0 0 1px);
		background: var(--alpha-change-color-light-1);
		transform: rotate(45deg);
	}

	.select-ul ul {
		top: 100%;
		z-index: 100;
		width: 21rem;
		margin-top: 1rem;
		padding: 1rem 1.4rem 1rem;
		background: var(--alpha-change-color-light-1);
		opacity: 0;
		visibility: hidden;
		transition: opacity .3s;
	}

	.opened ul {
		opacity: 1;
		visibility: visible;
	}

	ul li {
		border-bottom: 1px solid var(--alpha-change-border-color);
	}

	ul li:last-child {
		border-bottom: none;
	}

	ul a {
		position: relative;
		display: block;
		padding: side-values(1rem 0 1rem 2.8rem);
		color: var(--alpha-change-color-dark-1);
		transition: color .4s;

		&:hover {
			color: var(--alpha-primary-color);
			text-decoration: none;
		}

		&:focus {
			text-decoration: none;
		}

		&::before {
			content: '';
			position: absolute;
			border: 1px solid;
			border-radius: var(--alpha-corner-sm);
			width: 18px;
			height: 18px;
			top: 50%;
			#{$left}: 2px;
			margin-#{$right}: 5px;
			transform: translateY(-50%);
			color: var(--alpha-grey-color);
			font-size: 0.7em;
			font-weight: 900;
			font-family: 'Font Awesome 5 Free';
			text-align: center;
			text-indent: 1px;
			line-height: 16px;
		}
	}

	.chosen a::before {
		content: "\f00c";
		color: var(--alpha-change-color-light-1);
		background-color: var(--alpha-change-color-dark-1);
		border-color: var(--alpha-change-color-dark-1);
	}

	&.align-center {
		justify-content: center;
	}

	&.align-right {
		justify-content: flex-end;
	}
}

@include mq(lg, max) {
	.alpha-filters {
		flex-wrap: wrap;
	}
}