/* FT1 EPO Wizard — protótipo */

.ft1-epo-wizard-active .tm-extra-product-options.ft1-wizard-ready {
	position: relative;
}

.ft1-epo-wizard-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 14px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fafafa;
}

.ft1-epo-wizard-bar__steps {
	display: flex;
	flex: 1;
	gap: 8px;
	flex-wrap: wrap;
}

.ft1-epo-wizard-bar__step {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	background: #fff;
	border: 1px solid #e5e7eb;
	cursor: default;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.ft1-epo-wizard-bar__step.is-active {
	color: #111827;
	border-color: #a8cf45;
	background: #f3f9e8;
}

.ft1-epo-wizard-bar__step.is-done {
	color: #065f46;
	border-color: #a7f3d0;
	background: #ecfdf5;
}

.ft1-epo-wizard-bar__step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	font-size: 11px;
	background: #e5e7eb;
	color: #374151;
}

.ft1-epo-wizard-bar__step.is-active .ft1-epo-wizard-bar__step-num,
.ft1-epo-wizard-bar__step.is-done .ft1-epo-wizard-bar__step-num {
	background: #a8cf45;
	color: #1f2937;
}

.ft1-epo-wizard-bar__counter {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	white-space: nowrap;
}

.ft1-epo-wizard-nav {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid #e5e7eb;
}

.ft1-epo-wizard-nav button {
	appearance: none;
	border: 0;
	border-radius: 999px;
	padding: 11px 20px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.2s, transform 0.1s;
}

.ft1-epo-wizard-nav button:active {
	transform: translateY(1px);
}

.ft1-epo-wizard-nav__prev {
	background: #eef2f7;
	color: #111827;
}

.ft1-epo-wizard-nav__prev:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

.ft1-epo-wizard-nav__next {
	margin-left: auto;
	background: #111827;
	color: #fff;
}

.ft1-epo-wizard-nav__next.is-final {
	background: #a8cf45;
	color: #1f2937;
}

.ft1-epo-wizard-error {
	display: none;
	margin: 0 0 12px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 13px;
	color: #991b1b;
	background: #fef2f2;
	border: 1px solid #fecaca;
}

.ft1-epo-wizard-error.is-visible {
	display: block;
}

/* Esconde seções fora da etapa atual */
.ft1-epo-wizard-active .tm-extra-product-options.ft1-wizard-ready > .cpf-section.ft1-wizard-hidden,
.ft1-epo-wizard-active .tm-extra-product-options.ft1-wizard-ready #tm-extra-product-options-fields > .cpf-section.ft1-wizard-hidden,
.ft1-epo-wizard-active .tm-extra-product-options.ft1-wizard-ready .tm-extra-product-options-variations.ft1-wizard-hidden {
	display: none !important;
}

@media (max-width: 640px) {
	.ft1-epo-wizard-bar {
		flex-direction: column;
		align-items: stretch;
	}

	.ft1-epo-wizard-bar__counter {
		text-align: center;
	}
}

/* Swatches EPO compactos (caixas, tecidos, laminação…) — lightbox mantém imagem full */
.ft1-epo-swatch-compact {
	--ft1-epo-swatch-size: 96px;
}

.ft1-epo-swatch-compact .tm-extra-product-options ul.tmcp-ul-wrap.tc-images-container {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(calc(var(--ft1-epo-swatch-size) + 14px), 1fr));
	gap: 10px 12px;
}

.ft1-epo-swatch-compact .tm-extra-product-options ul.tmcp-ul-wrap.tc-images-container li.tmcp-field-wrap {
	width: auto;
	max-width: none;
}

.ft1-epo-swatch-compact .tm-extra-product-options ul.tmcp-ul-wrap.tc-images-container .tc-image.radio-image,
.ft1-epo-swatch-compact .tm-extra-product-options .tmcp-field-wrap.circle .tc-label-wrap .tc-image.radio-image {
	width: var(--ft1-epo-swatch-size) !important;
	height: var(--ft1-epo-swatch-size) !important;
	max-width: var(--ft1-epo-swatch-size) !important;
	max-height: var(--ft1-epo-swatch-size) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	object-fit: cover;
}

.ft1-epo-swatch-compact .tm-extra-product-options ul.tmcp-ul-wrap.tc-images-container .radio-image-label {
	font-size: 12px;
	text-align: center;
}

@media (max-width: 640px) {
	.ft1-epo-swatch-compact {
		--ft1-epo-swatch-size: 80px;
	}
}
