.gform-admin {

	.gform-droplist {
		box-sizing: border-box;
		font-family: var(--gform-admin-font-family-base);
		position: relative;

		* {
			box-sizing: border-box;
		}
	}

	.gform-droplist__list-container {
		padding-block: var(--gform-admin-spacer-2);
	}

	.gform-droplist__list {
		list-style-type: none;
		margin: 0;
		padding: 0;
	}

	.gform-droplist__item {
		margin-block-end: var(--gform-admin-spacer-1);
		padding-block: var(--gform-admin-spacer-1);
		padding-inline: var(--gform-admin-spacer-2);

		&:last-child {
			margin-block-end: 0;
		}
	}

	.gform-droplist__item--group {
		position: relative;
	}

	.gform-droplist__item--has-divider {
		position: relative;

		&::after {
			border-block-end: 0.0625rem solid var(--gform-admin-color-white-lilac);
			content: "";
			inline-size: 100%;
			inset-block-end: calc(var(--gform-admin-spacer-1) * -1);
			inset-inline-start: 0;
			position: absolute;
		}
	}

	.gform-droplist__item-trigger {
		align-items: flex-start;
		background: var(--gform-admin-color-white);
		border: 0.0625rem solid var(--gform-admin-color-white);
		border-radius: 0.1875rem;
		cursor: pointer;
		display: flex;
		inline-size: 100%;
		outline: none;
		padding-block: var(--gform-admin-spacer-1);
		padding-inline: var(--gform-admin-spacer-2);
		text-align: start;
		text-decoration: none;
		transition: var(--gform-admin-transition-hover);
	}

	.gform-droplist__item-trigger--info {

		&:hover {
			background: var(--gform-admin-color-light-blue);
			border-color: var(--gform-admin-color-light-blue);
		}

		&:focus {
			background: var(--gform-admin-color-titan-white);
			border-color: var(--gform-admin-color-blue-ribbon);
			box-shadow: var(--gform-admin-box-shadow-input-focus);
		}

		&:active {
			background: var(--gform-admin-color-light-blue);
			border-color: var(--gform-admin-color-snuff);
			box-shadow: none;
		}

		.gform-droplist__item-trigger-icon::before,
		.gform-droplist__item-trigger-group-icon::before {
			color: var(--gform-admin-color-comet);
		}
	}

	.gform-droplist__item-trigger--error {

		&:hover {
			background: var(--gform-admin-color-background-red);
			border-color: var(--gform-admin-color-background-red);
		}

		&:focus {
			background: var(--gform-admin-color-background-red);
			border-color: var(--gform-admin-color-red);
			box-shadow: var(--gform-admin-box-shadow-input-error-focus);
		}

		&:active {
			background: var(--gform-admin-color-background-red);
			border-color: var(--gform-admin-color-spanish-pink);
			box-shadow: none;
		}

		&,
		.gform-droplist__item-trigger-icon::before,
		.gform-droplist__item-trigger-group-icon::before {
			color: var(--gform-admin-color-red);
		}
	}

	.gform-droplist__item-trigger--disabled:disabled {
		background: var(--gform-admin-color-white);
		border: 0.0625rem solid var(--gform-admin-color-white);
		cursor: default;
		opacity: 0.5;
	}

	.gform-droplist__item-trigger-text {
		flex: auto;
		padding-inline-end: 1.75rem;
		white-space: nowrap;
	}

	.gform-droplist__item-trigger-icon {
		flex: none;
		font-size: 1.25rem;
	}

	.gform-droplist__item-trigger-icon--before {
		margin-inline-end: 0.375rem;
	}

	.gform-droplist__item-trigger-icon--after {
		margin-inline-start: 0.375rem;
	}
}
