.toplevel_page_formidable #style2 {
	width: 200px;
}

.frm-custom-dropdown {
	position: relative;
	display: inline-block;
	box-sizing: border-box;
	width: 100%;
	max-width: 200px;
	font-size: var(--text-xs);
}

.frm-custom-dropdown * {
	box-sizing: border-box;
}

.frm-custom-dropdown-toggle {
	display: block;
	width: 100%;
	padding: 0 var(--gap-sm) 0 var(--gap-xs);
	border-radius: var(--small-radius);
	line-height: var(--h-sm);
	color: var(--primary-500);
	background-color: transparent;
	border: 1px solid transparent;
	cursor: pointer;
	overflow: hidden;
	text-overflow: ellipsis;
	text-align: left;
	white-space: nowrap;
	position: relative;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;

	.frmsvg {
		position: absolute;
		right: var(--gap-2xs);
		top: 50%;
		transform: translateY(-50%);
		width: 10px;
		display: none;
		transition: all 0.2s ease-in-out;
	}
}

.frm-custom-dropdown-opened .frm-custom-dropdown-toggle .frmsvg {
	transform: translateY(-50%) rotate(180deg);
	transition: all 0.2s ease-in-out;
}

.frm-custom-dropdown-toggle:hover,
.frm-custom-dropdown-toggle:focus {
	border-color: var(--primary-500) !important;
	color: var(--grey-800);

	.frmsvg {
		display: block;
	}
}

.frm-custom-dropdown-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	margin-top: 6px;
	padding: var(--gap-2xs);
	background-color: #fff;
	border: 1px solid var(--grey-100);
	border-radius: var(--small-radius);
	box-shadow: var(--box-shadow-lg);
	z-index: 1000;
	font-weight: 500;
	color: var(--grey-800);

	.frm-custom-dropdown-opened & {
		display: block;
	}
}

.frm-custom-dropdown-menu-up {
	top: auto;
	bottom: 100%;
	margin-top: 0;
	margin-bottom: 2px;
}

.frm-custom-dropdown-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gap-xs);
	width: 100%;
	text-align: left;
	padding: 0 var(--gap-xs);
	line-height: var(--h-sm);
	background-color: transparent;
	border-radius: var(--small-radius);
	cursor: pointer;
	transition: background-color 120ms ease-out,
				color 120ms ease-out;

	> span {
		flex: 1;
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
	}

	.frmsvg {
		flex-shrink: 0;
		width: 12px;
		height: 12px;
		color: var(--primary-500);
		visibility: hidden;
	}

	&.frm-custom-dropdown-item--selected .frmsvg {
		visibility: visible;
	}
}

.frm-custom-dropdown-item:hover {
	color: var(--primary-500);
	text-decoration: none;
	background-color: var(--primary-25);
	transition: background-color 80ms ease-out,
				color 80ms ease-out;
}

.frm-custom-dropdown-group {
	max-height: 300px; /* 10 options */
	overflow-y: auto;
}

.frm-custom-dropdown-divider {
	height: 0;
	margin: var(--gap-2xs) 0;
	overflow: hidden;
	border-top: 1px solid var(--grey-200);
}

.frm-custom-dropdown-link {
	display: block;
	width: 100%;
	padding: 0 var(--gap-xs);
	line-height: var(--h-sm);
	color: var(--grey-500) !important;
	font-weight: 400;
	text-decoration: none;
	text-align: left;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	border-radius: var(--small-radius);
	transition: background-color 120ms ease-out,
				color 120ms ease-out;
}

.frm-custom-dropdown-link .frmsvg {
	width: 16px;
	margin-right: var(--gap-2xs);
}

.frm-custom-dropdown-link:focus,
.frm-custom-dropdown-link:hover {
	text-decoration: none;
	background-color: var(--primary-25);
	color: var(--primary-500) !important;
	transition: background-color 80ms ease-out,
				color 80ms ease-out;
}

.frm-custom-dropdown-toggle:disabled {
	background-color: #e9ecef;
	cursor: not-allowed;
	opacity: 0.65;
}
