/* ---------------------------------------------------- */
/* | Download Popup Styles | */
/* ---------------------------------------------------- */

/* Overlay */
.download-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* លាក់តាមលំនាំដើម */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* ត្រូវតែខ្ពស់ជាងធាតុផ្សេងទៀត */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.download-popup-overlay.is-active {
    display: flex;
    opacity: 1;
}

/* Popup Content Container */
.download-popup-content {
    background: #ffffff;
    border-radius: 15px;
    position: relative;
    max-width: 90%; /* Responsive Max Width Mobile */
    width: 450px; /* Base Width */
    padding: 30px 20px 20px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.download-popup-overlay.is-active .download-popup-content {
    transform: scale(1);
}

/* Close Button */
.popup-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 30px;
    color: #333;
    cursor: pointer;
}

/* Popup Header */
.popup-header {
    text-align: center;
    margin-bottom: 20px;
}

.popup-title {
    color: #002d6d;
    font-size: 28px;
    font-weight: 700;
}

/* Countdown Area */
.countdown-area {
    text-align: center;
    margin: 20px 0;
}

.countdown-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
}

.countdown-timer {
    font-size: 5rem; /* ទំហំធំសម្រាប់រាប់ថយក្រោយ */
    font-weight: 900;
    color: #0282fe; /* ពណ៌ខៀវដូចប៊ូតុង Download */
    line-height: 1;
}

.download-instruction {
    text-align: center;
    font-size: 16px;
    color: #002d6d;
    margin-top: 15px;
}

.download-instruction .js-countdown-remaining {
    font-weight: 700;
    color: #002d6d;
}

/* Advertisement */
.popup-ad-banner {
    margin-top: 30px;
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.popup-ad-banner .ad-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    display: block;
}

.popup-ad-banner .ad-text {
    font-size: 12px;
    color: #aaa;
}

/* Responsive for Tablet/PC */
@media (min-width: 768px) {
    .download-popup-content {
        width: 600px;
        padding: 40px 30px 30px 30px;
    }

    .popup-title {
        font-size: 32px;
    }
}


