/**
 * DockerCart FAQ — storefront styles
 *
 * Self-contained on purpose: the module must not rely on Tailwind utilities,
 * because the theme's tailwind.css is a build artifact of the whole theme and
 * is NOT rebuilt when the module is installed from an .ocmod.zip. Keeping all
 * storefront styling here means installing the module is enough — no rebuild.
 */

.dc-faq,
.dc-faq * {
	box-sizing: border-box;
}

.dc-faq {
	padding: 3rem 1rem;
}

.dc-faq__card {
	max-width: 80rem;
	margin: 0 auto;
	padding: 1.5rem;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1.5rem;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.dc-faq__header {
	margin-bottom: 2rem;
	text-align: left;
}

.dc-faq__title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 2rem;
	font-weight: 700;
	color: #111827;
}

.dc-faq__subtitle {
	max-width: 28rem;
	margin: 0.5rem 0 0;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: #6b7280;
}

.dc-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dc-faq__item {
	overflow: hidden;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}

.dc-faq__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	width: 100%;
	margin: 0;
	padding: 1.25rem 1.25rem 1.5rem;
	font: inherit;
	color: inherit;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
}

.dc-faq__question:focus {
	outline: none;
}

.dc-faq__question:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

.dc-faq__question-text {
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	color: #111827;
}

.dc-faq__chevron {
	flex-shrink: 0;
	width: 1.25rem;
	height: 1.25rem;
	color: #2563eb;
	transition: transform 0.3s ease;
}

.dc-faq__item.open .dc-faq__chevron {
	transform: rotate(180deg);
}

.dc-faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.38s ease, padding 0.3s ease;
}

.dc-faq__answer.open {
	max-height: 400px;
}

.dc-faq__answer-inner {
	padding: 0 1.25rem 1.5rem;
}

.dc-faq__answer-text {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.625;
	color: #6b7280;
}

@media (min-width: 640px) {
	.dc-faq {
		padding-left: 1.5rem;
		padding-right: 1.5rem;
	}

	.dc-faq__card {
		padding: 2.5rem;
	}

	.dc-faq__title {
		font-size: 1.875rem;
		line-height: 2.25rem;
	}

	.dc-faq__question-text {
		font-size: 1rem;
		line-height: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.dc-faq {
		padding-left: 2rem;
		padding-right: 2rem;
	}
}
