# Delivery route toast

> A van drives along the route between prepared, out for delivery and delivered while the arrival minutes tick down.

- Category: [Toasts](https://library.aimran.es/components/toasts)
- Built with: HTML + CSS
- Live editor: https://library.aimran.es/blocks/uv-toast-delivery-route
- Library: AIMRAN Library (https://library.aimran.es), free, no sign-up, by Aimran Oukham

## Where to use it

Delivery updates work best when people can see progress at a glance. Here a small van rolls along a dashed road, the track fills behind it, the middle stop lights up and the minutes to arrival count down in a badge. Everything is CSS transitions plus a tiny counter, and it fits food delivery, ecommerce tracking and courier apps.

The main color paints the van and the filled route; the second tints the window. Move the van to another stop by changing the left value, and rename the three steps to match your own order states.

## Code

### HTML

```html
<div class="uvq09-dlv"><button type="button" class="fire">Show again</button><div class="tt" role="status"><div class="hd"><span class="tx"><b>Your order is on its way</b><small>Arrives around 14:35</small></span><span class="eta" aria-hidden="true"><b>12</b><small>min</small></span></div><div class="rt" aria-hidden="true"><i class="tr"><i class="fi"></i></i><i class="dt d1"></i><i class="dt d2"></i><i class="dt d3"></i><span class="vn"><svg viewBox="0 0 32 20"><path class="bd" d="M2 3.5h16.5v11.5H2zM18.5 7.5h6l4.5 4.5v3H18.5z"/><path class="wn" d="M20.5 9h3.4l2.6 2.6h-6z"/><circle class="wh" cx="8" cy="15.5" r="2.6"/><circle class="wh" cx="24" cy="15.5" r="2.6"/></svg></span></div><ol class="lb"><li class="on">Ready</li><li class="on">Out for delivery</li><li>Delivered</li></ol></div></div>
```

### CSS

```css
.uvq09-dlv {
  --c1: #ea580c;
  --c2: #fed7aa;
  --s: 16px;
  /* tamaño */
  --k: 1;
  /* velocidad */
  --fg: #1d1d1f;
  /* texto */
  --bg: #f5f5f7;
  /* fondo */
}

.uvq09-dlv {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 21em;
  height: 15em;
}

.uvq09-dlv .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dlv .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-dlv .fire:active {
  scale: .96;
}

.uvq09-dlv .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-dlv .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  padding: .9em 1em .8em;
  transform: translateY(130%) scale(.92);
  opacity: 0;
  transition: transform calc(0.55s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dlv .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-dlv .hd {
  display: flex;
  align-items: center;
  gap: .8em;
}

.uvq09-dlv .tx {
  display: grid;
  flex: 1;
  gap: .1em;
}

.uvq09-dlv .tx b {
  font-size: .95em;
}

.uvq09-dlv .tx small {
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq09-dlv .eta {
  display: grid;
  justify-items: center;
  padding: .4em .6em;
  border-radius: .7em;
  color: color-mix(in srgb,var(--c1) 80%,var(--fg));
  background: color-mix(in srgb,var(--c1) 13%,transparent);
}

.uvq09-dlv .eta b {
  font-size: 1.3em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.uvq09-dlv .eta small {
  font-size: .6em;
  font-weight: 800;
}

.uvq09-dlv .rt {
  position: relative;
  height: 2.6em;
  margin: .4em .4em 0;
}

.uvq09-dlv .tr {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .45em;
  height: .3em;
  border-radius: 1em;
  background: repeating-linear-gradient(90deg,color-mix(in srgb,var(--fg) 20%,transparent) 0 .5em,transparent .5em .8em);
}

.uvq09-dlv .fi {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c1);
  transition: width calc(1.6s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.35s / var(--k));
}

.uvq09-dlv .tt.in .fi {
  width: 50%;
}

.uvq09-dlv .dt {
  position: absolute;
  bottom: .25em;
  width: .7em;
  height: .7em;
  margin-left: -.35em;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 .18em color-mix(in srgb,var(--fg) 25%,transparent);
  transition: background calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(1.6s / var(--k)),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(1.6s / var(--k));
}

.uvq09-dlv .d1 {
  left: 0;
  background: var(--c1);
  box-shadow: 0 0 0 .18em var(--c1);
}

.uvq09-dlv .d2 {
  left: 50%;
}

.uvq09-dlv .d3 {
  left: 100%;
}

.uvq09-dlv .tt.in .d2 {
  background: var(--c1);
  box-shadow: 0 0 0 .18em var(--c1),0 0 0 .5em color-mix(in srgb,var(--c1) 20%,transparent);
}

.uvq09-dlv .vn {
  position: absolute;
  left: 0;
  bottom: .95em;
  width: 2.3em;
  translate: -50% 0;
  transition: left calc(1.6s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.35s / var(--k));
}

.uvq09-dlv .tt.in .vn {
  left: 50%;
}

.uvq09-dlv .vn svg {
  display: block;
  width: 100%;
  animation: uvq09-dlv-b calc(0.3s / var(--k)) ease-in-out infinite alternate;
}

.uvq09-dlv .bd {
  fill: var(--c1);
}

.uvq09-dlv .wn {
  fill: color-mix(in srgb,var(--bg) 80%,var(--c2));
}

.uvq09-dlv .wh {
  fill: var(--fg);
  stroke: var(--bg);
  stroke-width: 1.4;
}

.uvq09-dlv .lb {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin: .3em 0 0;
  padding: 0;
  list-style: none;
  font-size: .68em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq09-dlv .lb li:nth-child(2) {
  text-align: center;
}

.uvq09-dlv .lb li:last-child {
  text-align: right;
}

.uvq09-dlv .lb .on {
  font-weight: 700;
  color: var(--fg);
}

@keyframes uvq09-dlv-b {
  to {
    transform: translateY(-.08em);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-dlv,.uvq09-dlv *,.uvq09-dlv *::before,.uvq09-dlv *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
```

### JavaScript

```js
document.querySelectorAll(".uvq09-dlv").forEach(el => {
  const t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");eta()},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();const eb=t.querySelector(".eta b");let iv=0;const eta=()=>{clearInterval(iv);let n=19;eb.textContent=n;iv=setInterval(()=>{n--;eb.textContent=n;if(n<=12)clearInterval(iv)},230)};return()=>{clr();clearInterval(iv)}
});
```

### React

```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq09-dlv {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 21em;
  height: 15em;
}

.uvq09-dlv .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dlv .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-dlv .fire:active {
  scale: .96;
}

.uvq09-dlv .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-dlv .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  padding: .9em 1em .8em;
  transform: translateY(130%) scale(.92);
  opacity: 0;
  transition: transform calc(0.55s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dlv .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-dlv .hd {
  display: flex;
  align-items: center;
  gap: .8em;
}

.uvq09-dlv .tx {
  display: grid;
  flex: 1;
  gap: .1em;
}

.uvq09-dlv .tx b {
  font-size: .95em;
}

.uvq09-dlv .tx small {
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq09-dlv .eta {
  display: grid;
  justify-items: center;
  padding: .4em .6em;
  border-radius: .7em;
  color: color-mix(in srgb,var(--c1) 80%,var(--fg));
  background: color-mix(in srgb,var(--c1) 13%,transparent);
}

.uvq09-dlv .eta b {
  font-size: 1.3em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.uvq09-dlv .eta small {
  font-size: .6em;
  font-weight: 800;
}

.uvq09-dlv .rt {
  position: relative;
  height: 2.6em;
  margin: .4em .4em 0;
}

.uvq09-dlv .tr {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .45em;
  height: .3em;
  border-radius: 1em;
  background: repeating-linear-gradient(90deg,color-mix(in srgb,var(--fg) 20%,transparent) 0 .5em,transparent .5em .8em);
}

.uvq09-dlv .fi {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c1);
  transition: width calc(1.6s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.35s / var(--k));
}

.uvq09-dlv .tt.in .fi {
  width: 50%;
}

.uvq09-dlv .dt {
  position: absolute;
  bottom: .25em;
  width: .7em;
  height: .7em;
  margin-left: -.35em;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 .18em color-mix(in srgb,var(--fg) 25%,transparent);
  transition: background calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(1.6s / var(--k)),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(1.6s / var(--k));
}

.uvq09-dlv .d1 {
  left: 0;
  background: var(--c1);
  box-shadow: 0 0 0 .18em var(--c1);
}

.uvq09-dlv .d2 {
  left: 50%;
}

.uvq09-dlv .d3 {
  left: 100%;
}

.uvq09-dlv .tt.in .d2 {
  background: var(--c1);
  box-shadow: 0 0 0 .18em var(--c1),0 0 0 .5em color-mix(in srgb,var(--c1) 20%,transparent);
}

.uvq09-dlv .vn {
  position: absolute;
  left: 0;
  bottom: .95em;
  width: 2.3em;
  translate: -50% 0;
  transition: left calc(1.6s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.35s / var(--k));
}

.uvq09-dlv .tt.in .vn {
  left: 50%;
}

.uvq09-dlv .vn svg {
  display: block;
  width: 100%;
  animation: uvq09-dlv-b calc(0.3s / var(--k)) ease-in-out infinite alternate;
}

.uvq09-dlv .bd {
  fill: var(--c1);
}

.uvq09-dlv .wn {
  fill: color-mix(in srgb,var(--bg) 80%,var(--c2));
}

.uvq09-dlv .wh {
  fill: var(--fg);
  stroke: var(--bg);
  stroke-width: 1.4;
}

.uvq09-dlv .lb {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin: .3em 0 0;
  padding: 0;
  list-style: none;
  font-size: .68em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq09-dlv .lb li:nth-child(2) {
  text-align: center;
}

.uvq09-dlv .lb li:last-child {
  text-align: right;
}

.uvq09-dlv .lb .on {
  font-weight: 700;
  color: var(--fg);
}

@keyframes uvq09-dlv-b {
  to {
    transform: translateY(-.08em);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-dlv,.uvq09-dlv *,.uvq09-dlv *::before,.uvq09-dlv *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");eta()},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();const eb=t.querySelector(".eta b");let iv=0;const eta=()=>{clearInterval(iv);let n=19;eb.textContent=n;iv=setInterval(()=>{n--;eb.textContent=n;if(n<=12)clearInterval(iv)},230)};return()=>{clr();clearInterval(iv)}
}

export default function ToastDeliveryRoute() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#ea580c",
          "--c2": "#fed7aa",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-dlv"><button type="button" className="fire">Show again</button><div className="tt" role="status"><div className="hd"><span className="tx"><b>Your order is on its way</b><small>Arrives around 14:35</small></span><span className="eta" aria-hidden="true"><b>12</b><small>min</small></span></div><div className="rt" aria-hidden="true"><i className="tr"><i className="fi"></i></i><i className="dt d1"></i><i className="dt d2"></i><i className="dt d3"></i><span className="vn"><svg viewBox="0 0 32 20"><path className="bd" d="M2 3.5h16.5v11.5H2zM18.5 7.5h6l4.5 4.5v3H18.5z" /><path className="wn" d="M20.5 9h3.4l2.6 2.6h-6z" /><circle className="wh" cx="8" cy="15.5" r="2.6" /><circle className="wh" cx="24" cy="15.5" r="2.6" /></svg></span></div><ol className="lb"><li className="on">Ready</li><li className="on">Out for delivery</li><li>Delivered</li></ol></div></div>
      </div>
    </>
  );
}
```

## Prompt for AI assistants

Paste this into ChatGPT, Claude, Cursor, v0 or Lovable to adapt the block to your stack (Tailwind, Vue, Svelte…):

````text
I want to add the “Delivery route toast” block (Toasts) from AIMRAN Library to my project.

## What it is
A van drives along the route between prepared, out for delivery and delivered while the arrival minutes tick down.

## Chosen settings
- Main color: #ea580c
- Secondary color: #fed7aa
- Size: 16px (from 12 to 24px)
- Speed: 1x (from 0.5 to 2x)
- Text: "Tu pedido está en camino"

## What I need
1. Add it to my project with the same look and animation as the reference code: same sizes, colours, radii, shadows, timings and easing.
2. It is built with plain HTML and CSS (the reference wraps it in a React component with its CSS). If my project uses something else (Vue, Svelte, Astro, plain HTML…), translate it without losing any behaviour. If I use Tailwind, turn the styles into classes; if not, keep the CSS in its own file.
3. Expose the settings above as props (or CSS variables) with those values as defaults.
4. Make it work well on phones: nothing that depends only on hover, touch targets of at least 44 px and no overflow on 320 px screens.
5. Make it look right in light and dark mode.
6. Keep it accessible: semantic HTML, roles and aria-* where needed, visible focus and keyboard support.
7. Respect prefers-reduced-motion: with reduced motion, no big animations but the same end result.

## Reference code
```tsx
// @ts-nocheck: setup() es JavaScript del DOM sin tipos, el mismo de la pestaña JS.
import { useEffect, useRef, type CSSProperties } from "react";

const css = `
.uvq09-dlv {
  font-family: -apple-system,BlinkMacSystemFont,"SF Pro Text","Inter",system-ui,sans-serif;
  font-size: var(--s);
  color: var(--fg);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  width: 21em;
  height: 15em;
}

.uvq09-dlv .fire {
  font: inherit;
  color: inherit;
  border: 0;
  margin: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  position: absolute;
  left: 50%;
  top: 1.2em;
  translate: -50% 0;
  padding: .6em 1.1em;
  border-radius: 2em;
  font-size: .82em;
  font-weight: 650;
  white-space: nowrap;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
  background: color-mix(in srgb,var(--fg) 6%,transparent);
  transition: color calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),background calc(0.2s / var(--k)) cubic-bezier(.25,.1,.25,1),scale calc(0.15s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dlv .fire:hover {
  color: var(--fg);
  background: color-mix(in srgb,var(--fg) 10%,transparent);
}

.uvq09-dlv .fire:active {
  scale: .96;
}

.uvq09-dlv .fire:focus-visible {
  outline: 2px solid var(--c1);
  outline-offset: 3px;
}

.uvq09-dlv .tt {
  position: absolute;
  left: 50%;
  bottom: 1em;
  width: 19em;
  translate: -50% 0;
  border-radius: 1.1em;
  background: color-mix(in srgb,var(--fg) 3%,var(--bg));
  box-shadow: 0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent),0 1.2em 2.4em -1em rgba(0,0,0,.45);
  padding: .9em 1em .8em;
  transform: translateY(130%) scale(.92);
  opacity: 0;
  transition: transform calc(0.55s / var(--k)) cubic-bezier(.22,1,.36,1),opacity calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1);
}

.uvq09-dlv .tt.in {
  transform: none;
  opacity: 1;
}

.uvq09-dlv .hd {
  display: flex;
  align-items: center;
  gap: .8em;
}

.uvq09-dlv .tx {
  display: grid;
  flex: 1;
  gap: .1em;
}

.uvq09-dlv .tx b {
  font-size: .95em;
}

.uvq09-dlv .tx small {
  font-size: .72em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq09-dlv .eta {
  display: grid;
  justify-items: center;
  padding: .4em .6em;
  border-radius: .7em;
  color: color-mix(in srgb,var(--c1) 80%,var(--fg));
  background: color-mix(in srgb,var(--c1) 13%,transparent);
}

.uvq09-dlv .eta b {
  font-size: 1.3em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.uvq09-dlv .eta small {
  font-size: .6em;
  font-weight: 800;
}

.uvq09-dlv .rt {
  position: relative;
  height: 2.6em;
  margin: .4em .4em 0;
}

.uvq09-dlv .tr {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .45em;
  height: .3em;
  border-radius: 1em;
  background: repeating-linear-gradient(90deg,color-mix(in srgb,var(--fg) 20%,transparent) 0 .5em,transparent .5em .8em);
}

.uvq09-dlv .fi {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c1);
  transition: width calc(1.6s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.35s / var(--k));
}

.uvq09-dlv .tt.in .fi {
  width: 50%;
}

.uvq09-dlv .dt {
  position: absolute;
  bottom: .25em;
  width: .7em;
  height: .7em;
  margin-left: -.35em;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 .18em color-mix(in srgb,var(--fg) 25%,transparent);
  transition: background calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(1.6s / var(--k)),box-shadow calc(0.3s / var(--k)) cubic-bezier(.25,.1,.25,1) calc(1.6s / var(--k));
}

.uvq09-dlv .d1 {
  left: 0;
  background: var(--c1);
  box-shadow: 0 0 0 .18em var(--c1);
}

.uvq09-dlv .d2 {
  left: 50%;
}

.uvq09-dlv .d3 {
  left: 100%;
}

.uvq09-dlv .tt.in .d2 {
  background: var(--c1);
  box-shadow: 0 0 0 .18em var(--c1),0 0 0 .5em color-mix(in srgb,var(--c1) 20%,transparent);
}

.uvq09-dlv .vn {
  position: absolute;
  left: 0;
  bottom: .95em;
  width: 2.3em;
  translate: -50% 0;
  transition: left calc(1.6s / var(--k)) cubic-bezier(.22,1,.36,1) calc(0.35s / var(--k));
}

.uvq09-dlv .tt.in .vn {
  left: 50%;
}

.uvq09-dlv .vn svg {
  display: block;
  width: 100%;
  animation: uvq09-dlv-b calc(0.3s / var(--k)) ease-in-out infinite alternate;
}

.uvq09-dlv .bd {
  fill: var(--c1);
}

.uvq09-dlv .wn {
  fill: color-mix(in srgb,var(--bg) 80%,var(--c2));
}

.uvq09-dlv .wh {
  fill: var(--fg);
  stroke: var(--bg);
  stroke-width: 1.4;
}

.uvq09-dlv .lb {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  margin: .3em 0 0;
  padding: 0;
  list-style: none;
  font-size: .68em;
  color: color-mix(in srgb,var(--fg) 55%,transparent);
}

.uvq09-dlv .lb li:nth-child(2) {
  text-align: center;
}

.uvq09-dlv .lb li:last-child {
  text-align: right;
}

.uvq09-dlv .lb .on {
  font-weight: 700;
  color: var(--fg);
}

@keyframes uvq09-dlv-b {
  to {
    transform: translateY(-.08em);
  }
}

@media (prefers-reduced-motion:reduce) {
  .uvq09-dlv,.uvq09-dlv *,.uvq09-dlv *::before,.uvq09-dlv *::after {
    animation-duration: .01ms!important;
    animation-iteration-count: 1!important;
    transition-duration: .01ms!important;
  }
}
`;

// Interacción en JavaScript del DOM: la misma que en la pestaña JS.
// eslint-disable-next-line @typescript-eslint/no-explicit-any
function setup(el: any) {
  const t=el.querySelector(".tt"),f=el.querySelector(".fire");let tm=[];const clr=()=>{tm.forEach(clearTimeout);tm=[]};const later=(fn,ms)=>tm.push(setTimeout(fn,ms));
const show=()=>{clr();t.classList.remove("in","out");void t.offsetWidth;later(()=>{t.classList.add("in");eta()},60)};
const hide=()=>{t.classList.remove("in");t.classList.add("out")};f.addEventListener("click",show);show();const eb=t.querySelector(".eta b");let iv=0;const eta=()=>{clearInterval(iv);let n=19;eb.textContent=n;iv=setInterval(()=>{n--;eb.textContent=n;if(n<=12)clearInterval(iv)},230)};return()=>{clr();clearInterval(iv)}
}

export default function ToastDeliveryRoute() {
  const ref = useRef<HTMLDivElement>(null);

  useEffect(() => {
    const el = ref.current?.firstElementChild;
    return el ? setup(el) : undefined;
  }, []);

  return (
    <>
      <style>{css}</style>
      <div
        ref={ref} style={{
          "--c1": "#ea580c",
          "--c2": "#fed7aa",
          "--s": "16px",
          "--k": "1",
          "--fg": "#1d1d1f",
          "--bg": "#f5f5f7",
        } as CSSProperties}
      >
        <div className="uvq09-dlv"><button type="button" className="fire">Show again</button><div className="tt" role="status"><div className="hd"><span className="tx"><b>Your order is on its way</b><small>Arrives around 14:35</small></span><span className="eta" aria-hidden="true"><b>12</b><small>min</small></span></div><div className="rt" aria-hidden="true"><i className="tr"><i className="fi"></i></i><i className="dt d1"></i><i className="dt d2"></i><i className="dt d3"></i><span className="vn"><svg viewBox="0 0 32 20"><path className="bd" d="M2 3.5h16.5v11.5H2zM18.5 7.5h6l4.5 4.5v3H18.5z" /><path className="wn" d="M20.5 9h3.4l2.6 2.6h-6z" /><circle className="wh" cx="8" cy="15.5" r="2.6" /><circle className="wh" cx="24" cy="15.5" r="2.6" /></svg></span></div><ol className="lb"><li className="on">Ready</li><li className="on">Out for delivery</li><li>Delivered</li></ol></div></div>
      </div>
    </>
  );
}
```

Give me the complete final code, ready to paste, and tell me in one line where to put it in my project.
````
