.listing-chapter-terms-wrapper,
.listing-chapter-terms {
	position: relative;
	width: 100%;
	display: flex;
	flex-direction: column;
}

.chapter-term-mobile {
	order: -1;
}

.listing-chapter-terms.toggle-onactive {
	margin-top: 24px;
}

.listing-chapter-terms.toggle-onactive + .chapter-term-mobile {
	order: -1;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--gray);
}

.listing-chapter-terms.toggle-onactive + .chapter-term-mobile .cta-chapter-term {
	background-image: var(--arrow-chevronblack-top);
}

.listing-chapter-terms .item-term:not(:last-child) {
	margin-bottom: 16px;
}

.chapter-term-mobile .cta-chapter-term {
	margin-top: -24px;
	padding-top: 24px;
	padding-left: 0;
	background-position-y: 12px;
}

.cta-chapter-term {
	width: 100%;
	padding: 10px 32px 10px 16px;
	display: flex;
	align-items: center;
	text-align: left;
	font-size: var(--text-md);
	font-weight: 800;
	border-radius: var(--rounded-md);
	background: var(--transparent) var(--arrow-chevronblack-bottom) calc(100% - 14px) center / 14px no-repeat;
}

.cta-chapter-term .icon-term {
	width: 24px;
	height: 24px;
}

.cta-chapter-term .icon-term img {
	height: 100%;
	object-fit: contain;
}

.cta-chapter-term .label-term {
	width: calc(100% - 24px);
	padding-left: 12px;
}

.listing-chapter-terms .toggle-onactive .cta-chapter-term {
	background-image: var(--arrow-chevronblack-top);
	background-color: var(--gray-75);
}

.lists-chapter {
	position: relative;
	counter-reset: number-chapter;
	list-style: none;
	padding-top: 12px;
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transform: scale(0.9);
}

.lists-chapter,
.lists-chapter * {
	pointer-events: none;
}

.listing-chapter-terms .toggle-onactive .lists-chapter {
	position: static;
	opacity: 1;
	transform: scale(1);
	transition: var(--transition);
}

.lists-chapter:before {
	content: '';
	position: absolute;
	top: 12px;
	left: 0;
	width: 2px;
	height: calc(100% - 12px);
	background-color: var(--gray);
}

.lists-chapter li {
	padding: 16px;
	margin-top: 0;
}

.lists-chapter .current-chapter {
	font-weight: 800;
	padding: 12px 16px 10px;
	background-color: var(--gray-75);
	border-radius: var(--rounded-md);
}

.lists-chapter li:not(.current-chapter) + li:not(.current-chapter) {
	padding-top: 0;
}

.lists-chapter li:not(.current-chapter):last-child {
	padding-bottom: 12px;
}

.lists-chapter li:not(.current-chapter):first-child {
	padding-top: 12px;
}

.lists-chapter a {
	position: relative;
	display: block;
	font-weight: inherit;
	text-decoration: none;
	color: inherit;
	padding-left: 20px;
}

.lists-chapter a:after {
	counter-increment: number-chapter;
	content: counter(number-chapter) '.';
	position: absolute;
	top: 0;
	left: 0;
}

@media all and (min-width: 901px) {
	.listing-chapter-terms .cta-chapter-term:hover {
		background-color: var(--gray-75);
	}

	.listing-chapter-terms .toggle-onactive .lists-chapter,
	.listing-chapter-terms .toggle-onactive .lists-chapter * {
		pointer-events: auto;
	}

	.chapter-term-mobile {
		display: none;
	}

	.lists-chapter {
		padding-left: 40px;
	}

	.lists-chapter:before {
		left: 16px;
	}
}

@media all and (max-width: 900px) {
	.listing-chapter-terms {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		opacity: 0;
		transform: scale(0.9);
	}

	.listing-chapter-terms:not(.toggle-onactive),
	.listing-chapter-terms:not(.toggle-onactive) * {
		pointer-events: none;
	}

	.listing-chapter-terms.toggle-onactive {
		position: static;
		opacity: 1;
		transform: scale(1);
		transition: var(--transition);
	}

	.listing-chapter-terms.toggle-onactive .item-term {
		margin-bottom: 0;
	}

	/* .listing-chapter-terms .item-term.item-term-selected {
		order: -1;
	} */

	.listing-chapter-terms .item-term.toggle-onactive + .item-term,
	.listing-chapter-terms .item-term + .item-term.toggle-onactive {
		margin-top: 12px;
	}

	.listing-chapter-terms.toggle-onactive .toggle-onactive .lists-chapter,
	.listing-chapter-terms.toggle-onactive .toggle-onactive .lists-chapter * {
		pointer-events: auto;
	}

	/* .listing-chapter-terms .toggle-onactive .cta-chapter-term {
		background-image: var(--arrow-chevronblack-top);
	} */

	.listing-chapter-terms .item-term:not(.toggle-onactive) .cta-chapter-term {
		padding-left: 0;
	}

	.lists-chapter {
		padding-left: 24px;
	}
}
