/* ===== Pop-up Base ===== */

.wdt-popup-box-holder.mfp-bg,
.wdt-popup-box-holder.mfp-wrap { height: auto; bottom: 0; left: 0; right: 0; top: 0; width: auto; cursor: default; }

.wdt-popup-box-holder > .mfp-container { padding: 50px 20px; }

.wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder {
    background-color: var(--wdt-elementor-color-white);
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    margin: auto;
    max-width: 1300px;
    padding:clamp(1.25rem, 0.9713rem + 1.2739vw, 2.5rem); /* Min-20 & Max-40 */
    width: 100%;
    -webkit-border-radius: var(--wdtRadius_Zero);
    border-radius: var(--wdtRadius_Zero);
    -webkit-transition: var(--wdt-elementor-base-transition);
    transition: var(--wdt-elementor-base-transition);
}

.wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder .wdt-popup-box-content-inner {
    max-height: calc(80vh - 2*1.5em); overflow-y: auto;
}

/* ===== Pop-Up - Close button ===== */

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close {
    margin: 0;
    font-size: 0;
    top: 10px;
    right: 10px;
    height: 50px;
    width: 50px;
    line-height: 40px;
    border-radius: var(--wdtRadius_Full);
    -webkit-border-radius: var(--wdtRadius_Full);
    -webkit-transform: none;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    position:absolute;
    top:-30px;
    right:-30px;
    font-family:var(--wdtFontTypo_Alt);
    font-weight:300;
    overflow:hidden;
}
.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover{
    font-size:45px;
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:before,
.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:after {
    content: "" !important;
    width: 20px;
    height: 2px;
    background-image: linear-gradient(45deg, white 50%, transparent,white 50%);
    position: absolute;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
    opacity:1;
    -webkit-transition: all 300ms ease-in-out, opacity 0.4s linear;
    transition: all 300ms ease-in-out, opacity 0.4s linear;
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:after {
    -webkit-transform: rotate(45deg); transform: rotate(45deg); 
    -webkit-transition: all 300ms ease-in-out; transition: all 300ms ease-in-out;
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover:before {
    background-image: linear-gradient(45deg, white , transparent,transparent ,white );
    width:70px;
    opacity:0;
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover:after {
    background-image: linear-gradient(45deg, white , transparent,transparent ,white );
    width:70px;
    opacity:0;
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close {
    background-color: var(--wdtPrimaryColor); color: var(--wdtAccentTxtColor);
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover {
    background-color: var(--wdtAccentTxtColor); color: var(--wdtHeadAltColor); box-shadow: 0 0 5px 1px rgba(var(--wdtSecondaryColorRgb),0.4);
}

.wdt-popup-box-holder .mfp-close:empty { display: none; }


/* FadeIn Transform Effect */

.wdt-popup-box-holder .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder {
    opacity: 0;
    -webkit-transform: translateY(-20px) perspective(600px) rotateX(10deg); 
    transform: translateY(-20px) perspective(600px) rotateX(10deg);
    -webkit-transition: all 0.2s ease-in-out; transition: all 0.2s ease-in-out;
}

.wdt-popup-box-holder.mfp-ready .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder {
    opacity: 1;
    -webkit-transform: translateY(0) perspective(600px) rotateX(0);
    transform: translateY(0) perspective(600px) rotateX(0);
}

/* Pop-up None Style */
.wdt-popup-box-trigger-holder.wdt-popup-disable { display: none; }


/* ===== Scrollbar CSS ===== */

/* Firefox */
.wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .wdt-popup-box-content-holder .wdt-popup-box-content-inner {
    -webkit-scrollbar-width: none; scrollbar-width: none; scrollbar-color: var(--wdtPrimaryColor) transparent;
}

/* Chrome, Edge, and Safari */
.wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .wdt-popup-box-content-holder .wdt-popup-box-content-inner::-webkit-scrollbar {
    width: 0px; display: none;
}

.wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .wdt-popup-box-content-holder .wdt-popup-box-content-inner::-webkit-scrollbar-track { background: transparent; }

.wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .wdt-popup-box-content-holder .wdt-popup-box-content-inner::-webkit-scrollbar-thumb { background-color: var(--wdtPrimaryColor); border-radius: 0px; }
@media screen and (max-width:1540px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{
        width:1100px
    }
}
@media screen and (max-width:1280px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{
        width:900px
    }
}
@media screen and (max-width:1024px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{
        width:700px
    }
}
@media screen and (max-width:767px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{
        width:400px
    }
}
@media screen and (max-width:479px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{
        width:300px
    }
}
