/* Checkout Pages Mobile Fix */

/* Checkout progress bar mobile optimization */
@media (max-width: 768px) {
    .checkout-progress {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 15px 0 !important;
    }
    
    .checkout-progress .container {
        min-width: 100%;
        padding: 0 10px !important;
    }
    
    .checkout-progress > .container > div {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        min-width: 100%;
    }
    
    .progress-step {
        flex: 1 1 auto;
        min-width: 50px;
        text-align: center;
    }
    
    .progress-step > div:first-child {
        width: 35px !important;
        height: 35px !important;
        font-size: 14px !important;
        margin: 0 auto 5px !important;
    }
    
    .progress-step > div:last-child {
        font-size: 10px !important;
        white-space: nowrap;
    }
    
    .progress-line {
        flex: 0 0 15px !important;
        height: 2px !important;
        min-width: 15px !important;
        max-width: 30px !important;
    }
    
    /* Cart page mobile */
    .cart-items .cart-item {
        flex-direction: column !important;
        padding: 15px !important;
    }
    
    .cart-item img {
        width: 100% !important;
        height: auto !important;
        max-height: 200px !important;
    }
    
    .cart-summary {
        position: static !important;
        margin-top: 20px;
    }
    
    /* Checkout forms */
    .checkout-progress ~ .container > div {
        grid-template-columns: 1fr !important;
    }
    
    /* Shipping form */
    form[data-validate] > div {
        grid-template-columns: 1fr !important;
    }
    
    /* Order review page */
    .order-confirmation {
        padding: 30px 15px !important;
    }
    
    .order-confirmation h1 {
        font-size: 24px !important;
    }
    
    .success-animation {
        width: 80px !important;
        height: 80px !important;
    }
    
    .success-animation i {
        font-size: 40px !important;
    }
    
    /* Random article boxes in checkout */
    .random-article {
        padding: 20px 15px !important;
        margin: 0 10px 20px 10px !important;
    }
    
    .random-article h2 {
        font-size: 18px !important;
    }
    
    .random-article h3 {
        font-size: 16px !important;
    }
    
    .random-article p {
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .checkout-progress {
        font-size: 11px;
    }
    
    .progress-step > div:first-child {
        width: 30px !important;
        height: 30px !important;
        font-size: 12px !important;
    }
    
    .progress-step > div:last-child {
        font-size: 9px !important;
    }
    
    .progress-line {
        flex: 0 0 10px !important;
    }
}

