/* Local Inter across page content, templates and overlays. */
html {
  --vfy-selected-font: 'Valifiy Inter Local', sans-serif;
}
html body.valifiy-local-typography {
  --valifiy-font-sans: var(--vfy-selected-font) !important;
  --valifiy-font-family-primary: var(--vfy-selected-font) !important;
  --valifiy-canary-font-sans: var(--vfy-selected-font) !important;
  --e-global-typography-primary-font-family: var(--vfy-selected-font) !important;
  --e-global-typography-secondary-font-family: var(--vfy-selected-font) !important;
  --e-global-typography-text-font-family: var(--vfy-selected-font) !important;
  --e-global-typography-accent-font-family: var(--vfy-selected-font) !important;
  font-family: var(--vfy-selected-font) !important;
  font-optical-sizing: none;
}

/* Only the family changes. Existing sizes, weights and layout are retained.
   Local icon glyph fonts are excluded: replacing those would erase controls. */
html body.valifiy-local-typography :is(
  #pxl-wapper, #pxl-header-elementor, #pxl-main, #pxl-footer-elementor,
  .elementor, .vfy-faq, .vcc-banner, .vcc-dialog, .valifiy-cookie-banner, .valifiy-cookie-dialog
) :where(
  h1, h2, h3, h4, h5, h6, p, a, div, span, li, dt, dd, th, td,
  label, button, input, select, textarea, blockquote, cite, figcaption,
  summary, details, strong, b, em, small, code, pre, kbd, samp, text, tspan
):not(:where(
  .fa, .fas, .far, .fab, .fal, .fad, .bi, .dashicons, .ab-icon,
  [class^="fa-"], [class*=" fa-"], [class^="eicon-"], [class*=" eicon-"],
  [class^="bi-"], [class*=" bi-"], [class^="pxl-icon-"], [class*=" pxl-icon-"],
  .material-icons, .material-symbols-outlined
)) {
  font-family: var(--vfy-selected-font) !important;
}

/* Cookie UI sits outside the theme wrapper. */
html body.valifiy-local-typography :is(
  .vcc-banner, .vcc-dialog, #valifiy-cookie-banner, #valifiy-cookie-dialog, .valifiy-cookie-banner,
  .valifiy-cookie-dialog, .valifiy-cookie-settings, .valifiy-cookie-footer
),
html body.valifiy-local-typography :is(#valifiy-cookie-banner, #valifiy-cookie-dialog)
  :where(h2, h3, p, div, span, label, button, a) {
  font-family: var(--vfy-selected-font) !important;
}
