.popup{
	display: none;
    z-index: 1001;
    position: fixed;
    top: 300px;
    left: calc((100% - 540px) / 2);
    width: 500px;
    margin: 0 auto;
}


.popup-checkout{
    display: none;
    z-index: 1001;
    position: fixed;
    top: 300px;
    left: calc((100% - 540px) / 2);
    width: 500px;
    margin: 0 auto;
}

.popup-checkout.open{
    display: block;
    background: white;
    border-radius: 8px;
    width: 300px;
    left: calc((100% - 300px) / 2);
    top: 200px;
}

.popup-checkout.open .sad-image img {
    width: 66%;
}


.popup-checkout.open .btn-remake {
    display: block;
    text-align: center;
    margin: 0 auto 30px;
    padding: 12px;
    width: 180px;
}


.popup-checkout.open .sad-text {
    display: block;
    text-align: center;
    margin: 0 0 30px;
    font-size: 16px;
    margin: 0 20px 30px;
}

.overlay{
	background: rgb(127 195 49 / 96%);
    width: 100%;
    height: 100%;
    z-index: 1000;
    position: fixed;
    left: 0;
    top: 0;
    display: none;
}

.popup-overlay{
    background: rgb(31 31 31 / 60%);
    width: 100%;
    height: 100%;
    z-index: 1000;
    position: fixed;
    left: 0;
    top: 0;
    
    visibility: hidden; /* Hidden by default */
    opacity: 0; /* Invisible initially */
    transition: all .5s ease-in-out;
}

.popup-overlay.open{
   
    opacity: 1;
    visibility: visible;
    transition: all .5s ease-in-out;
}

.mci-cart-content{
    padding:5px 0 25px;
}

.mci-title{
    font-size: 24px;
    font-weight: 600;
    margin: 20px;
    color: #303030;
}

.mci-image{
    width:25%;
}

