.modal-wrapper {
    position: fixed;
    display: -webkit-flex;
    display: flex;
    resize: both;
    overflow: auto;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    z-index: 0;
    visibility: hidden;
    zoom: 1;
    filter: alpha(opacity=0);
    -webkit-opacity: 0;
    -moz-opacity: 0;
    opacity: 0;
    cursor: pointer;
}

.modal-wrapper--visible {
    visibility: visible;
    zoom: 1;
    filter: alpha(opacity=100);
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1;
    z-index: 100000;
    // pointer-events: none;
}

.modal, .modal--hidden {
    -webkit-opacity: 0;
    zoom: 1
}

@media (min-width:768px) {
    .modal-wrapper {
        justify-content: center;
        align-items: center
    }
}

.modal-content-hider {
    display: none
}

.modal {
    height: 100%;
    cursor: default;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    pointer-events: none;
    visibility: hidden;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
    opacity: 0;
    z-index: -1;
    background-color: #fff;
    width: 100%;
    resize: both;
    overflow: hidden;
    -webkit-transition: opacity .2s linear, -webkit-transform .2s linear;
    -moz-transition: opacity .2s linear, -moz-transform .2s linear;
    -o-transition: opacity .2s linear, -o-transform .2s linear;
    transition: opacity .2s linear, -webkit-transform .2s linear, -moz-transform .2s linear, -o-transform .2s linear, transform .2s linear;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    position: static;
}

.btn--more, .modal__close-btn, .paragraph--expandable .paragraph__header, .scrolltop {
    cursor: pointer
}

.fotorama__arr--disabled, .modal--sticky, .modal--visible {
    pointer-events: auto
}

@media (max-width:767px) {
    .modal-opened, .modal-opened body {
        width: 100vw;
        heigh: 100vh;
        position: fixed;
        overflow: hidden
    }
}

.modal--visible {
    visibility: visible;
    zoom: 1;
    filter: alpha(opacity=100);
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1;
    z-index: 100001;
    -webkit-transition: opacity .2s linear, -webkit-transform .2s linear;
    -moz-transition: opacity .2s linear, -moz-transform .2s linear;
    -o-transition: opacity .2s linear, -o-transform .2s linear;
    transition: opacity .2s linear, -webkit-transform .2s linear, -moz-transform .2s linear, -o-transform .2s linear, transform .2s linear
}

.modal--hidden {
    visibility: hidden;
    filter: alpha(opacity=0);
    -moz-opacity: 0;
    opacity: 0;
    z-index: -1;
    -webkit-transition: opacity .25s ease-in, -webkit-transform .4s ease-in, visibility .25s ease-in;
    -moz-transition: opacity .25s ease-in, -moz-transform .4s ease-in, visibility .25s ease-in;
    -o-transition: opacity .25s ease-in, -o-transform .4s ease-in, visibility .25s ease-in;
    transition: opacity .25s ease-in, -webkit-transform .4s ease-in, -moz-transform .4s ease-in, -o-transform .4s ease-in, transform .4s ease-in, visibility .25s ease-in
}

.modal__header {
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    position: relative;
    padding: 16px;
    background-color: #3B3F4F;
    line-height: 100%;
}

.modal__header-title {
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 25px !important;
    flex-grow: 1;
    font-weight: 400;
    font-size: 15px;
    padding-right: 32px;
    color: #333;
    padding-right: 32px;
}

.modal__close-btn {
    flex-shrink: 0;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: flex-start;
    align-items: flex-start;
    width: 1.2rem;
    height: 1.2rem
}

.modal__close-btn svg {
    max-width: 1.2rem;
    max-height: 1.2rem;
    fill: rgba(255, 255, 255, .7)
}

.modal__close-btn:hover svg {
    fill: #fff
}

.modal__body {
    padding: 16px;
    flex-grow: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    max-height: none
}

.modal__footer {
    padding: 32px
}

.modal__footer:empty {
    display: none
}

.modal .btn-primary {
    background-color: #5cb85c
}

@media (min-width:768px) {
    .modal {
        width: auto;
        max-width: 80vw;
        height: auto;
        max-height: 80vh
    }
    .modal__close-btn svg {
        width: 100%;
        height: 100%
    }
}

@media (min-width:992px) {
    .modal {
        width: auto;
        max-width: 80vw;
        height: auto;
        max-height: 85vh
    }
}

