/* WP Consultant Toolkit — FAQ widget (modules/faq). Controls set --wpct-faq-* on the widget wrapper. */

.wpct-faq {
	max-width: var(--wpct-faq-max-width, 850px);
	margin-inline: var(--wpct-faq-margin-inline, auto);
}

.wpct-faq .wpct-faq-item {
	margin: 0;
	padding: 0;
	border: 0;
	border-bottom: var(--wpct-faq-border-width, 1px) solid var(--wpct-faq-border-color, #dce4eb);
}

.wpct-faq .wpct-faq-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: var(--wpct-faq-padding-block, 24px) 4px var(--wpct-faq-padding-block, 24px) 0;
	cursor: pointer;
	list-style: none;
}

.wpct-faq .wpct-faq-summary::-webkit-details-marker {
	display: none;
}

.wpct-faq .wpct-faq-summary::marker {
	content: "";
}

.wpct-faq .wpct-faq-summary:focus-visible {
	border-radius: 6px;
	outline: 2px solid #245bff;
	outline-offset: 4px;
}

/* Two classes deep: beats the kit's heading rules (.elementor-kit-N h3). */
.wpct-faq .wpct-faq-question {
	margin: 0;
	padding: 0;
	color: var(--wpct-faq-question-color, #07182f);
	font-family: "Manrope", Arial, sans-serif;
	font-size: 1.06rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0;
	line-height: 1.4;
	text-transform: none;
	transition: color .18s ease;
}

.wpct-faq .wpct-faq-item[open] .wpct-faq-question {
	color: var(--wpct-faq-question-color-open, var(--wpct-faq-question-color, #07182f));
}

@media (hover: hover) {
	.wpct-faq .wpct-faq-summary:hover .wpct-faq-question {
		color: var(--wpct-faq-question-color-hover, #164ad8);
	}
}

/* Plus/minus drawn with two bars; the vertical bar turns flat and fades when open. */
.wpct-faq .wpct-faq-icon {
	position: relative;
	display: block;
	flex: 0 0 auto;
	width: var(--wpct-faq-icon-size, 30px);
	height: var(--wpct-faq-icon-size, 30px);
	border-radius: var(--wpct-faq-icon-radius, 50%);
	color: var(--wpct-faq-icon-color, #164ad8);
	background: var(--wpct-faq-icon-bg, #edf2ff);
	transition: color .18s ease, background-color .18s ease;
}

.wpct-faq .wpct-faq-icon::before,
.wpct-faq .wpct-faq-icon::after {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 40%;
	height: 2px;
	margin: -1px 0 0 -20%;
	border-radius: 2px;
	background: currentColor;
	content: "";
	transition: transform .25s ease, opacity .25s ease;
}

.wpct-faq .wpct-faq-icon::after {
	transform: rotate(90deg);
}

.wpct-faq .wpct-faq-item[open] .wpct-faq-icon {
	color: var(--wpct-faq-icon-color-open, var(--wpct-faq-icon-color, #164ad8));
	background: var(--wpct-faq-icon-bg-open, var(--wpct-faq-icon-bg, #edf2ff));
}

.wpct-faq .wpct-faq-item[open] .wpct-faq-icon::after {
	opacity: 0;
	transform: rotate(0deg);
}

.wpct-faq .wpct-faq-answer {
	padding: 0 44px var(--wpct-faq-padding-block, 24px) 0;
	color: var(--wpct-faq-answer-color, #52657b);
}

.wpct-faq .wpct-faq-answer > :first-child {
	margin-top: 0;
}

.wpct-faq .wpct-faq-answer > :last-child {
	margin-bottom: 0;
}

/* Own link + hover rules: the kit styles every a and a:hover. */
.wpct-faq .wpct-faq-answer a {
	color: var(--wpct-faq-link-color, #164ad8);
	text-decoration: underline;
}

.wpct-faq .wpct-faq-answer a:hover,
.wpct-faq .wpct-faq-answer a:focus-visible {
	color: var(--wpct-faq-link-color, #164ad8);
	text-decoration: none;
}

/* Smooth open/close where supported; other browsers open instantly. */
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
	.wpct-faq {
		interpolate-size: allow-keywords;
	}

	.wpct-faq .wpct-faq-item::details-content {
		height: 0;
		overflow: clip;
		transition: height .3s ease, content-visibility .3s ease allow-discrete;
	}

	.wpct-faq .wpct-faq-item[open]::details-content {
		height: auto;
	}
}

@media (max-width: 767px) {
	.wpct-faq .wpct-faq-answer {
		padding-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wpct-faq .wpct-faq-item::details-content,
	.wpct-faq .wpct-faq-icon,
	.wpct-faq .wpct-faq-icon::before,
	.wpct-faq .wpct-faq-icon::after,
	.wpct-faq .wpct-faq-question {
		transition: none;
	}
}
