/* One appearance transition for every ERP root, including React and documents. */
html[data-estc-theme-transition="reveal"]::view-transition-group(root),
html[data-estc-theme-transition="reveal"]::view-transition-old(root),
html[data-estc-theme-transition="reveal"]::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html[data-estc-theme-transition="reveal"]::view-transition-old(root) { z-index: 1; }
html[data-estc-theme-transition="reveal"]::view-transition-new(root) { z-index: 2; }
html[data-estc-theme-transition="reveal"]::view-transition { pointer-events: none; }

/* A color transition is available when snapshots are unsupported. */
html[data-estc-theme-transition="fade"],
html[data-estc-theme-transition="fade"] :where(body, header, nav, aside, main, section, article, form, dialog, div, p, span, strong, h1, h2, h3, label, input, select, textarea, a, button, th, td, svg) {
  transition-property: background-color, color, border-color, outline-color, box-shadow, fill, stroke;
  transition-duration: var(--estc-ui-theme-transition-duration);
  transition-timing-function: var(--estc-ui-theme-transition-easing);
}
@media (prefers-reduced-motion: reduce) {
  html[data-estc-theme-transition]::view-transition-group(root),
  html[data-estc-theme-transition]::view-transition-old(root),
  html[data-estc-theme-transition]::view-transition-new(root) { animation: none !important; }
  html[data-estc-theme-transition="fade"], html[data-estc-theme-transition="fade"] * { transition: none !important; }
}
html.estc-no-motion[data-estc-theme-transition="fade"], html.estc-no-motion[data-estc-theme-transition="fade"] * { transition: none !important; }
@media print {
  html[data-estc-theme-transition="fade"], html[data-estc-theme-transition="fade"] * { transition: none !important; }
}
