#myModal {
    padding: 0 !important;
    width: 100%;
}
@media (max-width: 768px) {
    #myModal {
        width: 100% !important;
    }
    .modal-dialog {
        width: 100% !important;
        margin: 0px !important;
        border: 0 !important;
    }

    .modal-body td, .modal-body th {
        font-size: 0.8em !important;
    }
}

@media (min-width: 768px) {
    #myModal {
    }
    .modal-dialog {
        margin-top: 0px;
        margin-right: 0px;
    }
    .modal-content {
        min-height: 100% !important;
    }
}

.modal-dialog.centered {
    margin: auto;
}
@media (min-width: 768px) {
    .modal-dialog.centered {
        margin-top: 2%;
    }
}

.modal-content {
    border-radius: 0px !important;
}
.modal-body {
    position: relative;
}
.modal-body .help-block {
    font-size: 12px;
    line-height: 15px;
    opacity: 0.8;
}

.modal-footer {
    clear: both;
    float: none;
}


/* also shopping cart in modal */
.table_shoppingcart td .options {
    font-size: 80%;
    opacity: 0.8;
}
.table_shoppingcart tr.cart_total th {
}
.checkout_button {
    text-align: center;
}

.modal_shoppingcart_overlay_background {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: white;
    opacity: 0.7;
    z-index: 999;
}
.modal_shoppingcart_overlay {
    position: absolute;
    top: 10%;
    height: auto;
    width: 50%;
    background-color: white;
    color: #555;
    opacity: 1;
    padding: 2em 4em;
    left: 50%;
    margin-left: -25%;
    border-radius: 1em;
    text-align: center;
    border: 1px solid #ddd;
    z-index: 9999;
}
.modal_shoppingcart_overlay h2, .modal_shoppingcart_overlay p {
    margin: 0.5em;
}
@media (max-width: 768px) {
    .modal_shoppingcart_overlay {
        top: 5%;
        padding: 0.5em;
        width: 80%;
        margin-left: -40%;
        font-size: 0.8em;
    }
    .modal_shoppingcart_overlay h3 {
        font-size: 1.2em;
    }
    .modal_shoppingcart_overlay h4 {
        font-size: 1em;
    }
    .modal_shoppingcart_overlay select, .modal_shoppingcart_overlay input {
        font-size: 0.9em;
    }
}


.navigateModal {
    position: absolute;
    top: 15em;
    font-size: 21px;
    text-align: center;
    width: 30px;
    height: 30px;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.7;
}
#navigateModalPrev {
    left: -10px;
}
#navigateModalNext {
    right: -10px;
}


.modal_add_to_favorites {
    font-size: 1.4em;
    text-align: center;
    width: 1.4em;
    height: 1.4em;
    float: right;
}
.large.image .modal_add_to_favorites {
    background-color: #fff;
    position: absolute;
    top: 1.2em;
    right: 1.2em;
    border-radius: 50%;
}

.modal_p img {
    max-width: 100%;
    height: auto;
}



/* modal contents (image etc.) */
/* note the class applied to the modal-dialog class */
.modal-body .modal_image {
    width: 40%;
    float: left;
    margin-right: 1em;
    margin-bottom: 1.5em;
}
.modal-body .modal_image img {
    max-width: 100%;
    margin: auto;
}
.large.image .modal-body .modal_image, .modal-body .modal_image_fullwidth {
    float: none;
    width: 100%;
    margin: 0 0 1em 0;
}
.modal-body .contentblock_otherfield {
    font-size: 80%;
    opacity: 0.8;
}
.modal-body .modal_p {
    margin: 1em 0em;
}
.modal-body .contentblock_buttons a {
    margin: 0.1em;
}

.modal-body .modal_shoppingcart {
    margin: 1em 0.5em;
    padding-top: 1em;
    padding-bottom: 1em;
}
.modal-body .modal_shoppingcart .form-group, .modal-body .modal_shoppingcart .btn {
    margin-right: .5em;
}
.modal-body .modal_shoppingcart .form-group label {
    padding-right: 0.5em;
}
.modal-body .modal_shoppingcart .list_item_catalog_field_price {
    padding: 0;
}
.modal-body .modal_catalog_field_price {
    font-size: 2em;
}


/* modal slider */
.modal_slider {
    margin-bottom: 1em;
}


/* navigation buttons */
#modal-footer-navigation {
    float: left;
}


/* login - social buttons */
#login_modal_body .btn-social {
    margin: 0.3em auto;
}



/*
    search results and all other "viewModalItems" (for example coupons, favorites, etc.)
    this modal is created by the function viewItemsModal() in /framework/bootstrap/js/modals.js
*/
.modal_search_result {
    margin-top: 1.5em;
    margin-bottom: 1.5em;
    position: relative;
    /* height: 18em; */
    background-color: #666;
    padding: 0px;
    overflow: hidden;
}

.modal_search_result .modal_search_result_image {
    height: 100%;
    width: 100%;
    background-size: cover !important;
}
.modal_search_result .modal_search_result_image img {
    min-height: 100%;
    min-width: 100%;
}

