@import '../../../styles/essentials';

.faq {
	.faq-before,
	.faq-after {
		margin-bottom: 2rem;
	}

	.faq-after {
		margin-top: 2rem;
		margin-bottom: 0;
	}

	.faq-list {
		border-top: 1px solid #e5e5e5;
	}

	.faq-item {
		border-bottom: 1px solid #e5e5e5;

		&[open] {
			.faq-chevron {
				transform: rotate(180deg);
			}
		}
	}

	.faq-question {
		align-items: center;
		cursor: pointer;
		display: flex;
		font-size: 1.125rem;
		font-weight: 500;
		justify-content: space-between;
		list-style: none;
		padding: 1.25rem 0;
		gap: 1rem;

		&::-webkit-details-marker {
			display: none;
		}

		span {
			flex: 1;
		}
	}

	.faq-chevron {
		flex-shrink: 0;
		height: 1.25rem;
		transition: transform 0.2s ease;
		width: 1.25rem;
	}

	.faq-answer {
		padding-bottom: 1.25rem;

		> *:first-child {
			margin-top: 0;
		}

		> *:last-child {
			margin-bottom: 0;
		}
	}
}


// ── v2 development indicator ─────────────────────────────────────────────────
// Remove this block once the v2 design is finalised.

.faq-v2 {
    outline: 3px dashed #22c55e;
    background-color: rgba(34, 197, 94, 0.06) !important;
}
