.nxl-customizer {
	max-width: 600px;
	margin: 0 auto;
	padding: 24px;
	background: #fff;
	border-radius: 12px;
	position: relative;
}

/* Hide original WooCommerce actions when customizer is present */
form.cart:has(.nxl-customizer) .quantity,
form.cart:has(.nxl-customizer) .single_add_to_cart_button {
	display: none;
}

/* Show them only when moved into the placeholder */
.nxl-cart-actions-placeholder .quantity,
.nxl-cart-actions-placeholder .single_add_to_cart_button {
	display: flex !important;
}

.nxl-shell {
	display: grid;
	gap: 20px;
}

.nxl-skeleton {
	height: 280px;
	background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
	background-size: 200% 100%;
	animation: nxl-skeleton 1.3s infinite;
}

@keyframes nxl-skeleton {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.nxl-progress {
	display: flex;
	gap: 26px;
	justify-content: center;
	margin-bottom: 18px;
	padding: 2px 4px;
}

.nxl-progress-step {
	position: relative;
	width: 36px;
	height: 36px;
	border-radius: 999px;
	border: 2px solid #d2dced;
	background: linear-gradient(180deg, #ffffff 0%, #f2f6fc 100%);
	color: #4b5b75;
	font-weight: 700;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
}

.nxl-progress-step::before {
	content: "";
	position: absolute;
	top: 50%;
	right: calc(100% + 6px);
	transform: translateY(-50%);
	width: 20px;
	height: 2px;
	background: #d9e2f2;
}

.nxl-progress-step:first-child::before {
	display: none;
}

.nxl-progress-step.active,
.nxl-progress-step.done {
	border-color: #29a7ff;
	background: linear-gradient(180deg, #35b3ff 0%, #1f98f2 100%);
	color: #fff;
}

.nxl-progress-step.done::before {
	background: #29a7ff;
}

.nxl-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	align-items: center;
}

.nxl-nav-btn {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid #cfe0f5;
	background: linear-gradient(180deg, #ffffff 0%, #f3f7fd 100%);
	color: #344766;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
}

.nxl-nav-btn:hover:not(:disabled) {
	border-color: #29a7ff;
	color: #29a7ff;
	transform: translateY(-1px);
}

.nxl-nav-btn:disabled {
	opacity: .45;
	cursor: not-allowed;
}

.nxl-nav-btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.nxl-step-title {
	font-size: 28px;
	text-align: center;
	margin-bottom: 8px;
}

.nxl-card {
	border: 1px solid #e5e7eb;
	padding: 16px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 12px;
	cursor: pointer;
	transition: all .2s ease;
	position: relative;
	border-radius: 8px;
}

.nxl-card-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	width: 100%;
	margin-bottom: 4px;
}

.nxl-card-head strong {
	font-size: 16px;
	color: #1e293b;
	line-height: 1.4;
}

.nxl-card input[type="radio"],
.nxl-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	pointer-events: none;
}

.nxl-card:focus-within,
.nxl-card:hover {
	border-color: #29a7ff;
	background: #f0f9ff;
}

.nxl-card img {
	width: 56px;
	height: 56px;
	object-fit: contain;
}

.nxl-card-media {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nxl-card-icon {
	width: 48px;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #29a7ff;
}

.nxl-card-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.nxl-card-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nxl-price {
	font-weight: 700;
	color: #1e293b;
	white-space: nowrap;
	margin-left: 12px;
}

.nxl-tip {
	border: 1px solid #0f172a;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 11px;
}

.nxl-fields-wrap label {
	display: block;
	margin-bottom: 12px;
}

.nxl-fields-wrap input[type="text"],
.nxl-fields-wrap input[type="number"],
.nxl-fields-wrap input[type="date"] {
	width: 100%;
	min-height: 40px;
}

.nxl-summary {
	margin: 12px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.nxl-summary-row {
	display: grid;
	grid-template-columns: 1fr 2fr auto;
	gap: 8px;
	padding: 8px 0;
	align-items: center;
}

.nxl-errors {
	color: #b91c1c;
	margin-top: 8px;
}

.nxl-upload-status {
	margin-bottom: 12px;
}

.nxl-upload-progress {
	background: #f0f9ff;
	border: 1px solid #d0e8ff;
	border-radius: 8px;
	padding: 10px 14px;
	color: #0369a1;
	font-size: 14px;
}

.nxl-file-list {
	margin-top: 8px;
}

.nxl-file-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 6px 10px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	margin-bottom: 4px;
	font-size: 13px;
}

.nxl-file-item button {
	background: none;
	border: none;
	color: #dc2626;
	cursor: pointer;
	font-size: 12px;
}

.nxl-file-item button:hover {
	text-decoration: underline;
}

.nxl-consent {
	margin-top: 14px;
	display: block;
}

.nxl-cart-actions-placeholder {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.nxl-cart-actions-placeholder .quantity {
	margin: 0 !important;
}

.nxl-cart-actions-placeholder .single_add_to_cart_button {
	flex: 1;
	height: 48px;
	font-size: 16px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #0f172a;
	color: #ffffff;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.nxl-cart-actions-placeholder .single_add_to_cart_button:hover {
	background: #1e293b;
}

.nxl-next {
	background: #2563eb;
	color: #fff;
	border: none;
	padding: 10px 24px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
	transition: background .2s ease;
	width: auto;
	height: auto;
}

.nxl-next.is-hidden {
	display: none;
}

@media (max-width: 767px) {
	.nxl-customizer {
	padding: 12px;
	}
	.nxl-step-title {
	font-size: 22px;
	}
	.nxl-card {
		flex-wrap: wrap;
		gap: 12px;
	}
	.nxl-card-media {
		width: 48px;
		height: 48px;
	}
	.nxl-card-text {
		flex: 1;
		min-width: 0;
	}
	.nxl-price {
		width: 100%;
		text-align: right;
		margin-top: 4px;
	}
	.nxl-summary-row {
	grid-template-columns: 1fr;
	}
	.nxl-progress {
	gap: 18px;
	}
	.nxl-progress-step::before {
	width: 12px;
	}
}
