/* 5thAXIS — FAQ Accordion widget */

.axis5th-faq {
	--axis5th-faq-active: var(--e-global-color-primary); /* #DD2828 */
	--axis5th-faq-sep:    #E4E4E7;
}

/* ── Item ────────────────────────────────────────────────────────── */

.axis5th-faq__item {
	border-top: 1px solid var(--axis5th-faq-sep);
}

.axis5th-faq__item:last-child {
	border-bottom: 1px solid var(--axis5th-faq-sep);
}

/* ── Trigger ─────────────────────────────────────────────────────── */

.axis5th-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	padding: 1.25rem 0;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
}

.axis5th-faq__question {
	font-family: var(--e-global-typography-c66daa8-font-family), Sans-serif;
    font-weight: var(--e-global-typography-c66daa8-font-weight);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.4;
	color: #18181b;
	transition: color 0.15s ease;
}

/* Active: question turns primary red */
.axis5th-faq__item.is-open .axis5th-faq__question {
	color: var(--axis5th-faq-active);
}

/* ── +/− icon ────────────────────────────────────────────────────── */

.axis5th-faq__icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.5rem;
	height: 1.5rem;
	color: var(--e-global-color-text);
	transition: color 0.15s ease;
}

/* Plus sign — two lines forming a + */
.axis5th-faq__icon::before,
.axis5th-faq__icon::after {
	content: '';
	display: block;
	position: absolute;
	background: #18181b;
	border-radius: 2px;
	transition: opacity 0.15s ease, transform 0.2s ease;
}

.axis5th-faq__icon {
	position: relative;
}

/* Horizontal bar (always visible) */
.axis5th-faq__icon::before {
	width: 15px;
	height: 3px;
}

/* Vertical bar (rotates to hidden when open) */
.axis5th-faq__icon::after {
	width: 3px;
	height: 15px;
}

.axis5th-faq__item.is-open .axis5th-faq__icon {
	color: var(--axis5th-faq-active);
}

.axis5th-faq__item.is-open .axis5th-faq__icon::after {
	transform: rotate(90deg);
	opacity: 0;
}

/* ── Collapsible body ────────────────────────────────────────────── */

.axis5th-faq__body {
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease;
}

.axis5th-faq__item.is-open .axis5th-faq__body {
	/* JS sets exact scrollHeight; this is the fallback for server-rendered open state */
	max-height: none;
}

/* ── Answer content ──────────────────────────────────────────────── */

.axis5th-faq__answer {
	padding-bottom: 1.25rem;
	font-family: var(--e-global-typography-text-font-family), Sans-serif;
	font-size: var(--e-global-typography-text-font-size);
    line-height: var(--e-global-typography-text-line-height);
	color: var( --e-global-color-text );
}

.axis5th-faq__answer p {
	margin: 0 0 0.75rem;
}

.axis5th-faq__answer p:last-child {
	margin-bottom: 0;
}

.axis5th-faq__answer a {
	color: var(--axis5th-faq-active);
	text-decoration: underline;
}

.axis5th-faq__answer ul,
.axis5th-faq__answer ol {
	padding-left: 1.25rem;
	margin: 0 0 0.75rem;
}

@media(max-width: 767px){
	.axis5th-faq__question{
		white-space: normal;
	}
}

/* Responsive fix: the trigger is a <button>, which inherits white-space: nowrap from the
   global button style, so long questions ran off the screen on tablets. Let them wrap. */
.axis5th-faq__trigger { white-space: normal; }
.axis5th-faq__question { flex: 1 1 auto; min-width: 0; white-space: normal; }
.axis5th-faq__icon { flex: 0 0 auto; }
