/**
 * Single product FAQ accordion.
 *
 * @package PetiFood
 * @author  Alireza Aminzadeh
 */

.pf-product-faq {
	padding: 0 0 3rem;
}

.pf-product-faq__card {
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1.5rem;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	overflow: hidden;
}

html.dark .pf-product-faq__card,
body.dark .pf-product-faq__card {
	background: #111827;
	border-color: #1f2937;
}

.pf-product-faq__header {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 1.5rem 1.5rem 0;
}

@media (min-width: 1024px) {
	.pf-product-faq__header {
		padding: 2.5rem 2.5rem 0;
	}
}

.pf-product-faq__icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--petifood-primary, #6ee619) 18%, transparent);
	color: var(--petifood-primary-dark, #5bc215);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.pf-product-faq__icon .material-icons-round {
	font-size: 1.35rem;
}

.pf-product-faq__title {
	margin: 0 0 0.25rem;
	font-size: 1.25rem;
	line-height: 1.4;
	font-weight: 700;
	color: #111827;
}

html.dark .pf-product-faq__title,
body.dark .pf-product-faq__title {
	color: #fff;
}

.pf-product-faq__subtitle {
	margin: 0;
	font-size: 0.875rem;
	color: #6b7280;
}

html.dark .pf-product-faq__subtitle,
body.dark .pf-product-faq__subtitle {
	color: #9ca3af;
}

.pf-product-faq__list {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.5rem;
}

@media (min-width: 1024px) {
	.pf-product-faq__list {
		padding: 1.5rem 2.5rem 2.5rem;
	}
}

.pf-faq-item {
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	overflow: hidden;
	background: #fff;
}

html.dark .pf-faq-item,
body.dark .pf-faq-item {
	border-color: #1f2937;
	background: #111827;
}

.pf-faq-item__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.15rem 1.25rem;
	text-align: right;
	font-weight: 700;
	color: #111827;
	background: transparent;
	border: 0;
	cursor: pointer;
	transition: background-color 0.15s ease;
}

html.dark .pf-faq-item__toggle,
body.dark .pf-faq-item__toggle {
	color: #fff;
}

.pf-faq-item__toggle:hover,
.pf-faq-item__toggle.is-open {
	background: #f9fafb;
}

html.dark .pf-faq-item__toggle:hover,
html.dark .pf-faq-item__toggle.is-open,
body.dark .pf-faq-item__toggle:hover,
body.dark .pf-faq-item__toggle.is-open {
	background: #1f2937;
}

.pf-faq-item__question {
	flex: 1;
	line-height: 1.6;
}

.pf-faq-item__chevron {
	color: #9ca3af;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.pf-faq-item__toggle.is-open .pf-faq-item__chevron {
	transform: rotate(180deg);
}

.pf-faq-item__answer {
	padding: 0 1.25rem 1.25rem;
	color: #4b5563;
	line-height: 1.8;
}

html.dark .pf-faq-item__answer,
body.dark .pf-faq-item__answer {
	color: #d1d5db;
}

.pf-faq-item__answer[hidden] {
	display: none;
}

.pf-faq-item__answer p {
	margin: 0 0 0.75rem;
}

.pf-faq-item__answer p:last-child {
	margin-bottom: 0;
}
