/* ── BB Premium: FAQ Accordion ────────────────────────────────────────────── */

.bbpe-faq { width: 100%; }

.bbpe-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

/* ── Item ─────────────────────────────────────────────────────────────────── */
.bbpe-faq__item {
	border-bottom: 1px solid #e2e8f0;
}

/* ── Trigger (button) ────────────────────────────────────────────────────── */
.bbpe-faq__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 0;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	color: inherit;
}

.bbpe-faq__trigger:focus-visible {
	outline: 2px solid #6366f1;
	outline-offset: 2px;
	border-radius: 4px;
}

.bbpe-faq__question {
	font-size: 1rem;
	font-weight: 600;
	color: #0f172a;
	line-height: 1.4;
	flex: 1;
	transition: color 0.2s ease;
}

.bbpe-faq__item.is-open .bbpe-faq__question {
	color: #6366f1;
}

/* ── Icons ────────────────────────────────────────────────────────────────── */
.bbpe-faq__icon {
	flex-shrink: 0;
	font-size: 14px;
	color: #64748b;
	line-height: 1;
	width: 20px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.bbpe-faq__icon svg { width: 14px; height: 14px; }

.bbpe-faq__icon--open  { display: none; }
.bbpe-faq__icon--closed { display: flex; }

.bbpe-faq__item.is-open .bbpe-faq__icon--open  { display: flex; color: #6366f1; }
.bbpe-faq__item.is-open .bbpe-faq__icon--closed { display: none; }

/* ── Panel ────────────────────────────────────────────────────────────────── */
.bbpe-faq__panel {
	overflow: hidden;
	transition: max-height 0.35s ease;
}

.bbpe-faq__panel[hidden] { display: none; }

.bbpe-faq__body {
	padding: 0 0 20px;
}

.bbpe-faq__answer {
	font-size: 0.9375rem;
	color: #475569;
	line-height: 1.8;
}

.bbpe-faq__answer p:last-child { margin-bottom: 0; }
.bbpe-faq__answer a { color: #6366f1; }

/* ── Boxed variant ────────────────────────────────────────────────────────── */
.bbpe-faq--boxed .bbpe-faq__list { gap: 12px; }

.bbpe-faq--boxed .bbpe-faq__item {
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.2s ease;
}

.bbpe-faq--boxed .bbpe-faq__item.is-open {
	border-color: #c7d2fe;
	box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}

.bbpe-faq--boxed .bbpe-faq__trigger { padding: 20px 24px; }
.bbpe-faq--boxed .bbpe-faq__body    { padding: 0 24px 20px; }

/* ── Minimal variant ─────────────────────────────────────────────────────── */
.bbpe-faq--minimal .bbpe-faq__item { border: none; }

.bbpe-faq--minimal .bbpe-faq__trigger {
	padding: 16px 0;
}

.bbpe-faq--minimal .bbpe-faq__body { padding-bottom: 12px; }

/* ── Smooth animation via JS (adds/removes height inline) ────────────────── */
.bbpe-faq__panel.is-animating { display: block !important; overflow: hidden; }
