/**
 * Styles pour le récapitulatif de réservation
 * Version: 1.0.0
 * 
 * Styles modernes pour le bloc de récapitulatif de réservation
 * Optimisé pour les pages panier et checkout
 */

/* ===== CONTENEUR PRINCIPAL ===== */
.bm-reservation-summary {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin: 30px 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.bm-reservation-summary:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ===== EN-TÊTE DU RÉCAPITULATIF ===== */
.bm-reservation-summary-header {
    background: linear-gradient(135deg, #091c40 0%, #0a2456 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.bm-reservation-summary-icon {
    font-size: 24px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bm-reservation-summary-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

/* ===== CONTENU DU RÉCAPITULATIF ===== */
.bm-reservation-summary-content {
    padding: 25px;
}

.bm-reservation-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.bm-reservation-summary-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #555;
    font-weight: 500;
}

.bm-reservation-summary-label i {
    color: #bfa888;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.bm-reservation-summary-value {
    font-weight: 600;
    color: #091c40;
}

.bm-reservation-summary-duration {
    font-size: 0.9em;
    color: #777;
    margin-left: 5px;
    font-weight: normal;
}

/* ===== SECTION DES OPTIONS ===== */
.bm-reservation-summary-section {
    margin: 20px 0;
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}

.bm-reservation-summary-section-header {
    background: #f0f0f0;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: #091c40;
}

.bm-reservation-summary-section-header i {
    color: #bfa888;
}

.bm-reservation-summary-extras {
    padding: 15px;
}

.bm-reservation-summary-extra-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.bm-reservation-summary-extra-name {
    color: #555;
}

.bm-reservation-summary-extra-price {
    font-weight: 500;
    color: #091c40;
}

.bm-reservation-summary-extra-total {
    display: flex;
    justify-content: space-between;
    padding: 12px 0 0;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.bm-reservation-summary-extra-total-label {
    color: #091c40;
}

.bm-reservation-summary-extra-total-value {
    color: #091c40;
}

/* ===== SECTION TOTAUX ===== */
.bm-reservation-summary-total {
    margin-top: 20px;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
}

.bm-reservation-summary-total .bm-reservation-summary-row {
    border-bottom: 1px dashed rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

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

.bm-reservation-summary-total-price {
    font-size: 1.2em;
    color: #091c40;
}

.bm-reservation-summary-deposit {
    font-size: 1.2em;
    color: #bfa888;
}

/* ===== NOTES ===== */
.bm-reservation-summary-notes {
    margin-top: 20px;
    background: #f0f7ff;
    border-radius: 8px;
    padding: 15px;
}

.bm-reservation-summary-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #555;
}

.bm-reservation-summary-note:last-child {
    margin-bottom: 0;
}

.bm-reservation-summary-note i {
    color: #4a90e2;
    margin-top: 3px;
}

/* ===== MESSAGE VIDE ===== */
.bm-reservation-summary-empty {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    margin: 30px 0;
}

.bm-reservation-summary-empty .bm-reservation-summary-icon {
    font-size: 40px;
    width: 80px;
    height: 80px;
    background: #f0f7ff;
    color: #4a90e2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.bm-reservation-summary-empty h3 {
    margin: 0 0 10px;
    color: #091c40;
    font-size: 20px;
}

.bm-reservation-summary-empty p {
    color: #555;
    margin-bottom: 20px;
}

.bm-reservation-summary-btn {
    display: inline-block;
    background: linear-gradient(135deg, #bfa888 0%, #a89674 100%);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bm-reservation-summary-btn:hover {
    background: linear-gradient(135deg, #091c40 0%, #0a2456 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(9, 28, 64, 0.2);
}

/* ===== MESSAGE D'ERREUR ===== */
.bm-reservation-summary-error {
    background: #fff0f0;
    border-left: 4px solid #e53935;
    padding: 15px;
    margin: 20px 0;
    color: #d32f2f;
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .bm-reservation-summary-header {
        padding: 15px 20px;
    }
    
    .bm-reservation-summary-content {
        padding: 20px;
    }
    
    .bm-reservation-summary-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .bm-reservation-summary-value {
        align-self: flex-end;
        margin-top: -20px;
    }
    
    .bm-reservation-summary-extra-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .bm-reservation-summary-extra-price {
        align-self: flex-end;
    }
    
    .bm-reservation-summary-extra-total {
        flex-direction: column;
        gap: 5px;
    }
    
    .bm-reservation-summary-extra-total-value {
        align-self: flex-end;
    }
}