/**
 * MPD Template Preview Styles
 *
 * Styles for template preview mode in the editor.
 *
 * @package Magical_Shop_Builder
 * @since   2.0.0
 */

/* Preview Mode Indicator */
.mpd-preview-mode {
	position: relative;
}

.mpd-preview-mode::before {
	content: 'Preview Mode';
	position: fixed;
	top: 32px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	padding: 8px 20px;
	border-radius: 0 0 8px 8px;
	font-size: 12px;
	font-weight: 600;
	z-index: 99999;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Preview Data Notice */
.mpd-preview-notice {
	background: #f0f4ff;
	border: 1px solid #c7d2fe;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 20px;
	font-size: 14px;
	color: #4338ca;
}

.mpd-preview-notice strong {
	display: block;
	margin-bottom: 4px;
}

/* Template Placeholder Styles */
.mpd-template-placeholder {
	background: linear-gradient(135deg, #f5f7fa 0%, #e4e8ec 100%);
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	padding: 40px;
	text-align: center;
	margin: 20px 0;
}

.mpd-template-placeholder-icon {
	font-size: 48px;
	color: #94a3b8;
	margin-bottom: 16px;
}

.mpd-template-placeholder-title {
	font-size: 18px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 8px;
}

.mpd-template-placeholder-text {
	font-size: 14px;
	color: #64748b;
}

/* WooCommerce Preview Enhancements */
.mpd-preview-mode .woocommerce-product-gallery {
	opacity: 1 !important;
}

.mpd-preview-mode .woocommerce .product {
	visibility: visible !important;
}

/* Ensure widgets display properly in preview */
.mpd-preview-mode .elementor-widget-wrap {
	padding: 0;
}

/* Responsive Preview Styles */
@media (max-width: 782px) {
	.mpd-preview-mode::before {
		top: 46px;
		font-size: 11px;
		padding: 6px 14px;
	}
}

@media (max-width: 600px) {
	.mpd-preview-mode::before {
		display: none;
	}
}
