/*
 * FAQ accordion — single source of truth.
 *
 * These rules were split across style.css (12), product-page.css (7) and
 * catalog.css (2), and the two files disagreed: style.css set the container to
 * `display: flex` while product-page.css set `display: grid`, and the question
 * and answer were 14.5px/14px on a catalogue page against 16px/16px on a
 * product page. The same component, two type scales and two layout models,
 * depending which page you were on.
 *
 * One layout model here — grid, one column by default — so a page opts into
 * two columns instead of contradicting the base. One type scale, 16px, which
 * is the size we settled on for the product page and there is no reason the
 * catalogue's answers should be smaller when they carry the same reading.
 *
 * Loaded after flatsome-shop so it wins ties. See bt-catalog.php for why that
 * dependency is not optional.
 */

.bt-faq {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;   /* or a closed item stretches to match an open neighbour */
	gap: 10px;
	margin: 0 0 14px;
}

/* Two columns where there is room for them. The product page opts in; a
   catalogue footer stays single-column because it sits in a narrow band. */
.bt-pdp-faq .bt-faq {
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	column-gap: 34px;
}

.bt-faq__item {
	overflow: hidden;
	border: 1px solid rgba(229, 231, 235, 0.75);
	border-radius: 10px;
	background: var(--bt-white, #fff);
	transition: border-color 0.15s ease;
}

.bt-faq__item:hover {
	border-color: rgba(15, 61, 94, 0.22);
}

.bt-faq__item[open] {
	border-color: rgba(15, 61, 94, 0.30);
	background: rgba(245, 247, 250, 0.35);
}

.bt-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	color: var(--bt-navy, #0f3d5e);
	cursor: pointer;
	list-style: none;
}

.bt-faq__q::-webkit-details-marker {
	display: none;
}

.bt-faq__q::after {
	content: "+";
	flex: 0 0 auto;
	color: var(--bt-navy, #0f3d5e);
	font-size: 18px;
	font-weight: 400;
	line-height: 1;
}

.bt-faq__item[open] .bt-faq__q::after {
	content: "–";
}

/*
 * Collapse the answer explicitly.
 *
 * <details> hides its own content, but the answer here is a sibling of the
 * <summary> rather than wrapped, so browsers rendered it at full height on a
 * closed item. Without this the accordion looks permanently open.
 */
.bt-faq__item:not([open]) > .bt-faq__a {
	display: none;
}

.bt-faq__a {
	margin: 0;
	padding: 2px 16px 16px;
	font-size: 16px;
	line-height: 1.65;
	color: #14202b;   /* 16.52 on white; the muted grey sat at 9.51 */
}

@media (max-width: 768px) {
	.bt-faq__q {
		padding: 13px 14px;
		font-size: 15.5px;
	}

	.bt-faq__a {
		padding: 0 14px 14px;
		font-size: 15.5px;
	}
}
