/*
 * Visible AEO section. Colors, radius and width come from CSS variables set
 * by Settings → AEO Section Appearance; each var() fallback is the preset's
 * neutral default.
 */

/* Layout safety, every style. Page builders commonly end content with
   floated columns; without clear, this box starts behind them. */
.mseo-aeo-block,
.mseo-aeo-quick-answer {
	clear: both;
	box-sizing: border-box;
	max-width: var(--mseo-aeo-max-width, none);
	margin-left: auto;
	margin-right: auto;
}

.mseo-aeo-block {
	display: flow-root;
	margin-top: 2.5em;
	margin-bottom: 1.5em;
}

.mseo-aeo-quick-answer {
	margin-top: 0;
	margin-bottom: 1.75em;
}

.mseo-aeo-style-card .mseo-aeo-divider,
.mseo-aeo-style-none .mseo-aeo-divider {
	display: none;
}

/* Shared by Card and Plain. */
.mseo-aeo-styled {
	line-height: 1.6;
}

.mseo-aeo-styled .mseo-aeo-section-heading {
	text-align: center;
	font-size: 1.35em;
	margin: 0 0 1em;
}

.mseo-aeo-styled.mseo-aeo-align-left .mseo-aeo-section-heading {
	text-align: left;
}

.mseo-aeo-styled .mseo-aeo-heading {
	font-size: 1.1em;
	margin: 0 0 0.6em;
}

.mseo-aeo-styled .mseo-aeo-facts ul {
	margin: 0 0 0 1.25em;
	padding: 0;
	list-style: disc outside;
}

.mseo-aeo-styled .mseo-aeo-facts li {
	margin: 0 0 0.45em;
	padding: 0;
}

.mseo-aeo-styled .mseo-aeo-facts li::marker {
	color: var(--mseo-aeo-accent, currentColor);
}

.mseo-aeo-styled .mseo-aeo-facts + .mseo-aeo-faqs {
	margin-top: 1.5em;
}

.mseo-aeo-styled .mseo-aeo-faq-item {
	border-bottom: 1px solid var(--mseo-aeo-border, rgba(0, 0, 0, 0.1));
	padding: 0.75em 0;
}

.mseo-aeo-styled .mseo-aeo-faq-item:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

.mseo-aeo-styled .mseo-aeo-faq-item summary {
	cursor: pointer;
	font-weight: 600;
}

.mseo-aeo-styled .mseo-aeo-faq-item summary::marker {
	color: var(--mseo-aeo-accent, currentColor);
}

.mseo-aeo-styled .mseo-aeo-faq-item p {
	margin: 0.6em 0 0;
}

/* Card: its own background and text color, so it stays readable whatever
   section background a page builder puts behind it. */
.mseo-aeo-block.mseo-aeo-style-card,
.mseo-aeo-quick-answer.mseo-aeo-style-card {
	background: var(--mseo-aeo-bg, #fff);
	color: var(--mseo-aeo-text, #3f3f46);
	border: 1px solid var(--mseo-aeo-border, #e4e4e7);
	border-top: 4px solid var(--mseo-aeo-accent, #3f3f46);
	border-radius: var(--mseo-aeo-radius, 16px);
	box-shadow: 0 1px 2px 0 rgba(27, 26, 34, 0.05), 0 12px 26px -14px rgba(27, 26, 34, 0.22);
}

.mseo-aeo-block.mseo-aeo-style-card {
	padding: 28px 32px;
}

.mseo-aeo-quick-answer.mseo-aeo-style-card {
	padding: 16px 22px;
}

.mseo-aeo-style-card.mseo-aeo-no-shadow {
	box-shadow: none;
}

/* Plain: no box, inherits the theme's colors. */
.mseo-aeo-quick-answer.mseo-aeo-style-plain {
	background: var(--mseo-aeo-bg, rgba(0, 0, 0, 0.03));
	border-left: 3px solid var(--mseo-aeo-accent, rgba(0, 0, 0, 0.15));
	border-radius: var(--mseo-aeo-radius, 0);
	padding: 0.9em 1.1em;
}

.mseo-aeo-style-plain .mseo-aeo-divider {
	height: 0;
	border: 0;
	border-top: 1px solid var(--mseo-aeo-border, rgba(0, 0, 0, 0.1));
	margin: 0 0 1.5em;
}

@media (max-width: 600px) {
	.mseo-aeo-block.mseo-aeo-style-card {
		padding: 20px 18px;
	}

	.mseo-aeo-quick-answer.mseo-aeo-style-card {
		padding: 14px 16px;
	}
}
