/* Cashfree Payment Gateway - Modern UI Styles */

/* Register Button */

body{

    background: #151515;
}
.cf-register-btn {
    background: #cbfc02 !important;
    color: #000000 !important;
    border: none;
    padding: 12px 25px !important; 
    font-weight: 700 !important;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden; 
}

.cf-register-btn:focus {
    background-color: #cbfc02 !important;
    outline: none;
}
.cf-register-btn:active {
    background: #cbfc02 !important;
}

.cf-register-btn:hover {
    background: #ffffff !important;
}
 

.cf-register-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Popup Overlay */
.cf-popup-overlay {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 100%;
    height: 100%;  
    z-index: 9999;
    background: #000000c9;
    animation: fadeIn 0.3s ease;
}

.cf-popup-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Popup Container */
.cf-popup-container { 
    width: 45%;
    max-height: 90vh;
    animation: slideUp 0.4s ease;
    position: relative;
    border: 1px solid #cbfc02;
    border-radius: 5px;
    overflow: hidden;
    background: #151515;
}

.cf-popup-header {
    background: linear-gradient(135deg, #cbfc02 0%, #cbfc0294 100%);
    color: #ffffff;
    padding: 24px 30px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cf-popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: #000000 !important;
}

.cf-popup-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: #000000 !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 5px !important;
    cursor: pointer!important;
    font-size: 20px!important;
    display: flex!important;
    align-items: center!important;
    justify-content: center!important;
    transition: all 0.3s ease!important;
    line-height: 1 !important;
    padding: 0px !important;
    position: relative !important;
}
.cf-popup-close span {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-43%, -50%) !important;
}

.cf-popup-close:hover {
    background: rgba(255, 255, 255, 0.3) !important; 
}

.cf-popup-body {
    background: transparent;
    padding: 30px;
}

/* Form Elements */
.cf-form-group {
    margin-bottom: 15px;
}

.cf-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cf-form-input {
    width: 100%;
    padding: 14px 18px !important; 
    border-radius: 5px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #f8f9fa;
}

.cf-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.cf-form-input::placeholder {
    color: #999999;
}

/* Amount Display */
.cf-amount-display {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 20px;
}

.cf-amount-label {
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 1px; 
}

.cf-amount-value {
    font-size: 36px;
    font-weight: 700!important;
    color: #000000 !important;
    margin: 0;
    line-height: normal;
}

/* Pay Button */
.cf-pay-btn {
    width: 100% !important;
    background: linear-gradient(135deg, #cbfc02 0%, #cbfc0294 100%) !important;
    color: #000000 !important;
    border: none !important;
    padding: 16px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;  
    letter-spacing: 1px !important;
    position: relative !important;
    overflow: hidden !important;
    text-transform: capitalize !important;
    font-family: syne, Sans-serif !important;
}

 
 

.cf-pay-btn:hover {
    transform: translateY(-2px); 
}

.cf-pay-btn:active {
    transform: translateY(0);
}

.cf-pay-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading Spinner */
.cf-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
    vertical-align: middle;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Message Box */
.cf-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: none;
}

.cf-message.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cf-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.cf-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

table.widefat.striped {
    width: 100vw;
    overflow: auto;
}

/* Responsive */
@media (max-width: 480px) {
    .cf-popup-container {
        width: 95%;
        margin: 20px;
    }

    .cf-popup-header {
        padding: 20px;
    }

    .cf-popup-header h3 {
        font-size: 20px;
    }

    .cf-popup-body {
        padding: 20px;
    }

    .cf-amount-value {
        font-size: 28px;
    }

    .cf-register-btn {
        padding: 14px 28px;
        font-size: 14px;
    }
}

/* Close on overlay click */
.cf-popup-overlay.active {
    cursor: pointer;
}

.cf-popup-container {
    cursor: default;
}

