/* Overlay */
.easyel-popup-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    display: none;
}

.easyel-popup-box-overlay-show {
    display: block;
}

.easyel-popup-box {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 640px;
    height: auto;
    max-width: 100vw;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
    z-index: 9999;
    padding: 30px;
    display: none;
    overflow: hidden;
    box-sizing: border-box;
}

/* Close Button */
.easyel-popup-box-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #fff;
    color: #000;
    border: none;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    padding: 0;
    z-index: 1;
    
}

.easyel-popup-box-close:hover,
.easyel-popup-box-close:focus {
    background: transparent;
    color: #000;
    outline: none;
}

.easyel-popup-box-content {
    text-align: center;
    height: 100%;
    min-height: 0;
}

.easyel-popup-box-show {
    display: block;
    animation: popupFadeIn 0.5s both;
}

.easyel-popup-box-hide {
    animation: popupFadeOut 0.5s forwards;
}


@keyframes popupFadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes popupFadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}