/* Cargo Combined Payment Styles */

.cargo-combined-payment-wrapper {
    margin: 0 0 20px 0;
    padding: 0;
    background: transparent;
}


.cargo-combined-payment-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white !important;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(40, 167, 69, 0.2);
    text-align: center;
}

.cargo-combined-payment-button:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(40, 167, 69, 0.3);
}

.cargo-combined-payment-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}


/* Modal Styles */
.cargo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.cargo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cargo-modal {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cargo-modal-overlay.active .cargo-modal {
    transform: scale(1);
}

.cargo-modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e9ecef;
}

.cargo-modal-header h3 {
    margin: 0;
    font-size: 20px;
    color: #212529;
}

.cargo-modal-content {
    margin-bottom: 20px;
}

.cargo-order-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #28a745;
}

.cargo-order-item .order-number {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
}

.cargo-order-item .cargo-amount {
    color: #28a745;
    font-weight: 600;
}

.cargo-modal-total {
    text-align: right;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 6px;
    margin-bottom: 20px;
}

.cargo-modal-total .total-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 5px;
}

.cargo-modal-total .total-amount {
    font-size: 24px;
    font-weight: 700;
    color: #28a745;
}

.cargo-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.cargo-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cargo-btn-secondary {
    background: #6c757d;
    color: white;
}

.cargo-btn-secondary:hover {
    background: #5a6268;
}

.cargo-btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.cargo-btn-primary:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.cargo-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading State */
.cargo-loading {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.cargo-loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: cargo-spin 1s linear infinite;
}

@keyframes cargo-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .cargo-combined-payment-button {
        width: 100%;
        justify-content: center;
    }

    .cargo-modal {
        padding: 20px;
        width: 95%;
    }

    .cargo-modal-actions {
        flex-direction: column;
    }

    .cargo-btn {
        width: 100%;
    }
}