/*!
 * MED Theme — Typography Enforcement Layer
 * Forces IBM Plex Sans / IBM Plex Sans Arabic across Elementor, WooCommerce,
 * forms, popups and third-party plugin markup.
 *
 * Icon fonts (Font Awesome, eicons, Dashicons, Material, Bootstrap Icons…)
 * are explicitly excluded so icons never turn into broken squares.
 *
 * Author: QB Studio — Version: 1.0.0
 * ------------------------------------------------------------------ */

body,
body :where(*):not(
  i,
  .fa, .fas, .far, .fal, .fab, .fad,
  [class*="fa-"],
  [class*="eicon"],
  [class*="dashicons"],
  [class*="material-icons"],
  [class*="bi-"],
  [class*="icon-"],
  [class^="icon"],
  .elementor-icon,
  .elementor-icon *,
  .wpml-ls-flag,
  svg, svg *,
  code, kbd, pre, samp, tt
) {
  font-family: var(--med-font-sans) !important;
}

/* Arabic side of the site */
body.rtl,
[dir="rtl"] body,
body.rtl :where(*):not(
  i,
  .fa, .fas, .far, .fal, .fab, .fad,
  [class*="fa-"],
  [class*="eicon"],
  [class*="dashicons"],
  [class*="material-icons"],
  [class*="bi-"],
  [class*="icon-"],
  [class^="icon"],
  .elementor-icon,
  .elementor-icon *,
  .wpml-ls-flag,
  svg, svg *,
  code, kbd, pre, samp, tt
) {
  font-family: var(--med-font-arabic) !important;
}

/* Monospace stays monospace */
:where(code, kbd, pre, samp, tt) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
}
