/**
 * 果果選物 FAQ Accordion Styles
 *
 * @package RsGuoFaq
 */

:root {
	--guoguo-color-2: #A48977;
	--guoguo-color-3: #D4C4B0;
	--guoguo-color-6: #7A7A7A;
}

.guoguo-faq-wrap {
	width: 100%;
}

.guoguo-faq-item {
	padding: 14px 64px;
	border-top: 1px solid var(--guoguo-color-3);
	border-bottom: 1px solid var(--guoguo-color-3);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.guoguo-faq-item + .guoguo-faq-item {
	border-top: none;
}

/* Header (Q row) */
.guoguo-faq-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	-webkit-user-select: none;
	user-select: none;
}

.guoguo-faq-question {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Q & A Letters */
.guoguo-faq-letter {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
	text-align: center;
	color: var(--guoguo-color-2);
	font-family: 'Jost', sans-serif;
	font-size: 30px;
	font-weight: 500;
	line-height: 40px;
	letter-spacing: 2.8px;
}

.guoguo-faq-letter--answer {
	color: var(--guoguo-color-3);
}

/* Question text */
.guoguo-faq-question-text {
	color: #333;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.05em;
}

.guoguo-faq-header[aria-expanded="true"] .guoguo-faq-question-text {
	color: var(--guoguo-color-2);
}

/* Toggle icon */
.guoguo-faq-toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--guoguo-color-2);
}

.guoguo-faq-icon-v {
	transition: opacity 0.25s ease, transform 0.25s ease;
}

.guoguo-faq-header[aria-expanded="true"] .guoguo-faq-icon-v {
	opacity: 0;
	transform: rotate(90deg);
}

/* Answer area */
.guoguo-faq-answer {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.guoguo-faq-answer[hidden] {
	display: none;
}

.guoguo-faq-answer-text {
	color: var(--guoguo-color-6);
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 24px;
	letter-spacing: 0.05em;
}

.guoguo-faq-answer-text p {
	margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
	.guoguo-faq-item {
		padding: 14px 16px;
	}
}

/* ==============================
   Anchor Nav & Section Layout
   ============================== */

.guoguo-faq-page {
	width: 100%;
}

/* Nav button bar — drag scroll via translateX (bypasses body overflow:hidden) */
.guoguo-faq-nav {
	position: relative;
	overflow: hidden !important;
	cursor: grab;
	padding: 10px 0;
	-webkit-user-select: none;
	user-select: none;
}

.guoguo-faq-nav-track {
	display: inline-flex;
	gap: 16px;
	flex-wrap: nowrap;
	will-change: transform;
	transition: none;
}

.guoguo-faq-nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 10px 40px;
	background: #D6BDA2;
	box-shadow: 0px 0px 16px rgba(214, 189, 162, 0.32);
	border-radius: 12px;
	border: none;
	color: #fff;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 32px;
	letter-spacing: 2.4px;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	transition: background-color 0.25s ease, box-shadow 0.25s ease;
	cursor: pointer;
}

.guoguo-faq-nav-btn:hover,
.guoguo-faq-nav-btn:focus {
	background-color: #C4A78E;
	box-shadow: 0px 0px 20px rgba(214, 189, 162, 0.5);
	color: #fff;
	text-decoration: none;
}

.guoguo-faq-nav-btn-icon {
	flex-shrink: 0;
	width: 24px;
	height: 24px;
}

/* Section */
.guoguo-faq-section {
	margin-bottom: 40px;
}

.guoguo-faq-section-title {
	color: var(--Color-5, #333);
	text-align: center;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 23px;
	font-style: normal;
	font-weight: 500;
	line-height: 160%;
	letter-spacing: 2.3px;
	margin: 0 0 16px;
	padding: 0;
}

@media (max-width: 768px) {
	.guoguo-faq-nav {
		gap: 12px;
	}

	.guoguo-faq-nav-btn {
		padding: 8px 24px;
		font-size: 14px;
		letter-spacing: 1.8px;
	}

	.guoguo-faq-section-title {
		font-size: 20px;
		letter-spacing: 2px;
	}
}
