/* Payment Popup Styles */
.kaspa-payment-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.6);
}

.kaspa-payment-modal-content {
    background-color: #fefefe;
    margin: 20% auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px;
    position: relative;
}

.kaspa-payment-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.kaspa-payment-close:hover,
.kaspa-payment-close:focus {
    color: black;
    text-decoration: none;
}

.kaspa-payment-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.kaspa-payment-qr {
    flex: 1;
    min-width: 200px;
    display: flex;
    justify-content: center;
}

.kaspa-payment-qr img {
    max-width: 100%;
    height: auto;
}

.kaspa-payment-details {
    flex: 1;
    min-width: 250px;
}

.kaspa-address {
    word-break: break-all;
    font-size: 0.9em;
}

.copy-address {
    margin-left: 5px;
    padding: 2px 5px;
    font-size: 0.8em;
}

#payment-status {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.status-message {
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.loading-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.payment-success {
    color: #2ecc71;
    font-weight: bold;
}

.payment-redirect-btn {
    display: block;
    margin: 15px auto 0;
    padding: 8px 15px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.payment-redirect-btn:hover {
    background-color: #2980b9;
}