.popup__shadow,
.popup__subscription {
    display: none;
}

.popup__shadow.active {
    display: block;
    position: fixed;
    top: 0;
    left:  0;
    width: 100%;
    height: 100%;
    /* background: transparent; */
    background: rgba(0, 0, 0, 0.7);
}

.popup__subscription.active {
    position: fixed;
    top: 50%;
    left:  50%;
    transform: translate(-50%, -50%);
    background: #e6e6e6;
    z-index: 1001;
    padding: 49px 30px 43px 30px;
    width: 672px;
    display: block;
}

.popup__subscription .popup__close {
    position: absolute;
    top:  1px;
    right: -43px;
    width: 24px;
    height: 24px;
    background: url('/upload/frontend/popup_close_icon.svg') no-repeat center center;
    background-size: cover;
    cursor: pointer;
}

.popup__subscription .popup__close:hover {
    background: url('/upload/frontend/popup_close_icon_hover.svg') no-repeat center center;
    background-size: cover;
}

.popup__subscription .popup__title {
    margin-bottom: 48px;
    font-family: 'Montserrat';
    font-size: 17px;
    line-height: 28px;
    color: #303030;
    font-weight: bold;
    text-transform: uppercase;
    max-width: 480px;
}

.popup__subscription .popup__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.popup__subscription .popup__row--field {
    width: calc(100% - 214px);
    height: 45px;
    position: relative;
}

.popup__subscription .popup__row--field .input--error {
    display: none;
}

.popup__subscription .popup__row--field.warning .input--error {
    position: absolute;
    bottom:  -20px;
    left: 0;
    font-size: 14px;
    line-height: 20px;
    color: #E22A09;
    font-weight: 400;
    display: block;
}

.popup__subscription input {
    width: 100%;
    height: 45px;
    background: transparent;
    border:  2px solid #303030;
    padding: 0 18px;
    font-family: 'Montserrat';
    text-overflow: ellipsis;
    font-weight: normal;
    font-size: 16px;
    line-height: 23px;
    color: #303030;
    outline: 0;
    border-radius: 0;
    background-color: white;
}

.popup__subscription .warning input {
    border: 2px solid #E22A09;
    background: rgba(226, 42, 9, 0.05);
}

.popup__subscription input::-webkit-input-placeholder {
    font-family: 'Montserrat';
    font-weight: normal;
    font-size: 16px;
    line-height: 23px;
    color: #303030;
}

.popup__subscription input::-moz-placeholder {
    font-family: 'Montserrat';
    font-weight: normal;
    font-size: 16px;
    line-height: 23px;
    color: #303030;
}

.popup__subscription input:-ms-input-placeholder {
    font-family: 'Montserrat';
    font-weight: normal;
    font-size: 16px;
    line-height: 23px;
    color: #303030;
}

.popup__subscription input:-moz-placeholder {
    font-family: 'Montserrat';
    font-weight: normal;
    font-size: 16px;
    line-height: 23px;
    color: #303030;
}

.popup__subscription input:-webkit-autofill,
.popup__subscription input:-webkit-autofill:hover,
.popup__subscription input:-webkit-autofill:focus {
    border:  2px solid #303030;
    -webkit-text-fill-color: #303030;
    -webkit-box-shadow: 0 0 0 1000px transparent inset;
    transition: background-color 5000s ease-in-out 0s;
}

.popup__subscription input:hover,
.popup__subscription input:focus,
.popup__subscription .not-empty input {
    background: rgba(255, 255, 255, 0.05);
}

.popup__subscription .subscribe {
    height: 45px;
    width: 184px;
    min-width: 184px;
    margin-left: 30px;
    background: transparent;
    border: 2px solid #303030;
    font-family: 'Montserrat';
    font-size: 16px;
    line-height: 23px;
    font-weight: bold;
    color: #303030;
    text-transform: uppercase;
    background-color: #FFFFFF;
}

.popup__subscription .subscribe:hover {
    background: #e6e6e6;
    color: #242730;
}

.popup__checkbox label {
    position: relative;
    cursor: pointer;
}

