.template-viewer-wrap {
	display: inline-block;
}

.template-viewer-btn {
	display: inline-block;
	padding: 10px 20px;
	background: #2c3e50;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.2s;
}

.template-viewer-btn:hover {
	background: #1a252f;
}

.template-viewer-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}

.template-viewer-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.75);
	cursor: pointer;
}

.template-viewer-modal-box {
	position: relative;
	width: 100%;
	max-width: 1200px;
	height: 90vh;
	max-height: 800px;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.template-viewer-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 10;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	background: rgba(0, 0, 0, 0.6);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	border-radius: 4px;
	transition: background 0.2s;
}

.template-viewer-modal-close:hover {
	background: rgba(0, 0, 0, 0.8);
}

.template-viewer-iframe {
	flex: 1;
	width: 100%;
	height: 100%;
	border: none;
	display: block;
}
