/*--------ModalWindow-------------------------------------------------*/
.ModalWindowBG,
.ModalWindowWrapper {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
}


.ModalWindowBG {
    background-color: var(--color4);
    opacity: 0.6 !important;
}

.ModalWindowWrapper {
    display: none;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
}

.ModalWindow {
    position: relative;
    z-index: 2100;

}

.ScrollDisable {
    overflow-y: hidden;
    border-right: solid 14px var(--color4);
    box-sizing: border-box;
    position: absolute;
}

.ModalWindowActive {
    display: flex;
}


.BgOpen {
    animation-name: BgOpen;
    animation-duration: 200ms;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0s;
}


.WindowOpen {
    animation-name: WindowOpen;
    animation-duration: 300ms;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    animation-delay: 0s;

}



@keyframes BgOpen {
    0% {
        display: block;
        opacity: 0;
        visibility: hidden;
    }

    100% {
        display: block;
        opacity: 1;
        visibility: visible;
    }
}

@keyframes WindowOpen {
    0% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}



.CloseButton {
    width: 24px;
    height: 24px;
    position: absolute;
    z-index: 2000;
    top: 18px;
    right: 18px;
    overflow: hidden;
    cursor: pointer;
}

.cancel-icons {
    fill: var(--color6);
    width: 24px;
    height: 24px;
}

.cancel-icons:hover {
    fill: var(--accent2); 
}


/*--------- Map address ------------------------------*/
.MapWrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media screen and (min-width:769px) {
    .MapWrapper iframe {
        height: 400px;
    }

}

@media screen and (max-width:768px) {
    .MapWrapper iframe {
        height: 84vh;
    }

}

/*----------- DESCTOP --------------------------------*/
@media screen and (min-width:769px) {
    .ModalWindow {
        background: var(--color1);
        color: var(--textLight);
        border: solid 1px var(--color2);
        border-radius: 4px;
        width: 600px;
        padding: 32px;

    }

    /*--------- CallOrder ----------------------------*/
    /* .ModalWindow1 .ModalWindow {
        border-radius: 0px;
        padding: 0;
    } */

    /*--------- MapScript ----------------------------*/
    /* .ModalWindow2 .ModalWindow {
        border-radius: 2px;
        max-width: var(--contentWidth);
        width: 68vw;
        height: 48vh;
        padding: 8px;

    }

    .ModalWindow2 .ModalWindow .CloseButton {
        top: -40px;
        right: 0px;
    } */

    /*--------- Search -------------------------------*/
    .ModalWindow2 .ModalWindow {
        border-radius: 0px;
        max-width: var(--contentWidth);
        height: auto;
        padding: 0;
        background: none;
        border: none;
    }

    .ModalWindow2 .ModalWindow .CloseButton {
        top: -40px;
        right: 0px;
    }




    /*--------- SiteMap -------------------------------*/
    .ModalWindow4 .ModalWindow {
        border-radius: 0px;
        width: 100%;
        height: 100%;
        padding: 0px;
        border: none;
        background: var(--gradient1);
        color: var(--textLight);
        overflow-y: scroll !important;
    }

    .ModalWindow4 .CloseButton {
        width: 6px;
        top: 24px;
        float: right;
        position: relative;
        overflow: visible;
    }


    /*--------- QR  -------------------------------*/
    .ModalWindow5 .ModalWindow,
    .ModalWindow6 .ModalWindow {
        border-radius: 2px;
        width: 24vw;
        min-width: 340px;
        height: auto;
        padding: 48px 24px 32px 24px;
        text-align: center;
        border: none;
        background: var(--color1);
        color: var(--textLight);

    }



}



/*----------- MOBILE ----------------------------------------------------*/
@media screen and (max-width:768px) {
    .ModalWindow {
        background: var(--color1);
        color: var(--textLight);
        width: 100%;
        height: 100%;
        box-sizing: border-box;
        padding: 32px;

    }

    .CloseButton {
        width: 8vw;
        height: 8vw;
        position: absolute;
        z-index: 2000;
        top: 6vw;
        right: 6vw;
    }

    .cancel-icons {
        fill: var(--color6);
        width: 8vw;
        height: 8vw;
    }


}