/*
 * FAQ accordion (Service template), rendered by includes/faq.php into the empty `ac-dyn-faq` Div Block.
 * Every selector is prefixed with .elementor like carousels.css, so it competes with Elementor's `.elementor .ac-x` rules.
 * Values are from the Figma 1440 and 402 frames. Breakpoint: mobile = 767px.
 */

.elementor .ac-faq {
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 506px;
}

.elementor .ac-faq .ac-faq-item {
	border-bottom: 1px solid color-mix(in srgb, var(--c-coffee) 16%, transparent);
}

.elementor .ac-faq .ac-faq-item + .ac-faq-item {
	margin-top: 14px; /* Figma: 15 below a 0-high divider whose 1 px stroke sits inside the item */
}

.elementor .ac-faq .ac-faq-item__q {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 29px;
	padding: 0 10px 9px 0;
	list-style: none;
	cursor: pointer;
	color: var(--c-slate);
	background: none;
	text-decoration: none;
}

.elementor .ac-faq .ac-faq-item__q::-webkit-details-marker {
	display: none;
}

.elementor .ac-faq .ac-faq-item__q:hover,
.elementor .ac-faq .ac-faq-item__q:focus,
.elementor .ac-faq .ac-faq-item__q:active {
	color: var(--c-slate);
	background: none;
	text-decoration: none;
}

.elementor .ac-faq .ac-faq-item__q:focus {
	outline: none;
}

.elementor .ac-faq .ac-faq-item__q:focus-visible {
	outline: 2px solid var(--c-blue-light);
	outline-offset: 4px;
	border-radius: 4px;
}

.elementor .ac-faq .ac-faq-item__text,
.elementor .ac-faq .ac-faq-item__a {
	font-family: var(--f-primary);
	font-weight: 400;
	font-size: 16px;
	line-height: 26px;
	letter-spacing: 0;
	color: var(--c-slate);
}

.elementor .ac-faq .ac-faq-item__text {
	flex: 1 1 auto;
	min-width: 0;
}

.elementor .ac-faq .ac-faq-item__icon {
	display: block;
	flex: 0 0 29px;
	width: 29px;
	height: 29px;
	transition: transform .2s;
}

/* `is-closing` is set by site.js while an item animates shut (it is still [open] until the animation ends), so the chevron turns back at once. */
.elementor .ac-faq .ac-faq-item[open]:not(.is-closing) > .ac-faq-item__q .ac-faq-item__icon {
	transform: rotate(180deg);
}

.elementor .ac-faq .ac-faq-item__a {
	padding: 0 61px 12px 0;
}

.elementor .ac-faq .ac-faq-item__a p {
	margin: 0;
}

.elementor .ac-faq .ac-faq-item__a p + p {
	margin-top: 10px;
}

@media (prefers-reduced-motion: reduce) {
	.elementor .ac-faq .ac-faq-item__icon {
		transition: none;
	}
}

@media (max-width: 767px) {
	.elementor .ac-faq {
		max-width: none;
	}

	.elementor .ac-faq .ac-faq-item + .ac-faq-item {
		margin-top: 0;
	}

	.elementor .ac-faq .ac-faq-item__q {
		gap: 16px;
		padding: 16px 0;
	}

	.elementor .ac-faq .ac-faq-item__a {
		padding: 0 45px 16px 0;
	}
}
