/* Platecraft Addons – Accordion / FAQ. The answer opens by growing its grid
   row from 0 to its height; a closed answer is hidden from screen readers. */

.pfaq {
	--pfaq-gap: 12px;
	--pfaq-speed: 350ms;
	--pfaq-toggle: 14px;
	--pfaq-toggle-box: 32px;
	--pfaq-icon: 18px;
	--pfaq-line: rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: var(--pfaq-gap);
}
.pfaq--joined,
.pfaq--lines {
	gap: 0;
}
.pfaq__item {
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
	background-color: #fff;
	box-shadow: var(--pfaq-item-shadow, none);
	transition: background-color 0.3s ease, border-color 0.3s ease;
}
.pfaq--joined {
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 12px;
}
.pfaq--joined .pfaq__item {
	border: 0;
	border-radius: 0;
}
.pfaq--joined .pfaq__item + .pfaq__item {
	border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.pfaq--lines .pfaq__item {
	border-width: 0 0 1px;
	border-radius: 0;
	background: transparent;
}
.pfaq__head {
	margin: 0;
	font-size: inherit;
	line-height: inherit;
}
.pfaq__btn {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	margin: 0;
	padding: 18px 20px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: inherit;
	font: inherit;
	text-align: left;
	text-transform: none;
	letter-spacing: normal;
	/* Themes (Hello Elementor) keep button text on one line: a long question wraps. */
	white-space: normal;
	cursor: pointer;
	transition: color 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}
.pfaq__btn:hover,
.pfaq__btn:focus {
	background: transparent;
	color: inherit;
}
.pfaq__btn:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -4px;
}
.pfaq--lines .pfaq__btn {
	padding-right: 0;
	padding-left: 0;
}
.pfaq__title {
	flex: 1 1 auto;
	min-width: 0;
	font-weight: 600;
	overflow-wrap: break-word;
}
.pfaq__icon {
	display: inline-flex;
	flex: 0 0 auto;
	color: #c2410c;
	font-size: var(--pfaq-icon);
}
.pfaq__icon svg {
	width: var(--pfaq-icon);
	height: var(--pfaq-icon);
	fill: currentColor;
}
.pfaq__toggle {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: var(--pfaq-toggle-box);
	height: var(--pfaq-toggle-box);
	border-radius: 50%;
	background-color: rgba(194, 65, 12, 0.1);
	color: #c2410c;
	font-size: var(--pfaq-toggle);
	line-height: 1;
	transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}
.pfaq__toggle svg {
	width: var(--pfaq-toggle);
	height: var(--pfaq-toggle);
	fill: currentColor;
}
.pfaq__toggle-open,
.pfaq__item.is-open .pfaq__toggle-closed {
	display: none;
}
.pfaq__item.is-open .pfaq__toggle-open {
	display: inline-flex;
}
.pfaq__toggle-closed {
	display: inline-flex;
}
.pfaq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows var(--pfaq-speed) ease;
}
.pfaq__item.is-open .pfaq__panel {
	grid-template-rows: 1fr;
}
.pfaq__body {
	min-height: 0;
	overflow: hidden;
	visibility: hidden;
	transition: visibility 0s linear var(--pfaq-speed);
}
.pfaq__item.is-open .pfaq__body {
	visibility: visible;
	transition-delay: 0s;
}
/* flow-root: the answer's own margins stay inside its box (Background, Margin). */
.pfaq__inner {
	display: flow-root;
	padding: 0 20px 20px;
}
.pfaq--lines .pfaq__inner {
	padding-right: 0;
	padding-left: 0;
}
.pfaq--toggle-left .pfaq__inner {
	padding-left: calc(20px + var(--pfaq-toggle-box) + 14px);
}
.pfaq-line-yes .pfaq__inner {
	padding-top: 16px;
	border-top: 1px solid var(--pfaq-line);
}
.pfaq__inner > :last-child {
	margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
	.pfaq__panel,
	.pfaq__body {
		transition: none;
	}
}
