/**
 * FAQ accordion styles — [mls_faq] shortcode.
 * Uses Breakdance font-family but overrides sizes with specific selectors.
 *
 * @package MexxconLocalSeo
 */

/* ── Wrapper ─────────────────────────────────────────────────────────── */

div.mls-faq {
	width: 100%;
	max-width: 860px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 0;
}

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

div.mls-faq div.mls-faq__item {
	border-bottom: 1px solid #e8e8e8;
}

div.mls-faq div.mls-faq__item:first-child {
	border-top: 1px solid #e8e8e8;
}

/* ── Trigger (button) ────────────────────────────────────────────────── */

div.mls-faq button.mls-faq__trigger {
	all: unset;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 22px 0;
	cursor: pointer;
	background: transparent;
	border: none;
	text-align: left;
}

div.mls-faq button.mls-faq__trigger:focus-visible {
	outline: 2px solid #FEA800;
	outline-offset: 2px;
	border-radius: 3px;
}

/* ── Question text ───────────────────────────────────────────────────── */

div.mls-faq button.mls-faq__trigger span.mls-faq__question {
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	line-height: 1.4 !important;
	color: #141414 !important;
	flex: 1;
}

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

div.mls-faq button.mls-faq__trigger span.mls-faq__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: #FEA800;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
}

div.mls-faq button.mls-faq__trigger span.mls-faq__icon svg {
	width: 22px !important;
	height: 22px !important;
	display: block;
}

/* Plus visible by default, min hidden */
div.mls-faq button.mls-faq__trigger span.mls-faq__icon svg.mls-faq__icon-plus {
	display: block;
}

div.mls-faq button.mls-faq__trigger span.mls-faq__icon svg.mls-faq__icon-min {
	display: none;
}

/* Open state: swap icons */
div.mls-faq div.mls-faq__item.mls-faq__item--open button.mls-faq__trigger span.mls-faq__icon svg.mls-faq__icon-plus {
	display: none;
}

div.mls-faq div.mls-faq__item.mls-faq__item--open button.mls-faq__trigger span.mls-faq__icon svg.mls-faq__icon-min {
	display: block;
}

/* ── Answer panel ────────────────────────────────────────────────────── */

div.mls-faq div.mls-faq__answer {
	/* hidden attribute handles visibility — no extra CSS needed for hide */
}

div.mls-faq div.mls-faq__answer div.mls-faq__answer-inner {
	padding-bottom: 22px;
	padding-right: 38px; /* keep text from running under icon column */
}

div.mls-faq div.mls-faq__answer div.mls-faq__answer-inner,
div.mls-faq div.mls-faq__answer div.mls-faq__answer-inner p {
	font-size: 0.95rem !important;
	line-height: 1.7 !important;
	color: #777777 !important;
	margin: 0 !important;
}

div.mls-faq div.mls-faq__answer div.mls-faq__answer-inner p + p {
	margin-top: 0.75em !important;
}

/* ── Hover state ─────────────────────────────────────────────────────── */

div.mls-faq div.mls-faq__item:hover button.mls-faq__trigger span.mls-faq__question {
	color: #FEA800 !important;
	transition: color 0.15s ease;
}

/* ── Mobile ──────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
	div.mls-faq button.mls-faq__trigger span.mls-faq__question {
		font-size: 0.97rem !important;
	}

	div.mls-faq button.mls-faq__trigger {
		padding: 18px 0;
	}
}
