.hst-transcript-preview-wrap {
	width: 100%;
	line-height: 0;
}

.hst-transcript-preview-zoom {
	position: relative;
	overflow: hidden;
	width: 100%;
	cursor: zoom-in;
	touch-action: pan-y;
}

.hst-transcript-preview-zoom.is-zoomed {
	cursor: crosshair;
}

.hst-transcript-preview-wrap .hst-transcript-preview {
	width: 100%;
	height: auto;
	display: block;
	transform: scale(1);
	transition: transform 0.12s ease-out;
	will-change: transform;
}

.hst-transcript-preview-zoom.is-zoomed .hst-transcript-preview {
	transform: scale(var(--hst-preview-zoom-scale, 2));
}

@media (prefers-reduced-motion: reduce) {
	.hst-transcript-preview-wrap .hst-transcript-preview {
		transition: none;
	}

	.hst-transcript-preview-zoom.is-zoomed .hst-transcript-preview {
		transform: none;
	}

	.hst-transcript-preview-zoom.is-zoomed {
		cursor: zoom-in;
	}
}

.hst-transcript-preview-wrap.is-loading .hst-transcript-preview,
.hst-transcript-preview.is-loading {
	filter: blur(10px);
	opacity: 0.85;
	transition: filter 0.15s ease, opacity 0.15s ease;
}

.hst-editor-message {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border-radius: 4px;
}

.hst-editor-message--success {
	background: #e8f5e9;
	color: #2e7d32;
}

.hst-editor-message--error {
	background: #ffebee;
	color: #c62828;
}

.hst-prefill-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, 0.94);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}

.hst-prefill-overlay.is-visible {
	opacity: 1;
	visibility: visible;
}

body.hst-prefill-active {
	overflow: hidden;
}

.hst-prefill-overlay__panel {
	text-align: center;
	padding: 2rem;
	max-width: 22rem;
}

.hst-prefill-overlay__spinner {
	box-sizing: border-box;
	width: 40px;
	height: 40px;
	margin: 0 auto 1rem;
	border: 3px solid #e0e0e0;
	border-top-color: #2271b1;
	border-radius: 50%;
	animation: hst-prefill-spin 0.8s linear infinite;
}

@keyframes hst-prefill-spin {
	to {
		transform: rotate(360deg);
	}
}

.hst-prefill-overlay__message {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.45;
	color: #1d2327;
}

/* homeschool-save-design: not used on transcript product */
body.hst-transcript-product .save_design_btn,
body.hst-transcript-product .add_to_cart_save_design_btn,
body.hst-transcript-product .homeschool_save_this_design_modal {
	display: none !important;
}
