.mind-popup-response {
	position: relative;

	/* GPU acceleration */
	transform: translateZ(0);
	will-change: transform;

	/* Optimize repaints */
	contain: content;

	.block-editor-block-preview__content,
	.block-editor-block-preview__content iframe {
		max-height: none !important;
	}
}

.mind-popup-response__preview {
	/* GPU acceleration */
	will-change: opacity;
	backface-visibility: hidden;
	transform: translateZ(0);
	z-index: 2;
}

// Hidden preview styles.
.mind-popup-response--1 .mind-popup-response__preview:nth-child(2),
.mind-popup-response--2 .mind-popup-response__preview:nth-child(1), {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	opacity: 0;
	z-index: 1;
}

@keyframes mind-cursor-blink {
	0%,
	100% {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

/* Optimize for mobile */
@media (max-width: 768px) {
	.mind-popup-response {
		contain: strict;
		height: 100%;
	}
}
