/**
 * فونت IRANYekan — فقط از فایل‌های محلی افزونه (بدون CDN).
 */

@font-face {
	font-family: 'IRANYekan';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url('../fonts/iranyekan/iranyekanwebregularfanum.woff') format('woff');
}

@font-face {
	font-family: 'IRANYekan';
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url('../fonts/iranyekan/iranyekanwebmediumfanum.woff') format('woff');
}

@font-face {
	font-family: 'IRANYekan';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url('../fonts/iranyekan/iranyekanwebboldfanum.woff') format('woff');
}

:root {
	--nobex-font: 'IRANYekan', Tahoma, Arial, sans-serif;
}

/* ریشه‌های UI افزونه — فرانت‌اند */
.nobex-otp,
.nobex-booking,
.nobex-booking-shortcode,
.nobex-booking-shortcode__mobile-panel,
.nobex-wallet,
.nobex-my-bookings,
.nobex-my-bookings-page,
.nobex-dynamic-form,
.nobex-form-builder,
.nobex-calendar,
.nobex-fb-modal,
.nobex-app-install-root,
.nobex-app-install-wrap,
.nobex-app-install-banner,
.nobex-app-install-modal {
	font-family: var(--nobex-font);
}

.nobex-otp h1,
.nobex-otp h2,
.nobex-otp h3,
.nobex-otp h4,
.nobex-otp h5,
.nobex-otp h6,
.nobex-otp strong,
.nobex-otp label,
.nobex-otp button,
.nobex-otp input,
.nobex-otp select,
.nobex-otp textarea,
.nobex-booking h1,
.nobex-booking h2,
.nobex-booking h3,
.nobex-booking h4,
.nobex-booking h5,
.nobex-booking h6,
.nobex-booking strong,
.nobex-booking label,
.nobex-booking button,
.nobex-booking input,
.nobex-booking select,
.nobex-booking textarea,
.nobex-booking-shortcode,
.nobex-booking-shortcode__mobile-panel,
.nobex-booking-shortcode__mobile-panel-title,
.nobex-booking-shortcode__mobile-panel-close,
.nobex-booking-shortcode__panel-manage-link,
.nobex-booking-shortcode__panel-manage-text,
.nobex-booking-shortcode__mobile-open,
.nobex-booking-shortcode__desktop-open,
.nobex-wallet h1,
.nobex-wallet h2,
.nobex-wallet h3,
.nobex-wallet h4,
.nobex-wallet h5,
.nobex-wallet h6,
.nobex-wallet strong,
.nobex-wallet label,
.nobex-wallet button,
.nobex-wallet input,
.nobex-wallet select,
.nobex-wallet textarea,
.nobex-my-bookings h1,
.nobex-my-bookings h2,
.nobex-my-bookings h3,
.nobex-my-bookings h4,
.nobex-my-bookings h5,
.nobex-my-bookings h6,
.nobex-my-bookings strong,
.nobex-my-bookings label,
.nobex-my-bookings button,
.nobex-my-bookings input,
.nobex-my-bookings select,
.nobex-my-bookings textarea,
.nobex-my-bookings a,
.nobex-my-bookings p,
.nobex-my-bookings span,
.nobex-my-bookings dt,
.nobex-my-bookings dd,
.nobex-my-bookings-page h1,
.nobex-my-bookings-page h2,
.nobex-my-bookings-page h3,
.nobex-my-bookings-page h4,
.nobex-my-bookings-page h5,
.nobex-my-bookings-page h6,
.nobex-my-bookings-page strong,
.nobex-my-bookings-page label,
.nobex-my-bookings-page button,
.nobex-my-bookings-page input,
.nobex-my-bookings-page select,
.nobex-my-bookings-page textarea,
.nobex-my-bookings-page a,
.nobex-my-bookings-page p,
.nobex-my-bookings-page span,
.nobex-dynamic-form h1,
.nobex-dynamic-form h2,
.nobex-dynamic-form h3,
.nobex-dynamic-form h4,
.nobex-dynamic-form h5,
.nobex-dynamic-form h6,
.nobex-dynamic-form strong,
.nobex-dynamic-form label,
.nobex-dynamic-form button,
.nobex-dynamic-form input,
.nobex-dynamic-form select,
.nobex-dynamic-form textarea,
.nobex-form-builder h1,
.nobex-form-builder h2,
.nobex-form-builder h3,
.nobex-form-builder h4,
.nobex-form-builder h5,
.nobex-form-builder h6,
.nobex-form-builder strong,
.nobex-form-builder label,
.nobex-form-builder button,
.nobex-form-builder input,
.nobex-form-builder select,
.nobex-form-builder textarea,
.nobex-fb-modal h1,
.nobex-fb-modal h2,
.nobex-fb-modal h3,
.nobex-fb-modal h4,
.nobex-fb-modal h5,
.nobex-fb-modal h6,
.nobex-fb-modal strong,
.nobex-fb-modal label,
.nobex-fb-modal button,
.nobex-fb-modal input,
.nobex-fb-modal select,
.nobex-fb-modal textarea,
.nobex-fb-modal p,
.nobex-fb-modal span,
.nobex-calendar h1,
.nobex-calendar h2,
.nobex-calendar h3,
.nobex-calendar h4,
.nobex-calendar h5,
.nobex-calendar h6,
.nobex-calendar strong,
.nobex-calendar button {
	font-family: var(--nobex-font);
}

