/* Herecraft Add Product 2-step wizard */

body.hc-mvx-wizard-step-1 {
	overflow: hidden;
}

body.hc-mvx-wizard-step-1 .hc-mvx-wizard-deferred {
	display: none !important;
}

/* Recommended checklist lives in the left form column (not wrapped by the wizard).
   Hide it on step 1 so it cannot bleed through the category screen. */
body.hc-mvx-wizard-step-1 .checklist-wrapper,
body.hc-mvx-wizard-step-1 :has(> .checklist-wrapper) {
	display: none !important;
}

.hc-mvx-wizard-portal-root {
	position: relative;
	z-index: 100200;
}

.hc-mvx-wizard-overlay {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 100200;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 1.5rem;
	overflow: auto;
	background: #eef1f5;
	box-sizing: border-box;
}

@media (min-width: 900px) {
	.hc-mvx-wizard-overlay {
		left: 4.5rem;
	}
}

.hc-mvx-wizard-panel {
	width: 100%;
	max-width: 960px;
	margin: 0.75rem auto 2rem;
	background: #fff;
	border: 1px solid #e2e5eb;
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: min(680px, calc(100vh - 3rem));
}

.hc-mvx-wizard-header {
	padding: 1.35rem 1.5rem 1.1rem;
	border-bottom: 1px solid #eef0f3;
	background: linear-gradient(180deg, #fff 0%, #fafbfc 100%);
}

.hc-mvx-wizard-steps {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.9rem;
	font-size: 0.8125rem;
	color: #6b7280;
}

.hc-mvx-wizard-step {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.hc-mvx-wizard-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: #e5e7eb;
	color: #4b5563;
	font-size: 0.75rem;
	font-weight: 700;
}

.hc-mvx-wizard-step.is-active {
	color: #111827;
	font-weight: 600;
}

.hc-mvx-wizard-step.is-active .hc-mvx-wizard-step-num {
	background: #2563eb;
	color: #fff;
}

.hc-mvx-wizard-step-sep {
	width: 1.5rem;
	height: 1px;
	background: #d1d5db;
}

.hc-mvx-wizard-title {
	margin: 0 0 0.35rem;
	font-size: 1.4rem;
	font-weight: 700;
	color: #111827;
	line-height: 1.25;
}

.hc-mvx-wizard-desc {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.5;
	max-width: 42rem;
}

.hc-mvx-wizard-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	flex: 1;
	min-height: 380px;
	background: #fff;
}

.hc-mvx-wizard-col {
	padding: 1.15rem 1.35rem 1.35rem;
	border-right: 1px solid #eef0f3;
	overflow: auto;
	max-height: calc(100vh - 290px);
}

.hc-mvx-wizard-col:last-child {
	border-right: none;
	background: #fbfcfd;
}

.hc-mvx-wizard-col-title {
	margin: 0 0 0.85rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #6b7280;
}

.hc-mvx-wizard-list {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.hc-mvx-wizard-cat {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
	text-align: left;
	border: 1px solid #e6e8ec;
	background: #fff;
	border-radius: 10px;
	padding: 0.8rem 0.95rem;
	cursor: pointer;
	font-size: 0.9rem;
	color: #111827;
	transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.hc-mvx-wizard-cat:hover {
	border-color: #c5cad3;
	background: #f9fafb;
}

.hc-mvx-wizard-cat.is-active {
	border-color: #2563eb;
	background: #eff6ff;
	box-shadow: inset 3px 0 0 #2563eb;
}

.hc-mvx-wizard-cat-name {
	font-weight: 560;
	line-height: 1.35;
}

.hc-mvx-wizard-cat-count {
	flex-shrink: 0;
	font-size: 0.72rem;
	font-weight: 600;
	color: #6b7280;
	background: #f3f4f6;
	border-radius: 999px;
	padding: 0.2rem 0.5rem;
	white-space: nowrap;
}

.hc-mvx-wizard-cat.is-active .hc-mvx-wizard-cat-count {
	background: #dbeafe;
	color: #1d4ed8;
}

.hc-mvx-wizard-check {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	border: 1px solid #e6e8ec;
	border-radius: 10px;
	padding: 0.75rem 0.9rem;
	cursor: pointer;
	font-size: 0.875rem;
	color: #111827;
	background: #fff;
	transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hc-mvx-wizard-check:hover {
	border-color: #c5cad3;
}

.hc-mvx-wizard-check.is-selected {
	border-color: #2563eb;
	background: #eff6ff;
}

.hc-mvx-wizard-check input {
	width: auto !important;
	min-width: 1.05rem;
	min-height: 1.05rem;
	margin: 0;
	accent-color: #2563eb;
	flex-shrink: 0;
}

.hc-mvx-wizard-hint-box {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 180px;
	border: 1px dashed #d7dbe3;
	border-radius: 12px;
	background: #fff;
	padding: 1.25rem;
}

.hc-mvx-wizard-hint,
.hc-mvx-wizard-empty-subs p,
.hc-mvx-wizard-loading,
.hc-mvx-wizard-error {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
	line-height: 1.5;
}

.hc-mvx-wizard-col .hc-mvx-wizard-hint {
	margin-bottom: 0.85rem;
}

.hc-mvx-wizard-error {
	color: #b91c1c;
	padding: 1rem 1.5rem;
}

.hc-mvx-wizard-loading {
	padding: 2.5rem 1.5rem;
	text-align: center;
}

.hc-mvx-wizard-empty-subs {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

.hc-mvx-wizard-footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.85rem 1rem;
	padding: 1rem 1.35rem;
	border-top: 1px solid #eef0f3;
	background: #f8fafc;
}

.hc-mvx-wizard-footer-main {
	flex: 1;
	min-width: 200px;
}

.hc-mvx-wizard-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.hc-mvx-wizard-chips.is-empty {
	color: #9ca3af;
	font-size: 0.8125rem;
}

.hc-mvx-wizard-chip {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.6rem;
	border-radius: 999px;
	background: #dbeafe;
	color: #1e3a8a;
	font-size: 0.75rem;
	font-weight: 600;
}

.hc-mvx-wizard-msg {
	margin-top: 0.45rem;
	color: #b91c1c;
	font-size: 0.8125rem;
}

.hc-mvx-wizard-continue {
	appearance: none;
	border: none;
	border-radius: 10px;
	background: #2563eb;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 650;
	padding: 0.78rem 1.15rem;
	cursor: pointer;
	line-height: 1.2;
	box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.hc-mvx-wizard-continue:hover {
	background: #1d4ed8;
}

.hc-mvx-wizard-continue.is-disabled,
.hc-mvx-wizard-continue:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

@media (max-width: 800px) {
	.hc-mvx-wizard-overlay {
		left: 0;
		padding: 0.75rem;
	}

	.hc-mvx-wizard-body {
		grid-template-columns: 1fr;
	}

	.hc-mvx-wizard-col {
		border-right: none;
		border-bottom: 1px solid #eef0f3;
		max-height: none;
	}

	.hc-mvx-wizard-col:last-child {
		border-bottom: none;
	}

	.hc-mvx-wizard-panel {
		min-height: auto;
	}

	.hc-mvx-wizard-continue {
		width: 100%;
	}
}
