.paynecta-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 68, 63, 0.9);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.paynecta-popup {
    background: white;
    border-radius: 15px;
    padding: 40px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(14, 68, 63, 0.3);
    position: relative;
    border: 3px solid #0e443f;
}

.paynecta-popup::before {
    content: "";
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #0e443f, #1a6b5f, #0e443f);
    border-radius: 18px;
    z-index: -1;
}

.paynecta-popup h2 {
    color: #0e443f;
    margin-bottom: 25px;
    font-size: 28px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(14, 68, 63, 0.1);
}

.paynecta-popup p {
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 16px;
}

.paynecta-spinner {
    border: 4px solid #e8f5f3;
    border-top: 4px solid #0e443f;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 25px auto;
    box-shadow: 0 4px 15px rgba(14, 68, 63, 0.2);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.paynecta-popup-buttons {
    margin-top: 30px;
}

.paynecta-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin: 0 8px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.paynecta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.paynecta-btn-primary {
    background: linear-gradient(135deg, #0e443f, #1a6b5f);
    color: white;
}

.paynecta-btn-primary:hover {
    background: linear-gradient(135deg, #0a3530, #156052);
}

.paynecta-btn-success {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
}

.paynecta-btn-success:hover {
    background: linear-gradient(135deg, #229954, #27ae60);
}

.paynecta-btn-danger {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
}

.paynecta-btn-danger:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.paynecta-btn-warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.paynecta-btn-warning:hover {
    background: linear-gradient(135deg, #e67e22, #d68910);
}

.paynecta-btn-secondary {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
}

.paynecta-btn-secondary:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7b7d);
}

.paynecta-payment-details {
    background: linear-gradient(135deg, #e8f5f3, #d5ede9);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #0e443f;
    box-shadow: inset 0 2px 4px rgba(14, 68, 63, 0.1);
}

.paynecta-payment-details p {
    margin-bottom: 10px;
    font-size: 15px;
}

.paynecta-payment-details strong {
    color: #0e443f;
    font-weight: 700;
}

.paynecta-icon {
    font-size: 64px;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.paynecta-icon-success {
    color: #27ae60;
}

.paynecta-icon-error {
    color: #e74c3c;
}

.paynecta-icon-warning {
    color: #f39c12;
}

.paynecta-countdown {
    background: rgba(14, 68, 63, 0.1);
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
    border: 1px solid rgba(14, 68, 63, 0.2);
}

.paynecta-countdown p {
    font-size: 16px;
    color: #0e443f;
    font-weight: 600;
    margin: 0;
}

#countdown-timer {
    font-size: 20px;
    font-weight: 700;
    color: #0e443f;
    text-shadow: 0 2px 4px rgba(14, 68, 63, 0.1);
}

.paynecta-logo {
    width: 40px;
    height: 40px;
    background: #0e443f;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(14, 68, 63, 0.3);
}

/* Styles for hiding checkout elements during payment waiting */
.woocommerce-checkout-review-order-table,
.woocommerce-checkout-payment,
.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
    display: none !important;
}
