.modal__container{
    width: 100%;
    height: 100vh;
    position:fixed;
    top:0;
    z-index:10;
    background-color: rgba(238,238,238,0.8);
    display:none;

}

.modal__heading{
    display:flex;
    justify-content: space-between;
    border-bottom: 1px solid grey;
    padding-bottom: 0.8rem;
}

.modal__btn{
    width: 2rem;
    height: 2rem;
}

.modal__btn span{
    font-size: 1.5rem;
}

.modal__heading h3{
    margin: 0;
    font-size: 1.6rem;

}

.modal__content{
    padding:1rem;
    z-index:13;
    max-width: 700px;
    min-width: 600px;
    background-color:white;
    opacity:1;
    box-shadow: 2px 3px 15px -3px #000000;
    border-radius: 3px;
    position: absolute;
    top: 50%;
    left:50%;
    transform: translate(-50%, -50%);
}




.modal__hidden {
display: none;
}

.modal__center{
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__left{
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.modal__option{
    display: grid;
    grid-template-columns: 1fr 4fr 3fr;
}

.modal__option div{
    height: 100%;
}

.modal__option__img img{
    width: 50%;
    height: auto;
}

.modal__option__img img:hover{
    width: 65%;
    height:auto;
}

.modal__option__description{
    padding-left: 1rem;
}

.modal__option__price{
    color: #009de0;
}


.modal__footer{
    bottom: 0;
    padding-top: 0.8rem;
    border-top: 1px solid grey;
    display: flex;
    justify-content: space-between;
}

.modal__addsub{
    font-weight: 500;
    width: 160px;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.modal__addsub__counter{
    font-weight: 500;
    font-size: 18px;
}

.modal__btn__add{
    font-weight: 500;
    border-radius: 3px;
    color: #fff;
    background-color: #009de0;
    line-height: 40px;
    font-size: 18px;
    white-space: nowrap;
    width: 160px;
    border: 0;
    cursor: pointer;
}

.current__product{
    max-height: 50vh;
    overflow-y:scroll;
    padding-right: 10px;

}

.current__product::-webkit-scrollbar{
    width: 10px;
    background: #f6f5f5;
}

.modal__checkmark{
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    height: 27px;
    width: 27px;
    background-color: #ededee;
    border: 1px solid #bababb;
}

.modal__checkmark:after{
    left: 9px;
    top: 5px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.current__product::-webkit-scrollbar-thumb{
    width: 10px;
    height: auto;
    background: #999;
}


/* ANIMATION */
.animate{
    animation: animatezoom 0.5s;
}
@keyframes animatezoom{
    from{
        transform: scale(0);
    }
    to{
        transform:scale(1);
    }
    
}


.animate-close{
    animation: animate-close 0.3s;
}

@keyframes animate-close {
    from{
        transform: scale(1);
    }
    to{
        transform: scale(0);
        display: none;
    }
}

.modal__msg{
    position: absolute;
    right:0;
    z-index:20;
    min-width: 160px;
    height: 2rem;
    background-color: rgba(0, 157, 224,0.8);
    color:#fff;
    text-align: center;
    padding: 5px 0;

}

.flash__added{

    animation-name: flash;
    animation-duration: 2s;
    animation-timing-function: ease;
    animation-fill-mode: forwards;
}

@keyframes flash{

    25%{
        /*transform: translate(-50%,50%);*/
        transform: translatex(-30vw);
    }
    50%{
        /*transform: translate(-50%,50%);*/
        transform: translatex(-30vw);
        opacity:0.75;
    }
    100%{
        /*transform:translate(-50%,0);*/
        transform: translatex(0);
        opacity:0.5;

    }

}

.flash__test{
    position: relative;
    width: 0px;
    height: 0px;
    z-index: 30;
}

.flash__test::before{
    content: "";
    width: 8px;
    height: 8px;
    color: white;
    background-color: white;
    border: 8px solid #0e90d2;
    position: absolute;
    text-align: center;
    border-radius: 50%;
}

.flash__test_animate.flash__test{

    animation-name: flash-test;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(1, 0.44, 0.84, 0.165);

    animation-fill-mode: forwards;

}

.flash__test_animate.flash__test::before{
    animation-name: flash-test-before;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.165, 0.84, 0.44, 1);
    /*animation-timing-function: cubic-bezier(.45,1.26,1,.93);*/
    animation-fill-mode: forwards;
    animation-direction: alternate;
}


@keyframes flash-test {
    100%{
        transform: translateX(80vw);

    }
}

:root{
    --y-position :-75vh;
}

@keyframes flash-test-before {
    100% {
        transform: translateY(var(--y-position));

    }
}

.shake{
    animation-name: shakeCart;
    animation-duration: .4s;
    animation-timing-function: ease-in-out;
    animation-fill-mode: forwards;
}

@keyframes shakeCart {
    25% {
        transform: translateX(6px);
    }
    50% {
        transform: translateX(-4px);
    }
    75% {

        transform: translateX(2px);
    }
    100% {

        transform: translateX(0);
    }
}

/* MEDIA QUERY */
@media screen and (max-width: 767px){
    .modal__option__img {
        display:none;
    }
    .modal__checkmark{
        top:0;
        left:50%;
        transform: translate(-50%);
        height:22px;
        width:22px;
    }

    .checkbox--container .modal__checkmark:after{
        left: 7px;
        top: 2px;
    }

    .modal__option{
    grid-template-columns: 1fr 4fr 2fr;
    }

    .modal__option__description{
        padding:0;
    }

    .modal__content{
        min-width: 90%;
        max-width: 90%;
    }
}

@media screen and (max-width: 320px){
    .modal__content{
        min-width: 90%;
        max-width: 90%;
    }
}





