/* ===== 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(--wdtBodyBGColor);
    height: -webkit-fit-content; height: -moz-fit-content; height: fit-content;
    margin: auto; max-width: 80vw; padding: 10px; width: 900px;
    -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 {
    font-size: 0; height: 40px; width: 40px; border-radius: var(--wdtRadius_Zero); -webkit-transform: none; transform: none;
    display: flex; align-items: center; justify-content: center; opacity: 1; top: -20px; right: -20px; margin: 0px;
}

.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: 60%; height: 60%; background-color: currentColor; position: absolute; 
    -webkit-transform: scale(1); transform: scale(1); -webkit-transition: all 150ms ease-in-out; transition: all 150ms ease-in-out;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20.6,20.6h19.6v19.6H20.6V20.6z'/%3E%3Cpath d='M20.6,59.8h19.6v19.6H20.6V59.8z'/%3E%3Cpath d='M79.4,1H99v19.6H79.4V1z'/%3E%3Cpath d='M79.4,79.4H99V99H79.4V79.4z'/%3E%3Cpath d='M40.2,40.2h19.6v19.6H40.2V40.2z'/%3E%3Cpath d='M59.8,59.8h19.6v19.6H59.8V59.8z'/%3E%3Cpath d='M1,1h19.6v19.6H1V1z'/%3E%3Cpath d='M59.8,20.6h19.6v19.6H59.8V20.6z'/%3E%3Cpath d='M1,79.4h19.6V99H1V79.4z'/%3E%3C/svg%3E%0A");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M20.6,20.6h19.6v19.6H20.6V20.6z'/%3E%3Cpath d='M20.6,59.8h19.6v19.6H20.6V59.8z'/%3E%3Cpath d='M79.4,1H99v19.6H79.4V1z'/%3E%3Cpath d='M79.4,79.4H99V99H79.4V79.4z'/%3E%3Cpath d='M40.2,40.2h19.6v19.6H40.2V40.2z'/%3E%3Cpath d='M59.8,59.8h19.6v19.6H59.8V59.8z'/%3E%3Cpath d='M1,1h19.6v19.6H1V1z'/%3E%3Cpath d='M59.8,20.6h19.6v19.6H59.8V20.6z'/%3E%3Cpath d='M1,79.4h19.6V99H1V79.4z'/%3E%3C/svg%3E%0A");
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:after {
    -webkit-transform: rotate(45deg) scaleX(1); transform: rotate(45deg) scaleX(1); -webkit-transition: all 150ms ease-in-out; transition: all 150ms ease-in-out;
    display: none;
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover:before {
    -webkit-transform: scale(0.9); transform: scale(0.9);
}

.wdt-popup-box-holder .wdt-popup-box-content-holder .mfp-close:hover:after {
    -webkit-transform: scaleX(0.9); transform: scaleX(0.9);
}

.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(--wdtPrimaryColor); color: var(--wdtAccentTxtColor);
}

.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; }