.ls-pdp-dispatch {
    --ls-dispatch-wine: #7a1730;
    --ls-dispatch-wine-deep: #4b111e;
    --ls-dispatch-ink: #2b171c;
    --ls-dispatch-rail-height: 68px;
    position: relative;
    width: fit-content;
    max-width: 100%;
    margin: 8px 0 11px;
    color: var(--ls-dispatch-ink);
}

.ls-pdp-dispatch[hidden],
.ls-pdp-dispatch__relative[hidden] {
    display: none !important;
}

.ls-pdp-dispatch__rail {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 46px minmax(0, auto);
    align-items: center;
    gap: 11px;
    height: var(--ls-dispatch-rail-height);
    max-width: 100%;
    box-sizing: border-box;
    padding: 9px 13px 9px 9px;
    border: 1px solid rgba(122, 23, 48, .14);
    border-radius: 14px;
    background: linear-gradient(100deg, #fff 0%, #fff 55%, #fdf6f8 100%);
    box-shadow: 0 4px 15px rgba(74, 17, 30, .045);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.ls-pdp-dispatch__rail::before {
    content: "";
    position: absolute;
    top: -40%;
    bottom: -40%;
    left: -22%;
    width: 18%;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(122, 23, 48, .055), transparent);
    transform: skewX(-18deg);
    opacity: 0;
}

.ls-pdp-dispatch.is-ready .ls-pdp-dispatch__rail::before {
    animation: ls-dispatch-surface-sweep 5.4s ease-in-out 1.2s infinite;
}

.ls-pdp-dispatch__visual {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 46px;
    min-width: 46px;
    height: 46px;
    overflow: hidden;
    border: 1px solid rgba(122, 23, 48, .13);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(122, 23, 48, .085), rgba(122, 23, 48, .035));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}

.ls-pdp-dispatch__visual-track {
    position: absolute;
    left: 7px;
    right: 7px;
    bottom: 7px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(122,23,48,.18), rgba(122,23,48,.34));
}

.ls-pdp-dispatch__visual-track::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 5px;
    height: 3px;
    border-radius: 999px;
    background: var(--ls-dispatch-wine);
    opacity: 0;
}

.ls-pdp-dispatch.is-ready .ls-pdp-dispatch__visual-track::after {
    animation: ls-dispatch-speed-flow 3.6s ease-in-out .7s infinite;
}

.ls-pdp-dispatch__icon {
    position: relative;
    z-index: 1;
    display: block;
    width: 36px;
    height: 27px;
    margin-top: -3px;
    color: var(--ls-dispatch-wine);
    transform-origin: center bottom;
}

