/* ============================================
   MODALE PERSONNALISÉE DU PANIER
   ============================================ */

.raidet-cart-modal-dialog {
    max-width: 800px;
}

.raidet-cart-modal-content {
    border-radius: 20px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Header */
.raidet-cart-modal-header {
    background: linear-gradient(135deg, #8B7355 0%, #C1B191 100%);
    color: white;
    padding: 25px 30px;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.raidet-cart-success-icon {
    width: 55px;
    height: 55px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.raidet-cart-success-icon i {
    font-size: 32px;
    color: white;
}

.raidet-cart-header-text {
    flex: 1;
}

.raidet-cart-header-text .modal-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 5px 0;
    color: white;
}

.raidet-cart-header-text .modal-subtitle {
    font-size: 15px;
    margin: 0;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

.raidet-cart-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    opacity: 1;
    padding: 0;
    margin: 0;
}

.raidet-cart-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: rotate(90deg);
}

.raidet-cart-modal-close i {
    font-size: 26px;
    color: white;
}

/* Body */
.raidet-cart-modal-body {
    padding: 30px;
    background: white;
}

/* Section produit */
.raidet-cart-product-section {
    display: flex;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 25px;
}

.raidet-cart-product-image {
    width: 140px;
    height: 140px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #f5f5f5;
}

.raidet-cart-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.raidet-cart-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.raidet-cart-product-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px 0;
}

.raidet-cart-product-price {
    font-size: 20px;
    font-weight: 700;
    color: #8B7355;
    margin: 0 0 8px 0;
}

.raidet-cart-product-qty {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Section résumé panier */
.raidet-cart-summary-section {
    background: linear-gradient(135deg, #f9f7f4 0%, #f5f1eb 100%);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.raidet-cart-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8dcc8;
}

.raidet-cart-summary-header i {
    font-size: 24px;
    color: #8B7355;
}

.raidet-cart-summary-header h6 {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.raidet-cart-vendor-info {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
}

.raidet-cart-vendor-info i {
    font-size: 22px;
    color: #8B7355;
}

.raidet-cart-vendor-label {
    font-size: 14px;
    color: #666;
    display: block;
}

.raidet-cart-vendor-name {
    font-size: 16px;
    color: #2D9B8E;
    font-weight: 700;
}

.raidet-cart-items-count {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: white;
    border-radius: 8px;
    margin-bottom: 15px;
}

.raidet-cart-items-count i {
    font-size: 20px;
    color: #8B7355;
}

.raidet-cart-items-count span {
    font-size: 14px;
    color: #666;
}

.raidet-cart-totals {
    padding-top: 12px;
    border-top: 1px solid #e8dcc8;
}

.raidet-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: #666;
}

.raidet-cart-total-row strong {
    color: #333;
    font-weight: 600;
}

.raidet-cart-total-final {
    padding-top: 12px;
    margin-top: 8px;
    border-top: 2px solid #8B7355;
    font-size: 18px;
    font-weight: 700;
}

.raidet-cart-total-final span,
.raidet-cart-total-final strong {
    color: #8B7355;
    font-weight: 700;
}

/* Boîte d'information */
.raidet-cart-info-box {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4ebf2 100%);
    border-left: 4px solid #2D9B8E;
    border-radius: 8px;
}

.raidet-cart-info-box i {
    font-size: 28px;
    color: #2D9B8E;
    flex-shrink: 0;
}

.raidet-cart-info-box p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.raidet-cart-info-box p:last-child {
    margin-bottom: 0;
}

.raidet-cart-info-box strong {
    color: #2D9B8E;
}

/* Footer */
.raidet-cart-modal-footer {
    padding: 0 30px 30px 30px;
    border: none;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.raidet-btn-continue-shopping,
.raidet-btn-checkout {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s;
    border: none;
}

.raidet-btn-continue-shopping {
    background: linear-gradient(135deg, #8B7355 0%, #6d5a47 100%);
    color: white;
}

.raidet-btn-continue-shopping:hover {
    background: linear-gradient(135deg, #6d5a47 0%, #5a4838 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 115, 85, 0.4);
    color: white;
}

.raidet-btn-checkout {
    background: white;
    color: #8B7355;
    border: 2px solid #8B7355;
}

.raidet-btn-checkout:hover {
    background: #f5f5f5;
    border-color: #6d5a47;
    color: #6d5a47;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 115, 85, 0.2);
}

.raidet-btn-continue-shopping i:first-child,
.raidet-btn-checkout i:first-child {
    font-size: 28px;
    flex-shrink: 0;
}

.raidet-btn-continue-shopping > div,
.raidet-btn-checkout > div {
    flex: 1;
    text-align: left;
}

.raidet-btn-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.raidet-btn-desc {
    font-size: 13px;
    opacity: 0.9;
}

.raidet-btn-continue-shopping i:last-child,
.raidet-btn-checkout i:last-child {
    font-size: 24px;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .raidet-cart-modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .raidet-cart-modal-header {
        padding: 20px;
    }
    
    .raidet-cart-success-icon {
        width: 45px;
        height: 45px;
    }
    
    .raidet-cart-success-icon i {
        font-size: 26px;
    }
    
    .raidet-cart-header-text .modal-title {
        font-size: 20px;
    }
    
    .raidet-cart-header-text .modal-subtitle {
        font-size: 13px;
    }
    
    .raidet-cart-modal-close {
        width: 38px;
        height: 38px;
        top: 15px;
        right: 15px;
    }
    
    .raidet-cart-modal-close i {
        font-size: 22px;
    }
    
    .raidet-cart-modal-body {
        padding: 20px;
    }
    
    .raidet-cart-product-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .raidet-cart-product-image {
        width: 120px;
        height: 120px;
    }
    
    .raidet-cart-product-name {
        font-size: 16px;
    }
    
    .raidet-cart-product-price {
        font-size: 18px;
    }
    
    .raidet-cart-summary-section {
        padding: 15px;
    }
    
    .raidet-cart-modal-footer {
        padding: 0 20px 20px 20px;
    }
    
    .raidet-btn-continue-shopping,
    .raidet-btn-checkout {
        padding: 14px 16px;
    }
    
    .raidet-btn-title {
        font-size: 15px;
    }
    
    .raidet-btn-desc {
        font-size: 12px;
    }
}
