/* ESASH – Product FAQ (front-end) */

.esash-faq-section {
	margin: 5px 0 32px;
}

/* Full-width band under the product columns. */
.esash-faq-section--full-width {
	margin: 5px 0 40px;
}

.esash-faq-section--full-width .esash-faq-section__title {
	margin-bottom: 16px;
	font-size: inherit;
	font-weight: inherit;
}

/* Two columns once there is room for them. */
@media (min-width: 768px) {

	.esash-faq-section--full-width .esash-faq {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 48px;
		align-items: start;
	}

	/* In a 2-column grid the first ROW is the first two items. */
	.esash-faq-section--full-width .esash-faq__item:first-child {
		border-top: 0;
	}

	.esash-faq-section--full-width .esash-faq__item:nth-child(-n + 2) {
		border-top: 1px solid rgba(0, 0, 0, 0.1);
	}
}

/* Inside the narrow summary column, under the short description. */
.esash-faq-section--after-short-description {
	margin: 21px 0 20px;
}

.esash-faq-section--after-short-description .esash-faq__question {
	padding-top: 6px;
	padding-bottom: 6px;
	font-size: 0.95em;
}

.esash-faq-section--after-short-description .esash-faq__answer {
	padding-bottom: 14px;
	font-size: 0.95em;
}

.esash-faq-section__title {
	margin: 0 0 12px;
	font-size: 1.1em;
	line-height: 1.3;
	font-weight: 700;
}

/* Full-width heading inherits the theme's own section-title styling. */

.esash-faq {
	margin: 0;
}

.esash-faq__item {
	border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.esash-faq__item:first-child {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.esash-faq__question {
	position: relative;
	display: block;
	padding: 8px 32px 8px 0;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
	line-height: 1.4;
	list-style: none;
}

/*
 * Every question occupies at least two lines, so rows keep a consistent
 * height whether the question wraps or not. The flexbox lives on an inner
 * span — display:flex on <summary> itself breaks toggling in some browsers.
 */
.esash-faq__question-text {
	display: flex;
	align-items: center;
	min-height: 2.8em; /* 2 x line-height 1.4 */
}

/* Hide the native disclosure marker. */
.esash-faq__question::-webkit-details-marker {
	display: none;
}

.esash-faq__question::marker {
	content: "";
}

.esash-faq__question:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.esash-faq__question::after {
	content: "+";
	position: absolute;
	right: 4px;
	top: 50%;
	transform: translateY(-50%);
	font-size: calc(1.25em + 1px);
	font-weight: 400;
	line-height: 1;
	opacity: 0.65;
}

.esash-faq__item[open] > .esash-faq__question {
	font-weight: 700;
}

.esash-faq__item[open] > .esash-faq__question::after {
	content: "\2212"; /* − */
	font-weight: 400;
}

.esash-faq__answer {
	padding: 0 32px 18px 0;
}

.esash-faq__answer > *:first-child {
	margin-top: 0;
}

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

/* Mobile: no trailing gap under the FAQ block. */
@media (max-width: 767px) {

	.esash-faq-section,
	.esash-faq-section--full-width,
	.esash-faq-section--after-short-description {
		margin-bottom: 0;
	}
}
