/* Both documents must opt in. This sheet is linked only by public storefront
   hubs: full requests still own locale, CSP nonce, consent and authentication. */
@view-transition {
  navigation: auto;
}

#main-content {
  view-transition-name: storefront-page;
}

::view-transition-group(*) {
  animation-duration: 300ms;
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  opacity: 0;
}

::view-transition-old(storefront-page) {
  animation: 140ms ease-out both storefront-out;
  mix-blend-mode: normal;
}

::view-transition-new(storefront-page) {
  animation: 300ms cubic-bezier(0.22, 1, 0.36, 1) both storefront-in;
  mix-blend-mode: normal;
}

@keyframes storefront-out {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes storefront-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
