body.modal-open {
    overflow: hidden;
}

@keyframes pdpaFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pdpaFadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}

#popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
}

/* ไม่แสดง scroll bar */
#popup::-webkit-scrollbar {
    display: none;
    /* สำหรับ Chrome, Safari, และ Opera */
}

#popup {
    -ms-overflow-style: none;
    /* สำหรับ Internet Explorer และ Edge */
    scrollbar-width: none;
    /* สำหรับ Firefox */
}

#popup.show {
    display: block;
}

#popup.hide {
    animation: pdpaFadeOut 0.25s forwards;
}

#popup_content {
    position: relative;
    margin-block: 2%;
    left: 25%;
    top: 0;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 7px;
    border: 1px solid #ccc;
    width: 55%;
    min-height: 1500px;
    opacity: 0;
    animation: pdpaFadeIn 0.25s forwards;

    .popup_head {
        border-bottom: 1px solid #dee2e6;
        padding: 15px;

        .pdpa_title {
            font-size: 25px;
        }
    }


    .popup_content {
        padding: 10px 20px;
        font-size: 18px;
    }

    .popup_bottom {
        display: flex;
        justify-content: end;
        padding: 15px;
        border-top: 1px solid #dee2e6;
    }

    .pdpa_btn {
        color: #fff;
        font-size: 20px;
        background-color: #222b78;
        transition-duration: 0.3s;
        padding: 5px 20px;
    }

    .pdpa_btn:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 1400px) {
    #popup_content {
        .popup_content {
            br{
                display: none;
            }
        }
    }
}

@media (max-width: 1024px) {
    #popup_content {
        width: 90% !important;
        left: 5%;
        margin-block: 5% !important;
        .popup_head {
            .pdpa_title {
                font-size: 22px;
            }
        }
    
        .popup_content {
            font-size: 16px;
            br{
                display: none;
            }
        }
        .pdpa_btn {
            font-size: 18px;
            padding: 5px 15px;
        }
    }
}