.iaew-advanced-tabs {
	--iaew-tabs-gap: 16px;
	--iaew-tabs-nav-width: 260px;
	--iaew-tabs-icon-gap: 10px;
	--iaew-tabs-animation-duration: 300ms;
	--iaew-tabs-animation-easing: ease;
	display: grid;
	gap: var(--iaew-tabs-gap);
}

.iaew-advanced-tabs--horizontal {
	grid-template-columns: minmax(0, 1fr);
}

.iaew-advanced-tabs--vertical {
	grid-template-columns: minmax(0, var(--iaew-tabs-nav-width)) minmax(0, 1fr);
	align-items: start;
}

.iaew-advanced-tabs--position-right.iaew-advanced-tabs--vertical {
	grid-template-columns: minmax(0, 1fr) minmax(0, var(--iaew-tabs-nav-width));
}

.iaew-advanced-tabs--position-top .iaew-advanced-tabs__nav {
	order: 1;
}

.iaew-advanced-tabs--position-top .iaew-advanced-tabs__content {
	order: 2;
}

.iaew-advanced-tabs--position-bottom .iaew-advanced-tabs__nav {
	order: 2;
}

.iaew-advanced-tabs--position-bottom .iaew-advanced-tabs__content {
	order: 1;
}

.iaew-advanced-tabs--position-left .iaew-advanced-tabs__nav {
	order: 1;
}

.iaew-advanced-tabs--position-left .iaew-advanced-tabs__content {
	order: 2;
}

.iaew-advanced-tabs--position-right .iaew-advanced-tabs__nav {
	order: 2;
}

.iaew-advanced-tabs--position-right .iaew-advanced-tabs__content {
	order: 1;
}

.iaew-advanced-tabs__content {
	min-width: 0;
}

.iaew-advanced-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.iaew-advanced-tabs--vertical .iaew-advanced-tabs__nav {
	flex-direction: column;
}

.iaew-advanced-tabs__tab {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--iaew-tabs-icon-gap);
	padding: 16px 22px;
	border: 1px solid rgba(15, 23, 42, 0.1);
	border-radius: 16px;
	background: #fff;
	color: #0f172a;
	cursor: pointer;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.iaew-advanced-tabs--vertical .iaew-advanced-tabs__tab {
	width: 100%;
	justify-content: flex-start;
	text-align: left;
}

.iaew-advanced-tabs__tab.is-active {
	border-color: #5d5fef;
	box-shadow: 0 16px 32px rgba(93, 95, 239, 0.14);
}

.iaew-advanced-tabs__tab:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.iaew-advanced-tabs__tab-title {
	display: inline-block;
}

.iaew-advanced-tabs__tab-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	color: currentColor;
}

.iaew-advanced-tabs__tab-icon i,
.iaew-advanced-tabs__tab-icon svg,
.iaew-advanced-tabs__tab-icon .e-font-icon-svg {
	display: block;
	width: 1em;
	height: 1em;
}

.iaew-advanced-tabs__tab-icon svg,
.iaew-advanced-tabs__tab-icon .e-font-icon-svg {
	fill: currentColor;
}

.iaew-advanced-tabs--icon-right .iaew-advanced-tabs__tab {
	flex-direction: row-reverse;
}

.iaew-advanced-tabs--icon-top .iaew-advanced-tabs__tab {
	flex-direction: column;
}

.iaew-advanced-tabs__panel[hidden] {
	display: none;
}

.iaew-advanced-tabs__panel.is-animating {
	display: block;
	will-change: height, opacity, transform;
}

.iaew-advanced-tabs__content > .iaew-advanced-tabs__panel {
	padding: 28px;
	border-radius: 22px;
	background: #fff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.iaew-advanced-tabs__content > .iaew-advanced-tabs__panel:first-child {
	margin-top: 0;
}

@media (max-width: 1024px) {
	.iaew-advanced-tabs--vertical {
		grid-template-columns: minmax(0, 1fr);
	}

	.iaew-advanced-tabs--position-left .iaew-advanced-tabs__nav,
	.iaew-advanced-tabs--position-right .iaew-advanced-tabs__nav,
	.iaew-advanced-tabs--position-left .iaew-advanced-tabs__content,
	.iaew-advanced-tabs--position-right .iaew-advanced-tabs__content {
		order: initial;
	}

	.iaew-advanced-tabs__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
	}

	.iaew-advanced-tabs--vertical .iaew-advanced-tabs__nav {
		flex-direction: row;
	}

	.iaew-advanced-tabs--vertical .iaew-advanced-tabs__tab {
		width: auto;
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 767px) {
	.iaew-advanced-tabs__tab {
		padding: 14px 18px;
		font-size: 15px;
	}

	.iaew-advanced-tabs__content > .iaew-advanced-tabs__panel {
		padding: 18px;
		border-radius: 18px;
	}
}