@media (min-width:1200px) {
    .modal {
        width: auto;
        max-width: 70vw;
        height: auto;
        max-height: 85vh
    }
}

@media (min-width:1600px) {
    .modal {
        width: auto;
        max-width: 60vw;
        height: auto;
        max-height: 85vh
    }
}

.modal--sticky {
    visibility: visible;
    zoom: 1;
    filter: alpha(opacity=100);
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1;
    overflow: visible;
    padding: 0;
    width: 100%;
    max-width: 480px;
    top: 30%;
    left: 100%;
    right: auto;
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out, -moz-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, -o-transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out, -moz-transform .2s ease-in-out, -o-transform .2s ease-in-out, transform .2s ease-in-out;
    position: fixed;
    z-index: 1;
    display: none
}

.modal--sticky.modal--visible {
    left: auto;
    right: 0;
    -webkit-transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out;
    -moz-transition: opacity .2s ease-in-out, -moz-transform .2s ease-in-out;
    -o-transition: opacity .2s ease-in-out, -o-transform .2s ease-in-out;
    transition: opacity .2s ease-in-out, -webkit-transform .2s ease-in-out, -moz-transform .2s ease-in-out, -o-transform .2s ease-in-out, transform .2s ease-in-out;
    z-index: 10001
}

.modal--sticky.modal--visible .popup__trigger {
    visibility: hidden;
    zoom: 1;
    filter: alpha(opacity=0);
    -webkit-opacity: 0;
    -moz-opacity: 0;
    opacity: 0
}

.modal--sticky .modal__trigger {
    font-weight: 600;
    font-size: 13px;
    background: #4C1B1B;
    color: #fff;
    position: absolute;
    display: flex;
    align-content: center;
    align-items: center;
    line-height: 100%;
    right: 100%;
    padding: 16px;
    top: 0;
    cursor: pointer
}

.scrolltop, .scrolltop__inner {
    justify-content: center;
    align-content: center
}

.modal--sticky .modal__trigger:hover {
    background-color: #5f2222
}

@media screen and (max-width:768px) {
    .modal--sticky {
        max-width: none
    }
    .modal--sticky .modal__trigger {
        display: none
    }
}

.modal--sticky.modal--visible .modal__trigger {
    background-color: #541e1e
}

.modal--sticky .modal__trigger-icon-chat, .modal--sticky .modal__trigger-icon-close {
    width: 1.2rem;
    height: 1.2rem
}

.modal--sticky .modal__trigger-icon-chat svg, .modal--sticky .modal__trigger-icon-close svg {
    width: 100%;
    height: 100%;
    fill: #fff
}

.modal--sticky .modal__trigger-icon-close {
    display: none
}

.modal--sticky.modal--visible .modal__trigger-icon-close {
    display: block
}

.modal--sticky.modal--visible .modal__trigger-icon-chat {
    display: none
}

.modal--sticky .modal__trigger-icon-chat {
    display: block
}

.modal--sticky .modal__trigger-text {
    display: none
}

.modal--sticky.modal--visible .modal__trigger-icon {
    display: block
}

.modal--sticky.modal--visible .modal__trigger-text {
    display: none
}

@media (min-width:1600px) {
    .modal--sticky .modal__trigger-icon-chat {
        display: none
    }
    .modal--sticky .modal__trigger-text {
        display: block
    }
}

@media (min-width:768px) {
    .modal--sticky {
        display: block
    }
}

.overlay {
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .9);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 10000;
    visibility: hidden;
    zoom: 1;
    -moz-opacity: 0;
    opacity: 0;
    cursor: pointer;
    -webkit-transition: all .25s linear;
    -moz-transition: all .25s linear;
    -ms-transition: all .25s linear;
    -o-transition: all .25s linear;
    transition: all .25s linear
}

.overlay--visible {
    visibility: visible;
    zoom: 1;
    filter: alpha(opacity=100);
    -webkit-opacity: 1;
    -moz-opacity: 1;
    opacity: 1;
    -webkit-transition: all .1s linear;
    -moz-transition: all .1s linear;
    -ms-transition: all .1s linear;
    -o-transition: all .1s linear;
    transition: all .1s linear
}

.overlay:hover {
    background-color: rgba(0, 0, 0, .88)
}

// eof