/* داشبورد ادمین — اولویت بالاتر از استایل wp-admin */
#nobex-dashboard {
	font-family: var(--nobex-font);
}

#nobex-dashboard h1,
#nobex-dashboard h2,
#nobex-dashboard h3,
#nobex-dashboard h4,
#nobex-dashboard h5,
#nobex-dashboard h6,
#nobex-dashboard strong,
#nobex-dashboard label,
#nobex-dashboard p,
#nobex-dashboard span,
#nobex-dashboard button,
#nobex-dashboard input,
#nobex-dashboard select,
#nobex-dashboard textarea,
#nobex-dashboard th,
#nobex-dashboard td,
#nobex-dashboard li,
#nobex-dashboard small {
	font-family: var(--nobex-font);
}

/* آیکن‌های وردپرس نباید فونت فارسی بگیرند */
#nobex-dashboard .dashicons,
#nobex-dashboard [class*='dashicons'] {
	font-family: dashicons !important;
}

/* تیترها — غلبه بر فونت قالب و wp-admin */
.nobex-otp h1,
.nobex-otp h2,
.nobex-otp h3,
.nobex-otp h4,
.nobex-otp h5,
.nobex-otp h6,
.nobex-otp strong,
.nobex-booking h1,
.nobex-booking h2,
.nobex-booking h3,
.nobex-booking h4,
.nobex-booking h5,
.nobex-booking h6,
.nobex-booking strong,
.nobex-booking-shortcode,
.nobex-booking-shortcode__mobile-panel,
.nobex-booking-shortcode__mobile-panel-title,
.nobex-booking-shortcode__panel-manage-link,
.nobex-booking-shortcode__panel-manage-text,
.nobex-booking-shortcode__mobile-open,
.nobex-booking-shortcode__desktop-open,
.nobex-wallet h1,
.nobex-wallet h2,
.nobex-wallet h3,
.nobex-wallet h4,
.nobex-wallet h5,
.nobex-wallet h6,
.nobex-wallet strong,
.nobex-my-bookings h1,
.nobex-my-bookings h2,
.nobex-my-bookings h3,
.nobex-my-bookings h4,
.nobex-my-bookings h5,
.nobex-my-bookings h6,
.nobex-my-bookings strong,
.nobex-my-bookings-page h1,
.nobex-my-bookings-page h2,
.nobex-my-bookings-page h3,
.nobex-my-bookings-page h4,
.nobex-my-bookings-page h5,
.nobex-my-bookings-page h6,
.nobex-my-bookings-page strong,
.nobex-dynamic-form h1,
.nobex-dynamic-form h2,
.nobex-dynamic-form h3,
.nobex-dynamic-form h4,
.nobex-form-builder h1,
.nobex-form-builder h2,
.nobex-form-builder h3,
.nobex-form-builder h4,
.nobex-form-builder strong,
.nobex-fb-modal h1,
.nobex-fb-modal h2,
.nobex-fb-modal h3,
.nobex-fb-modal h4,
.nobex-fb-modal h5,
.nobex-fb-modal h6,
.nobex-fb-modal strong,
.nobex-fb-modal label,
.nobex-fb-modal button,
.nobex-fb-modal input,
.nobex-fb-modal select,
.nobex-fb-modal textarea,
.nobex-fb-modal p,
.nobex-fb-modal span,
.nobex-calendar h1,
.nobex-calendar h2,
.nobex-calendar h3,
.nobex-calendar strong,
#nobex-dashboard h1,
#nobex-dashboard h2,
#nobex-dashboard h3,
#nobex-dashboard h4,
#nobex-dashboard h5,
#nobex-dashboard h6,
#nobex-dashboard strong {
	font-family: var(--nobex-font) !important;
}

