/* static/css/checkout.css */
.checkout-container {
    background: linear-gradient(135deg, #f5f3ff, #e0e7ff); /* Dégradé pastel pour le fond */
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.checkout-title {
    color: #1e3a8a; /* Bleu foncé */
    font-weight: 700;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.checkout-title i {
    color: #f59e0b; /* Jaune vif */
    font-size: 1.5rem;
}

.checkout-subtitle {
    color: #1e3a8a; /* Bleu foncé */
    font-weight: 600;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkout-subtitle i {
    color: #f59e0b; /* Jaune vif */
    font-size: 1.2rem;
}

.checkout-alert {
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    background-color: #fefce8; /* Fond jaune pâle */
    border-color: #fef08a;
    color: #1e3a8a; /* Texte bleu foncé */
}

.checkout-summary {
    background: #ffffff;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-table {
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-table thead {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937; /* Texte gris foncé pour contraste */
}

.checkout-table th {
    font-weight: 600;
    padding: 1rem;
    border: none;
}

.checkout-item {
    background-color: #f9fafb; /* Fond gris très clair */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.checkout-item:hover {
    background-color: #fefce8; /* Fond jaune pâle au survol */
    transform: translateY(-2px);
}

.checkout-product-name {
    font-weight: 500;
    color: #1e3a8a; /* Bleu foncé */
    font-size: 1.1rem;
    align-items: center;
}

.checkout-product-name i {
    color: #1e3a8a;
}

.checkout-quantity-value {
    font-weight: 600;
    color: #1e3a8a; /* Bleu foncé */
    font-size: 1rem;
    align-items: center;

}

.checkout-price {
    color: #16a34a; /* Vert pour les prix */
    font-weight: 500;
    align-items: center;
}

.checkout-price i {
    color: #16a34a;
}

.checkout-subtotal {
    color: #d97706; /* Jaune foncé pour les sous-totaux */
    font-weight: 600;
    align-items: center;
}

.checkout-subtotal i {
    color: #d97706;
}

.checkout-total {
    background-color: #fefce8; /* Fond jaune pâle */
    font-weight: 700;
}

.checkout-total-value {
    color: #16a34a; /* Vert pour le total */
    font-size: 1.2rem;
}

.checkout-form-group {
    background: #ffffff;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.checkout-form-label {
    font-weight: 500;
    color: #1e40af; /* Bleu foncé */
    font-size: 0.9rem;
}

.checkout-form-check {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    background: #fefce8; /* Fond jaune pâle */
    border-radius: 10px;
}

.checkout-check-label {
    color: #1e3a8a; /* Bleu foncé */
    font-weight: 500;
    margin-left: 0.5rem;
}

.checkout-new-client {
    background: #f9fafb; /* Fond gris très clair */
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.input-group-text.checkout-icon {
    background-color: #fefce8; /* Fond jaune pâle */
    border: 1px solid #fef08a;
    border-right: none;
    color: #f59e0b; /* Jaune vif */
    font-size: 1rem;
}

.form-control, .form-control:focus {
    border: 1px solid #fef08a; /* Bordure jaune pâle */
    border-left: none;
    border-radius: 0 10px 10px 0;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
    border-color: #f59e0b; /* Jaune vif au focus */
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

.form-control::placeholder {
    color: #9ca3af;
}

.checkout-text-danger {
    font-size: 0.85rem;
    color: #dc2626; /* Rouge pour les erreurs */
    margin-top: 0.25rem;
}

.checkout-btn-use-client {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937; /* Texte gris foncé pour contraste */
    border: none;
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.checkout-btn-use-client:hover {
    background: linear-gradient(135deg, #eab308, #d97706); /* Dégradé plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.checkout-actions {
    margin-bottom: 2rem;
}

.checkout-btn-continue {
    background: linear-gradient(135deg, #facc15, #f59e0b); /* Dégradé jaune vif */
    color: #1f2937; /* Texte gris foncé pour contraste */
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.checkout-btn-continue:hover {
    background: linear-gradient(135deg, #eab308, #d97706); /* Dégradé plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.checkout-btn-confirm {
    background: linear-gradient(135deg, #16a34a, #15803d); /* Dégradé vert pour confirmer */
    color: #ffffff;
    border: none;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.checkout-btn-confirm:hover {
    background: linear-gradient(135deg, #15803d, #166534); /* Dégradé plus foncé au survol */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}

@media (max-width: 767px) {
    .checkout-title {
        font-size: 1.5rem;
    }

    .checkout-subtitle {
        font-size: 1.2rem;
    }

    .checkout-table th, .checkout-table td {
        font-size: 0.85rem;
        padding: 0.5rem;
    }

    .checkout-product-name {
        font-size: 1rem;
    }

    .checkout-total-value {
        font-size: 1rem;
    }

    .checkout-form-label {
        font-size: 0.85rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 0.5rem 0.75rem;
    }

    .checkout-btn-continue, .checkout-btn-confirm {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}