.modal_search_result .modal_search_result_body {
    padding: 1em;
    /* position: absolute; */
    background-size: cover;
    background-position: center;
    bottom: 0;
}
.modal_search_result .modal_search_result_body, .modal_search_result .modal_search_result_body a {
    color: white;
}
.modal_search_result .modal_search_result_body h3 {
    margin: 0.2em 0em 0em 0em;
}
.modal_search_result .modal_search_result_body p.modal_otherfield {
    font-size: 80%;
    margin: 0.1em 0;
}


/* e-commerce */
#checkout_form .row {
    margin-top: 0.7em;
}
@media (max-width: 768px) {
    #checkout_form .row {
        margin-left: -7px;
        margin-right: -7px;
    }
}


/* mobile */
@media (max-width: 768px) {
    .modal_add_to_favorites {
        background-color: #fff;
        position: absolute;
        top: 1.2em;
        right: 1.2em;
        border-radius: 50%;
    }

    .modal-body .modal_image {
        width: 100%;
        float: none;
        margin: 0 0 1em 0;
    }

    .modal-body .modal_shoppingcart {
        text-align: center;
    }
    .modal-body .modal_shoppingcart .form-group, .modal-body .modal_shoppingcart .btn {
        margin-top: 0.2em;
    }
    .modal-body .modal_shoppingcart select.form-control {
        margin: auto;
    }
}


/* large screens */
@media (min-width: 768px) {

    .modal-dialog.large {
        width: 75%;
    }

    .table_shoppingcart td img {
        max-width: 120px;
        height: auto;
    }
    .checkout_button a.btn {
        min-width: 40%;
    }
    .checkout_button a.btn.btn-emptycart {
        min-width: 10%;
    }

}


/* video modal (and other screen-centered modals) */
.modal-video .modal-dialog {
    position: absolute;
    left: 50%;
    width: 960px;
    margin-left: -480px;
    top: 5%;
}
.modal-video .modal-dialog iframe {
    width: 100%;
    height: 520px;
}
@media (max-width: 768px) {
    .modal-video .modal-dialog {
        left: 0;
        top: 5%;
    }
    .modal-video .modal-dialog iframe {
        height: auto;
    }
}

.modal-exitintent {
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-exitintent .modal-dialog {
    position: absolute;
}
@media (min-width: 768px) {
    .modal-exitintent .modal-dialog {
        min-width: 640px;
        max-width: 90%;
    }
}
.modal-exitintent .modal-dialog .modal_exitintent_btn {
    font-size: 2em;
    padding-left: 2em;
    padding-right: 2em;
}
.modal_exitintent_close {
    display: block;
    margin: 0.5em;
    text-align: center;
    font-size: 0.85em;
}


/** push notifications modal */
.push_notification_modal_container {
    max-height: 100vh;
    overflow: auto;
}
.push_notification_modal_item {
    padding: 0.5em;
    margin-bottom: 1em;
    border-bottom: 1px solid #ddd;
    position: relative;
    display: flex;
}
.push_notification_modal_item img {
    width: 3em;
    height: 3em;
    margin: 0 0.5em 0em 0;
}
@media (min-width: 768px) {
    .push_notification_modal_item img {
        width: 6em;
        height: 6em;
        margin: 0 1em 0em 0;
    }
}
.push_notification_modal_item .body {
    display: flex;
    flex-direction: column;
    position: relative;
}
.push_notification_modal_item .body h4 {
    margin: 0 0 0.1em 0;
}
.push_notification_modal_item .body p {
    font-size: 0.8em;
}
.push_notification_modal_item .body .time {
    font-size: 0.6em;
    opacity: 0.7;
}
.push_notification_modal_item a.click_target {
    position: absolute;
    top: 0;
    right: 10px;
    opacity: 0.8;
    font-size: 0.9em;
}
.push_notification_modal_container .push_notification_modal_item:last-child {
    border: none;
}

.push_notification_modal_item.read {
    opacity: 0.7;
    zoom: 0.8;
}

/** buttons size on mobile for footer **/
@media (max-width: 768px) {
    .modal-footer .btn {
        zoom: 0.8;
    }
}

/** "simple" modal **/
.modal-dialog.simple .modal_shoppingcart, .modal-dialog.simple #modal-footer-navigation {
    display: none !important;
}

.modal_map_container {
    display: block;
    clear: both;
    float: none;
    margin-top: 15px;
}


/** modal tabs, for example for cookielaw **/
.modal_tab_container {
    position: relative;
    height: 300px;
    overflow: auto;
}
.modal_tab {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    max-height: 100%;
    width: 100%;
    padding: 15px;
    overflow: auto;
}
.modal_tab.modal_tab_active {
    display: block;
}
.modal_tab_navigation {
    text-align: center;
    margin-bottom: 5px;
}
.modal_tab_navigation a {
    padding: 10px 0;
    margin: 5px;
    text-align: center;
    display: block;
    border-bottom: 2px solid #ddd;
}
.modal_tab_navigation a.modal_tab_link_active {
    border-bottom: 2px solid #000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .wrong_username_modal {
        text-align: center;      
        .btn {
            margin: 5px 0;
        } 
    }
}
@media (min-width: 768px) {
    .wrong_username_modal {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        font-size: 20px;
        font-weight: bold;

        .btn {
            max-width: 110px;
        } 
        a {
            display: block;
            min-width: 100%;
            font-size: 14px;
            font-weight: normal;
        }
    }
}