﻿.checkout-stepper {
    width: 100%;
    background: #ffffff;
    border-radius: 22px;
    padding: 10px;
}

.checkout-stepper-inner {
    display: flex;
    align-items: flex-start;
    width: 100%;
}

.checkout-step {
    flex: 0 0 auto;
    width: 180px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.checkout-step-marker {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: #f0f0f3;
    color: #777684;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.25s ease;
}

    .checkout-step-marker i {
        display: none;
        font-size: 17px;
    }

.checkout-step-title {
    font-size: 15px;
    font-weight: 700;
    color: #1b1a2a;
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
}

.checkout-step-subtitle {
    font-size: 13px;
    color: #666575;
    line-height: 1.25;
    white-space: nowrap;
}

.checkout-step-connector {
    flex: 1 1 auto;
    height: 2px;
    background: #e6e6eb;
    border-radius: 999px;
    margin: 19px 12px 0;
    min-width: 32px;
}

/* Activo */
.checkout-step.active .checkout-step-marker {
    background: linear-gradient(135deg, #ff3b2f, #ff5a45);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(255, 59, 47, 0.24);
}

.checkout-step.active .checkout-step-title {
    color: #ff3b2f;
}

/* Completado */
.checkout-step.completed .checkout-step-marker {
    background: #ff3b2f;
    color: #ffffff;
}

    .checkout-step.completed .checkout-step-marker span {
        display: none;
    }

    .checkout-step.completed .checkout-step-marker i {
        display: block;
    }

.checkout-step-connector.completed {
    background: #ff3b2f;
}

@media(min-width: 960px){

    .card-order-resume {
        position: sticky;
        top: 0rem;
        width: 100%;
    }

}
/* Tablet */
@media (max-width: 991.98px) {
    .checkout-stepper {
        padding: 10px;
        border-radius: 18px;
    }

    .checkout-step {
        width: 150px;
    }

    .checkout-step-marker {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 13px;
    }

    .checkout-step-title {
        font-size: 14px;
    }

    .checkout-step-subtitle {
        font-size: 12px;
    }

    .checkout-step-connector {
        margin-top: 17px;
        margin-left: 8px;
        margin-right: 8px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    .checkout-stepper {
        padding: 5px;
        border-radius: 16px;
        overflow: hidden;
    }

    .checkout-stepper-inner {
        align-items: flex-start;
    }

    .checkout-step {
        width: 31%;
        min-width: 0;
    }

    .checkout-step-marker {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .checkout-step-title {
        font-size: 12px;
        line-height: 1.15;
        margin-bottom: 3px;
        white-space: normal;
    }

    .checkout-step-subtitle {
        font-size: 10.5px;
        line-height: 1.15;
        white-space: normal;
    }

    .checkout-step-connector {
        min-width: 0;
        margin: 15px 4px 0;
    }
}

/* Móviles muy pequeños */
@media (max-width: 390px) {
    .checkout-stepper {
        padding: 14px 8px;
    }

    .checkout-step-title {
        font-size: 11.5px;
    }

    .checkout-step-subtitle {
        font-size: 10px;
    }

    .checkout-step-marker {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }

    .checkout-step-connector {
        margin-left: 3px;
        margin-right: 3px;
    }

    
}