.ls-pdp-dispatch__icon svg {
    display: block;
    width: 36px;
    height: 27px;
    overflow: visible;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ls-pdp-dispatch.is-ready .ls-pdp-dispatch__icon {
    animation: ls-dispatch-icon-drive 3.6s cubic-bezier(.4,0,.2,1) .7s infinite;
}

.ls-pdp-dispatch__speed {
    stroke-dasharray: 7;
}

.ls-pdp-dispatch.is-ready .ls-pdp-dispatch__speed {
    animation: ls-dispatch-speed-lines 1.15s linear infinite;
}

.ls-pdp-dispatch__message {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.ls-pdp-dispatch__headline {
    display: grid;
    grid-template-columns: max-content minmax(0, auto);
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 7px;
    row-gap: 3px;
    min-width: 0;
    margin: 0;
    line-height: 1.08;
}

.ls-pdp-dispatch__action {
    grid-column: 1 / -1;
    grid-row: 1;
    color: #4e3a40;
    font-size: 13px;
    font-weight: 720;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.ls-pdp-dispatch__promise-label {
    grid-column: 1;
    grid-row: 2;
    color: var(--ls-dispatch-wine-deep);
    font-size: 15px;
    font-weight: 860;
    letter-spacing: -.018em;
    white-space: nowrap;
}

.ls-pdp-dispatch__date-row {
    grid-column: 2;
    grid-row: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: var(--ls-dispatch-wine-deep);
}

.ls-pdp-dispatch__relative {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 20px;
    padding: 2px 3px 4px;
    border: none;
    background: transparent;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .018em;
    white-space: nowrap;
    box-shadow: none;
    transform: scale(1);
    transform-origin: center center;
    will-change: transform;
}

.ls-pdp-dispatch__relative::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: #111;
    pointer-events: none;
    opacity: .92;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
}

.ls-pdp-dispatch.is-ready .ls-pdp-dispatch__relative {
    animation: ls-dispatch-relative-approach 2.6s cubic-bezier(.4,0,.2,1) .35s infinite;
}

.ls-pdp-dispatch.is-ready .ls-pdp-dispatch__relative::after {
    animation: ls-dispatch-relative-underline 2.6s cubic-bezier(.4,0,.2,1) .35s infinite;
}

.ls-pdp-dispatch__headline time {
    display: inline-block;
    min-width: 0;
    color: var(--ls-dispatch-wine-deep);
    font-size: 13.5px;
    font-weight: 850;
    line-height: 1.08;
    white-space: nowrap;
    transform-origin: left center;
}

.ls-pdp-dispatch.is-date-refreshing .ls-pdp-dispatch__date-row {
    animation: ls-dispatch-date-refresh .3s ease both;
}

@media (hover: hover) and (pointer: fine) {
    .ls-pdp-dispatch__rail:hover {
        border-color: rgba(122, 23, 48, .22);
        background: linear-gradient(100deg, #fff, #fdf4f7);
        box-shadow: 0 6px 18px rgba(74, 17, 30, .06);
    }
}

@keyframes ls-dispatch-icon-drive {
    0%, 62%, 100% { transform: translateX(-1px) translateY(0); }
    72% { transform: translateX(2px) translateY(-.5px); }
    82% { transform: translateX(1px) translateY(0); }
    90% { transform: translateX(2px) translateY(-.35px); }
}

@keyframes ls-dispatch-speed-flow {
    0%, 10% { left: 0; opacity: 0; }
    18% { opacity: .78; }
    78% { opacity: .72; }
    100% { left: calc(100% - 5px); opacity: 0; }
}

@keyframes ls-dispatch-speed-lines {
    from { stroke-dashoffset: 0; opacity: .72; }
    to { stroke-dashoffset: 14; opacity: .18; }
}

@keyframes ls-dispatch-surface-sweep {
    0%, 58% { left: -22%; opacity: 0; }
    66% { opacity: .65; }
    82% { left: 112%; opacity: .18; }
    100% { left: 112%; opacity: 0; }
}

@keyframes ls-dispatch-relative-approach {
    0%, 12%, 100% { transform: scale(1); }
    38%, 48% { transform: scale(1.1); }
    72% { transform: scale(1); }
}

@keyframes ls-dispatch-relative-underline {
    0%, 12%, 100% { transform: scaleX(0); }
    38%, 58% { transform: scaleX(1); }
    82% { transform: scaleX(0); }
}

@keyframes ls-dispatch-date-refresh {
    0% { opacity: .28; transform: translateY(2px); }
    100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767px) {
    .ls-pdp-dispatch {
        --ls-dispatch-rail-height: 64px;
        width: 100%;
        margin: 7px 0 9px;
    }

    .ls-pdp-dispatch__rail {
        grid-template-columns: 42px minmax(0, 1fr);
        gap: 8px;
        padding: 7px 9px 7px 7px;
        border-radius: 12px;
    }

    .ls-pdp-dispatch__visual {
        width: 40px;
        min-width: 40px;
        height: 40px;
        border-radius: 11px;
    }

    .ls-pdp-dispatch__icon,
    .ls-pdp-dispatch__icon svg {
        width: 32px;
        height: 24px;
    }

    .ls-pdp-dispatch__headline {
        grid-template-columns: max-content minmax(0, 1fr);
        column-gap: 5px;
        row-gap: 2px;
    }

    .ls-pdp-dispatch__action {
        font-size: 12px;
    }

    .ls-pdp-dispatch__promise-label {
        font-size: 13.5px;
    }

    .ls-pdp-dispatch__date-row {
        gap: 5px;
    }

    .ls-pdp-dispatch__relative {
        min-height: 19px;
        padding: 2px 2px 4px;
        font-size: 9px;
        letter-spacing: .012em;
    }

    .ls-pdp-dispatch__headline time {
        font-size: 12.2px;
    }
}

@media (max-width: 380px) {
    .ls-pdp-dispatch__rail {
        grid-template-columns: 39px minmax(0, 1fr);
        gap: 7px;
        padding-inline: 6px 7px;
    }

    .ls-pdp-dispatch__visual {
        width: 38px;
        min-width: 38px;
        height: 38px;
    }

    .ls-pdp-dispatch__icon,
    .ls-pdp-dispatch__icon svg {
        width: 30px;
        height: 22px;
    }

    .ls-pdp-dispatch__action {
        font-size: 11.4px;
    }

    .ls-pdp-dispatch__promise-label {
        font-size: 12.7px;
    }

    .ls-pdp-dispatch__relative {
        min-height: 18px;
        padding-inline: 1px;
        font-size: 8.6px;
    }

    .ls-pdp-dispatch__headline time {
        font-size: 11.5px;
    }
}

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

    .ls-pdp-dispatch__icon,
    .ls-pdp-dispatch__relative {
        transform: none !important;
    }

    .ls-pdp-dispatch__relative::after {
        opacity: .7;
        transform: scaleX(1) !important;
    }
}
