/**
 * Swish Modal Styling
 */

/* Modal Overlay */
.swish-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
}

.swish-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Modal Content */
.swish-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: slideIn 0.3s ease;
}

/* Close Button */
.swish-close {
    color: #aaa;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.swish-close:hover,
.swish-close:focus {
    color: #000;
}

/* Steps */
.swish-step {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Loading */
.swish-loading {
    text-align: center;
    padding: 40px 0;
}

.swish-loading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* QR Code */
.swish-qr-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

#swishModalQrCode {
    display: flex;
    justify-content: center;
    align-items: center;
}

#swishModalQrCode img {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Payment Info */
.swish-payment-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.swish-payment-info .info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #dee2e6;
}

.swish-payment-info .info-row:last-child {
    border-bottom: none;
}

.swish-payment-info .label {
    font-weight: 600;
    color: #6c757d;
}

.swish-payment-info .value {
    font-weight: 500;
    color: #212529;
}

/* Success & Error Icons */
.success-icon i,
.error-icon i {
    animation: scaleIn 0.5s ease;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

/* Responsive */
@media (max-width: 576px) {
    .swish-modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .swish-qr-container {
        padding: 10px;
    }
    
    #swishModalQrCode img {
        max-width: 200px;
    }
}