/**
 * Mircato Pro - Multi-Step Checkout Visuals
 * Design: Premium Floating Pills / Cards
 */

.mircato-checkout-steps-wrapper {
    width: 100%;
    margin: 0 auto 40px;
    padding: 0 15px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
    /* Contain width */
    text-align: center;
    /* Center the inline-flex container */
}

/* Reset List */
ul.mircato-checkout-steps {
    list-style: none;
    margin: 0;
    padding: 16px 40px;
    /* Increased Padding */
    display: inline-flex;
    /* Shrink to fit items */
    justify-content: center;
    align-items: center;
    gap: 30px;
    /* Increased Gap */
    flex-wrap: wrap;

    /* 3D Premium Container Style */
    background: #fff;
    border: 1px solid #e0e0e0;
    border-bottom: 5px solid #d4d4d4;
    /* Thicker 3D Border */
    border-radius: 80px;
    /* Larger radius */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
}

/* Step Item - Reverted to Clean Pills */
.mircato-checkout-steps li {
    position: relative;
    display: flex;
    align-items: center;
    background: transparent;
    /* Transparent inside the white container? Or maybe subtle grey? Let's try transparent or very light */
    padding: 10px 24px;
    /* Larger hit area */
    border-radius: 50px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    color: #999;
    font-family: var(--font-primary, sans-serif);
    font-weight: 600;
    /* Bolder text */
    font-size: 16px;
    /* Larger text (was 14px) */
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.3s ease;
}

/* Links */
.mircato-checkout-steps li a.step-link,
.mircato-checkout-steps li .step-link {
    display: flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
    width: 100%;
    height: 100%;
}

/* Step Number */
.mircato-checkout-steps .step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    /* Larger circle (was 24px) */
    height: 32px;
    /* Larger circle */
    border-radius: 50%;
    background: #f0f0f0;
    color: #777;
    margin-right: 14px;
    font-size: 14px;
    /* Larger number font (was 11px) */
    font-weight: 800;
    transition: all 0.3s ease;
}

/* Active State */
.mircato-checkout-steps li.active {
    background: var(--color-primary, #000);
    color: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
    /* Soft shadow for the active pill */
    border: none;
    transform: none;
    /* Keep it grounded inside the container */
}

.mircato-checkout-steps li.active .step-number {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Completed State */
.mircato-checkout-steps li.completed {
    color: var(--color-primary, #000);
    background: transparent;
}

.mircato-checkout-steps li.completed .step-number {
    background: var(--color-success, #28a745);
    color: #fff;
    /* Optional: Replace number with checkmark content if using font icons, 
       but for now we keep number or background color change */
}

/* Hover Effects */
.mircato-checkout-steps li:hover:not(.active) {
    background: #f9f9f9;
    color: var(--color-primary, #000);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    ul.mircato-checkout-steps {
        gap: 10px;
        flex-direction: row;
        /* Keep row but maybe stack if needed */
        flex-wrap: nowrap;
        overflow-x: auto;
        /* Allow horizontal scroll if tight */
        padding: 10px;
        /* Keep padding */
        justify-content: flex-start;
        /* Left align on scroll */
        -webkit-overflow-scrolling: touch;
        /* Simplify container on mobile */
        border-radius: 12px;
        display: flex;
        width: 100%;
    }

    .mircato-checkout-steps-wrapper {
        padding: 0;
        margin-bottom: 20px;
    }

    .mircato-checkout-steps li {
        padding: 10px 15px;
        flex: 0 0 auto;
        /* Don't shrink */
        font-size: 12px;
    }

    .mircato-checkout-steps .step-number {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        font-size: 10px;
    }
}