/**
 * GF Step Menu – Base styles.
 */

/* Viewport clips overflow so only the active panel is visible. */
.gf-step-menu__viewport {
	position: relative;
	overflow: hidden;
	transition: height 0.3s ease;
}

/* Fallback: when JS hasn't set an inline height yet (initial load,
   editor preview), let the viewport size to its active panel content. */
.gf-step-menu__viewport:not([style*="height"]) {
	height: auto;
}

/* Editor preview: always auto-height so the menu is fully visible. */
.elementor-editor-active .gf-step-menu__viewport,
.elementor-editor-preview .gf-step-menu__viewport {
	height: auto !important;
	overflow: visible;
}

/* Track: panels laid out in the same space. */
.gf-step-menu__track {
	position: relative;
	width: 100%;
}

/* Panel */
:where(.gf-step-menu__panel) {
	display: none;
	width: 100%;
}

:where(.gf-step-menu__panel--active) {
	display: block;
}

:where(.gf-step-menu__panel--animating) {
	display: block;
	transition: transform 0.3s ease;
}

/* List */
:where(.gf-step-list) {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

:where(.gf-step-list > li) {
	position: relative;
	display: block;
}

/* Item */
/* Layout (display:flex) keeps normal specificity so the icon/label/arrow
   line up. Responsive hide works via Elementor's body-class override
   `body.elementor-page .elementor .elementor-hidden-* { display:none }`
   which has higher specificity than our single-class rule. */
.gf-step-item {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px 16px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	text-decoration: none;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	transition: background-color 0.2s, color 0.2s;
	box-sizing: border-box;
}

a.gf-step-item {
	text-decoration: none;
	color: inherit;
}

:where(.gf-step-item__icon) {
	display: inline-flex;
}

.gf-step-item__icon {
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 10px;
	line-height: 1;
	color: currentColor;
}

.gf-step-item__icon i,
.gf-step-item__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

:where(.gf-step-item__label) {
	display: block;
}

.gf-step-item__label {
	flex: 1 1 auto;
	min-width: 0;
}

:where(.gf-step-item__arrow) {
	display: inline-flex;
}

.gf-step-item__arrow {
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-left: auto;
	padding-left: 8px;
	line-height: 1;
	color: currentColor;
}

.gf-step-item__arrow i,
.gf-step-item__arrow svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* Back button */
.gf-step-back {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 12px 16px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	color: inherit;
	font: inherit;
	line-height: 1.4;
	transition: background-color 0.2s, color 0.2s;
	box-sizing: border-box;
}

:where(.gf-step-back__icon) {
	display: inline-flex;
}

.gf-step-back__icon {
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-right: 8px;
	line-height: 1;
	color: currentColor;
}

.gf-step-back__icon i,
.gf-step-back__icon svg {
	width: 1em;
	height: 1em;
	fill: currentColor;
}
