/**
 * Wallxer FAQ widget. Mobile first: one column; two columns with a sticky
 * heading column from 861px.
 */

.wlx-faq {
	--wlx-faq-pad-y: clamp(56px, 7vw, 100px);
	--wlx-faq-accent: var(--wlx-brand, #5b63d3);
	--wlx-faq-sticky-top: 104px;

	background-color: var(--wlx-tint, #fbfbfe);
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
}

.wlx-faq__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: start;
	max-width: 1200px;
	margin: 0 auto;
	padding: var(--wlx-faq-pad-y) 20px;
}

/* Heading column ---------------------------------------------------------- */

.wlx-faq__eyebrow {
	display: inline-flex;
	gap: 10px;
	align-items: center;
	margin: 0 0 22px;
	padding: 6px 16px 6px 6px;
	border: 1px solid var(--wlx-line, #e6e7f2);
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.6;
	color: var(--wlx-ink-2, #26263a);
	white-space: nowrap;
	background: #ffffff;
	box-shadow: 0 4px 14px rgba(20, 20, 40, 0.05);
}

.wlx-faq__eyebrow-icon {
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	color: #ffffff;
	background: var(--wlx-faq-accent);
}

.wlx-faq .wlx-faq__title {
	max-width: 14em;
	margin: 0 0 clamp(26px, 3.4vw, 38px);
	font-family: var(--wlx-font-heading, "Anek Bangla", "Hind Siliguri", sans-serif);
	font-size: clamp(30px, 4.2vw, 46px);
	font-weight: 700;
	line-height: 1.28;
	letter-spacing: -0.015em;
	color: var(--wlx-ink, #14141c);
}

.wlx-faq__title .wlx-hl {
	font-family: var(--wlx-font-accent, "Baloo Da 2", "Anek Bangla", sans-serif);
	font-weight: 700;
	color: var(--wlx-faq-accent);
}

.wlx-faq__card {
	max-width: 380px;
	padding: clamp(22px, 2.6vw, 30px);
	border: 1px solid var(--wlx-line-soft, #ecedf5);
	border-radius: 18px;
	background-color: #ffffff;
	box-shadow: 0 18px 40px rgba(20, 20, 40, 0.08);
}

.wlx-faq .wlx-faq__card-title {
	margin: 0 0 8px;
	font-family: var(--wlx-font-heading, "Anek Bangla", "Hind Siliguri", sans-serif);
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	letter-spacing: 0;
	color: var(--wlx-ink, #14141c);
}

.wlx-faq .wlx-faq__card-text {
	margin: 0 0 20px;
	font-size: 16px;
	line-height: 1.85;
	color: var(--wlx-muted-2, #5a5a6e);
}

/* Questions --------------------------------------------------------------- */

.wlx-faq__list {
	display: grid;
	gap: 14px;
	min-width: 0;
}

.wlx-faq__item {
	padding: 20px 24px;
	border: 1px solid var(--wlx-line-soft, #ecedf5);
	border-radius: 16px;
	background-color: #ffffff;
	box-shadow: var(--wlx-shadow-card, 0 6px 18px rgba(20, 20, 40, 0.04));
	transition: box-shadow 0.22s, border-color 0.22s;
}

.wlx-faq__item:hover {
	border-color: var(--wlx-line-hover, #cdd1f2);
	box-shadow: 0 14px 30px rgba(20, 20, 40, 0.08);
}

.wlx-faq__summary {
	display: flex;
	gap: 18px;
	align-items: flex-start;
	list-style: none;
	cursor: pointer;
}

.wlx-faq__summary::-webkit-details-marker {
	display: none;
}

.wlx-faq__summary:focus-visible {
	outline: 2px solid var(--wlx-brand-dark, #4a52c4);
	outline-offset: 6px;
	border-radius: 8px;
}

.wlx-faq__question {
	flex: 1;
	font-family: var(--wlx-font-heading, "Anek Bangla", "Hind Siliguri", sans-serif);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.5;
	color: var(--wlx-ink, #14141c);
}

/* Plus that turns into a minus when the item is open. */
.wlx-faq__icon {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	margin-top: 3px;
}

.wlx-faq__icon::before,
.wlx-faq__icon::after {
	content: "";
	position: absolute;
	background: var(--wlx-faq-accent);
}

.wlx-faq__icon::before {
	top: 10px;
	right: 4px;
	left: 4px;
	height: 2px;
}

.wlx-faq__icon::after {
	top: 4px;
	bottom: 4px;
	left: 10px;
	width: 2px;
	transition: opacity 0.2s, transform 0.2s;
}

.wlx-faq__item[open] .wlx-faq__icon::after {
	opacity: 0;
	transform: rotate(90deg);
}

.wlx-faq__answer {
	padding-top: 12px;
	font-size: 16px;
	line-height: 1.85;
	color: var(--wlx-muted-2, #5a5a6e);
}

.wlx-faq__answer > * {
	margin: 0 0 0.8em;
}

.wlx-faq__answer > :last-child {
	margin-bottom: 0;
}

.wlx-faq__answer a {
	color: var(--wlx-brand-ink, #3f46a8);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Two columns ------------------------------------------------------------- */

@media (min-width: 861px) {

	.wlx-faq__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.wlx-faq__aside {
		position: sticky;
		top: var(--wlx-faq-sticky-top);
	}
}

@media (prefers-reduced-motion: reduce) {

	.wlx-faq__item,
	.wlx-faq__icon::after {
		transition: none !important;
	}
}
