/* ----------------------------------------------------------- */
/* == tingle v0.13.2 */
/* ----------------------------------------------------------- */

@media(max-width:2800px) {
    .simple--modal {
        height: 600px
    }

    .tingle-modal-box {
        width: 60%;
        max-width: 800px;
    }
}

@media(max-width:1450px) {
    .simple--modal {
        height: 600px
    }

    .tingle-modal-box {
        width: 70%;
        max-width: 800px;
    }
}

@media(max-width:1366px) {
    .simple--modal {
        height: 580px
    }

    .tingle-modal-box {
        width: 60%;
        max-width: 73rem;
    }
}

@media(max-width:1024px) {
    .simple--modal {
        height: 500px;
    }

    .tingle-modal-box {
        width: 70%;
    }
}

@media(max-width:768px) {
    .tingle-modal-box {
        width: 80%;
    }

    .simple--modal {
        height: 750px;
    }
}

.simple--modal {
    width: 100%;
    display: flex;
    overflow: auto;
}

.tingle-modal * {
    box-sizing: border-box;
}

.tingle-modal {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483645;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    visibility: hidden;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    cursor: pointer;
    -webkit-transition: -webkit-transform .2s ease;
    transition: -webkit-transform .2s ease;
    transition: transform .2s ease;
    transition: transform .2s ease, -webkit-transform .2s ease;
}

/* confirm and alerts
-------------------------------------------------------------- */

.tingle-modal--confirm .tingle-modal-box {
    text-align: center;
}

/* modal
-------------------------------------------------------------- */

.tingle-modal--noOverlayClose {
    cursor: default;
}

.tingle-modal--noClose .tingle-modal__close {
    display: none;
}

.tingle-modal__close {
    position: fixed;
    top: 10px;
    right: 28px;
    z-index: 1000;
    padding: 0;
    width: 5rem;
    height: 5rem;
    border: none;
    background-color: transparent;
    color: #f0f0f0;
    font-size: 6rem;
    font-family: monospace;
    line-height: 1;
    cursor: pointer;
    -webkit-transition: color .3s ease;
    transition: color .3s ease;
}

.tingle-modal__closeLabel {
    display: none;
}

.tingle-modal__close:hover {
    color: #fff;
}

.tingle-modal-box {
    position: relative;
    -ms-flex-negative: 0;
    flex-shrink: 0;
    margin-top: auto;
    margin-bottom: auto;
    border-radius: 0;
    background: #fff;
    opacity: 1;
    cursor: auto;
    -webkit-transition: -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275);
    transition: -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275);
    transition: transform .3s cubic-bezier(.175, .885, .32, 1.275), -webkit-transform .3s cubic-bezier(.175, .885, .32, 1.275);
    -webkit-transform: scale(.8);
    -ms-transform: scale(.8);
    transform: scale(.8);
}

.tingle-modal-box__content {
    padding: 0;

}

.tingle-modal-box__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: initial;
    padding: 1.5rem 2rem;
    width: auto;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
    background-color: #f5f5f5;
    cursor: auto;
}

.tingle-modal-box__footer::after {
    display: table;
    clear: both;
    content: "";
}

.tingle-modal-box__footer--sticky {
    position: fixed;
    bottom: -200px;
    /* TODO : find a better way */
    z-index: 10001;
    opacity: 1;
    -webkit-transition: bottom .3s ease-in-out .3s;
    transition: bottom .3s ease-in-out .3s;
}

/* state
-------------------------------------------------------------- */

.tingle-enabled {
    position: fixed;
    overflow: scroll;
    left: 0;
    right: 0;
}

.tingle-modal--visible .tingle-modal-box__footer {
    bottom: 0;
    text-align: center;
    justify-content: center;
}

.tingle-enabled .tingle-content-wrapper {
    -webkit-filter: blur(8px);
    filter: blur(8px);
}

.tingle-modal--visible {
    visibility: visible;
    opacity: 1;
}

.tingle-modal--visible .tingle-modal-box {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    transform: scale(1);
    overflow: auto;
}

.tingle-modal--overflow {
    overflow-y: scroll;
    padding-top: 8vh;
}

/* btn
-------------------------------------------------------------- */

