/* Order tracking (Blazor component OrderTracking.razor) */
.nms-track {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, .06);
}

.nms-track__title {
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--nms-ink, #0f172a);
}

.nms-track__order {
    border: 1px solid #e6ebf2;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.nms-track__head {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-bottom: 18px;
    font-size: 14px;
}

/* The steps: a circle with a number, and a line to the next circle */
.nms-track__steps {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: step;
}

.nms-track__steps li {
    flex: 1;
    position: relative;
    text-align: center;
    font-size: 12px;
    color: #8a94a6;
    padding-top: 34px;
    counter-increment: step;
}

.nms-track__steps li::before {
    content: counter(step);
    position: absolute;
    top: 0;
    right: 50%;
    transform: translateX(50%);
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    background: #e6ebf2;
    color: #8a94a6;
    font-weight: 700;
    text-align: center;
    z-index: 1;
}

.nms-track__steps li::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 50%;
    width: 100%;
    height: 2px;
    background: #e6ebf2;
}

.nms-track__steps li:last-child::after {
    display: none;
}

/* Finished steps: blue circle with a check mark */
.nms-track__steps li.done {
    color: var(--nms-ink, #0f172a);
}

.nms-track__steps li.done::before {
    content: "✓";
    background: var(--nms-cyan, #1255d5);
    color: #fff;
}

.nms-track__steps li.done::after {
    background: var(--nms-cyan, #1255d5);
}

/* The step the order is on now: white circle with a blue ring */
.nms-track__steps li.now {
    color: var(--nms-cyan, #1255d5);
    font-weight: 700;
}

.nms-track__steps li.now::before {
    background: #fff;
    color: var(--nms-cyan, #1255d5);
    box-shadow: 0 0 0 2px var(--nms-cyan, #1255d5);
}

.nms-track__updated {
    font-size: 12px;
    color: var(--nms-muted, #5b6475);
    margin: 8px 0 0;
}

/* Phones: steps go top to bottom */
@media (max-width: 576px) {
    .nms-track__steps {
        flex-direction: column;
        gap: 10px;
    }

    .nms-track__steps li {
        text-align: right;
        padding: 0 36px 0 0;
        min-height: 26px;
        line-height: 26px;
    }

    .nms-track__steps li::before {
        right: 0;
        transform: none;
    }

    .nms-track__steps li::after {
        display: none;
    }
}
