.not-displayed {
    display: none !important;
}
.dd-flex {
    display: flex;
    align-items: center;
}
.show-on-desktop {
    display: block
}
.hide-on-desktop {
    display: none;
}
.dd-pp-overlay {
    display: flex;
    width: 100%;
    height: 100%;
    position: fixed;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    top: 0;
    left: 0;
    align-items: center;
}
.dd-pp-container {
    background: #fff;
    position: relative;
    margin: 0 auto;
    max-height: 100%;
    overflow: auto;
    border-radius: 20px;
}
.dd-pp-container .x-close {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 28px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    z-index: 199;
}
.dd-pp-container .wp-caption.aligncenter {
    left: 0;
    transform: none;
}
.dd-pp-content > div {
    padding: 25px;
    max-width: 640px;
}
.dd-p-bn {
    /*border: 1px solid #000;*/
    /*padding: 15px;*/
    width: 100%;
    min-width: 250px;
    overflow: hidden;
}
.dd-flex-1 {
    flex: 1;
}
.dd-m-r-20 {
    margin-right: 20px;
}
.dd-round-corners {
    border-radius: 20px;
}
.dd-round-corners-left {
    border-radius: 20px 0 0 20px;
}
.dd-pp-title {
    font-size: 20px !important;
    font-weight: bold;
    margin-top: 0;
}
.dd-pp-p {
    font-size: 16px;
}
.dd-no-padding {
    padding: 0 !important;
}
.dd-no-max-width {
    max-width: none !important;
}
.dd-p-20 {
    padding: 20px;
}
.dd-absolute-full-height {
    position: absolute;
    height: 100%;
    left: -2%;
    top:0;
    z-index: 9;
}

.dd-pp {
    padding: 20px;
}

/******************
 * Model templates
 ******************/

/** Mailchimp newsletter popup */
.mailchimp-pp-container .content-container{
    z-index: 19;
    background: #fff;
    max-width: 340px;
}
.mailchimp-form-container input[type="email"] {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 10px 10px 15px;
}
.mailchimp-form-container button {
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}
.mailchimp-form-container button:hover {
    background: #41980a;
    color: #fff;
    border-color: #41980a;
}
.mailchimp-form-container .buttons  {
    display: flex;
}
.mailchimp-form-container .buttons button {
    flex: 1;
}
.mailchimp-form-container .buttons button:first-of-type {
    margin-right: 10px;
}
.mailchimp-form-container .mc4wp-form-basic {
    margin-bottom: 0;
}

.mailchimp-form-container .mc4wp-alert {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 18px;
    text-align: center;
    background: #fff;
}

.mailchimp-form-container .mc4wp-alert p {
    max-width: 300px;
}

/** Newsletter popup */
.dd-pp-container .newsletter-pp-container {
    padding: 40px;
}
.newsletter-pp-container .content-container {
    min-width: 64%;
    max-width: 64%;
    padding: 0 30px;
}

.newsletter-pp-container h2 {
    color: #6198da;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 28px;
}
.newsletter-pp-container p {
    color: #949494;
    font-size: 16px;
}

.newsletter-pp-container .dd-email {
    min-width: 0;
    max-width: 100%;
    width: calc(100% - 1px);
    font-size: 13px;
    border-radius: 50px !important;
    background: #e1f3fb;
    border: 2px solid #e1f3fb !important;
    position: relative;
    padding-right: 100px;
}

.newsletter-pp-container .dd-submit {
    background: #6198da !important;
    border-radius: 50px !important;
    line-height: 1 !important;
    padding: 3px 20px 0 15px !important;
    height: 39px;
    font-size: 13px;
    text-transform: uppercase;
    position: absolute;
    right: 0;
}
.newsletter-pp-container .dd-submit:hover {
    background: #5188ca !important;
}
.newsletter-pp-container .subscribe-container {
    position: relative;
}


/** Link to popup - extends newsletter-popup-container */
.newsletter-pp-container .big-important,
#page .newsletter-pp-container .big-important {
    color: #1f1f1f;
    font-size: 60px;
    font-weight: bold;
    line-height: 60px;
    margin-bottom: 5px;
}

.newsletter-pp-container .btn-style {
    background: #6198da;
    border-radius: 50px;
    padding: 15px 50px 10px;
    display: block;
    float: left;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
}

.newsletter-pp-container .btn-style:hover {
    color: #fff;
    background: #5188ca;
}

@media screen and (max-width: 760px){
    .mailchimp-pp-container .image-container {
        display: none;
    }
    .hide-on-mobile {
        display: none;
    }
    .show-on-mobile {
        display: block;
    }

    .content-image {
        width: 100%;
        max-width: 260px;
        margin: 0 auto;
    }
}

@media screen and (max-width: 640px){
    .mailchimp-pp-container.dd-flex {
        flex-flow: column;
    }

    .newsletter-pp-container .content-container {
        max-width: 100%;
    }
    .newsletter-pp-container .image-container {
        margin-bottom: 15px;
    }

    .newsletter-pp-container.dd-flex {
        flex-flow: column;
    }

    .newsletter-pp-container .content-container {
        padding: 0;
    }
}