/* Finite transitions only: entry, interaction and state changes. */
@media (prefers-reduced-motion: no-preference) {
  :root {
    --motion-out: cubic-bezier(.2,.72,.24,1);
    --motion-fast: 180ms;
    --motion-panel: 340ms;
  }

  .vol-site, body.vol-checkout { animation: vol-page-enter 340ms var(--motion-out) backwards; }
  .vol-navigating { cursor: progress; }
  .vol-preview > * { animation: vol-replace 320ms var(--motion-out) backwards; }
  .vol-header-inner, .vol-header-nav { animation: vol-rise 380ms var(--motion-out) backwards; }
  .vol-feature { animation: vol-rise 500ms var(--motion-out) backwards; }
  .vol-showcase :is(.vol-rail,.vol-offers,.vol-tiles) { animation: vol-rise 540ms 75ms var(--motion-out) backwards; }
  .vol-home .vol-slide:not(.is-entering) .vol-slide-copy { animation: vol-rise 480ms 90ms var(--motion-out) backwards; }
  .vol-home .vol-slide.is-entering .vol-slide-copy { animation: vol-rise 360ms var(--motion-out) both; }
  .vol-home .vol-slide.is-entering .vol-slide-art { animation: vol-fade-in 380ms var(--motion-out) backwards; }
  .vol-slide.is-leaving { position: absolute; inset: 0; z-index: -1; pointer-events: none; animation: vol-page-out 280ms ease-in both; }
  .vol-slide.is-leaving .vol-slide-copy { visibility: hidden; }

  .vol-collection-title, .vol-product-title, .vol-help-head h1, .account-profile-header { animation: vol-rise 460ms var(--motion-out) both; }
  .vol-departments, .vol-product-photo { animation: vol-rise 500ms 65ms var(--motion-out) both; }
  .vol-order-box, .account-tabs { animation: vol-rise 440ms 100ms var(--motion-out) both; }
  .motion-reveal { animation: vol-reveal 520ms var(--motion-delay, 0ms) var(--motion-out) backwards; }
  .motion-reveal:focus-within { animation: none; }
  .account-panel:not([hidden]), #account-orders > *, .account-success:not(:empty), .account-error:not(:empty) { animation: vol-replace 260ms var(--motion-out) both; }
  .vol-site .account-tabs button { transition: border-color var(--motion-fast), color var(--motion-fast); }

  .vol-site :is(.shop-overlay,.account-auth-overlay) {
    opacity: 1;
    transition: opacity 240ms var(--motion-out);
    transition: opacity 240ms var(--motion-out), display var(--motion-panel) allow-discrete;
  }
  .vol-site :is(.shop-overlay,.account-auth-overlay)[hidden] { display: none !important; opacity: 0; pointer-events: none; }
  .shop-overlay .shop-cart, .account-auth-overlay .account-auth-card { transition: transform var(--motion-panel) var(--motion-out); }
  .shop-overlay[hidden] .shop-cart { transform: translateX(100%); }
  .account-auth-overlay[hidden] .account-auth-card { transform: translateY(14px) scale(.975); }
  @starting-style {
    .vol-site :is(.shop-overlay,.account-auth-overlay):not([hidden]) { opacity: 0; }
    .shop-overlay:not([hidden]) .shop-cart { transform: translateX(100%); }
    .account-auth-overlay:not([hidden]) .account-auth-card { transform: translateY(16px) scale(.975); }
  }
  @supports not (transition-behavior: allow-discrete) {
    .vol-site :is(.shop-overlay,.account-auth-overlay):not([hidden]) { animation: vol-fade-in 240ms ease-out both; }
    .shop-overlay:not([hidden]) .shop-cart { animation: vol-drawer-in var(--motion-panel) var(--motion-out) both; }
    .account-auth-overlay:not([hidden]) .account-auth-card { animation: vol-rise 300ms var(--motion-out) both; }
  }
  .account-auth-overlay:not([hidden]) [data-auth-view]:not([hidden]) { animation: vol-replace 270ms var(--motion-out) both; }
  #cart-badge.is-updated, .shop-cart .is-updated, .vol-save.is-updated svg { animation: vol-tap 340ms var(--motion-out) both; }

  .vol-site :is(.vol-filter,.shop-faq-list details) summary { transition: color var(--motion-fast), background-color var(--motion-fast), border-color var(--motion-fast); }
  .shop-faq-list details summary svg { transition: transform 220ms var(--motion-out); }
  .shop-faq-list details[open] summary svg { transform: rotate(90deg); }
  @supports (interpolate-size: allow-keywords) and selector(details::details-content) {
    .vol-site :is(.vol-filter,.shop-faq-list details) { interpolate-size: allow-keywords; }
    .vol-site :is(.vol-filter,.shop-faq-list details)::details-content {
      block-size: 0;
      overflow: clip;
      opacity: 0;
      transition: block-size 290ms var(--motion-out), opacity 220ms var(--motion-out), content-visibility 290ms allow-discrete;
    }
    .vol-site :is(.vol-filter,.shop-faq-list details)[open]::details-content { block-size: auto; opacity: 1; }
  }
  @supports not ((interpolate-size: allow-keywords) and selector(details::details-content)) {
    .vol-filter[open] .vol-filter-options, .shop-faq-list details[open] p { animation: vol-replace 240ms var(--motion-out) both; }
  }

  .vol-checkout .checkout-header-enter, .vol-checkout .checkout-empty, .vol-checkout .checkout-success { animation: vol-rise 420ms var(--motion-out) backwards; }
  .vol-checkout :is(.checkout-title,.checkout-page-form,.checkout-page-summary).checkout-enter { animation: vol-rise 420ms 60ms var(--motion-out) backwards; }
  .vol-checkout .checkout-update, .vol-checkout .checkout-error:not(:empty) { animation: vol-replace 290ms var(--motion-out) backwards; }
  .vol-checkout .checkout-success .success-icon { animation: vol-tap 450ms 90ms var(--motion-out) both; }
  .vol-checkout .checkout-submit[aria-busy='true']::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-inline-end: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: vol-spin 800ms linear infinite; }

  .login-card, .admin-main[data-entering] .admin-content { animation: vol-rise 380ms var(--motion-out) both; }
  .modal-overlay { animation: vol-fade-in 210ms ease-out both; }
  .modal-overlay .admin-modal { animation: vol-rise 340ms var(--motion-out) both; }
  .admin-toast { animation: vol-rise 260ms var(--motion-out) both; }

  .vol-site :is(.vol-header-link,.vol-brand,.vol-crumb a,.vol-pagination a,.shop-footer a,.vol-order-links a,.vol-item h3 a), .vol-checkout :is(.checkout-back,.checkout-footer a), .admin-sidebar nav button { transition: color var(--motion-fast), background-color var(--motion-fast); }
  .vol-site :is(.vol-refine-search,.vol-sort,.vol-filter-tags a,input,select), .vol-checkout :is(input,select,.choice,.upload,.checkout-business-toggle), .login-card input { transition: background-color var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast); }
  .vol-refine-search:focus-within, .vol-sort:focus-within { border-color: var(--vol-orange); }
  .vol-site :is(.vol-cta,.vol-apply,.account-primary,.vol-save,.vol-item-buy button,.vol-account,.shop-cart button), .vol-checkout .button, .admin-primary, .admin-secondary { transition: background-color var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast), box-shadow var(--motion-fast), transform 160ms var(--motion-out); }
  .vol-site :is(.vol-cta,.vol-apply,.account-primary,.vol-save,.vol-item-buy button,.vol-account,.shop-cart button):active:not(:disabled), .vol-checkout .button:active:not(:disabled), :is(.admin-primary,.admin-secondary):active:not(:disabled) { transform: scale(.97); }
  .vol-site :is(.vol-apply,.vol-inventory-heading a,.vol-pagination a,.vol-order-links a) svg { transition: transform 210ms var(--motion-out); }
  .vol-site :is(.vol-offer,.vol-tiles a,.vol-departments a,.vol-item) { transition: transform 240ms var(--motion-out), border-color var(--motion-fast), box-shadow 240ms ease, background-color var(--motion-fast); }
  @media (hover: hover) and (pointer: fine) {
    .vol-site :is(.vol-offer,.vol-tiles a,.vol-departments a,.vol-item):hover { transform: translateY(-3px); }
    .vol-site :is(.vol-apply,.vol-inventory-heading a,.vol-pagination a,.vol-order-links a):hover svg:last-child { transform: translateX(3px); }
    .vol-site .vol-rail a svg { transition: transform 210ms var(--motion-out); }
    .vol-site .vol-rail a:hover svg { transform: translateY(-2px); }
    .vol-site .vol-item:hover img { transform: scale(1.04); }
  }

  @keyframes vol-rise {
    from { opacity: 0; translate: 0 12px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes vol-replace {
    from { opacity: .45; translate: 0 6px; }
    to { opacity: 1; translate: 0 0; }
  }
  @keyframes vol-reveal { from { opacity: .25; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
  @keyframes vol-page-enter { from { opacity: .35; } to { opacity: 1; } }
  @keyframes vol-fade-in { from { opacity: 0; } to { opacity: 1; } }
  @keyframes vol-page-out { from { opacity: 1; } to { opacity: 0; } }
  @keyframes vol-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
  @keyframes vol-tap { 0%, 100% { scale: 1; } 44% { scale: 1.13; } }
  @keyframes vol-spin { to { transform: rotate(360deg); } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
