/* Motion is presentation only. Order and delivery state remain owned by the app. */
@media screen {
  dialog#panel {
    opacity: 0;
    transform: translateY(14px) scale(.965);
    transform-origin: 50% 18%;
    transition: opacity .18s ease,transform .22s cubic-bezier(.2,.75,.2,1),overlay .22s allow-discrete,display .22s allow-discrete;
  }
  dialog#panel[open] { opacity: 1; transform: translateY(0) scale(1); }
  dialog#panel::backdrop {
    background: #170b20a6;
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: opacity .2s ease,overlay .22s allow-discrete,display .22s allow-discrete;
  }
  dialog#panel[open]::backdrop { opacity: 1; }
  @starting-style {
    dialog#panel[open] { opacity: 0; transform: translateY(18px) scale(.96); }
    dialog#panel[open]::backdrop { opacity: 0; }
  }
  .dialog-head #close { transition: background .16s,transform .22s cubic-bezier(.2,.75,.2,1); }
  .dialog-head #close:hover { transform: rotate(90deg); background: #edd5e5; }
  .m-journey { border: 1px solid #e1cbdc; background: #fbf4fa; border-radius: 10px; padding: 6px 10px 8px; margin: 0 0 11px; color: #67435e; }
  .m-journey ol { list-style: none; display: flex; justify-content: space-between; margin: 0; padding: 0; gap: 7px; }
  .m-journey li { font-size: 12px; line-height: 1.35; font-weight: 600; display: flex; align-items: center; gap: 5px; }
  .m-journey li::before { content: ''; flex: none; width: 5px; height: 5px; border-radius: 50%; background: #c7abc0; }
  .m-journey li[aria-current=step] { color: #542c4c; font-weight: 750; }
  .m-journey li[aria-current=step]::before { width: 7px; height: 7px; background: #9d4a80; box-shadow: 0 0 0 3px #9d4a8014; }
  .m-journey .m-completed::before { background: #a64b85; }
  .m-road { position: relative; height: 35px; margin: 0 3px 3px; isolation: isolate; }
  .m-road::before { content: ''; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: #d6bace; }
  .m-road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; opacity: .6; background: repeating-linear-gradient(90deg,#be97b0 0 7px,transparent 7px 15px); }
  .m-car { position: absolute; left: calc(92% - 22px); bottom: 4px; width: 44px; height: 29px; color: #683b61; z-index: 1; transition: left .68s cubic-bezier(.22,.68,.2,1); }
  .m-car svg { display: block; width: 44px; height: 29px; overflow: visible; }
  .m-car-body { transform-box: fill-box; transform-origin: center; }
  .m-wheel { transform-box: fill-box; transform-origin: center; }
  [data-m-step="1"] .m-car { left: calc(50% - 22px); }
  [data-m-step="2"] .m-car { left: calc(8% - 22px); }
  .m-is-driving .m-car-body { animation: m-suspension .24s ease-in-out 4; }
  .m-is-driving .m-wheel { animation: m-wheel .24s linear 4; }
  .m-delivery-scene { position: relative; height: 73px; border: 1px solid #e7c2db24; border-radius: 11px; background: linear-gradient(180deg,#fff0f808,#fff0f803); overflow: hidden; margin-block: 2px 1px; }
  .m-delivery-scene .m-road { position: absolute; inset: auto 13px 5px; height: 40px; margin: 0; }
  .m-delivery-scene .m-road::before { background: #e8bfe74d; height: 2px; }
  .m-delivery-scene .m-road::after { background: repeating-linear-gradient(90deg,#f5d4eb 0 9px,transparent 9px 22px); opacity: .4; bottom: 9px; }
  .m-delivery-scene .m-car { width: 55px; height: 38px; left: calc(89% - 27px); bottom: 6px; transition: left .9s cubic-bezier(.2,.7,.2,1); }
  .m-delivery-scene .m-car svg { width: 55px; height: 36px; }
  .m-delivery-scene .m-replay { padding: 0; display: grid; place-items: center; border: 0; background: transparent; border-radius: 8px; cursor: pointer; }
  .m-delivery-scene .m-replay:focus-visible { outline: 2px solid #ffe389; outline-offset: 4px; }
  .m-delivery-scene .m-cloud { position: absolute; width: 24px; height: 5px; border-radius: 9px; background: #efd5ea24; top: 14px; left: 26%; }
  .m-delivery-scene .m-cloud::before { content: ''; width: 12px; height: 7px; border-radius: 9px; background: inherit; position: absolute; bottom: 1px; left: 6px; }
  .m-delivery-scene .m-cloud:nth-child(2) { left: 70%; top: 10px; width: 32px; opacity: .65; }
  .m-destination { position: absolute; left: 5%; bottom: 15px; width: 20px; height: 18px; border: 1px solid #e0b5d36b; border-radius: 3px; background: #8b5b7a4d; }
  .m-destination::before { content: ''; position: absolute; width: 13px; height: 13px; transform: rotate(45deg); border-top: 1px solid #e0b5d36b; border-left: 1px solid #e0b5d36b; left: 2px; top: -7px; border-radius: 2px; }
  .m-destination::after { content: ''; position: absolute; bottom: 0; left: 7px; height: 9px; width: 5px; background: #ffdf8f; opacity: .55; border-radius: 2px 2px 0 0; }
  .m-delivery-scene[data-m-phase="2"] .m-car { left: calc(48% - 27px); }
  .m-delivery-scene[data-m-phase="2"] .m-car-body { animation: m-suspension .3s ease-in-out infinite; }
  .m-delivery-scene[data-m-phase="2"] .m-wheel { animation: m-wheel .45s linear infinite; }
  .m-delivery-scene[data-m-phase="2"] .m-road::after { animation: m-road .7s linear infinite; }
  .m-delivery-scene[data-m-phase="3"] .m-car { left: calc(14% - 27px); }
  .m-delivery-scene[data-m-phase="3"] .m-destination { border-color: #ffe29ca6; background: #fff0b61a; }
  .m-delivered-mark { opacity: 0; position: absolute; left: 8%; top: 7px; width: 20px; height: 20px; border-radius: 50%; background: #ffe389; color: #45253e; display: grid; place-items: center; font-size: 13px; font-weight: 800; transform: translateY(6px) scale(.6); transition: opacity .2s .4s,transform .3s .4s; }
  .m-delivery-scene[data-m-phase="3"] .m-delivered-mark { opacity: 1; transform: translateY(0) scale(1); }
  .m-delivery-scene.m-replaying .m-car { animation: m-car-replay .7s cubic-bezier(.2,.7,.2,1); }
  .m-delivery-scene.m-replaying .m-car-body { animation: m-suspension .25s ease-in-out 3; }
  .m-delivery-scene.m-replaying .m-wheel { animation: m-wheel .28s linear 3; }
  #badge.m-badge-pop { animation: m-badge-pop .32s cubic-bezier(.16,.8,.2,1); }
  #notice:not(:empty) { animation: m-notice .18s ease-out both; }
  .m-is-busy .m-car-body { animation: m-suspension .28s ease-in-out infinite; }
  .m-is-busy .m-wheel { animation: m-wheel .4s linear infinite; }
  .m-is-busy .m-road::after { animation: m-road .7s linear infinite; }
  .m-is-busy .m-road { overflow: hidden; }
  @keyframes m-suspension { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
  @keyframes m-wheel { to { transform: rotate(-360deg); } }
  @keyframes m-road { to { background-position-x: 22px; } }
  @keyframes m-car-replay { 0%,100% { transform: translateX(0); } 25% { transform: translateX(7px) rotate(1deg); } 70% { transform: translateX(-10px) rotate(-1deg); } }
  @keyframes m-badge-pop { 0%,100% { transform: scale(1); } 42% { transform: scale(1.2); } 72% { transform: scale(.96); } }
  @keyframes m-notice { from { opacity: 0; translate: 0 6px; } to { opacity: 1; translate: 0 0; } }
  .resting .m-car-body,.resting .m-wheel,.resting .m-road::after { animation-play-state: paused !important; }
  @media (pointer:coarse) { .m-delivery-scene .m-replay { min-height: 44px; min-width: 55px; } }
  @media (prefers-reduced-motion:reduce) {
    dialog#panel,dialog#panel[open] { transition: none; transform: none; }
    dialog#panel::backdrop { transition: none; }
    .m-car,.m-car-body,.m-wheel,.m-road::after,.m-delivered-mark,#badge,#notice { animation: none !important; transition: none !important; }
    .m-replaying .m-car { transform: none; }
    #panelbody,.shelf,.hero-copy { transform: none !important; opacity: 1 !important; }
    #portrait-motion,.gallery-flight,.tap-trace { display: none !important; }
    .dialog-head #close:hover { transform: none; }
  }
}
@media print { .m-journey,.m-delivery-scene { display: none !important; } }
