/* =========================================================
   Neil Davies Domestic — FAQ styling (core/details block)
   ========================================================= */

.ndd-faq .wp-block-details {
	background: var(--wp--preset--color--white, #FFFFFF);
	border: 1px solid var(--wp--preset--color--secondary, #DCE8E3);
	border-radius: 5px;
	margin-bottom: 12px;
	overflow: hidden;
}

.ndd-faq .wp-block-details[open] {
	background: var(--wp--preset--color--secondary, #DCE8E3);
}

.ndd-faq .wp-block-details > summary {
	list-style: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 20px;
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	font-size: 16px;
	color: var(--wp--preset--color--primary, #2F6E62);
}

.ndd-faq .wp-block-details > summary::-webkit-details-marker,
.ndd-faq .wp-block-details > summary::marker {
	display: none;
	content: "";
}

/* Plus / minus indicator, swapped by the [open] state. */
.ndd-faq .wp-block-details > summary::after {
	content: "";
	flex: 0 0 auto;
	width: 20px;
	height: 20px;
	background-image: url("https://daviesdomesticappliance.co.uk.buildstage.uk/wp-content/uploads/2026/09/faq-plus.svg");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
}
.ndd-faq .wp-block-details[open] > summary::after {
	background-image: url("https://daviesdomesticappliance.co.uk.buildstage.uk/wp-content/uploads/2026/09/faq-minus.svg");
}

.ndd-faq .wp-block-details .wp-block-details__content,
.ndd-faq .wp-block-details > summary + * {
	padding: 0 20px 18px;
	font-family: "Poppins", sans-serif;
	font-size: 16px;
	color: var(--wp--preset--color--contrast, #26312E);
}

/* Smooth open/close — supporting class added by faq.js. */
.ndd-faq .wp-block-details > summary + * {
	overflow: hidden;
}