.tingle-btn {
    display: inline-block;
    margin: 0 .5rem;
    padding: 1rem 2rem;
    border: none;
    background-color: grey;
    box-shadow: none;
    color: #fff;
    vertical-align: middle;
    text-decoration: none;
    font-size: inherit;
    font-family: inherit;
    line-height: normal;
    cursor: pointer;
    -webkit-transition: background-color .4s ease;
    transition: background-color .4s ease;
}

.tingle-btn--primary {
    background-color: #e60044;
}

.tingle-btn--danger {
    background-color: #a0a0a0;
}

.tingle-btn--default {
    background-color: #34495e;
}

.tingle-btn--pull-left {
    float: left;
}

.tingle-btn--pull-right {
    float: right;
}

.cropper-container {
    max-height: 436px;
    overflow: hidden;
}

.popbox {
    max-height: 470px !important;
}


/* responsive
-------------------------------------------------------------- */
.canvas-container {
    margin-top: 0px;
    transform: translateY(0);
}

@media (max-width : 540px) {
    .canvas-container {
        margin: 20% auto 0 auto;
        -webkit-transform: translateY(-15%);
        transform: translateY(-15%);
    }

    .cropcontent {
        background: #fff;
        width: 100%;
        float: left;
        text-align: center;
        position: absolute;
        bottom: 14%;
        height: 60px;
        line-height: 14px;
        font-size: 15px;
        -webkit-transform: translateY(-15%);
        transform: translateY(-15%);
    }

    .tingle-modal-box__content {
        width: 100%;
        height: calc(100% - 50px);
        box-sizing: border-box;
        padding: 0rem;
    }

    .tingle-modal {
        top: 0px;
        display: block;
        padding-top: 0;
        width: 100%;
        height: 100%;
        /*     max-height: 100vh; */
        overflow: auto;
    }

    .tingle-modal-box {
        width: 100%;
        border-radius: 0;
        height: 100%;
        position: relative;
        z-index: 1;
        box-sizing: border-box;
    }

    .tingle-modal-box__content {
        overflow-y: scroll;
    }

    .tingle-modal--noClose {
        top: 0;
    }

    .tingle-modal--noOverlayClose {
        padding-top: 0;
    }

    .tingle-modal-box__footer {
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 0;
        z-index: 2;
        display: flex;
        justify-content: space-between;
        padding: 0;

    }

    .tingle-modal-box__footer .tingle-btn {
        display: block;
        width: 50%;
    }

    .tingle-modal__close {
        top: 0;
        right: 0;
        display: flex;
        width: 4rem;
        height: 4rem;
        border: none;
        box-shadow: none;
        line-height: 4rem;
        color: #000;
        font-weight: normal;
        justify-content: center;
    }

    .tingle-modal__closeLabel {
        display: none;
    }

    .tingle-modal__closeIcon {
        display: inline-block;
        margin-right: .5rem;
        vertical-align: middle;
        font-size: 4rem;
        font-weight: normal
    }

    .tingle-modal-box__footer .tingle-btn {
        margin: 0;
        padding: 0;
        height: 50px;
    }

    .cropper-container {
        /*   	height: 100% !important; */
        max-height: 100%;
        overflow: hidden;
    }

    .popbox {
        max-height: 100% !important;
    }
}

@supports ((-webkit-backdrop-filter: blur(12px)) or (backdrop-filter: blur(12px))) {
    .tingle-modal {
        -webkit-backdrop-filter: blur(0px);
        backdrop-filter: blur(0px);
    }

    @media (max-width : 540px) {
        .tingle-modal {
            -webkit-backdrop-filter: blur(0px);
            backdrop-filter: blur(0px);
        }
    }

    .tingle-enabled .tingle-content-wrapper {
        -webkit-filter: none;
        filter: none;
    }

}

@media (max-width : 376px) {
    .canvas-container {
        margin: 20% auto 0 auto;
    }
}

@media (max-width : 321px) {
    .canvas-container {
        margin: 14% auto 0 auto;
    }

    .soufeel-tabs-photo .upload-photo {
        padding: 0;
    }

    .docs-buttons {
        transform: translateY(63%);
    }

    .cropcontent {
        transform: translateY(70%)
    }
}