/* ==========================================
   Base
========================================== */

.vip-popup-hidden {
    display: none;
}

.vip-popup {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.vip-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

/* ==========================================
   Common Popup Container
========================================== */

.vip-popup-container {
    position: absolute;
    background: #fff;
    box-sizing: border-box;
    overflow-y: auto;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   Modal
========================================== */

.vip-popup-modal {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 95vw;
}

/* ==========================================
   Slide
========================================== */

/* .vip-popup-slide {
    width: 450px;
    max-width: calc(100vw - 48px);
    animation: vipSlideIn 0.3s ease;
} */

/* ==========================================
   Positions
========================================== */

.vip-position-top-left {
    top: 24px;
    left: 24px;
    transform: none;
    right: auto;
}

.vip-position-top-center {
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.vip-position-top-right {
    top: 24px;
    right: 24px;
    left: auto;
    transform: none;
}

.vip-position-middle-left {
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
}

.vip-position-middle-right {
    top: 50%;
    right: 24px;
    left: auto;
    transform: translateY(-50%);
}

.vip-position-bottom-left {
    bottom: 24px;
    left: 24px;
    top: auto;
    transform: none;
}

.vip-position-bottom-center {
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
}

.vip-position-bottom-right {
    bottom: 24px;
    right: 24px;
    left: auto;
    top: auto;
    transform: none;
}

/* ==========================================
   Close Button
========================================== */

.vip-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: 0;
    padding: 6px;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
}

.vip-popup-close:hover {
    background: #f2f2f2 !important;
    color: #000 !important;
}


.vip-popup-close-text {
    display: inline-block;
    margin-top: 16px;
    padding: 0;
    border: 0;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

/* ==========================================
   Content
========================================== */

.vip-popup-content {
    width: 100%;
}

.vip-popup-content > *:first-child {
    margin-top: 0;
}

.vip-popup-content > *:last-child {
    margin-bottom: 0;
}

/* ==========================================
   Animation
========================================== */

/* @keyframes vipSlideIn {

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

    to {
        opacity: 1;
    }
} */



.vip-popup-slide-left{
    animation:
        vipSlideInLeft .3s ease;
}

.vip-popup-slide-right {
    animation:
        vipSlideInRight .3s ease;
}

@keyframes vipSlideInLeft {

    from {
        margin-left: -150px;
        opacity: 0;
    }

    to {
        margin-left: 0;
        opacity: 1;
    }
}
@keyframes vipSlideInRight {

    from {
        margin-right: -150px;
        opacity: 0;
    }

    to {
        margin-right: 0;
        opacity: 1;
    }
}


.vip-popup-slide-left,
.vip-popup-slide-right {
    position: absolute;
    max-width: calc(100vw - 48px);
}

.vip-slide-left-top {
    top: 24px;
    left: 24px;
}

.vip-slide-left-middle {
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
}

.vip-slide-left-bottom {
    left: 24px;
    bottom: 24px;
}

.vip-slide-right-top {
    top: 24px;
    right: 24px;
}

.vip-slide-right-middle {
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
}

.vip-slide-right-bottom {
    right: 24px;
    bottom: 24px;
}

.vip-popup-slide-left,
.vip-popup-slide-right {
    position: absolute;
    box-sizing: border-box;
    max-width: calc(100vw - 48px);
    z-index: 2;
}

/* hide popup */

body.vip-popup-open,
html.vip-popup-open {
    overflow: hidden;
}

@media (max-width: 767px) {

    .vip-popup-modal,
    .vip-popup-slide-left,
    .vip-popup-slide-right {

        
        padding: 12px;

        left: 16px !important;
        right: 16px !important;

        width: auto !important;

        max-width: none !important;

        max-height: 85vh;

        overflow-y: auto;
    }

    /*
     * TOP
     */
    .vip-position-top-left,
    .vip-position-top-center,
    .vip-position-top-right,
    .vip-slide-left-top,
    .vip-slide-right-top {

        top: 16px !important;
        bottom: auto !important;

        transform: none !important;
    }

    /*
     * CENTER
     */
    .vip-position-center,
    .vip-position-middle-left,
    .vip-position-middle-right,
    .vip-slide-left-middle,
    .vip-slide-right-middle {

        top: 50% !important;
        bottom: auto !important;

        transform: translateY(-50%) !important;
    }

    /*
     * BOTTOM
     */
    .vip-position-bottom-left,
    .vip-position-bottom-center,
    .vip-position-bottom-right,
    .vip-slide-left-bottom,
    .vip-slide-right-bottom {

        top: auto !important;
        bottom: 16px !important;

        transform: none !important;
    }
}