.no-scroll {
    height: 100vh;
    overflow:hidden;
}
.cookies_popup {
    display: block;
    position: fixed;
    z-index: 99999;
    text-align: center;
    background: #fff;
    padding: 25px;
    overflow-y: scroll;
}

.cookies_popup_first_screen {
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}

.cookies_popup_second_screen {
    top: 0;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 100%;
    margin: auto;
    max-width: 520px;
}
@media screen and (max-width: 600px) {
    .cookies_popup {
        width: 80%;
        max-height: 90vh;
        overflow-y: auto;
    }

    .cookies_popup_second_screen {
        left: 0;
        right: 0;
    }

    .cookies_popup .offers-pic-switch label {
        top: 25px !important;
    }
    .cookies_popup .black-button {
        background: #000;
        color: #fff;
    }
}

.cookies_popup .offers-pic-switch {
    width: 35px;
    display: block;
    height: 12px;
    position: relative;
}

.cookies_popup .offers-pic-switch input {
    position: absolute;
    top: -12px;
    left: 0;
    z-index: 2;
    opacity: 0;
    cursor: pointer;
    height: 14px;
    width: 34px;
    margin: 10px
}

.cookies_popup .offers-pic-switch input:checked {
    z-index: 1
}

.cookies_popup input:checked+label.label_cookies_off_switch,
.cookies_popup input:checked+label.label_cookies_on_switch {
    opacity: 1;
}

.cookies_popup input+label.label_cookies_off_switch,
.cookies_popup input+label {
    opacity: 0;
}

.cookies_popup .offers-pic-switch input:checked~.toggle-outside .toggle-inside {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #f7f7f7;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    left: 0;
    -webkit-transition: all .2s;
    -o-transition: all .2s;
    transition: all .2s
}

.cookies_popup .offers-pic-switch input~input:checked~.toggle-outside .toggle-inside {
    left: 15px;
    background: #000;
}

.cookies_popup .offers-pic-switch input#color_imgs_switch:checked~label~span.toggle-outside {
    background: rgba(214, 214, 214, .5)
}

.cookies_popup .offers-pic-switch label {
    display: inline-block;
    margin: 0;
    position: absolute;
    top: 15px;
    -webkit-transition: opacity .25s ease;
    -o-transition: opacity .25s ease;
    transition: opacity .25s ease;
    cursor: pointer
}

.cookies_popup .label_cookies_on_switch {
    left: 15px !important
}

.cookies_popup .label_cookies_off_switch {
    left: 0 !important;
}

.cookies_popup .offers-pic-switch .toggle-outside {
    transition: .25s ease all;
    position: absolute;
    width: 34px;
    height: 10px;
    border-radius: 10px;
    cursor: pointer;
    background: #cacaca;
    left: 0;
    top: 0;
}

.cookies_popup .offers-pic-switch .toggle-inside {
    border-radius: 5rem;
    background: #f7f7f7;
    position: absolute;
    -webkit-transition: .25s ease all;
    -o-transition: .25s ease all;
    transition: .25s ease all
}
