/**
 * KWM Appointment & Booking — bundled Persian typography.
 * Static Vazirmatn FD assets are intentionally reused across the UI weight
 * scale so browsers do not synthesize mismatched Persian glyph weights.
 */
@font-face {
    font-family: 'KWM Vazirmatn FD';
    src: url('../../fonts/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: 'KWM Vazirmatn FD';
    src: url('../../fonts/Vazirmatn-FD-Regular.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}
@font-face {
    font-family: 'KWM Vazirmatn FD';
    src: url('../../fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}
@font-face {
    font-family: 'KWM Vazirmatn FD';
    src: url('../../fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: 'KWM Vazirmatn FD';
    src: url('../../fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}
@font-face {
    font-family: 'KWM Vazirmatn FD';
    src: url('../../fonts/Vazirmatn-FD-Bold.woff2') format('woff2');
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

html[lang^='fa'] :where(
    .kwm-ab-wrap,
    .kwm-ab-modal-root,
    .kwm-ab-setup-shell,
    .kwm-ab-engine,
    .kwm-ab-booking-modal,
    .kwm-ab-booking-summary,
    .kwm-ab-tooltip-popover,
    .kwm-ab-date-popover,
    .kwm-ab-directory,
    .kwm-ab-service-category,
    .kwm-ab-related-services,
    .kwm-ab-my-appointments,
    .kwm-ab-managed-service-panel,
    .kwm-ab-related-services-admin
),
body.rtl :where(
    .kwm-ab-wrap,
    .kwm-ab-modal-root,
    .kwm-ab-setup-shell,
    .kwm-ab-engine,
    .kwm-ab-booking-modal,
    .kwm-ab-booking-summary,
    .kwm-ab-tooltip-popover,
    .kwm-ab-date-popover,
    .kwm-ab-directory,
    .kwm-ab-service-category,
    .kwm-ab-related-services,
    .kwm-ab-my-appointments,
    .kwm-ab-managed-service-panel,
    .kwm-ab-related-services-admin
) {
    font-family: 'KWM Vazirmatn FD', 'Vazirmatn', Tahoma, Arial, sans-serif !important;
    font-variant-numeric: normal;
}

html[lang^='fa'] :where(
    .kwm-ab-wrap,
    .kwm-ab-modal-root,
    .kwm-ab-setup-shell,
    .kwm-ab-engine,
    .kwm-ab-booking-modal,
    .kwm-ab-directory,
    .kwm-ab-service-category,
    .kwm-ab-related-services,
    .kwm-ab-my-appointments
) :where(button, input, select, textarea, optgroup),
body.rtl :where(
    .kwm-ab-wrap,
    .kwm-ab-modal-root,
    .kwm-ab-setup-shell,
    .kwm-ab-engine,
    .kwm-ab-booking-modal,
    .kwm-ab-directory,
    .kwm-ab-service-category,
    .kwm-ab-related-services,
    .kwm-ab-my-appointments
) :where(button, input, select, textarea, optgroup) {
    font-family: inherit !important;
}

/* WordPress icon font must keep its own font face. */
:where(.kwm-ab-wrap, .kwm-ab-modal-root, .kwm-ab-setup-shell) .dashicons {
    font-family: dashicons !important;
    font-style: normal !important;
    font-weight: 400 !important;
    font-variant: normal !important;
    line-height: 1 !important;
    speak: never;
}

/* 3.6.0-dev10 — Booking Engine Persian typography must win over theme heading/button fonts. */
html[lang^='fa'] .kwm-ab-engine :where(
    h1, h2, h3, h4, h5, h6,
    p, span, small, strong, b, em, li, ul, ol,
    label, button, input, select, textarea, option, a
),
body.rtl .kwm-ab-engine :where(
    h1, h2, h3, h4, h5, h6,
    p, span, small, strong, b, em, li, ul, ol,
    label, button, input, select, textarea, option, a
) {
    font-family: 'KWM Vazirmatn FD', 'Vazirmatn', Tahoma, Arial, sans-serif !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    font-variant-numeric: normal;
    font-feature-settings: normal;
}
