.lg-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.lg-steps__item {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding-bottom: 34px;
}

.lg-steps__item:last-child {
    padding-bottom: 0;
}

.lg-steps__item::before {
    content: '';
    position: absolute;
    top: 58px;
    height: calc(100% - 66px);
    left: 25px;
    width: 1px;
    background: var(--lg-border-strong);
}

.lg-steps__item:last-child::before {
    display: none;
}

.lg-steps__bullet {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid var(--lg-text-dim);
    color: var(--lg-text-dim);
    position: relative;
    z-index: 1;
}

.lg-steps__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lg-steps__text em {
    font-style: normal;
    font-size: 16px;
    color: var(--lg-text-dim);
}

.lg-steps__text strong {
    font-size: 20px;
    font-weight: 600;
    color: var(--lg-text-dim);
    font-family: 'SFPro';
}

.lg-steps__item.is-active .lg-steps__bullet {
    border-color: var(--lg-text);
    color: var(--lg-text);
}

.lg-steps__item.is-active .lg-steps__text strong {
    color: var(--lg-text);
}

.lg-steps__item.is-complete .lg-steps__bullet {
    border-color: var(--lg-yellow);
    background: var(--lg-yellow);
    color: #1a1400;
}

.lg-steps__item.is-complete .lg-steps__text strong {
    color: var(--lg-yellow);
}

.lg-steps__item.is-complete::before {
    background: var(--lg-yellow);
}

.lg-checkout__aside {
    position: sticky;
    top: 24px;
}

@media (max-width: 991px) {
    /* Stepper becomes a horizontal row with the line running across. */
    .lg-checkout__aside {
        position: static;
        width: 100%;
    }
    .lg-steps {
        flex-direction: row;
        align-items: flex-start;
    }

    .lg-steps__item {
        flex: 1;
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding-bottom: 0;
        text-align: center;
    }

    .lg-steps__item::before {
        top: 19px;
        left: calc(50% + 31px);
        bottom: auto;
        width: calc(100% - 71px);
        height: 1px;
    }

    .lg-steps__bullet {
        width: 38px;
        height: 38px;
    }

    .lg-steps__text {
        align-items: center;
        padding-top: 0;
        gap: 0;
        line-height: 1.4;
    }

    .lg-steps__text em {
        font-size: 14px;
    }

    .lg-steps__text strong {
        font-size: 14px;
    }

    .lg-product-cell {
        gap: 10px;
    }
}