/*
 * Shape tabs, styled to match the alloy filters of [mentorx-material-calculator]
 * (.material-calculator select): same white pill, radius, shadow and type scale,
 * so the filter row above the calculator and the shape row read as one control set.
 *
 * Loaded only when the widget is not borrowing an Elementor element's own design
 * (style_from=""), so a page that inherits the Elementor tab styling keeps it.
 */

/* Default skin — shape dropdown. Everything visual comes from the site's own
   .material-calculator rules, so it is identical to the alloy filters; only the
   spacing and an overflow guard for narrow columns are added here. */
.mentorx-shape-filter {
	margin-bottom: 24px;
}

.mentorx-shape-filter .shape-select {
	max-width: 100%;
}

[data-mentorx-calculator-tabs] > .mentorx-panels > .mentorx-panel-item:not(.active) {
	display: none;
}

[data-mentorx-calculator-tabs] .e-n-tabs-heading,
[data-mentorx-calculator-tabs] .mentorx-tabs-heading {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-start;
	gap: 16px 24px;
	margin-bottom: 32px;
	padding: 0;
	border: none;
}

[data-mentorx-calculator-tabs] .e-n-tab-title,
[data-mentorx-calculator-tabs] .mentorx-tabs-heading__item {
	flex: 0 0 auto;
	margin: 0;
	padding: 5px 18px;
	min-height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #0a0a0a;
	font-size: 16px;
	font-weight: 500;
	line-height: 26px;
	background-color: #fff;
	border: none;
	border-radius: 10px;
	box-shadow: 0 0 7.6px 0 rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

[data-mentorx-calculator-tabs] .e-n-tab-title:hover,
[data-mentorx-calculator-tabs] .mentorx-tabs-heading__item:hover {
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, .24);
}

[data-mentorx-calculator-tabs] .e-n-tab-title:focus-visible,
[data-mentorx-calculator-tabs] .mentorx-tabs-heading__item:focus-visible {
	outline: 2px solid #00b0f0;
	outline-offset: 2px;
}

[data-mentorx-calculator-tabs] .e-n-tab-title[aria-selected="true"],
[data-mentorx-calculator-tabs] .mentorx-tabs-heading__item.is-active {
	background-color: #00b0f0;
	color: #fff;
}

[data-mentorx-calculator-tabs] .e-n-tab-title-text {
	pointer-events: none;
}

[data-mentorx-calculator-tabs] .e-n-tabs-content > [data-mentorx-panel]:not(.e-active) {
	display: none;
}

@media screen and (max-width: 767px) {
	[data-mentorx-calculator-tabs] .e-n-tabs-heading,
	[data-mentorx-calculator-tabs] .mentorx-tabs-heading {
		gap: 12px;
		margin-bottom: 20px;
	}

	[data-mentorx-calculator-tabs] .e-n-tab-title,
	[data-mentorx-calculator-tabs] .mentorx-tabs-heading__item {
		flex: 1 1 calc(33.333% - 12px);
		padding: 9px 12px;
	}
}
