.fc-preview-open[hidden] {
	display: none !important;
}

body.fc-preview-modal-open {
	overflow: hidden;
}

.fc-preview-modal[hidden] {
	display: none;
}

.fc-preview-modal:not([hidden]) {
	align-items: center;
	animation: fc-preview-backdrop-in 180ms ease-out both;
	background: rgba(16, 18, 22, 0.55);
	box-sizing: border-box;
	display: flex;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	inset: 0;
	justify-content: center;
	padding: 4vh 2vw;
	position: fixed;
	z-index: 999999;
}

.fc-preview-dialog {
	animation: fc-preview-dialog-in 200ms cubic-bezier(0.16, 1, 0.3, 1) both;
	background: #fff;
	border: 1px solid rgba(16, 18, 22, 0.08);
	border-radius: 12px;
	box-shadow: 0 24px 60px -16px rgba(16, 18, 22, 0.38);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	max-height: 92vh;
	max-width: 96vw;
	min-width: 300px;
	overflow: hidden;
	width: min(560px, 96vw);
}

.fc-preview-header {
	align-items: center;
	background: #fff;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 auto;
	justify-content: space-between;
	padding: 9px 8px 9px 18px;
}

.fc-preview-header h2 {
	color: #16181d;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.01em;
	line-height: 1.3;
	margin: 0;
}

.fc-preview-close {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 8px;
	color: #5c6270;
	cursor: pointer;
	display: inline-flex;
	flex: 0 0 auto;
	height: 34px;
	justify-content: center;
	padding: 0;
	width: 34px;
}

.fc-preview-close:hover {
	background: rgba(16, 18, 22, 0.06);
	color: #16181d;
}

.fc-preview-close:focus-visible {
	outline: 2px solid #16181d;
	outline-offset: 2px;
}

.fc-preview-close svg {
	display: block;
	height: 16px;
	width: 16px;
}

.fc-preview-stage {
	background: #f4f5f7;
	border-top: 1px solid rgba(16, 18, 22, 0.07);
	box-sizing: border-box;
	flex: 0 0 auto;
	min-height: 0;
	position: relative;
}

.fc-preview-frame {
	background: #f4f5f7;
	border: 0;
	display: block;
	height: min(60vh, 520px);
	width: 100%;
}

.fc-preview-overlay {
	align-items: center;
	background: rgba(244, 245, 247, 0.96);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 6px;
	inset: 0;
	justify-content: center;
	padding: 34px 24px;
	position: absolute;
	text-align: center;
}

.fc-preview-overlay[hidden] {
	display: none;
}

.fc-preview-spinner {
	animation: fc-preview-spin 800ms linear infinite;
	border: 2px solid #d3d6dc;
	border-radius: 50%;
	border-top-color: #16181d;
	display: block;
	height: 22px;
	width: 22px;
}

.fc-preview-timeout-title {
	color: #16181d;
	font-size: 15px;
	font-weight: 600;
	margin: 0;
}

.fc-preview-timeout-text {
	color: #6a7180;
	font-size: 13px;
	margin: 0;
	max-width: 34ch;
}

.fc-preview-retry {
	background: #16181d;
	border: 0;
	border-radius: 8px;
	color: #fff;
	cursor: pointer;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	padding: 9px 18px;
}

.fc-preview-timeout .fc-preview-retry {
	margin-top: 12px;
}

.fc-preview-retry:focus-visible {
	outline: 2px solid #16181d;
	outline-offset: 2px;
}

.fc-preview-status {
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	height: 1px;
	overflow: hidden;
	position: absolute;
	white-space: nowrap;
	width: 1px;
}

.fc-preview-error-actions {
	align-items: center;
	background: #fff;
	border-top: 1px solid rgba(16, 18, 22, 0.07);
	box-sizing: border-box;
	display: flex;
	flex: 0 0 auto;
	justify-content: flex-end;
	padding: 9px 14px;
}

.fc-preview-error-actions[hidden] {
	display: none;
}

@keyframes fc-preview-backdrop-in {

	from {
		opacity: 0;
	}
}

@keyframes fc-preview-dialog-in {

	from {
		opacity: 0;
		transform: scale(0.985);
	}
}

@keyframes fc-preview-spin {

	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {

	.fc-preview-modal:not([hidden]),
	.fc-preview-dialog {
		animation: none;
	}

	.fc-preview-spinner {
		animation-duration: 2.4s;
	}
}

@media (max-width: 600px) {

	.fc-preview-modal:not([hidden]) {
		padding: 0;
	}

	.fc-preview-dialog {
		border: 0;
		border-radius: 0;
		height: 100dvh;
		max-height: 100dvh;
		max-width: none;
		min-width: 0;
		width: 100vw !important;
	}

	.fc-preview-stage {
		flex: 1 1 auto;
	}

	.fc-preview-frame {
		height: 100% !important;
		width: 100% !important;
	}
}
