/* Theme/Base A2i stepper. The legacy class contract is retained. */
.stepwizard {
    position: relative;
    width: 100%;
    margin: .5rem 0 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

.stepwizard-row {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 520px;
}

.stepwizard-row::before {
    position: absolute;
    top: 17px;
    right: 8%;
    left: 8%;
    z-index: 0;
    height: 1px;
    background: var(--bd-border);
    content: "";
}

.stepwizard-step {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    min-width: 96px;
    padding: 0 .35rem;
    text-align: center;
}

.stepwizard-step p {
    max-width: 150px;
    margin: .55rem 0 0;
    color: var(--bd-text-muted);
    font-size: .72rem;
    font-weight: 680;
    line-height: 1.35;
}

.stepwizard .btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid var(--bd-border);
    border-radius: 50%;
    background: var(--bd-surface-2);
    color: var(--bd-text-muted);
    font-size: .75rem;
    line-height: 1;
    box-shadow: 0 0 0 4px var(--bd-surface);
}

.stepwizard .btn-circle.btn-success {
    border-color: var(--bd-success);
    background: var(--bd-success);
    color: #fff;
}

.stepwizard .btn-circle.btn-warning,
.stepwizard .btn-circle.btn-primary {
    border-color: var(--bd-primary);
    background: var(--bd-surface);
    color: var(--bd-primary);
    box-shadow: 0 0 0 4px var(--bd-surface), 0 0 0 7px rgba(var(--bd-primary-rgb), .12);
}

.stepwizard .btn.disabled,
.stepwizard .btn[disabled],
.stepwizard fieldset[disabled] .btn {
    border-color: var(--bd-border);
    background: var(--bd-surface-2);
    color: var(--bd-text-muted);
    opacity: 1 !important;
}

@media (max-width: 575.98px) {
    .stepwizard-row {
        min-width: 460px;
    }

    .stepwizard-step {
        min-width: 82px;
    }

    .stepwizard-step p {
        font-size: .66rem;
    }
}
