@keyframes sm-arrive {
  from { opacity: .5; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sm-sheet {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes sm-dim {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-copy, .detail-content, .wallet-visual > div, .profile-heading {
    animation: sm-arrive 340ms cubic-bezier(.2,.75,.25,1) both;
  }
  .detail-media, .cart-layout > .summary, .profile-stats, .wallet-page > form {
    animation: sm-arrive 360ms cubic-bezier(.2,.75,.25,1) both;
  }
  #dialog[open] { animation: sm-sheet 300ms cubic-bezier(.2,.8,.25,1) both; }
  #dialog[open]::backdrop { animation: sm-dim 230ms ease-out both; }
  .delivery-group[open]:focus-within > .delivery-tools { animation: sm-arrive 220ms ease-out both; }
  .primary, .secondary, .icon-button {
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
  }
  .primary:active:not(:disabled), .secondary:active:not(:disabled), .icon-button:active:not(:disabled) {
    scale: .98;
  }
  #credentials:not([hidden]), #confirmation:not([hidden]) { animation: sm-arrive 300ms ease-out both; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .primary:hover:not(:disabled) { box-shadow: 0 0 18px #b9ff202b; }
  .product .product-title-row a { transition: color 160ms ease; }
  .product:hover .product-title-row a { color: #d5ff83; }
}
