/* Bright Addons: FAQ Accordion (native details/summary) */
.bafe-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bafe-faq__item {
	overflow: hidden;
	border: 1px solid #e6e6ee;
	border-radius: 12px;
	background-color: #fff;
	transition: border-color 0.2s ease;
}

.bafe-faq__item[open] {
	border-color: #cfc9ff;
}

.bafe-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	color: #1d1b36;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.bafe-faq__question::-webkit-details-marker {
	display: none;
}

.bafe-faq__question::marker {
	content: "";
}

.bafe-faq__question:focus-visible {
	outline: 2px solid #5b4bff;
	outline-offset: -2px;
}

.bafe-faq--icon-left .bafe-faq__question {
	flex-direction: row-reverse;
	justify-content: flex-end;
}

.bafe-faq__title {
	flex: 1;
}

/* Icon drawn with CSS so no icon font is needed. */
.bafe-faq__icon {
	position: relative;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	color: #5b4bff;
}

.bafe-faq--plus .bafe-faq__icon::before,
.bafe-faq--plus .bafe-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 2px;
	border-radius: 2px;
	background-color: currentColor;
	transform: translateY(-50%);
	transition: transform 0.25s ease;
}

.bafe-faq--plus .bafe-faq__icon::after {
	transform: translateY(-50%) rotate(90deg);
}

.bafe-faq--plus .bafe-faq__item[open] .bafe-faq__icon::after {
	transform: translateY(-50%) rotate(0deg);
}

.bafe-faq--chevron .bafe-faq__icon::before {
	content: "";
	position: absolute;
	top: 20%;
	left: 20%;
	width: 60%;
	height: 60%;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.25s ease;
}

.bafe-faq--chevron .bafe-faq__item[open] .bafe-faq__icon::before {
	top: 35%;
	transform: rotate(-135deg);
}

.bafe-faq__answer {
	padding: 0 22px 20px;
	color: #50506a;
	line-height: 1.65;
}

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

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

@media (prefers-reduced-motion: no-preference) {
	.bafe-faq__item[open] .bafe-faq__answer {
		animation: bafe-faq-in 0.25s ease;
	}
}

@keyframes bafe-faq-in {
	from {
		opacity: 0;
		transform: translateY(-4px);
	}

	to {
		opacity: 1;
		transform: none;
	}
}
