/* Readium CSS
   Font Family pref

   A submodule managing font-family for user settings
   Part of “User Overrides” class – no flag required.

   Repo: https://github.com/readium/css */

:root[style*="--USER__fontFamily"] {
  font-family: var(--USER__fontFamily) !important;
}

/* We are using revert instead of inherit as Firefox zoom implementation will break 
   as soon as font-family is set to an element, including value inherit */
:root[style*="--USER__fontFamily"] * {
  font-family: revert !important;
}