﻿/* General Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9); /* Dark transparent background */
    z-index: 10;
    display: none; /* Hidden by default */
    touch-action: none; /* Prevent touch scrolling */
}

/* Popup Container */
.payment-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px; /* Width for the popup */
    background: #0a3049;
    color: white;
    padding: 30px; /* Padding for spacing */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 11;
    display: none; /* Hidden by default */
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 26px;
    color: white;
    cursor: pointer;
}

/* Wallet Balance */
.wallet-balance {
    font-size: 13px;
    color: white;
    background-color: #0a3049;
    padding: 5px 10px;
    border: 1px solid #fff;
    border-radius: 15px;
    display: inline-block;
    position: absolute;
    right: 40px;
    top: 10px;
    z-index: 1;
}

/* Popup Header with Image and Title */
.popup-header-section {
    display: flex;
    align-items: center;
    gap: 15px; /* Gap between avatar and title */
}

.popup-avatar {
    border-radius: 50%;
    width: 60px; /* Avatar size */
    height: 60px;
}

.payment-popup-uname {
    font-size: 2.3rem;
    color: #00ffea;
}

/* Title and Benefits */
.popup-title {
    margin-top: 10px;
    color: #fff;
    font-size: 2.2rem;
}

.popup-title-success {
    margin-top: 10px;
    color: #00ffea;
    font-size: 2.2rem;
}

.popup-benefits-list {
    list-style: none;
    padding: 0;
}

    .popup-benefits-list li {
        margin: 12px 0; /* Spacing between list items */
        font-size: 1.6rem; /* Larger font for benefits */
        display: flex;
        align-items: center;
    }

    .popup-benefits-list i {
        margin-right: 12px; /* Spacing between icon and text */
        color: #ff69b4; /* Icon color */
    }

    .popup-benefits-list strong {
        color: #ff69b4; /* Highlight color for benefits */
    }

/* Total to Pay */
.total-to-pay {
    text-align: center;
    font-size: 1.8rem; /* Larger font size */
    /*color: #ff69b4;*/ /* Highlight color */
    margin: 20px 0;
    font-weight: bold;
}

/* Payment Buttons */
.popup-payment-options {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0; /* Space around buttons */
}

.popup-payment-btn {
    background-color: #e0548d;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-size: 1.6rem; /* Button font size */
    cursor: pointer;
    min-width:50%;
    transition: background-color 0.3s ease;
}

    .popup-payment-btn:hover {
        background-color: #ff4da6; /* Darker pink on hover */
    }

/* E-Wallet Button Specific */
.e-wallet-btn {
    background-color: #00ceff; /* Blue for e-wallet */
}

    .e-wallet-btn:hover {
        background-color: #00b5e6;
    }

/* Card Button Specific */
.card-btn {
    background-color: #df3e7f; /* Pink for card */
}

    .card-btn:hover {
        background-color: #e0558c;
    }

/* Subscribe Button */
.popup-subscribe-section {
    text-align: center;
    margin: 25px 0; /* Space around button */
}

.popup-subscribe-btn {
    background-color: #e0548d;
    color: white;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    font-size: 1.8rem; /* Button font size */
    cursor: pointer;
}

    .popup-subscribe-btn:hover {
        background-color: #ff4da6;
    }

.popup-note {
    font-size: 14px;
    color: #b3b3b3;
    text-align: center;
}

/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .payment-popup {
        width: 90%; /* Adjust width for tablets */
        padding: 20px; /* Adjust padding for smaller screens */
    }

    .wallet-balance {
        font-size: 14px;
        /*left: 5px;*/
        top: 5px;
    }

    .total-to-pay {
        font-size: 1.6rem; /* Adjust font size for tablets */
    }

    .popup-payment-btn {
        /*font-size: 1.2rem;*/
        padding: 8px 15px;
    }

    .popup-payment-options {
        flex-wrap: wrap; /* Stack buttons if needed */
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .payment-popup {
        width: 95%; /* Full width for small devices */
        padding: 15px; /* Adjust padding */
    }

    .wallet-balance {
        font-size: 12px;
        padding: 3px 8px; /* Smaller balance display */
    }

    .total-to-pay {
        /*font-size: 1.4rem;*/ /* Adjust font size for mobile */
    }

    .popup-payment-btn {
        /*font-size: 1rem;*/
        padding: 8px 12px;
    }

    .popup-payment-options {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
    }
}
