/* Modern Fancybox Styles */

#fancybox-loading {
	position: fixed;
	top: 50%;
	left: 50%;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	z-index: 1104;
	display: none;
	background: rgba(255,255,255,0.95);
	border-radius: 50%;
	box-shadow: 0 2px 16px rgba(0,0,0,0.12);
	align-items: center;
	justify-content: center;
}
#fancybox-loading::after {
	content: "";
	width: 32px;
	height: 32px;
	border: 4px solid #e0e7ef;
	border-top: 4px solid #1976d2;
	border-radius: 50%;
	animation: fancybox-spin 1s linear infinite;
}
@keyframes fancybox-spin {
	to { transform: rotate(360deg); }
}

#fancybox-overlay {
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	background: rgba(30, 41, 59, 0.55);
	z-index: 1100;
	display: none;
	backdrop-filter: blur(4px);
}

#fancybox-tmp {
	padding: 0;
	margin: 0;
	border: 0;
	overflow: auto;
	display: none;
}

#fancybox-wrap {
	position: fixed !important;
	left: 50% !important;
	top: 50% !important;
	transform: translate(-50%, -50%) !important;
	margin: 0 !important;
	padding: 0 !important;
	z-index: 1101;
	outline: none;
	display: none;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(30,41,59,0.18), 0 1.5px 6px rgba(30,41,59,0.08);
	transition: box-shadow 0.2s;
	min-width: 480px;
	max-width: 1200px;
	max-height: 96vh;
	overflow: hidden;
}

#fancybox-outer {
	position: static;
	width: 100%;
	height: 100%;
	background: transparent;
	padding: 0;
	box-shadow: none;
}

#fancybox-content {
	min-width: 480px;
	max-width: 1200px;
	width: auto !important;
	height: auto !important;
	padding: 32px 28px 24px 28px;
	outline: none;
	position: relative;
	overflow: visible;
	z-index: 1102;
	border: 0;
	background: #fff;
	border-radius: 18px;
	box-shadow: none;
	color: #1e293b;
	font-size: 1rem;
	transition: none !important;
}

#fancybox-close {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 36px;
	height: 36px;
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 1103;
	display: flex !important;
	align-items: center;
	justify-content: center;
	opacity: 0.7;
	transition: background 0.2s, opacity 0.2s;
}

#fancybox-close::before {
	margin-bottom: 25px;
	content: "";
	display: block;
	width: 20px;
	height: 20px;
	mask: url('data:image/svg+xml;utf8,<svg fill="none" stroke="black" stroke-width="2" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><line x1="6" y1="6" x2="18" y2="18"/><line x1="6" y1="18" x2="18" y2="6"/></svg>') center/contain no-repeat;
	background: #334155;
}

#fancybox-error {
	color: #ef4444;
	font: 500 1rem/1.5 'Inter', Arial, sans-serif;
	padding: 18px;
	margin: 0;
	background: #fef2f2;
	border-radius: 8px;
	text-align: center;
}

#fancybox-frame {
	width: 100%;
	height: 100%;
	border: none;
	display: block;
	border-radius: 12px;
}
#fancybox-title {
	font-size: 1.1rem;
	z-index: 1102;
	color: #64748b;
	margin-bottom: 8px;
	text-align: center;
	font-weight: 600;
}

.fancybox-title-inside {
	padding-bottom: 10px;
	text-align: center;
	color: #334155;
	background: #f8fafc;
	position: relative;
	border-radius: 8px 8px 0 0;
}

.fancybox-title-outside {
	padding-top: 10px;
	color: #334155;
	background: #f8fafc;
	border-radius: 0 0 8px 8px;
}

.fancybox-title-over {
	position: absolute;
	bottom: 0;
	left: 0;
	color: #fff;
	text-align: left;
	background: rgba(30,41,59,0.7);
	width: 100%;
	padding: 10px 16px;
	border-radius: 0 0 12px 12px;
}

#fancybox-title-over {
	display: block;
}

.fancybox-title-float {
	position: absolute;
	left: 0;
	bottom: -20px;
	height: 32px;
	width: 100%;
	text-align: center;
}

#fancybox-title-float-wrap {
	border: none;
	border-collapse: collapse;
	width: auto;
	background: #f1f5f9;
	border-radius: 8px;
	padding: 0 12px;
}

#fancybox-title-float-wrap td {
	border: none;
	white-space: nowrap;
}

#fancybox-title-float-left,
#fancybox-title-float-right {
	padding: 0 0 0 15px;
	background: none;
}

#fancybox-title-float-main {
	color: #334155;
	line-height: 29px;
	font-weight: bold;
	padding: 0 0 3px 0;
}

@media (max-width: 600px) {
	#fancybox-wrap, #fancybox-content {
		min-width: 0;
		width: 98vw !important;
		padding: 12px 4vw 12px 4vw;
		border-radius: 10px;
	}
	#fancybox-content {
		padding: 18px 4vw 18px 4vw;
	}
	#fancybox-close {
		top: 8px;
		right: 8px;
		width: 32px;
		height: 32px;
	}
}
#fancybox-content .vm-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 6px;
	font-size: 1rem;
	text-decoration: none;
	margin: 8px 8px 8px 0;
	transition: background 0.2s, color 0.2s;
	font-family: inherit;
	vertical-align: middle;

}

#fancybox-content .vm-btn-primary {
	background: #1976d2;
	color: #fff;
	border: none;
}
#fancybox-content .vm-btn-primary:hover {
	background: #145ea8;
}

#fancybox-content .vm-btn-secondary {
	background: #f1f5f9;
	color: #1976d2;
	border: 1px solid #1976d2;
}
#fancybox-content .vm-btn-secondary:hover {
	background: #e3eaf6;
	color: #145ea8;
}

#fancybox-content .floatright {
	float: right;
}

#fancybox-content h4 {
	text-align-last: center;
	margin: 18px 0 8px 0;
	color: #1976d2;
	font-size: 1.1rem;
	font-weight: 600;
}
#fancybox-content .vm-btn + .vm-btn {
	margin-left: 20px;
}