:root{
    --nb-newsletter-form-popup-5-modal-width: 375px;
    --nb-newsletter-form-popup-5-modal-title-fs: 20px;
    --nb-newsletter-form-popup-5-modal-description-fs: 14px;
}

.nb-newsletter-form-popup-5-block {

    .nb-modal .nb-modal-header.nb-modal-header-center{
        justify-content: flex-start;

        .nb-img{
            max-height: 22px;
        }
    }

    .nb-modal{

        top: unset;
        bottom: 0;
        height: fit-content;
        right: 40px;
        width: fit-content;
        left: unset;

        .modal-dialog{
            max-width: var(--nb-newsletter-form-popup-5-modal-width);
            margin: 0;
        }
        .nb-modal-content{
            border-radius: 0;

            .nb-modal-body{
                padding: 24px 16px;
            }
        }
    }

    .nb-newsletter-title{
        font-size: var(--nb-newsletter-form-popup-5-modal-title-fs);
        line-height: 1.3;
        font-weight: var(--nb-font-semibold);
        --nb-dt-rows: auto;
    }

    .nb-newsletter-description{
        font-size: var(--nb-newsletter-form-popup-5-modal-description-fs);
        line-height: 1.3;
        margin-top: 10px;
        margin-bottom: 24px;
    }

    .nb-btn-form{
        width: 100%;
    }

    .nb-checkbox-wrapper{
        margin-top: 20px;
        position: relative;

        .nb-form-check .nb-label{
            font-size: 12px;
            line-height: 16px;
            color: var(--nb-text-color-primary);
        }
        .nb-form-check{
            align-items: flex-start;
            margin-bottom: 0;
        }

        a{
            text-decoration: underline;
        }
    }
}

@media screen and (max-width: 768px){
    .nb-newsletter-form-popup-5-block {

        .nb-modal{
            left: 0;
            right: 0;
            width: 100%;
            height: 100%;

            .modal-dialog{
                max-width: 100%;
            }
        }
    }
}