@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

body.page_faq {
	font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
	background: #F8FAFC;
	color: #0F172A;
}

.page_faq .head_faq_board {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 1.25rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid #E2E8F0;
}

.page_faq .title_faq_board {
	font-size: 1.25rem;
	font-weight: 800;
	color: #0F172A;
}

.page_faq .desc_faq_board {
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	color: #64748B;
}

.page_faq .count_faq_board {
	font-size: 0.75rem;
	color: #64748B;
	font-weight: 600;
}

.page_faq .toolbar_faq_board {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.page_faq .tabs_faq_category {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	flex-wrap: wrap;
}

.page_faq .btn_faq_category {
	padding: 0.45rem 0.85rem;
	border: 1px solid #E2E8F0;
	border-radius: 9999px;
	background: #FFFFFF;
	font-size: 0.75rem;
	font-weight: 700;
	color: #64748B;
	text-decoration: none;
	transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.page_faq .btn_faq_category.is_active {
	background: #6668AF;
	border-color: #6668AF;
	color: #FFFFFF;
}

.page_faq .form_search_faq {
	position: relative;
	width: 100%;
	max-width: 260px;
}

.page_faq .input_search_faq {
	width: 100%;
	height: 2.35rem;
	padding: 0 2.25rem 0 0.85rem;
	border: 1px solid #E2E8F0;
	border-radius: 0.5rem;
	background: #FFFFFF;
	font-size: 0.8125rem;
}

.page_faq .input_search_faq:focus {
	outline: none;
	border-color: #6668AF;
	box-shadow: 0 0 0 3px rgba(102, 104, 175, 0.12);
}

.page_faq .icon_search_faq {
	position: absolute;
	right: 0.65rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.1rem;
	color: #94A3B8;
	pointer-events: none;
}

.page_faq .card_faq_list {
	background: #FFFFFF;
	border: 1px solid #E2E8F0;
	border-radius: 0.85rem;
	overflow: hidden;
	box-shadow: 0 4px 18px rgba(15, 23, 42, 0.03);
}

.page_faq .card_faq_list .faq_accordion {
	padding: 1rem;
}

.page_faq .empty_faq_list {
	padding: 3rem 1rem;
	text-align: center;
	font-size: 0.875rem;
	color: #64748B;
}

.page_faq .pagination_faq {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.35rem;
	padding: 1.15rem 1rem;
	border-top: 1px solid #E2E8F0;
	background: #FAFBFC;
}

.page_faq .btn_page_faq {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.15rem;
	height: 2.15rem;
	padding: 0 0.5rem;
	border: 1px solid #E2E8F0;
	border-radius: 0.45rem;
	background: #FFFFFF;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #64748B;
	text-decoration: none;
	transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page_faq .btn_page_faq:hover:not(:disabled):not(.is_active) {
	border-color: #6668AF;
	color: #6668AF;
}

.page_faq .btn_page_faq.is_active {
	background: #6668AF;
	border-color: #6668AF;
	color: #FFFFFF;
}

.page_faq .btn_page_faq:disabled {
	opacity: 0.45;
	cursor: not-allowed;
}

/* FAQ 아코디언 공통 */
.faq_accordion {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
}

.faq_item {
	border: 1px solid #E2E8F0;
	border-radius: 0.75rem;
	overflow: hidden;
	background: #FAFBFC;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.faq_item_open {
	border-color: rgba(102, 104, 175, 0.35);
	box-shadow: 0 2px 10px rgba(102, 104, 175, 0.08);
	background: #FFFFFF;
}

.btn_faq_question {
	width: 100%;
	display: flex;
	align-items: center;
	gap: 0.65rem;
	padding: 0.95rem 1rem;
	text-align: left;
	background: transparent;
	border: none;
	cursor: pointer;
}

.text_faq_question {
	flex: 1;
	font-size: 0.875rem;
	font-weight: 700;
	color: #334155;
	line-height: 1.45;
}

.faq_item_open .text_faq_question {
	color: #6668AF;
}

.icon_faq_toggle {
	font-size: 1.25rem;
	color: #94A3B8;
	flex-shrink: 0;
	transition: transform 0.25s ease, color 0.25s ease;
}

.faq_item_open .icon_faq_toggle {
	color: #6668AF;
}

.panel_faq_answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.32s ease;
}

.panel_faq_answer.is_open {
	max-height: none;
}

.inner_faq_answer {
	padding: 0 1rem 1rem;
	border-top: 1px solid #F1F5F9;
}

.text_faq_answer {
	padding-top: 0.85rem;
	font-size: 0.8125rem;
	color: #64748B;
	line-height: 1.65;
}

.meta_faq_answer {
	display: block;
	margin-top: 0.5rem;
	font-size: 0.6875rem;
	color: #94A3B8;
	font-weight: 600;
}

.badge_faq_category {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 4.75rem;
	padding: 0.2rem 0.45rem;
	border-radius: 0.35rem;
	font-size: 0.6875rem;
	font-weight: 800;
	border: 1px solid transparent;
}

.badge_faq_order {
	background: #F5F6FF;
	color: #6668AF;
	border-color: #DDD6FE;
}

.badge_faq_payment {
	background: #ECFDF5;
	color: #047857;
	border-color: #A7F3D0;
}

.badge_faq_account {
	background: #FFF7ED;
	color: #C2410C;
	border-color: #FED7AA;
}

.badge_faq_api {
	background: #EFF6FF;
	color: #1D4ED8;
	border-color: #BFDBFE;
}

@media (max-width: 767px) {
	.page_faq .form_search_faq {
		max-width: none;
		flex: 1;
	}

	.btn_faq_question {
		align-items: flex-start;
	}

	.badge_faq_category {
		display: none;
	}
}