.popup__checkbox label input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: -1;
}

.popup__checkbox label p {
    padding-left: 21px;
    font-family: 'Montserrat';
    font-size: 14px;
    line-height: 20px;
    color: #BABABA;
    font-weight: 400;
    margin: 0;
}

.popup__checkbox label p:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    border:  1px solid #BABABA;
    background: transparent;
}

.popup__checkbox.warning label p:before {
    border:  1px solid #E22A09;
}

.popup__checkbox label:hover p:before,
.popup__checkbox label input:checked + p:before {
    border:  1px solid #303030;
    background: #FFF;
}

.popup__checkbox label:hover p,
.popup__checkbox label input:checked + p,
.popup__checkbox label:hover p a,
.popup__checkbox label input:checked + p a  {
    color:  #303030;
}

.popup__checkbox label input:checked + p:after {
    content:  url('/upload/frontend/popup_checkbox_mark.svg');
    position: absolute;
    top: -3px;
    left: 3px;
}

.popup__checkbox label p a {
    border-bottom: 1px solid #BABABA;
    font-family: 'Montserrat';
    font-size: 14px;
    line-height: 20px;
    color: #BABABA;
    font-weight: 400;
    text-decoration: none;
}

.popup__checkbox label:hover p a,
.popup__checkbox label input:checked + p a {
    border-bottom: 1px solid #303030;
}

.popup__checkbox label p a:hover {
    border-bottom: 1px solid transparent;
}

.popup__subscription .popup__sent--text,
.popup__subscription.sent .popup__title,
.popup__subscription.sent .popup__row,
.popup__subscription.sent .popup__checkbox {
    display: none;
}

.popup__subscription.sent .popup__sent--text {
    display: block;
    width: 100%;
    font-size: 20px;
    line-height: 28px;
    color:  #303030;
    font-weight: bold;
    font-family: 'Montserrat';
    text-transform: uppercase;
    margin-bottom: 0;
}
.popup__subscription .popup__subscription_body__phone {
    display: none;
}

@media only screen and (max-width: 800) {
    .popup__subscription .popup__close {
        top: -35px;
        right: 0;
    }
}

@media only screen and (max-width: 767px) {
    .popup__shadow.active {
        z-index: 10000;
    }

    .popup__subscription.active {
        /* top: 0; */
        /* left: 0; */
        /* transform: none; */
        /* padding: 55px 20px; */
        top: unset;
        bottom: 50px;
        z-index: 10000;
        padding: 30px 20px;
        width: 100%;
        transform: translateX(-50%);
        /* height: 100vh; */
        /* height: calc(var(--ph, 1vh) * 100); */
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    .popup__checkbox label p a {
        font-size: 12px;
    }

    .popup__subscription .popup__close {
        /* top: 20px; */
        top: -40px;
        right: 20px;
    }
    .popup__subscription .popup__close {
        filter: brightness(100);
    }
    .popup__checkbox label input + p {
        text-align: left;
        font-size: 12px;
    }
    .popup__checkbox label input + p a {
        font-size: 12px;
    }

    .popup__subscription .popup__title {
        margin-bottom: 28px;
        /* font-size: 16px; */
        /* line-height: 23px; */
        font-size: 13px;
        line-height: 20px;
        max-width: 100%;
    }

    .popup__subscription .popup__row {
        flex-direction: column;
    }

    .popup__subscription .popup__row--field {
        width: 100%;
        /* margin-bottom: 30px; */
        margin-bottom: 10px;
    }

    .popup__subscription .subscribe {
        width: 100%;
        min-width: 100%;
        margin-left: 0;
    }

    .popup__checkbox label:hover p,
    .popup__checkbox label:hover p a {
        color: #BABABA;
    }

    .popup__checkbox label:hover p a {
        border-bottom: 1px solid #BABABA;
    }

    .popup__checkbox label:hover p:before {
        border: 1px solid #BABABA;
        background: transparent;
    }

    .popup__subscription.sent .popup__sent--text {
        width: auto;
        max-width: 100%;
        font-size: 16px;
        line-height: 23px;
    }
}
