/**
 * Vemax — Etapas do Pedido widget styles.
 * Every rule is scoped under .vemax-etp-widget. Colors/sizes here mirror
 * the defaults on the matching Elementor controls (see
 * class-widget-etapas.php); the controls override these via
 * {{WRAPPER}}-scoped inline CSS.
 */

.vemax-etp-widget {
	font-family: "Open Sans", system-ui, -apple-system, sans-serif;
}

.vemax-etp-widget * {
	box-sizing: border-box;
}

/* ---------- Header ---------- */

.vemax-etp-header {
	text-align: center;
	margin-bottom: 3.5rem;
}

.vemax-etp-eyebrow {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #FFD301;
	margin-bottom: 0.75rem;
}

.vemax-etp-heading {
	color: #1C325A;
	font-weight: 800;
	font-size: 1.875rem;
	line-height: 1.2;
	margin: 0 0 1rem;
}

.vemax-etp-subheading {
	color: #6B7280;
	font-size: 1rem;
	line-height: 1.5;
	max-width: 32rem;
	margin: 0 auto;
}

/* ---------- Grid ---------- */

.vemax-etp-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.5rem;
}

/* ---------- Item ---------- */

.vemax-etp-item {
	position: relative;
}

.vemax-etp-item-inner {
	position: relative;
	z-index: 10;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

/* ---------- Connector ---------- */
/* Same technique as the original: absolutely positioned line starting
   just past the circle and reaching the right edge of the item's own
   grid cell — visible on desktop only, exactly like `hidden lg:block`. */

.vemax-etp-connector {
	display: none;
	position: absolute;
	top: 32px;
	left: calc(50% + 2rem);
	right: 0;
	height: 2px;
	background-color: #E5E7EB;
	z-index: 0;
}

@media (min-width: 1025px) {
	.vemax-etp-connector {
		display: block;
	}
}

@media (min-width: 641px) and (max-width: 1024px) {
	.vemax-etp-connector-tablet-yes .vemax-etp-connector {
		display: block;
	}
}

@media (max-width: 640px) {
	.vemax-etp-connector-mobile-yes .vemax-etp-connector {
		display: block;
	}
}

/* ---------- Circle ---------- */

.vemax-etp-circle {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background-color: #1C325A;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1rem;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.vemax-etp-step-number {
	color: #FFD301;
	font-weight: 800;
	font-size: 1.125rem;
	line-height: 1;
}

.vemax-etp-circle svg {
	width: 26px;
	height: 26px;
	color: #FFD301;
	display: block;
}

/* ---------- Title / description ---------- */

.vemax-etp-title {
	color: #1C325A;
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.2;
	margin: 0 0 0.5rem;
}

.vemax-etp-desc {
	color: #6B7280;
	font-size: 0.875rem;
	line-height: 1.625;
	margin: 0;
}

/* ---------- Responsive (fallback; Elementor responsive controls override columns via inline CSS) ---------- */

@media (max-width: 1024px) {
	.vemax-etp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.vemax-etp-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr));
	}
}
