/* Steps Loader - a list of steps that tick off, with a progress bar */

/* The loading container becomes a wider card for this type */
.loading-overlay.steps-mode .loading-container {
    width: min(560px, 92vw);
    max-width: none;
    padding: 2rem;
    text-align: left;
}

.steps-loader-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cn-green-dark);
    text-align: center;
}

.steps-loader-eyebrow:empty {
    display: none;
}

.steps-loader-title {
    margin: 8px 0 24px;
    font-family: var(--cn-serif);
    font-size: 36px;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.08;
    color: var(--cn-ink);
    text-align: center;
}

.steps-loader-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.steps-loader-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--cn-line);
    opacity: 0.55;
    transition: opacity .25s;
}

.steps-loader-step:first-child {
    padding-top: 0;
}

.steps-loader-step:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.steps-loader-step.active,
.steps-loader-step.done {
    opacity: 1;
}

.steps-loader-step .st {
    width: 22px;
    height: 22px;
    flex: none;
    margin-top: 1px;
    border-radius: 50%;
    border: 1.5px solid var(--cn-line-strong);
    background: #fff;
    display: grid;
    place-items: center;
    transition: background .25s, border-color .25s;
}

.steps-loader-step.active .st {
    border-color: var(--cn-green);
    border-top-color: transparent;
    animation: steps-loader-spin .8s linear infinite;
}

.steps-loader-step.done .st {
    background: var(--cn-green);
    border-color: var(--cn-green);
}

.steps-loader-step.done .st::after {
    content: "";
    width: 5px;
    height: 9px;
    margin-top: -2px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.steps-loader-step .tx {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.steps-loader-step .tx b {
    font-size: 15px;
    font-weight: 600;
    color: var(--cn-ink);
}

.steps-loader-step .tx span {
    font-size: 13px;
    color: var(--cn-muted);
}

.steps-loader-bar {
    height: 6px;
    border-radius: 999px;
    background: #e9eeeb;
    overflow: hidden;
}

.steps-loader-bar i {
    display: block;
    height: 100%;
    width: 6%;
    border-radius: 999px;
    background: linear-gradient(to right, #34d399, var(--cn-green));
    transition: width .4s ease-out;
}

.steps-loader-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--cn-muted);
}

@keyframes steps-loader-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .steps-loader-step.active .st {
        animation: none;
        border-top-color: var(--cn-green);
    }
}