.mpq-flex{
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.mci-image img{
    width: 100%;
    border-radius: 12px;
}

.mci-product{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin:20px;
}

.mci-content{
    width: 67%;
}

.ccl-title{
    color: #aaa;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
    margin-bottom: 15px;
}

.mci-checkout{
    display: flex;
    column-gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.mci-checkout .pp-buy-link{
    flex: 0 0 auto;
    font-size: 16px;
    padding: 12px;
    width: auto;
    margin: 20px 0 0px;
    text-align: center;
    justify-content: center;
    font-weight: 500;
}

.mci-checkout .pp-buy-link.pp-buy-link-more{
        background: #f0f0f0;
    color: #404040;
    font-weight: 300;
}

.pp-checkout{
    margin-bottom: 20px !important;
}

.mpq-flex .pps-4{
    flex: 0 0 130px;
}

.mpq-flex .pps-5{
    width: 130px;
    flex: 0 0 auto;
}

.mci-name{
    font-size: 18px;
    line-height: 20px;
}

.mpq-flex .the-price{
    height: 50px;
}

.mpq-flex .the-price .real-price {
    line-height: 16px;
    margin-top: 0;
    padding-top: 12px;
    color: #404040;
}

.pp-total{
    margin-left: 50px;
}


.mpq-flex .pp-set-left{
    flex-direction: column;
    align-items: flex-start;
}

.pp-total .real-price{
        height: 50px;
    line-height: 46px;
    font-weight: bold;
    font-size: 30px;
}

.pp-total .real-price span{
    font-size: 14px;
    text-transform: uppercase;
    margin-left: 3px;
}














.js-close-modal{
width: 40px;
    height: 40px;
    position: absolute;
    right:  30px;
    top: 30px;
    transition: all. 3s ease-in-out;
}

.js-close-modal:hover{
    transform: scale(1.1);
}

.js-close-modal img{
    width: 100%;
}


.modal-cart{
    display: none;
       width: 800px;
    height: 400px;
    font-family: "Geologica";
    position: fixed;
    top: calc((100% - 440px) / 2);
    left: calc((100% - 770px) / 2);
    font-family: "Geologica";
    
    z-index: 1000;
}

.modal-cart-inner{
    background: white;
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 15px;
}

.modal-cart.open{
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup.open, .overlay.open{
    display: block;
}

.overlay:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    background: url(../img/paws.png);
    width: 100%;
    height: 100%;
    background-size: 14%;
    opacity: 0.05;
}


.attempts{
    text-align: center;
    display: block;
    margin: 15px 75px;
    color:#e73142;
    display: none;
}


.popup-inner{
    width: 500px;
    height: auto;
    background: white;
    border-radius: 4px;
    z-index: 1001;
    position: relative;
    padding: 20px 20px 65px;
   
}

.popup-title {
    text-align: center;
    font-weight: 600;
    font-size: 26px;
    font-family: 'Geologica';
    margin: 15px 0;
}

.login-input{
	width: 90%;
    height: 66px;
    background: #f1f1f1;
    border: none;
    border-radius: 5px;
    outline: none;
    padding: 0 15px;
    font-family: "Geologica";
    font-size: 30px;
    margin: 0 auto;
    display: block;
    text-align: center;
    font-weight: 300;
    margin-bottom: 25px;
}

.login-input.error{
    background: #fccaca;
}

.popup-label {
    font-size: 18px;
    margin: 0 auto;
    display: block;
    margin-bottom: 10px;
    width: 90%;
    font-weight: 300;
}

.popup-content{
	margin-top: 44px;
}


.btn-login:before{
    content: '';
    width: 34px;
    height: 34px;
    background: url(../img/sms.svg);
    background-size: 100%;
    position: absolute;
    left: 22px;
    top: 15px;
}

.btn-login{
    padding: 12px 20px;
    background: var(--btn-color);
    border-radius: 3px;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-family: 'Nunito';
    position: relative;
    margin-left: 0;
    display: block;
    width: calc(90% - 40px);
    height: 40px;
    line-height: 40px;
    transition: background .3s ease-in-out;
    text-align: right;
    margin: 0 auto;
}

.btn-sms{
    padding: 12px 20px;
    text-align: center;
    width: 410px;
    display: block;
    margin: 0 auto;
    height: 40px;
    line-height: 40px;
    font-size: 24px;
    border-radius: 6px;
}

.btn-login:hover{
	background:#4caf50;
}

.popup-loader{
	display: none;
        text-align: center;
        height: 200px;

}

.popup-loader img{
        transform: scale(3);
    width: 160px;
    margin-top: 20px;
}

.enter-code{
    margin-top: 45px;
    display: none;
}

.timeout-code{
    display: none;
}

.sad-image{
font-size: 100px;
    color: #efefef;
    text-align: center;
    transform: none;
    margin-left: 8px;
    width: 150px;
    margin: 40px auto;
}

.sad-image img{
    width: 100%;
}

.sad-text{
    display: block;
    text-align: center;
    margin: 0 0 30px;
}

.btn-remake{
        display: block;
    text-align: center;
    margin: 0 auto;
    padding: 12px;
    width: 210px;
}

.timelimit{
    font-size: 13px;
    color: #777;
    width: 90%;
    display: block;
    margin: 15px auto 0;
    text-align: center;
}

.timelimit a{
    color: var(--btn-color);
    text-decoration: none;
    border-bottom: 1px solid var(--btn-color);
    font-weight: 600;
    font-family: 'Nunito';
}

.form-error{
    display: none;
    text-align: center;
    margin-top: 15px;
    color: #e73142;
    font-weight: 400;
}

.form-error.long{
        display: block;
    font-size: 13px;
    padding: 0 100px;
}


@media(max-width: 600px){
    .popup{
        display: none;
        z-index: 9999;
        position: fixed;
        top: 200px !important;
        left: calc((100% - 340px) / 2) !important;
        width: 300px !important;
        margin: 0 auto;
    }

    .popup-inner{
        width: 100%;
    }

    .popup-inner .btn-login{
        font-size: 18px;
        text-align: center;
    }

    .popup-inner .btn-login:before{
        display: none;
    }

    .popup-inner .login-input{
        font-size: 24px;
    }

    .popup-inner .btn-sms{
        width: 78%;
    }

    .popup-inner .attempts{
        margin: 15px 40px;
    }
}