/* AOA 글꼴 통일 — Pretendard
 *
 * 1) 테마(Twenty Twenty-Five 등)·AOA 화면: body 부터 물려받음
 * 2) Booknetic 화면: Booknetic 이 "요소 전체 * { font-family: Poppins !important }" 로 지정해
 *    일반 규칙으로는 바뀌지 않음 → @layer 안의 !important (레이어 !important 가 레이어 밖 !important 보다 우선)
 *    아이콘 글꼴(Font Awesome·dashicons)은 제외
 */

html:root { /* html:root — 테마가 나중에 출력하는 :root 변수보다 우선 */
	--aoa-font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
		"Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
	/* Twenty Twenty-Five 기본 글꼴 변수 */
	--wp--preset--font-family--manrope: var(--aoa-font);
	/* Booknetic 고객 패널 글꼴 변수 */
	--booknetic-primary-font-family: var(--aoa-font);
}

/* 1) 테마·AOA 화면 */
html body,
html body :is(h1, h2, h3, h4, h5, h6, button, input, select, textarea, .wp-block-button__link, .wp-element-button) {
	font-family: var(--aoa-font);
}
html body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* 2) Booknetic 예약 화면·고객 패널·상태 변경 화면·팝업 (body 에 붙는 선택 목록·달력 포함) */
@layer aoa-font {
	:is(
		.booknetic_appointment,
		#booknetic-customer-panel,
		.booknetic_client_panel,
		.booknetic_change_status_block,
		.booknetic_no_booknetic_modal,
		.booknetic-products-container,
		.select2-container,
		.flatpickr-calendar,
		.iti,
		.iti--container
	),
	:is(
		.booknetic_appointment,
		#booknetic-customer-panel,
		.booknetic_client_panel,
		.booknetic_change_status_block,
		.booknetic_no_booknetic_modal,
		.booknetic-products-container,
		.select2-container,
		.flatpickr-calendar,
		.iti,
		.iti--container
	) *:not(i):not(.fa):not(.fas):not(.far):not(.fab):not([class*="fa-"]):not(.dashicons):not([class*="dashicons-"]) {
		font-family: var(--aoa-font) !important;
	}
}
