/* Readium CSS
   Text align pref

   A submodule managing text-align for user settings
   Part of “User Overrides Advanced” class – “advanced settings” flag required.

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

:root[style*="--USER__textAlign"] {
  text-align: var(--USER__textAlign);
}

:root[style*="--USER__textAlign"] body,
:root[style*="--USER__textAlign"] p:not(blockquote p):not(figcaption p):not(hgroup p),
:root[style*="--USER__textAlign"] li,
:root[style*="--USER__textAlign"] dd {
  text-align: var(--USER__textAlign) !important;
  -moz-text-align-last: auto !important;
  -epub-text-align-last: auto !important;
  text-align-last: auto !important;
}