.nextgen-faq {
	width: 100%;
}

.nextgen-faq__item:not(:last-child) {
	border-bottom: 1px solid var(--lines);
}

.nextgen-faq__heading {
	margin: 0;
	padding: 0;
	font: var(--font);
}

.nextgen-faq__button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--gutter-medium);
	width: 100%;
	margin: 0;
	padding: var(--gutter-medium) 0;
	border: 0;
	background: transparent;
	color: inherit;
	text-align: left;
	cursor: pointer;
	appearance: none;
}

.nextgen-faq__question {
	flex: 1;
	color: var(--primary);
	font-size: var(--h5);
	font-weight: 700;
	line-height: 1.25;
}

.nextgen-faq__icon {
	position: relative;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
}

.nextgen-faq__icon::before,
.nextgen-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 2px;
	background: var(--accent);
	transform-origin: center;
	transition: transform 250ms ease;
}

.nextgen-faq__icon::before {
	transform: translate(-50%, -50%);
}

.nextgen-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

/*
 * When open, rotate the complete plus sign.
 * The vertical line becomes diagonal and creates an X.
 */
.nextgen-faq__item.is-open .nextgen-faq__icon {
	transform: rotate(45deg);
}

.nextgen-faq__icon {
	transition: transform 250ms ease;
}

.nextgen-faq__answer {
	height: 0;
	overflow: hidden;
	transition: height 300ms ease;
}

.nextgen-faq__answer[hidden] {
	display: block;
	height: 0;
}

.nextgen-faq__answer-inner {
	padding: 0 var(--gutter-small) var(--gutter-micro) 0;
	color: var(--text);
	font-size: var(--base-text);
	line-height: 1.55;
}

.nextgen-faq__answer-inner > :first-child {
	margin-top: 0;
}

.nextgen-faq__answer-inner > :last-child {
	margin-bottom: 0;
}

.nextgen-faq__button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

@media (max-width: 767px) {
	.nextgen-faq__button {
		gap: var(--gutter-micro);
		padding: var(--gutter-micro) 0;
	}

	.nextgen-faq__question {
		font-size: var(--base-text);
	}

	.nextgen-faq__answer-inner {
		padding-right: var(--gutter-medium)32px;
		padding-bottom: var(--gutter-small)
	}
}

@media (prefers-reduced-motion: reduce) {
	.nextgen-faq__answer,
	.nextgen-faq__icon {
		transition: none;
	}
}