/* ===== 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: transparent;
    height: -webkit-fit-content; height: -moz-fit-content; height: fit-content;
    margin: auto; max-width: 1300px; padding: 40px 20px; width: 100%;
    -webkit-border-radius: var(--wdtRadius_2X); border-radius: var(--wdtRadius_2X);
    -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:20px; right: 20px; height: 40px; width: 40px; line-height: 40px;
    border-radius: var(--wdtRadius_1X); -webkit-border-radius: var(--wdtRadius_1X);
    -webkit-transform: none; transform: none; display: flex; align-items: center; justify-content: center; opacity: 1;
}

.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: 24px; height: 2px;
    background-color: currentColor; position: absolute; -webkit-transform: rotate(-45deg); transform: rotate(-45deg);
    top: 20px; left: 8px; -webkit-transition: all 300ms ease-in-out; transition: all 300ms ease-in-out;
}

.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 {
    -webkit-transform: rotate(-135deg); transform: rotate(-135deg);
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover:after {
    -webkit-transform: rotate(135deg); transform: rotate(135deg);
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close {
    background-image: linear-gradient(180deg, var(--wdtPrimaryColor), var(--wdtSecondaryColor), var(--wdtPrimaryColor));
    background-size: 100% 200%;
    background-repeat: no-repeat;
    background-position: top;
    color:var(--wdtHeadAltColor);
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover {
    background-position: bottom; color:var(--wdtHeadAltColor);
}

.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: scale(0.8); 
    transform: scale(0.8); */
    -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: scale(1);
    transform: scale(1); */
}

/*-- Neon Effect --*/

.wdt-popup-box-holder.mfp-ready .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{
    background-image: linear-gradient(180deg, var(--wdtPrimaryColor), var(--wdtSecondaryColor));
    padding: 3px 3px 5px;
    border-radius:var(--wdtRadius_2X);
    position:relative;
}
.wdt-popup-box-holder.mfp-ready .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder .wdt-popup-box-content-inner{
    border-radius:var(--wdtRadius_2X);
}
.wdt-popup-box-holder.mfp-ready .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder:before{
    content:""; height:calc(100% - 4px); width:calc(100% - 4px); border:1px solid var(--wdtBorderColor); position:absolute; top:-1px; left:-1px; right:-1px; 
    bottom:-1px; margin:auto; border-radius:20px; z-index:3; pointer-events: none;
}
.wdt-popup-box-holder.mfp-ready .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder:after{
    content:""; height:calc(100% + 6px); width:calc(100% + 6px);
	background-image: linear-gradient(180deg, var(--wdtPrimaryColor), var(--wdtSecondaryColor));
	position:absolute; top:-2px; left:-5px; right:-5px; bottom:-2px; margin:auto; border-radius:20px; z-index:-2; filter: blur(5px); pointer-events: none
}

/* 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:1280px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{max-width:1100px;}
}
@media screen and (max-width:1024px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{max-width:850px;}
}
@media screen and (max-width:767px){
    .wdt-popup-box-holder.mfp-wrap .mfp-container.mfp-inline-holder .mfp-content .wdt-popup-box-content-holder{max-width:580px;}
}
