/*
 * App feel (app navigation R5): page changes cross-fade instead of flashing white.
 * Loaded by Armenius_Engine_Pwa_Appfeel. Cross-document view transitions: Chrome and
 * Safari 18.2+; other browsers ignore all of this. Both pages must opt in, so a page
 * without this file (checkout, an old cached page) changes as before.
 */

@media (prefers-reduced-motion: no-preference) {
	@view-transition {
		navigation: auto;
	}
}

/* Quicker than the default 0.25 s: a page change should not feel slower. */
::view-transition-old(root),
::view-transition-new(root) {
	animation-duration: 0.16s;
}

/* The phone tab bar stays where it is between pages (slides back if it was away). */
.armenius-tabbar {
	view-transition-name: armenius-tabbar;
}

::view-transition-group(armenius-tabbar) {
	animation-duration: 0.16s;
}

/* Its active tab changes at once rather than cross-fading. */
::view-transition-old(armenius-tabbar) {
	display: none;
}

::view-transition-new(armenius-tabbar) {
	animation: none;
}
