.custom-dropdown {
	position: relative;
	display: inline-block;
	font-family: inherit;
	color: var(--color-white-500);
}

.custom-dropdown__native {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
	z-index: 2;
	appearance: none;
}

.custom-dropdown__custom {
	position: relative;
	z-index: 1;
}

.custom-dropdown__toggle {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 16px;
}

.custom-dropdown__icon {
	width: 16px;
	height: 16px;
	transition: transform 0.25s ease-in-out;
}

.custom-dropdown--open .custom-dropdown__icon {
	transform: rotate(180deg);
}

.custom-dropdown__list {
	position: absolute;
	top: 100%;
	right: 0;
	background: var(--color-brown-500);
	color: var(--color-white-500);
	list-style: none;
	margin: 8px 0 0 0;
	padding: 8px 0;
	min-width: 120px;
	border-radius: 4px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition:
		opacity 0.25s ease-in-out,
		transform 0.25s ease-in-out,
		visibility 0.25s;
	max-height: 250px;
	overflow-y: auto;
	z-index: 10;
}

.custom-dropdown--open .custom-dropdown__list {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.custom-dropdown__item {
	padding: 8px 16px;
	cursor: pointer;
	transition: background 0.25s ease-in-out;
}

.custom-dropdown__item:hover {
	background: #444;
}

.custom-dropdown__item--active {
	font-weight: bold;
	background: #555;
}

@media (min-width: 768px) {
	.custom-dropdown__native {
		display: none;
	}
}
