﻿.steps {
    z-index: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    display: table;
    table-layout: fixed;
    width: 45%;
    min-width: 375px;
    max-width: 490px;
    height: fit-content;
}

.steps > .step {
    position: relative;
    display: table-cell;
    text-align: center;
    font-size: 14px;
    line-height: 1.5rem;
    color: #9B9B9B;
    font-weight: 400;
    white-space: nowrap;
}

.steps > .step:before {
    content: '';
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    background: #D9D9D9;
    border: 2px solid #D9D9D9;
    color: #e6e6e6;
    width: 20px;
    height: 20px;
    line-height: 1.9rem;
    border-radius: 50%;
    position: relative;
    z-index: 1;
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.8125rem;
}

.steps > .step::after {
    content: '';
    position: absolute;
    display: block;
    background: #D9D9D9;
    width: 100%;
    height: 0.125rem;
    top: 10px;
    left: 50%;
}

.steps > .step:last-child:after {
    display: none;
}

.steps > .step.is-complete {
    color: var(--text-second-color);
}

.steps > .step.is-active {
    color: var(--text-second-color);
}

.steps > .step.is-complete:before {
    content: '';
    color: var(--text-second-color);
    background: var(--text-second-color);
    border: 2px solid var(--text-second-color);
}

.steps > .step.is-complete:after {
    background: var(--text-second-color);
}


.steps > .step.is-active:before {
    border: 2px solid var(--text-second-color);
    background: var(--text-second-color);
}

@media (max-width: 800px) {
    .steps > .step {
        font-size: 10px;
    }

    .steps > .step:before {
        width: 12px;
        height: 12px;
        margin-bottom: 6px;
    }

    .steps > .step::after {
        top: 6px;
    }
}
