/**
 * TO Scrollable Tabs — horizontal pill nav + nested Elementor containers.
 *
 * Scoped under .toaew-stabs / --toaew-stabs-*.
 */

.toaew-stabs {
	--toaew-stabs-nav-gap: 10px;
	--toaew-stabs-nav-pad: 15px;
	--toaew-stabs-btn-pad: 12px 20px;
	--toaew-stabs-btn-min-h: 44px;
	--toaew-stabs-btn-radius: 40px;
	--toaew-stabs-btn-bg: #eef2ff;
	--toaew-stabs-btn-color: #4f46e5;
	--toaew-stabs-btn-bg-active: #4f46e5;
	--toaew-stabs-btn-color-active: #ffffff;
	--toaew-stabs-btn-bg-hover: #e0e7ff;
	--toaew-stabs-btn-color-hover: #4338ca;
	--toaew-stabs-btn-icon-size: 1em;
	--toaew-stabs-btn-gap: 0.4em;
	--toaew-stabs-content-pad: 18px;
	--toaew-stabs-border-color: #eeeeee;
	background: var(--toaew-stabs-wrap-bg, #ffffff);
	border-radius: var(--toaew-stabs-wrap-radius, 0);
	overflow: hidden;
}

.toaew-stabs__header {
	padding: var(--toaew-stabs-header-pad, 25px);
	background: var(--toaew-stabs-header-bg, #4f46e5);
	color: var(--toaew-stabs-header-color, #ffffff);
}

.toaew-stabs__title {
	margin: 0;
	font-size: var(--toaew-stabs-header-size, 22px);
	line-height: 1.3;
	font-weight: var(--toaew-stabs-header-weight, 600);
}

.toaew-stabs__nav {
	display: flex;
	align-items: center;
	gap: var(--toaew-stabs-nav-gap);
	padding: var(--toaew-stabs-nav-pad);
	overflow-x: auto;
	white-space: nowrap;
	scrollbar-width: none;
	background: var(--toaew-stabs-nav-bg, #ffffff);
	border-bottom: 1px solid var(--toaew-stabs-border-color);
	-webkit-overflow-scrolling: touch;
}

.toaew-stabs__nav::-webkit-scrollbar {
	display: none;
}

.toaew-stabs__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--toaew-stabs-btn-gap);
	flex: 0 0 auto;
	border: none;
	background: var(--toaew-stabs-btn-bg);
	color: var(--toaew-stabs-btn-color);
	padding: var(--toaew-stabs-btn-pad);
	min-height: var(--toaew-stabs-btn-min-h);
	border-radius: var(--toaew-stabs-btn-radius);
	cursor: pointer;
	transition: background 0.25s ease, color 0.25s ease;
	font-size: var(--toaew-stabs-btn-size, 14px);
	font-weight: var(--toaew-stabs-btn-weight, 600);
	line-height: 1.2;
	font-family: inherit;
	white-space: nowrap;
}

.toaew-stabs__btn:hover:not(.is-active),
.toaew-stabs__btn:focus-visible:not(.is-active) {
	outline: none;
	background: var(--toaew-stabs-btn-bg-hover);
	color: var(--toaew-stabs-btn-color-hover);
}

.toaew-stabs__btn.is-active {
	background: var(--toaew-stabs-btn-bg-active);
	color: var(--toaew-stabs-btn-color-active);
}

.toaew-stabs__content {
	padding: var(--toaew-stabs-content-pad);
	background: var(--toaew-stabs-content-bg, #ffffff);
}

.toaew-stabs__panes {
	position: relative;
}

.toaew-stabs:not( .toaew-stabs--edit ) .toaew-stabs__panes > .toaew-stabs__pane,
.toaew-stabs:not( .toaew-stabs--edit ) .toaew-stabs__panes > .e-con.toaew-stabs__pane,
.toaew-stabs--edit .toaew-stabs__panes > .toaew-stabs__pane:not( .is-active ),
.toaew-stabs--edit .toaew-stabs__panes > .e-con.toaew-stabs__pane:not( .is-active ) {
	display: none;
}

.toaew-stabs:not( .toaew-stabs--edit ) .toaew-stabs__panes > .toaew-stabs__pane.is-active,
.toaew-stabs:not( .toaew-stabs--edit ) .toaew-stabs__panes > .e-con.toaew-stabs__pane.is-active,
.toaew-stabs--edit .toaew-stabs__panes > .toaew-stabs__pane.is-active,
.toaew-stabs--edit .toaew-stabs__panes > .e-con.toaew-stabs__pane.is-active {
	display: block;
}

.toaew-stabs__btn-icon-wrap {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	flex: 0 0 auto !important;
	font-size: var(--toaew-stabs-btn-icon-size, 1em) !important;
	width: var(--toaew-stabs-btn-icon-size, 1em) !important;
	height: var(--toaew-stabs-btn-icon-size, 1em) !important;
	line-height: 1 !important;
	color: inherit !important;
}

.toaew-stabs__btn-icon,
.toaew-stabs__btn-icon-wrap > i,
.toaew-stabs__btn-icon-wrap > svg,
.toaew-stabs__btn-icon-wrap > img {
	display: inline-block !important;
	width: 100% !important;
	height: 100% !important;
	font-size: inherit !important;
	line-height: 1 !important;
	color: inherit !important;
	object-fit: contain !important;
}

.toaew-stabs__btn-icon svg,
.toaew-stabs__btn-icon img,
.toaew-stabs__btn-icon-wrap svg,
.toaew-stabs__btn-icon-wrap img {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	object-fit: contain !important;
	fill: currentColor !important;
}

