/* The container must be positioned relative: */
.custom-select {
	position: relative;
	user-select: none;
}

.custom-select select {
	display: none; /*hide original SELECT element: */
}

.select-selected {
	background-color: var(--custom-select-bg);
	display: flex;
	align-items: center;
	justify-content: space-between;
}

/* Style the arrow inside the select element: */
.select-selected:after {
	content: "";
	width: 8px;
	height: 8px;
	border: 2px solid var(--custom-select-fg);
	border-width: 0 2px 2px 0;
	transform: rotate(-135deg);
	transition: transform 300ms;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
	transform: rotate(45deg);
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
	color: var(--custom-select-fg);
	padding: 8px 16px;
	border: 1px solid transparent;
	border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
	cursor: pointer;
}

/* Style items (options): */
.select-items {
	position: absolute;
	background-color: var(--custom-select-bg);
	top: 100%;
	left: 0;
	right: 0;
	z-index: 99;

	transform: scaleY(1);
	transform-origin: top center;
	transition: all .3s ease-in-out;
}

/* Hide the items when the select box is closed: */
.select-hide {
	transform: scaleY(0);
}

/* selected item style */
.select-items .custom-select--selected {
	color: var(--custom-select-selected);
	display: flex;
	justify-content: space-between;
}
.select-items .custom-select--selected::after {
	content: "";
	width: 7px;
	height: 12px;
	border: 2px solid var(--custom-select-selected);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
