/**
 * ============================================
 * CART MODAL INLINE STYLES - PRODUCTION
 * ============================================
 * Styles pour les champs du formulaire panier
 * ============================================
 */

/* Form Field States */
.pro-cart-modal input,
.pro-cart-modal select {
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.pro-cart-modal input:focus,
.pro-cart-modal select:focus {
    outline: none;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
}

.pro-cart-modal input.error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.pro-cart-modal input.valid {
    border-color: #28a745 !important;
    background-color: #f0fff4 !important;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 4px;
    margin-bottom: 8px;
    display: none;
    font-weight: 500;
    line-height: 1.3;
}

.error-message.show {
    display: block;
}

/* Form Scrolling - Desktop : scroll naturel de toute la modal */
.pro-cart-modal-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
    overflow: visible;
    padding-bottom: 20px;
    padding-right: 10px;
    -webkit-overflow-scrolling: touch;
}

/* Responsive Panier Modal */
@media (max-width: 768px) {
    .pro-cart-modal-content {
        max-width: 95vw !important;
        width: 95vw !important;
        min-height: auto !important;
        max-height: 90vh !important;
    }

    .pro-cart-modal-body {
        flex-direction: column !important;
        padding: 0 16px !important;
    }

    .pro-cart-modal-left,
    .pro-cart-modal-right {
        min-width: 100% !important;
        padding: 16px 0 !important;
    }

    .pro-cart-modal-left {
        border-bottom: 2px solid #e9ecef;
        margin-bottom: 16px;
    }
    
    .pro-cart-modal-form {
        max-height: none;
        overflow-y: visible;
    }
}

@media (max-width: 480px) {
    .pro-cart-modal-content {
        border-radius: 12px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }

    .pro-cart-modal-content h2 {
        font-size: 1.5rem !important;
    }

    .pro-cart-modal-content h3 {
        font-size: 1.1rem !important;
    }

    .pro-cart-modal-body {
        padding: 0 12px !important;
    }

    .pro-cart-modal-left,
    .pro-cart-modal-right {
        padding: 12px 0 !important;
    }
}
