.drop-zone {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;

	margin: 15px;

	z-index: z-index("root", ".drop-zone");
	visibility: hidden;
	opacity: 0;
	transition: 0.3s opacity, 0.3s background-color, 0s visibility 0.3s;

	border: 6px solid var(--color-primary-dark);
	border-radius: 6px; /* stylelint-disable-line scales/radii */

	background-color: color-mix(in srgb, var(--color-primary) 80%, transparent);

	&.is-active {
		opacity: 1;
		visibility: visible;
		transition: 0.3s opacity, 0.3s background-color;
	}

	&.is-dragging-over-element {
		background-color: color-mix(in srgb, var(--color-primary) 80%, transparent);
	}

	&.is-full-screen {
		position: fixed;
	}
}

.drop-zone__content {
	position: absolute;
	top: 50%;
	left: 0;
	right: 0;
	z-index: z-index("root", ".drop-zone__content");
	transform: translateY(-50%);
	width: 100%;
	font-size: $font-body-small;
	font-weight: 600;
	text-align: center;
	color: var(--color-text-inverted);
	transition: transform 0.3s ease-in-out;
}

.drop-zone.is-dragging-over-element .drop-zone__content {
	transform: translateY(-50%) scale(1.05);
}

.drop-zone__content-icon,
.drop-zone__content-text {
	display: block;
}

.drop-zone__content-icon {
	margin: 0 auto;
	line-height: 0;
}

.drop-zone.is-full-screen .drop-zone__content {
	font-size: $font-title-large;
}

.editor-drawer-well .drop-zone.editor-featured-image__dropzone {
	margin: 0;
}

.drop-zone.editor-featured-image__dropzone {
	background-color: var(--color-accent);
	border: 6px solid var(--color-accent-dark);

	&.is-dragging-over-element {
		background-color: var(--color-accent-dark);
		border-color: var(--color-accent-80);
	}

	.drop-zone__content-icon svg g {
		fill: var(--color-text-inverted);
	}

	.drop-zone__content-text {
		color: var(--color-text-inverted);
	}
}
