.nxf-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(.nxf-customizer) .quantity,
form.cart:has(.nxf-customizer) .single_add_to_cart_button {
	display: none;
}

/* Show them only when moved into the placeholder */
.nxf-cart-actions-placeholder .quantity,
.nxf-cart-actions-placeholder .single_add_to_cart_button {
	display: flex !important;
}

.nxf-shell {
	display: grid;
	gap: 20px;
}

.nxf-skeleton {
	height: 280px;
	background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
	background-size: 200% 100%;
	animation: nxf-skeleton 1.3s infinite;
}

@keyframes nxf-skeleton {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.nxf-progress {
	display: flex;
	gap: 12px;
	justify-content: center;
	margin-bottom: 12px;
	padding: 8px 0;
	position: relative;
}

.nxf-progress::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 120px;
	height: 1px;
	background: #e2e8f0;
	z-index: 0;
}

.nxf-progress-step {
	position: relative;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #94a3b8;
	font-weight: 600;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: 1;
	cursor: pointer;
}

.nxf-progress-step::before {
	display: none;
}

.nxf-progress-step.active {
	border-color: #2563eb;
	background: #2563eb;
	color: #fff;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
	transform: scale(1.1);
}

.nxf-progress-step.done {
	border-color: #2563eb;
	background: #fff;
	color: #2563eb;
}

.nxf-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 24px;
	align-items: center;
}

.nxf-back {
	margin-right: auto;
}

.nxf-next {
	margin-left: auto;
}

.nxf-nav-btn {
	width: 44px;
	height: 44px;
	border-radius: 999px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #64748b;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all .2s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nxf-nav-btn:hover:not(:disabled) {
	border-color: #2563eb;
	color: #2563eb;
	background: #f8faff;
}

.nxf-nav-btn:disabled {
	opacity: .3;
	cursor: not-allowed;
}

.nxf-nav-btn svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
}

.nxf-step-title {
	font-size: 11px;
	text-align: center;
	margin-bottom: 4px;
	margin-top: 0;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #94a3b8;
}

.nxf-step-desc {
	font-size: 20px;
	text-align: center;
	margin-bottom: 20px;
	color: #1e293b;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.nxf-card {
	border: 1px solid #e2e8f0;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 10px;
	cursor: pointer;
	transition: all .2s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	border-radius: 12px;
	background: #fff;
}

.nxf-card::before {
	content: "";
	width: 20px;
	height: 20px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	flex-shrink: 0;
	transition: all .2s ease;
	background: #fff;
	box-sizing: border-box;
	display: block;
}

.nxf-card:has(input:checked)::before {
	border-color: #2563eb;
	border-width: 6px;
}

.nxf-card-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
}

.nxf-card-head strong {
	font-size: 15px;
	color: #1e293b;
	line-height: 1.2;
	font-weight: 600;
}

.nxf-card input[type="radio"],
.nxf-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	pointer-events: none;
}

.nxf-card:focus-within,
.nxf-card:hover {
	border-color: #cbd5e1;
	background: #f8fafc;
}

.nxf-card:has(input:checked) {
	border-color: #2563eb;
	background: #f0f7ff;
	box-shadow: 0 0 0 1px #2563eb;
}

.nxf-card img {
	width: 36px;
	height: 36px;
	object-fit: contain;
}

