/* MOT Stone FAQ - Frontend styles
   Brand colors:
   #002044 primary  |  #D1AA67 accent  |  #151515 text  |  #F2F3EE light
*/

.msf-faq {
	--msf-primary: #002044;
	--msf-accent: #D1AA67;
	--msf-text: #151515;
	--msf-light: #F2F3EE;

	margin: 40px 0;
}

.msf-faq__title {
	color: var(--msf-primary);
	font-size: 1.5em;
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--msf-accent);
}

.msf-faq__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.msf-faq__item {
	border: 1px solid var(--msf-accent);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.msf-faq__question {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 18px;
	background: var(--msf-light);
	color: var(--msf-primary);
	font-weight: 600;
	font-size: 1em;
	transition: background-color .2s ease;
}

.msf-faq__question::-webkit-details-marker {
	display: none;
}

.msf-faq__question::marker {
	content: '';
}

.msf-faq__item:hover .msf-faq__question {
	background: #eceee6;
}

.msf-faq__icon {
	flex: 0 0 auto;
	position: relative;
	width: 18px;
	height: 18px;
}

.msf-faq__icon::before,
.msf-faq__icon::after {
	content: '';
	position: absolute;
	background: var(--msf-accent);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.msf-faq__icon::before {
	width: 14px;
	height: 2px;
}

.msf-faq__icon::after {
	width: 2px;
	height: 14px;
	transition: transform .2s ease;
}

.msf-faq__item[open] .msf-faq__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
	opacity: 0;
}

.msf-faq__answer {
	padding: 4px 18px 16px;
	color: var(--msf-text);
	line-height: 1.7;
}

.msf-faq__answer p:first-child {
	margin-top: 0;
}

.msf-faq__answer p:last-child {
	margin-bottom: 0;
}

.msf-faq-empty-notice {
	padding: 12px;
	background: var(--msf-light, #F2F3EE);
	color: var(--msf-text, #151515);
	border: 1px dashed var(--msf-accent, #D1AA67);
	border-radius: 4px;
}

@media (max-width: 480px) {
	.msf-faq__question {
		padding: 12px 14px;
		font-size: .95em;
	}
	.msf-faq__answer {
		padding: 4px 14px 14px;
	}
}
