.checkout-shell > .checkout-shell-header {
    padding-block: .5rem;
}

.checkout-shell .checkout-shell-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: .8rem;
    min-block-size: 44px;
}

.checkout-shell .checkout-steps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.checkout-shell .checkout-step {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-inline-size: 0;
    font-size: .85rem;
}

.checkout-shell .checkout-step-num {
    flex: none;
    inline-size: 1.55rem;
    block-size: 1.55rem;
}

.checkout-shell .checkout-step-sep {
    flex: none;
    inline-size: clamp(.55rem, 1.55vw, 1.35rem);
}

.checkout-shell .cv-checkout-store-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-block-size: 44px;
    padding-inline: .75rem;
    border: 1px solid var(--commerce-border);
    border-radius: 8px;
    color: var(--commerce-link);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.checkout-shell .cv-checkout-store-back:hover {
    border-color: var(--commerce-link);
    background: var(--commerce-raised);
}

[dir="rtl"] .cv-checkout-store-back > i { transform: scaleX(-1); }

@media (max-width: 767.98px) {
    .checkout-shell > .checkout-shell-header { padding-block: .3rem .4rem; }
    .checkout-shell .checkout-shell-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        row-gap: .25rem;
    }

    .checkout-shell .checkout-shell-zone:first-child .site-logo { max-inline-size: 124px; }
    .checkout-shell .checkout-shell-zone-end { grid-column: 2; grid-row: 1; }
    .checkout-shell .checkout-shell-zone-center {
        grid-column: 1 / -1;
        grid-row: 2;
        min-inline-size: 0;
        padding-block-start: .36rem;
    }

    .checkout-shell .checkout-shell-zone-center:not(:has(.checkout-steps)) { display: none; }

    .checkout-shell .checkout-steps { gap: .25rem .4rem; }
    .checkout-shell .checkout-step { gap: .3rem; font-size: .75rem; white-space: normal; }
    .checkout-shell .checkout-step-num { inline-size: 1.25rem; block-size: 1.25rem; }
    .checkout-shell .cv-checkout-store-back { padding-inline: .6rem; border-color: transparent; }
}
