/* The app's motion on the website (layout/app, only when the switch StorefrontMotionSetting.app_motion is on).
   Timings are the app's tokens: press 150 ms, change 250 ms, pop 450 ms. The moving itself is done by
   public/website/js/motion.js with the Web Animations API (transform and opacity only, nothing that
   changes layout); this file holds the few elements the script creates and the reduced-motion rule. */

:root {
    --pk-motion-press: 150ms;
    --pk-motion-change: 250ms;
    --pk-motion-pop: 450ms;
}

/* The photo that flies to the basket: a copy of the product image, above everything, never takes a tap. */
.pk-motion-fly {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    margin: 0;
    padding: 0;
    max-width: none;
    max-height: none;
    object-fit: cover;
    border-radius: 20%;
    pointer-events: none;
    will-change: transform, opacity;
}

/* The old number leaving while the new one slides in. */
.pk-motion-ghost {
    position: fixed;
    z-index: 100000;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    white-space: nowrap;
    overflow: hidden;
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* The six dots of the heart's burst. */
.pk-motion-dot {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
    border-radius: 50%;
    background: #F0645A;
    pointer-events: none;
}

/* No motion at all for people who asked the system for less (motion.js also checks, and does nothing). */
@media (prefers-reduced-motion: reduce) {
    .pk-motion-fly,
    .pk-motion-ghost,
    .pk-motion-dot {
        display: none !important;
    }
}
