/**
 * Zenio Dynamic URL - Strap Finder Customizer Component Stylesheet.
 *
 * BEM Architecture:
 * - Block: .smp-customizer
 * - Element: .smp-customizer__*
 * - Modifier: .smp-customizer--*
 *
 * @package Zenio\DynamicUrl
 * @since   1.0.0
 */

:root {
	--smp-customizer-bg: transparent;
	--smp-customizer-border: transparent;
	--smp-customizer-radius: 0px;
	--smp-customizer-shadow: none;
	--smp-customizer-height-desktop: 610px;
	--smp-customizer-height-tablet: 610px;
	--smp-customizer-height-mobile: 610px;
	--smp-skeleton-bg-start: #f8fafc;
	--smp-skeleton-bg-end: #e2e8f0;
	--smp-transition-smooth: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.smp-customizer {
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 0;
	box-sizing: border-box;
}

.smp-customizer__container {
	width: 100%;
}

.smp-customizer__card {
	position: relative;
	background: transparent !important;
	border: none !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	box-sizing: border-box;
	overflow: visible;
}

.smp-customizer__card--sticky {
	position: relative;
}

.smp-customizer__header {
	margin-bottom: 16px;
	text-align: left;
}

.smp-customizer__title {
	font-size: 20px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #0f172a;
	margin: 0;
	text-transform: none !important;
}

/* Iframe Wrapper & Zero CLS Skeleton */
.smp-customizer__wrapper {
	position: relative;
	width: 100%;
	min-height: 300px;
	height: var(--smp-customizer-height-desktop);
	border-radius: 0;
	overflow: hidden;
	background-color: transparent;
	border: none !important;
	box-shadow: none !important;
	transition: height 0.25s ease-out;
}

/* Skeleton Loading Shimmer */
.smp-customizer__skeleton {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(
		90deg,
		var(--smp-skeleton-bg-start) 0%,
		var(--smp-skeleton-bg-end) 50%,
		var(--smp-skeleton-bg-start) 100%
	);
	background-size: 200% 100%;
	animation: smp-skeleton-shimmer 1.5s infinite linear;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	border-radius: 12px;
}

.smp-customizer__skeleton-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid rgba(0, 0, 0, 0.08);
	border-top-color: #0066cc;
	border-radius: 50%;
	animation: smp-skeleton-spin 0.8s infinite linear;
}

.smp-customizer__skeleton-text {
	font-size: 14px;
	font-weight: 500;
	color: #64748b;
}

@keyframes smp-skeleton-shimmer {
	0% {
		background-position: 200% 0;
	}
	100% {
		background-position: -200% 0;
	}
}

@keyframes smp-skeleton-spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

/* Interactive Iframe */
.smp-customizer__iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	border-radius: 0;
	z-index: 2;
	background: transparent;
	overflow: hidden;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
	.smp-customizer {
		padding: 32px 16px;
	}

	.smp-customizer__card {
		padding: 20px 20px 12px 20px;
	}

	.smp-customizer__wrapper {
		height: var(--smp-customizer-height-tablet);
	}
}

@media (max-width: 768px) {
	.smp-customizer {
		padding: 20px 12px;
	}

	.smp-customizer__card {
		padding: 16px 12px 10px 12px;
		border-radius: 14px;
	}

	.smp-customizer__title {
		font-size: 17px;
	}

	.smp-customizer__wrapper {
		height: var(--smp-customizer-height-mobile);
	}
}

