/* ============================================================
   FEH FAQ Widget — Frontend Styles
   Goebel Media
   ============================================================ */

.feh-faq-widget *,
.feh-faq-widget *::before,
.feh-faq-widget *::after {
	box-sizing: border-box;
}

.feh-faq-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

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

.feh-faq-item {
	overflow: hidden;
}

/* ── Question button ───────────────────────────────────────── */

.feh-faq-question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px 20px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
	-webkit-appearance: none;
	appearance: none;
}

.feh-faq-question:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.feh-faq-question-text {
	flex: 1;
}

/* ── Icon ──────────────────────────────────────────────────── */

.feh-faq-icon {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	transition: transform 0.25s ease;
	font-size: 18px;
	color: inherit;
}

.feh-faq-icon svg {
	width: 100%;
	height: 100%;
	display: block;
}

/* Chevron rotates on open */
.feh-faq-item.is-open .feh-faq-icon svg:not(.icon-minus):not(.icon-plus) {
	transform: rotate(180deg);
}

/* Plus/Minus swap */
.feh-faq-icon .icon-minus {
	display: none;
}

.feh-faq-item.is-open .feh-faq-icon .icon-plus {
	display: none;
}

.feh-faq-item.is-open .feh-faq-icon .icon-minus {
	display: block;
}

/* ── Answer wrapper (animated) ─────────────────────────────── */

.feh-faq-answer-wrap {
	margin: 0;
	padding: 0;
	overflow: hidden;
	max-height: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease;
	opacity: 0;
	will-change: max-height, opacity;
}

.feh-faq-item.is-open .feh-faq-answer-wrap {
	opacity: 1;
	/* max-height set via JS to actual scrollHeight */
}

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

.feh-faq-answer {
	padding: 16px 20px;
}

.feh-faq-answer p:first-child { margin-top: 0; }
.feh-faq-answer p:last-child  { margin-bottom: 0; }

.feh-faq-answer ul,
.feh-faq-answer ol {
	padding-left: 1.5em;
	margin: 0.5em 0;
}

.feh-faq-answer a {
	color: inherit;
	text-decoration: underline;
}

/* ── Elementor editor: prevent collapsed state hiding content ─ */

.elementor-editor-active .feh-faq-answer-wrap {
	max-height: none !important;
	opacity: 1 !important;
}

.elementor-editor-active .feh-faq-icon svg {
	transform: none !important;
}