#nobex-dashboard .nobex-dash__brand {
	font-family: 'IRANYekan', Tahoma, Arial, sans-serif !important;
}

/* هدر پنل موبایل رزرو — خارج از درخت .nobex-booking منتقل می‌شود */
.nobex-booking-shortcode__mobile-panel,
.nobex-booking-shortcode__mobile-panel-title,
.nobex-booking-shortcode__mobile-panel-close,
.nobex-booking-shortcode__panel-manage-link,
.nobex-booking-shortcode__panel-manage-text {
	font-family: var(--nobex-font) !important;
}

body.nobex-my-bookings-page {
	font-family: var(--nobex-font) !important;
}

body.nobex-my-bookings-page .nobex-my-bookings-page__wrap,
body.nobex-my-bookings-page .nobex-my-bookings,
body.nobex-my-bookings-page .nobex-my-bookings h1,
body.nobex-my-bookings-page .nobex-my-bookings h2,
body.nobex-my-bookings-page .nobex-my-bookings h3,
body.nobex-my-bookings-page .nobex-my-bookings strong,
body.nobex-my-bookings-page .nobex-my-bookings button,
body.nobex-my-bookings-page .nobex-my-bookings input,
body.nobex-my-bookings-page .nobex-my-bookings select,
body.nobex-my-bookings-page .nobex-my-bookings textarea,
body.nobex-my-bookings-page .nobex-my-bookings a,
body.nobex-my-bookings-page .nobex-my-bookings p,
body.nobex-my-bookings-page .nobex-my-bookings span,
body.nobex-my-bookings-page .nobex-my-bookings dt,
body.nobex-my-bookings-page .nobex-my-bookings dd,
body.nobex-my-bookings-page .nobex-otp,
body.nobex-my-bookings-page .nobex-otp input,
body.nobex-my-bookings-page .nobex-otp button,
body.nobex-my-bookings-page .nobex-otp label {
	font-family: var(--nobex-font) !important;
}

#nobex-booking-cancel-modal .nobex-booking-cancel-modal,
#nobex-booking-cancel-modal .nobex-booking-cancel-modal *:not(.dashicons):not([class*='dashicons']) {
	font-family: var(--nobex-font, 'IRANYekan', Tahoma, Arial, sans-serif) !important;
}

#nobex-booking-modal .nobex-dash-booking-modal,
#nobex-booking-modal .nobex-dash-booking-modal *:not(.dashicons):not([class*='dashicons']) {
	font-family: 'IRANYekan', Tahoma, Arial, sans-serif !important;
}
