.iaew-advanced-nested-accordion {
	--iaew-ana-gap: 16px;
	--iaew-ana-accent: #5d5fef;
	--iaew-ana-animation-duration: 300ms;
	--iaew-ana-animation-easing: ease;
	display: grid;
	gap: var(--iaew-ana-gap);
}

.iaew-advanced-nested-accordion__item {
	overflow: hidden;
	border-radius: 18px;
	background: #fff;
	border: 1px solid rgba(93, 95, 239, 0.12);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.05);
}

.iaew-advanced-nested-accordion__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 24px;
	cursor: pointer;
	list-style: none;
	background: #fff;
	border-bottom: 2px solid rgba(93, 95, 239, 0.9);
}

.iaew-advanced-nested-accordion__summary::-webkit-details-marker {
	display: none;
}

.iaew-advanced-nested-accordion--icon-start .iaew-advanced-nested-accordion__header {
	order: 2;
}

.iaew-advanced-nested-accordion--icon-start .iaew-advanced-nested-accordion__icon {
	order: 1;
}

.iaew-advanced-nested-accordion--icon-end .iaew-advanced-nested-accordion__header {
	order: 1;
}

.iaew-advanced-nested-accordion--icon-end .iaew-advanced-nested-accordion__icon {
	order: 2;
}

.iaew-advanced-nested-accordion__header {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.iaew-advanced-nested-accordion--header-position-start .iaew-advanced-nested-accordion__summary {
	justify-content: flex-start;
}

.iaew-advanced-nested-accordion--header-position-start .iaew-advanced-nested-accordion__header {
	flex: 0 1 auto;
	align-items: flex-start;
	text-align: left;
}

.iaew-advanced-nested-accordion--header-position-center .iaew-advanced-nested-accordion__summary {
	justify-content: center;
}

.iaew-advanced-nested-accordion--header-position-center .iaew-advanced-nested-accordion__header {
	flex: 0 1 auto;
	align-items: center;
	text-align: center;
}

.iaew-advanced-nested-accordion--header-position-end .iaew-advanced-nested-accordion__summary {
	justify-content: flex-end;
}

.iaew-advanced-nested-accordion--header-position-end .iaew-advanced-nested-accordion__header {
	flex: 0 1 auto;
	align-items: flex-end;
	text-align: right;
}

.iaew-advanced-nested-accordion--header-position-stretch .iaew-advanced-nested-accordion__summary {
	justify-content: space-between;
}

.iaew-advanced-nested-accordion--header-position-stretch .iaew-advanced-nested-accordion__header {
	flex: 1 1 auto;
	align-items: flex-start;
	text-align: left;
}

.iaew-advanced-nested-accordion__title {
	color: #101828;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.35;
}

.iaew-advanced-nested-accordion__subtitle {
	color: #667085;
	font-size: 14px;
	line-height: 1.5;
}

.iaew-advanced-nested-accordion__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 56px;
	width: 56px;
	height: 56px;
	background: var(--iaew-ana-accent);
	color: #fff;
	font-size: 22px;
	line-height: 1;
	transition:
		background-color var(--iaew-ana-animation-duration) var(--iaew-ana-animation-easing),
		color var(--iaew-ana-animation-duration) var(--iaew-ana-animation-easing),
		transform var(--iaew-ana-animation-duration) var(--iaew-ana-animation-easing);
}

.iaew-advanced-nested-accordion__icon-state {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

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

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

.iaew-advanced-nested-accordion__icon-state--expanded,
.iaew-advanced-nested-accordion__item.is-open .iaew-advanced-nested-accordion__icon-state--collapsed {
	display: none;
}

.iaew-advanced-nested-accordion__item.is-open .iaew-advanced-nested-accordion__icon-state--expanded {
	display: inline-flex;
}

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

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

.iaew-advanced-nested-accordion__content > .e-con {
	padding: 24px 28px 28px;
}

.iaew-advanced-nested-accordion__content > .e-con:first-child {
	margin-top: 0;
}

@media (max-width: 767px) {
	.iaew-advanced-nested-accordion__summary {
		padding: 18px;
	}

	.iaew-advanced-nested-accordion__title {
		font-size: 18px;
	}

	.iaew-advanced-nested-accordion__icon {
		flex-basis: 46px;
		width: 46px;
		height: 46px;
	}

	.iaew-advanced-nested-accordion__content > .e-con {
		padding: 18px;
	}
}
