.gform-admin {

	.gform-banner {
		box-sizing: border-box;
		display: flex;
		position: relative;

		&:hover,
		&:focus-within {

			.gform-banner__droplist {
				opacity: 1;
			}
		}

		.gform-file-upload__wrapper {
			block-size: 100%;
			border: 0;
			inline-size: 100%;
			inset-block-start: 0;
			inset-inline-start: 0;
			min-height: auto;
			position: absolute;

			.file-drop {
				min-height: auto;
			}
		}

		.gform-file-upload__preview {
			block-size: 100%;
			inline-size: 100%;
			inset-block-start: 0;
			inset-inline-start: 0;
			overflow: hidden;
			position: absolute;

			img {
				block-size: 100%;
				inline-size: 100%;
				inset-block-start: 50%;
				inset-inline-start: 50%;
				object-fit: cover;
				position: absolute;
				transform: translate(-50%, -50%);
			}
		}

		.gform-file-upload__wrapper--has-preview,
		.gform-file-upload__preview {
			padding: 0;
		}

		.gform-file-upload__filetypes,
		.gform-file-upload__icon,
		.gform-file-upload__message,
		.gform-file-upload__buttons-wrapper {
			display: none;
		}

		.gform-banner__droplist {
			inset-block-end: var(--gform-admin-spacer-2);
			inset-inline-end: var(--gform-admin-spacer-2);
			opacity: 0;
			position: absolute;
			transition: opacity 0.2s ease-in-out;
			z-index: 1;
		}
	}

	.gform-banner--has-image {
		background-position: center;
		background-repeat: no-repeat;
		background-size: cover;
	}
}
