/* HQ FAQ Accordion Block — Styles */

.hq-faq-accordion {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
}

.hq-faq-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 0;
}

/* FAQ item */
.hq-faq-item {
	overflow: hidden;
	border: 1px solid rgba(0,0,0,0.08);
	transition: box-shadow 0.2s ease;
}

.hq-faq-item.hq-faq-open {
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Question button */
.hq-faq-question {
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding: 20px 24px;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	font-size: 1em;
	font-weight: 600;
	line-height: 1.4;
	transition: background-color 0.15s ease;
}

.hq-faq-question:hover {
	background-color: rgba(0,0,0,0.03);
}

.hq-faq-question:focus,
.hq-faq-question:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: -2px;
}

.hq-faq-question-text {
	flex: 1;
}

.hq-faq-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.hq-faq-open .hq-faq-icon {
	transform: rotate(180deg);
}

/* Answer */
.hq-faq-answer {
	padding: 0 24px 20px;
	margin: 0;
	line-height: 1.7;
	font-size: 0.97em;
	opacity: 0.85;
}

.hq-faq-answer p {
	margin: 0;
}

/* Hidden state */
.hq-faq-answer[hidden] {
	display: none;
}

/* Animated open state — JS adds/removes class */
.hq-faq-answer.hq-faq-answer-visible {
	display: block;
	animation: hq-faq-open 0.25s ease;
}

@keyframes hq-faq-open {
	from { opacity: 0; transform: translateY(-8px); }
	to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
	.hq-faq-answer.hq-faq-answer-visible {
		animation: none;
	}
}

/* Editor helpers */
.hq-faq-remove {
	margin-top: 8px;
}

.hq-faq-add {
	width: 100%;
	justify-content: center;
	margin-top: 4px;
}

.hq-color-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.hq-color-label {
	flex: 1;
	font-size: 12px;
	font-weight: 500;
}
.hq-color-row input[type="color"] {
	width: 40px;
	height: 32px;
	padding: 2px;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: pointer;
	background: none;
}

@media (max-width: 480px) {
	.hq-faq-question { padding: 16px 18px; }
	.hq-faq-answer   { padding: 0 18px 16px; }
}