.nxf-card-media {
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.nxf-card-icon {
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2563eb;
}

.nxf-card-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

.nxf-card-text {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.nxf-card-text p {
	margin: 0;
	font-size: 13px;
	color: #64748b;
	line-height: 1.4;
}

.nxf-price {
	font-weight: 700;
	color: #1e293b;
	white-space: nowrap;
	margin-left: 12px;
	font-size: 14px;
}

.nxf-tip {
	border: 1px solid #0f172a;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	font-size: 11px;
}

.nxf-fields-wrap label {
	display: block;
	margin-bottom: 12px;
}

.nxf-fields-wrap input[type="text"],
.nxf-fields-wrap input[type="number"],
.nxf-fields-wrap input[type="date"] {
	width: 100%;
	min-height: 40px;
}

.nxf-summary {
	margin: 20px 0;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	overflow: hidden;
}

.nxf-summary-row {
	display: grid;
	grid-template-columns: 140px 1fr auto;
	gap: 12px;
	padding: 12px 16px;
	align-items: center;
	border-bottom: 1px solid #f3f4f6;
	background: #fff;
}

.nxf-summary-row:last-child {
	border-bottom: none;
}

.nxf-summary-label strong {
	font-size: 13px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.nxf-summary-value {
	font-size: 15px;
	color: #1e293b;
	font-weight: 500;
}

.nxf-summary-action button {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #475569;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: all .2s ease;
}

.nxf-summary-action button:hover {
	background: #e2e8f0;
	color: #1e293b;
}

.nxf-errors {
	color: #b91c1c;
	margin-top: 8px;
}

.nxf-upload-status {
	margin-bottom: 12px;
}

.nxf-upload-progress {
	background: #f0f9ff;
	border: 1px solid #d0e8ff;
	border-radius: 8px;
	padding: 10px 14px;
	color: #0369a1;
	font-size: 14px;
}

.nxf-file-list {
	margin-top: 8px;
}

.nxf-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;
}

.nxf-file-item button {
	background: none;
	border: none;
	color: #dc2626;
	cursor: pointer;
	font-size: 12px;
}

.nxf-file-item button:hover {
	text-decoration: underline;
}

.nxf-consent {
	margin-top: 14px;
	display: block;
}

.nxf-cart-actions-placeholder {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e5e7eb;
}

.nxf-cart-actions-placeholder .quantity {
	margin: 0 !important;
}

.nxf-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;
}

.nxf-cart-actions-placeholder .single_add_to_cart_button:hover {
	background: #1e293b;
}

.nxf-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;
}

.nxf-next.is-hidden {
	display: none;
}

/* Data Block Styling (Checkout, Emails, etc.) */
.nxf-data-block {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	margin: 10px 0;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.nxf-data-table {
	width: 100%;
	border-collapse: collapse;
}

.nxf-data-table tr {
	border-bottom: 1px solid #f1f5f9;
}

.nxf-data-table tr:last-child {
	border-bottom: none;
}

.nxf-data-table th {
	text-align: left;
	padding: 10px 0;
	font-weight: 700;
	color: #1e293b;
	width: 160px;
	vertical-align: top;
	font-size: 14px;
}

.nxf-data-table td {
	padding: 10px 0;
	color: #475569;
	vertical-align: top;
	font-size: 14px;
}

.nxf-data-price-row th {
	color: #2563eb;
}

.nxf-data-price-row td {
	font-weight: 600;
	color: #0f172a;
}

.nxf-summary-item-images {
	display: flex;
	gap: 8px;
	margin-top: 8px;
}

.nxf-summary-item-images img {
	max-width: 50px;
	height: auto;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
	padding: 2px;
	background: #fff;
}

.nxf-data-files {
	margin-top: 15px;
	border-top: 1px solid #e2e8f0;
	padding-top: 12px;
}

.nxf-data-files strong {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.025em;
}

.nxf-data-files ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.nxf-data-files a {
	color: #2563eb;
	text-decoration: none;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 6px;
	font-weight: 500;
}

.nxf-data-files a:hover {
	text-decoration: underline;
}

@media (max-width: 767px) {
	.nxf-customizer {
	padding: 12px;
	}
	.nxf-step-title {
	font-size: 22px;
	}
	.nxf-card {
		flex-wrap: wrap;
		gap: 12px;
	}
	.nxf-card-media {
		width: 48px;
		height: 48px;
	}
	.nxf-card-text {
		flex: 1;
		min-width: 0;
	}
	.nxf-price {
		width: 100%;
		text-align: right;
		margin-top: 4px;
	}
	.nxf-summary-row {
	grid-template-columns: 1fr;
	}
	.nxf-progress {
	gap: 18px;
	}
	.nxf-progress-step::before {
	width: 12px;
	}
}
