.b2b-checkout-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    gap: 6px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid #dfe5ef;
    border-radius: 16px;
    background: #fff;
}

.b2b-checkout-steps li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #536075;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    white-space: nowrap;
}

.b2b-checkout-steps li > span {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #edf1f7;
    font-size: 12px;
}

.b2b-checkout-steps .is-complete > span { background: #e4f6eb; color: #17653c; }
.b2b-checkout-steps .is-active { background: #eaf1ff; color: #1748ab; }
.b2b-checkout-steps .is-active > span { background: #245dde; color: #fff; }
.b2b-checkout-steps a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

.b2b-flow-action {
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.b2b-flow-action:focus-visible,
.b2b-checkout-steps a:focus-visible {
    outline: 2px solid #245dde;
    outline-offset: 3px;
}

@media (hover: hover) {
    .b2b-flow-action:not(:disabled):hover {
        box-shadow: 0 6px 18px #21406e24;
        /* transform: translateY(-2px); */
    }
}

.b2b-flow-action:not(:disabled):active { transform: scale(.98); }

@media (max-width: 640px) {
    .b2b-checkout-steps li { flex-direction: column; gap: 5px; padding: 7px 3px; font-size: 12px; }
    .b2b-checkout-steps li > span { flex-basis: auto; }
}

@media (prefers-reduced-motion: reduce) {
    .b2b-flow-action,
    .b2b-flow-action:not(:disabled):hover,
    .b2b-flow-action:not(:disabled):active { transition: none; transform: none; }
}

@media print {
    .b2b-checkout-steps { display: none; }
}
