/**
 * RS 采唐 FAQ — 前端樣式
 *
 * 色票（Figma 精確值）：
 *   #FF8021  主橙色（active 按鈕背景）
 *   #280901  深棕色（Q icon 背景、問題文字、inactive 按鈕文字）
 *   #EDE5D9  米白色（inactive 按鈕背景）
 *   #F3EEE8  淺米色（answer 背景）
 *   #FFFEFB  暖白色（Q icon 文字、active 按鈕文字）
 */

/* ===== 整體 layout ===== */
.rs-tsaitang-faq-wrap {
	display: flex;
	gap: 68px;
	align-items: flex-start;
	font-family: 'Noto Sans TC', sans-serif;
}

.rs-faq-sidebar {
	width: 180px;
	flex-shrink: 0;
}

.rs-faq-content {
	flex: 1;
	min-width: 0;
}

/* ===== 桌面版 nav 按鈕 ===== */
.rs-faq-nav--desktop {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rs-faq-nav-btn {
	display: block;
	width: 170px;
	padding: 10px;
	border: none;
	border-radius: 23px;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 0.80px;
	line-height: 25.60px;
	cursor: pointer;
	text-align: center;
	transition: background 0.2s, color 0.2s;
}

.rs-faq-nav-btn.is-active {
	background: #ff8021;
	color: #fffefb;
}

.rs-faq-nav-btn:not(.is-active) {
	background: #ede5d9;
	color: #280901;
}

.rs-faq-nav-btn:not(.is-active):hover {
	background: #e3d9cc;
}

/* ===== 手機版下拉 ===== */
.rs-faq-nav--mobile {
	display: none;
	width: 100%;
	padding: 10px 16px;
	border: 1px solid #d4cfc8;
	border-radius: 8px;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 15px;
	background: #f3eee8;
	color: #1e0800;
	cursor: pointer;
}

/* ===== FAQ item ===== */
.rs-faq-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rs-faq-item {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rs-faq-item__header {
	display: flex;
	align-items: center;
	gap: 32px;
	cursor: pointer;
	user-select: none;
}

.rs-faq-item__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 60px;
	height: 60px;
	border-radius: 15px;
	background: #280901;
	color: #fffefb;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: 46px;
	font-weight: 700;
	line-height: 59.8px;
}

.rs-faq-item__question-box {
	flex: 1;
	min-width: 0;
	height: 76px;
	padding: 23px 54px;
	background: #fffefb;
	border-radius: 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-sizing: border-box;
}

.rs-faq-item__question {
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 23px;
	font-weight: 700;
	line-height: 29.9px;
	color: #280901;
}

.rs-faq-item__toggle {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* 展開時隱藏垂直軸（+ → -）。 */
.rs-faq-item.is-open .rs-faq-toggle__v {
	display: none;
}

/* ===== Answer（收合動畫） ===== */
.rs-faq-item__answer {
	max-height: 0;
	overflow: hidden;
	padding-left: 92px;
	transition: max-height 0.3s ease;
}

.rs-faq-item.is-open .rs-faq-item__answer {
	max-height: 2000px;
}

.rs-faq-item__answer-inner {
	padding: 23px 54px;
	background: #f3eee8;
	border-radius: 15px;
	font-family: 'Noto Sans TC', sans-serif;
	font-size: 16px;
	font-weight: 400;
	color: #280901;
	line-height: 32px;
	letter-spacing: 1.60px;
}

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

/* ===== Loading spinner ===== */
.rs-faq-loading {
	padding: 24px;
	text-align: center;
}

.rs-faq-loading::after {
	content: '';
	display: inline-block;
	width: 24px;
	height: 24px;
	border: 3px solid #f3eee8;
	border-top-color: #e65514;
	border-radius: 50%;
	animation: rs-faq-spin 0.7s linear infinite;
}

@keyframes rs-faq-spin {
	to {
		transform: rotate( 360deg );
	}
}

/* ===== RWD ===== */
@media ( max-width: 767px ) {
	.rs-tsaitang-faq-wrap {
		flex-direction: column;
		gap: 20px;
	}

	.rs-faq-sidebar {
		width: 100%;
	}

	.rs-faq-nav--desktop {
		display: none;
	}

	.rs-faq-nav--mobile {
		display: block;
	}

	.rs-faq-item__answer {
		padding-left: 0;
	}

	.rs-faq-item__answer-inner {
		padding-left: 20px;
	}

	/* Division */
	.rs-faq-list .rs-faq-item .rs-faq-item__question-box {
		padding-left: 20px;
		padding-right: 20px;
		padding-top: 20px;
		padding-bottom: 20px;
		transform: translateX(0px) translateY(0px);
	}

	/* Faq item question */
	.rs-faq-list .rs-faq-item .rs-faq-item__question {
		font-size: 18px;
	}

	/* Select */
	.rs-tsaitang-faq-wrap .rs-faq-sidebar select {
		line-height: 1em;
	}
}

/* ==========================================================================
   單一商品 FAQ — [rs_tsaitang_product_faq]
   ========================================================================== */

.rs-product-faq-wrap {
	font-family: 'Noto Sans TC', sans-serif;
}

/* 標題列 */
.rs-product-faq-title {
	padding: 24px 0;
	border-bottom: 1px solid #d6d3d1; /* stone-300 */
	display: flex;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
}

.rs-product-faq-title__inner {
	flex: 1;
	color: var(--Color-6, #280901);
	font-feature-settings: 'case' on;
	font-family: 'Noto Sans CJK TC', 'Noto Sans TC', sans-serif;
	font-size: 23px;
	font-style: normal;
	font-weight: 700;
	line-height: 130%; /* 29.9px */
	letter-spacing: 2.3px;
}

/* 標題與 QA 區間距 32px */
.rs-product-faq-content {
	margin-top: 32px;
}

/* RWD */
@media ( max-width: 767px ) {
	.rs-product-faq-wrap .rs-faq-item__answer {
		padding-left: 0;
	}

	.rs-product-faq-wrap .rs-faq-item__answer-inner {
		padding-left: 20px;
	}

	.rs-product-faq-wrap .rs-faq-item__question-box {
		padding: 20px;
	}

	.rs-product-faq-wrap .rs-faq-item__question {
		font-size: 18px;
	}
}
