/* Styles améliorés pour le résumé de la commande */
.summary-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.summary-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f5f5f5;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-row .label {
    font-size: 1rem;
    color: #666;
}

.summary-row .amount {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.cart-total {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #eee;
}

.cart-total .label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.cart-total .amount {
    font-size: 1.4rem;
    font-weight: 700;
    color: #E37222;
}

/* Style pour la ligne de remise */
.cart-discount {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin: 10px 0;
    animation: highlight-discount 1s ease-in-out;
}

.cart-discount .label {
    color: #28a745;
    font-weight: 500;
}

.discount-amount {
    color: #28a745;
    font-weight: 600;
}

@keyframes highlight-discount {
    0% {
        background-color: rgba(40, 167, 69, 0.2);
    }
    50% {
        background-color: rgba(40, 167, 69, 0.3);
    }
    100% {
        background-color: #f8f9fa;
    }
}

/* Style pour la section code promo */
.promo-code-section {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
}

.promo-code-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.promo-code-input {
    flex: 1;
    min-width: 200px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.btn-apply-promo, .btn-remove-promo {
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-apply-promo {
    background-color: #E37222;
    color: white;
    border: none;
}

.btn-apply-promo:hover {
    background-color: #d86a1e;
}

.btn-remove-promo {
    background-color: #f8f9fa;
    color: #dc3545;
    border: 1px solid #dc3545;
}

.btn-remove-promo:hover {
    background-color: #dc3545;
    color: white;
}

.promo-message {
    margin-top: 10px;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 0.9rem;
}

.promo-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.promo-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.promo-info {
    margin-top: 15px;
    padding: 10px;
    background-color: #e8f4fd;
    border-radius: 5px;
    display: flex;
    align-items: center;
}

.promo-code-badge {
    background-color: #E37222;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 10px;
}

.promo-description {
    color: #0d6efd;
    font-size: 0.95rem;
}

/* Styles pour les boutons de paiement */
.btn-checkout {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #E37222;
    color: white;
    text-align: center;
    border-radius: 5px;
    font-weight: 600;
    margin-top: 20px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-checkout:hover {
    background-color: #d86a1e;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(227, 114, 34, 0.3);
}

.payment-methods {
    margin-top: 15px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.payment-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.payment-icons i {
    font-size: 1.5rem;
    color: #666;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.payment-icons i:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Animation de fade pour les messages */
.fade-out {
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Responsive design */
@media (max-width: 768px) {
    .summary-card {
        padding: 15px;
    }
    
    .summary-title {
        font-size: 1.3rem;
    }
    
    .cart-total .amount {
        font-size: 1.2rem;
    }
}
