/* One icon button that flips light <-> dark. Both buttons are in the markup (no JavaScript needed to post the
   right value); CSS shows the one that leads away from the theme currently in effect. */
.ez_theme-toggle {
  display: inline-flex;
}

.ez_theme-toggle__to-light {
  display: none;
}

:root[data-ez-theme="dark"] .ez_theme-toggle__to-dark {
  display: none;
}

:root[data-ez-theme="dark"] .ez_theme-toggle__to-light {
  display: inline-flex;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-ez-theme="light"]) .ez_theme-toggle__to-dark {
    display: none;
  }

  :root:not([data-ez-theme="light"]) .ez_theme-toggle__to-light {
    display: inline-flex;
  }
}
