/* ============================================================
   PRODUCT FAQ — per-product accordion on single product page
   Matches Emjoy design system (see style.css / faq-demo).
   ============================================================ */

.aotheu-product-faq {
	margin: 48px 0;
}

/* When rendered inside the description accordion / product tab, drop the
   outer spacing — the accordion body already provides padding. */
.aotheu-product-faq.aotheu-faq-in-tab {
	margin: 0;
}

.aotheu-product-faq.aotheu-faq-in-tab .aotheu-faq-list {
	max-width: none;
}

.aotheu-product-faq .aotheu-faq-list {
	max-width: 820px;
	margin: 0 auto;
}

.aotheu-product-faq .aotheu-faq-heading {
	text-align: center;
	color: var(--primary, #183059);
	font-size: 28px;
	font-weight: 800;
	margin: 0 0 32px;
	line-height: 1.2;
}

.aotheu-product-faq .faq-item {
	background: var(--bg-white, #fff);
	border-radius: var(--radius-lg, 12px);
	margin-bottom: 16px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
	overflow: hidden;
	border: 1px solid transparent;
	transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.aotheu-product-faq .faq-item:hover {
	border-color: var(--border, #e5e5e5);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.aotheu-product-faq .faq-item.active {
	border-color: var(--border, #e5e5e5);
}

/* Question is a <button> for accessibility — reset its native styles */
.aotheu-product-faq .faq-question {
	width: 100%;
	border: 0;
	background: none;
	text-align: left;
	font-family: inherit;
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	cursor: pointer;
	font-weight: 600;
	color: var(--text-dark, #183059);
	font-size: 16px;
	line-height: 1.5;
	transition: color 0.3s;
	text-transform: unset;
}

.aotheu-product-faq .faq-question:hover {
	color: var(--primary-light, #24447d);
}

.aotheu-product-faq .faq-item.active .faq-question {
	color: var(--primary, #183059);
}

.aotheu-product-faq .faq-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--bg-linen, #fdfbf7);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--primary, #183059);
	font-size: 20px;
	font-weight: 400;
	flex-shrink: 0;
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.3s, color 0.3s;
}

.aotheu-product-faq .faq-item.active .faq-icon {
	background: var(--primary, #183059);
	color: #fff;
	transform: rotate(45deg);
}

.aotheu-product-faq .faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	background: var(--bg-white, #fff);
}

.aotheu-product-faq .faq-answer-inner {
	margin: 0 24px;
	padding: 20px 0 24px;
	border-top: 1px dashed var(--border, #e5e5e5);
	color: var(--text-body, #555);
	font-size: 15px;
	line-height: 1.6;
}

.aotheu-product-faq .faq-answer-inner p:first-child {
	margin-top: 0;
}

.aotheu-product-faq .faq-answer-inner p:last-child {
	margin-bottom: 0;
}

@media (max-width: 600px) {
	.aotheu-product-faq .aotheu-faq-heading {
		font-size: 23px;
	}

	.aotheu-product-faq .faq-question {
		font-size: 15px;
		padding: 16px 18px;
	}

	.aotheu-product-faq .faq-answer-inner {
		margin: 0 18px;
		padding: 16px 0 18px;
	}
}