.fdm-faq {
	--fdm-faq-bottom: #11301c;
	--fdm-faq-text: #122E1A;
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
}

/* header = div (not button) so theme button styles never apply */
.fdm-faq-head,
.fdm-faq-head:hover {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 15px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: linear-gradient(180deg, #015A41 0%, #122E1A 100%);
	color: #fff;
	cursor: pointer;
	user-select: none;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.fdm-faq-item.is-open .fdm-faq-head {
	border-color: #000;
}

.fdm-faq-head:focus-visible {
	outline: 2px solid var(--fdm-faq-bottom);
	outline-offset: 3px;
}

.fdm-faq-title {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.2;
}

.fdm-faq-icon {
	flex: 0 0 auto;
	transition: transform 0.3s ease;
}
.fdm-faq-item.is-open .fdm-faq-icon {
	transform: rotate(180deg);
}

.fdm-faq-panel {
	overflow: hidden;
	transition: height 0.3s ease;
}
.fdm-faq-panel[hidden] { display: none; }

.fdm-faq-content {
	margin-top: 4px;
	padding: 20px 20px 24px;
	background: #fff;
	border: 1px solid #ececec;
	color: var(--fdm-faq-text);
	font-family: "Manrope", Sans-serif;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
}
.fdm-faq-content > :first-child { margin-top: 0; }
.fdm-faq-content > :last-child { margin-bottom: 0; }

.fdm-faq-empty {
	padding: 20px;
	border: 1px dashed #bbb;
	text-align: center;
	color: #777;
}

@media (max-width: 1024px) {
	.fdm-faq-title { font-size: 20px; }
	.fdm-faq-content { font-size: 16px; }
	.fdm-faq-head { padding-right: 24px; }
}

@media (max-width: 767px) {
	.fdm-faq { gap: 10px; }
	.fdm-faq-head { padding: 12px 16px; min-height: 54px; }
	.fdm-faq-title { font-size: 17px; }
	.fdm-faq-content { font-size: 15px; padding: 16px; }
}
