/* ============================================================
   Merchant Powerpack — FAQ Module (frontend accordion)
   ============================================================ */

.mpp-faq {
	margin: 2.5em 0;
	font-family: inherit;
}

.mpp-faq__heading {
	font-size: 1.4em;
	font-weight: 600;
	margin: 0 0 1em;
	padding: 0;
	color: inherit;
}

/* ── List ── */
.mpp-faq__list {
	border-top: 1px solid var(--mpp-border-color, #ddd);
}

/* ── Item ── */
.mpp-faq__item {
	border-bottom: 1px solid var(--mpp-border-color, #ddd);
}

/* ── Question button ── */
.mpp-faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
	width: 100%;
	padding: 1em 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.05em;
	font-weight: 700;
	color: inherit;
	text-align: left;
	line-height: 1.4;
}

.mpp-faq__question:focus-visible {
	outline: 2px solid var(--mpp-primary-color, #007cba);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ── Chevron icon ── */
.mpp-faq__icon {
	flex-shrink: 0;
	display: inline-block;
	width: 1.1em;
	height: 1.1em;
	background-color: var(--mpp-primary-color, #007cba);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	-webkit-mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	mask-repeat: no-repeat;
	mask-size: contain;
	transition: transform 0.2s ease;
}

.mpp-faq__item--open .mpp-faq__icon {
	transform: rotate(180deg);
}

/* ── Answer panel ── */
.mpp-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.25s ease;
}

.mpp-faq__item--open .mpp-faq__answer {
	grid-template-rows: 1fr;
}

.mpp-faq__answer-inner {
	overflow: hidden;
	padding: 0;
	color: var(--mpp-faq-answer-color, #555);
	font-size: 0.95em;
	line-height: 1.7;
}

.mpp-faq__item--open .mpp-faq__answer-inner {
	padding-bottom: 1em;
}

.mpp-faq__answer-inner p:first-child {
	margin-top: 0;
}

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

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	.mpp-faq__answer,
	.mpp-faq__icon {
		transition: none;
	}
}
