.comebacker {
    width: 970px;
    height: 535px;
    font-family: 'Rubik', sans-serif;
    position: fixed;
    z-index: 200;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}
.comebacker.active {
    display: block;
}
.cb-top {
    background: linear-gradient(180deg, #00689F 0%, #00486F 100%);
    height: 183px;
    position: relative;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}
.cb-top p {
    position: relative;
    left: 50%;
    top: 30%;
    width: 45%;
    font-weight: bold;
    font-size: 35px;
    line-height: 45px;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}
.cb-top img {
    position: absolute;
    top: 17px;
    right: 17px;
    cursor: pointer;
}
.cb-bottom {
    height: 352px;
    display: flex;
    flex-direction: row;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: #ffffff;
    padding-bottom: 50px;
}
.cb-bottom p {
    font-weight: 500;
    font-size: 30px;
    line-height: 28px;
    color: #464646;
}
.popup-image {
    position: relative;
    width: 50%;
}
.popup-image img {
    position: absolute;
    left: 70px;
    bottom: 00;
    max-width: 386px;
}
.popup-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-top: 28px;
}
.popup-details > * {
    margin: 10px 0;
}
.popup-details p {
    font-weight: 500;
    font-size: 30px;
    line-height: 28px;
    color: #464646;
}
.comebacker-timer {
    display: flex;
    justify-content: space-between;
    width: 308px;
}
.popup-details .prices {
    display: flex;
    align-items: center;
    margin-bottom: 43px;
    margin-top: 18px;
}
.popup-details .price {
    width: auto;
}  
.popup-details .old-price {
    margin-right: 27px;
}
.popup-details .old-price p {
    color: #D2D2D2;
}
.popup-details .old-price .price-digits {
    position: relative;
}
.popup-details .old-price .price-digits::after {
    content: '';
    display: block;
    position: absolute;
    width: 100%;
    height: 1px;
    background: #717171;
    transform: rotate(-20deg);
    top: 50%;
}
.popup-details .new-price p {
    color: #F32828;
}
.popup-details .price-title {
    font-weight: bold;
    font-size: 11px;
    line-height: 13px;
    letter-spacing: 0.04em;
    text-align: left;
}
.popup-details .price-digits {
    font-weight: bold;
    font-size: 40px;
    line-height: 47px;
    letter-spacing: 0.04em;
    text-align: left;
}
.comebacker-order-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 370px;
    height: 60px;
    background: #F32828;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    font-size: 20px;
    line-height: 45px;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
}
  
.comebacker-btn::after {
    content: '';
    position: absolute;
    display: block;
    height: 70px;
    width: 300px;
    background: transparent;
    border: 1px solid #FFEDEC;
    border-radius: 50px;
    top: -9px;
    left: -11px; 
}
  
.comebacker-btn:hover {
    background: #DC4F44; 
}
  
.comebacker-btn:active {
    background: linear-gradient(180deg, #FE6E63 0%, #8F1208 100%); 
}

.comebacker-overlay {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position: fixed;
    z-index: 100;
    background: rgba(0, 0, 0, 0.6);
    display: none;
}

.comebacker-overlay.active {
    display: block;
}

@media (max-width: 1024px) {
    .comebacker {
        max-width: 708px;
        max-height: 467px;
    }
    .popup-image img {
        left: 0;
        max-width: 342px;
    }
    .comebacker-order-btn {
        width: 309px;
    }
    .popup-details p {
        font-size: 25px;
        line-height: 28px;
    }
}

@media (max-width: 767px) {
    .comebacker {
        max-width: 320px;
        height: 568px;
        top: 50%;
        transform: translate(-50%, -50%);
    }
    .comebacker-timer {
        width: 280px;
    }
    .cb-top p {
        left: 0;
        width: 100%;
        text-align: center;
        top: 15%;
        font-size: 35px;
        line-height: 45px;
    }
    .cb-bottom {
        flex-direction: column;
        padding-bottom: 25px;
    }
    .cb-bottom p {
        text-align: center;
        font-size: 20px;
        line-height: 28px;
    }
    .popup-details {
        align-items: center;
        margin-top: 90px;
        padding: 0 20px;
    }
    .popup-details .old-price::after {
        width: 140px;
    }
    .comebacker-order-btn {
        width: 100%;
        font-size: 20px;
        line-height: 45px;
        margin-top: 20px;
    }
    .popup-image {
        margin: 0 auto;
        height: 20px;
        top: 80px;
    }
    .popup-image img {
        max-width: 190px;
        bottom: 0;
        left: 48%;
        transform: translateX(-50%);
    }
    .cb-top {
        height: 262px;
        padding-bottom: 0px;
    }
    .cb-top img {
        top: 20px;
        right: 20px;
        width: 7%;
    }
    .popup-details .price:last-child {
        margin-right: 0;
    }
    .popup-details .prices {
        width: 100%;
        margin: 0;
        justify-content: center;
    }
    .popup-details .prices .price {
        width: 110px;
    }
    .popup-details .price-digits {
        font-size: 50px;
        line-height: 59px;
    }
    
}