/*Common lightbox styles*/
.lbox-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(0,0,0,.75);
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 9999;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: all 0.2s ease;
    -o-transition: all 0.2s ease;
    transition: all 0.2s ease;
    text-align: left;
}

.lbox-container.show {
    visibility: visible;
    opacity: 1;
}

.lbox-container-inn {
    width: 100%;
    max-width: 800px;
    margin: auto;
    padding: 40px;
    background: #FFF;
    position: relative;
    z-index: 2;
}
.lbox-container.image-upload  .lbox-close {
    display: block;
    width: 32px;
    height: 32px;
    font-size: 0;
    cursor: pointer;
    text-decoration: none;
    text-indent: -999em;
    /*background: url(../../../img/x.svg) center center no-repeat;*/
    background-size: 12px auto;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 999;
}


/* Image Upload Lightbox */
.lbox-container.image-upload.mobile {
    padding-top: 32px;
    padding-bottom: 32px;
}

.image-upload .lbox-container-inn {
    height: 100%;
}

.image-upload.desktop .lbox-container-inn {
    max-width: 960px;
    max-height: 640px;
    min-height: 480px;
    padding: 20px;
}

.image-upload.mobile .lbox-container-inn {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    max-width: 480px;
    /*max-height: 640px;*/
    padding: 40px;
}

.image-upload .lbox-close {
    width: 32px;
    height: 32px;
    background: #0c77cf url(../images/photoUpload/x_white.svg) center center no-repeat;
    background-size: 12px auto;
    border-radius: 50%;
    opacity: 1;
    box-shadow: 0 3px 5px 0 rgba(0,0,0,0.25);
}

.image-upload .lbox-close:hover,
.image-upload .lbox-close:focus,
.image-upload .lbox-close:active {
    background-color: #008AFF;
}

.image-upload.desktop .lbox-close {
    top: -12px;
    right: -12px;
}

.image-upload.mobile .lbox-close {
    top: inherit;
    bottom: -16px;
    right: calc(50% - 16px);
}

.iu-drag-area {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border: 2px dashed #c1cad1;
    border-radius: 20px;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

a.iu-drag-area:hover,
a.iu-drag-area:focus,
a.iu-drag-area:active {
    border-color: #0c77cf;
}

.iu-drag-area.active {
    border-style: solid;
    border-color: #0c77cf;
}

.iu-drag-area img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.iu-t1,
.iu-t2,
.iu-t3 {
    line-height: calc(1em + 6px);
    text-align: center;
}

.iu-t1 {
    margin-bottom: 70px;
    color: #072d49;
    font-size: 36px;
    font-weight: 700;
}

.image-upload.mobile .iu-t1 {
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: 900;
}

.iu-t1 a {
    text-decoration: none;
}

.iu-t1 a:hover,
.iu-t1 a:focus,
.iu-t1 a:active {
    color: #008AFF;
}

.iu-t2 {
    margin: 15px 0 20px 0;
    color: #072d49;
    font-size: 24px;
    font-weight: 700;
}

.image-upload.mobile .iu-t2 {
    margin: 20px 0 0 0;
    font-size: 18px;
}

.iu-t3 {
    margin-top: 70px;
    color: #456277;
    font-size: 18px;
}

.image-upload.mobile .iu-t3 {
    margin-top: 30px;
    font-size: 14px;
}

.iu-icn {
    display: block;
    width: 64px;
    height: 64px;
    background-position: 0 0;
    background-repeat: no-repeat;
    background-size: 100% auto;
}

.iu-icn-upload {
    background-image: url(../images/photoUpload/iu_icn_upload.svg);
}

.iu-icn-images {
    background-image: url(../images/photoUpload/iu_icn_images.svg);
}

.iu-icn-photo {
    background-image: url(../images/photoUpload/iu_icn_photo.svg);
}

.iu-icn-video-scan {
    background-image: url(../images/photoUpload/iu_icn_video_scan.png);
}

.iu-btn {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0;
    padding: 15px;
    color: #FFF;
    font-family: 'Lato', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1em;
    background-color: #0c77cf;
    border: none;
    border-radius: 100px;
    vertical-align: top;
    cursor: pointer;
    -webkit-appearance: none;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.iu-btn:hover,
.iu-btn:focus,
.iu-btn:active {
    background-color: #008AFF;
}

.iu-option {
    flex: 0 1 100%;
    margin: 10px 0;
}

@media only screen and (max-width: 359px) {
    .image-upload.mobile .lbox-container-inn {
        padding: 30px;
    }

    .image-upload.mobile .iu-t1 {
        margin-bottom: 20px;
    }

    .image-upload.mobile .iu-t2 {
        margin-top: 10px;
    }

    .image-upload.mobile .iu-t3 {
        margin-top: 20px;
    }
}

/* Custom */
.dragText {
    display: none;
    z-index:999999;
    position: absolute;
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    margin: 0 auto;
}
.dragText > span {
    display: block;
    text-align: center;
    font-weight: 900;
    position: relative;
    margin-top: 200px !important;
    font-size: 28px;
}

.photo-btn-loading {
    display: block;
    width: 48px;
    height: 48px;
    background: url(../images/photoUpload/spinner.svg) center center no-repeat;
    background-size: 48px auto;
    /*position: absolute;*/
    /*top: 0;*/
    /*right: 0;*/
}
#imageUploadMobile .photo-btn-loading {
    width: 32px;
    height: 32px;
}
@media only screen and (max-height: 689px) {
     .image-upload.mobile .lbox-container-three-items .iu-t1 {
        margin-bottom: 20px;
    }
    .image-upload.mobile .lbox-container-three-items .iu-t3 {
        margin-top: 20px;
    }
    .lbox-container-three-items .iu-icn {
        display: block;
        width: 56px;
        height: 56px;
    }
    .image-upload.mobile .lbox-container-three-items .iu-t2 {
        margin: 15px 0 0 0;
    }
}

#videoScannerLightbox .lbox-container-inn {
    padding: 0;
    background: #0009;
}
#videoScannerLightbox .videoScannerProcessing {
    position: absolute;
    bottom: 5px;
    line-height: 24px;
    font-size: 18px;
    color: #fff;
    width: 100%;
    text-align: center;
}
#videoScannerLightbox video {
    border: 1px solid black;
    box-shadow: 2px 2px 3px black;
    width: 100%;
    max-width: 640px;
    /*height: 482px;*/
}

@media only screen and (max-width: 640px) {
    #videoScannerLightbox video {
        max-width: 100%;
    }
}

/*SCANNER FRAME*/
.scannerLabel {
    position: absolute;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    color: white;
    background-color: rgba(0, 0, 0, 0.15);

    /*margin-top: 220px;!* in the middle 452 - (16 * 2lines) / 2 *!*/
    font-size: 16px;
    font-weight: 600;
    /*animation: blinker 2s linear infinite;*/

    width:80%;
    max-width: 612px;
    opacity: 1;
    text-align: center;
}
.scannerFrame {
    position: absolute;
    height: 450px;
    /*height: 300px;*/
    width:95%;
    max-width: 612px;
    margin: 14px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    top: 0;
    bottom: 0;
    margin-top: auto;
    margin-bottom: auto;
}
.scanner span::before {
    content:"";
    position:absolute;
    top:5%;
    bottom:0;
    left:3%;
    width:3px;
    border-radius: 50%;
    height: 90%;
    background: #ff0703;
    box-shadow:0 0 70px 15px #ff0703;
    clip-path:inset(0);
    animation:
            x 1s ease-in-out infinite alternate,
            y 2s ease-in-out infinite;
}
.scanner p::before {
    content: '';
    display:inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff0703;
    position: relative;
    right: 4px;
}

/*blinked scanning*/
.scanner p {
    color: #ff0703;
    position: absolute;
    bottom: -30px;
    left: 38%;
    font-size: 16px;
    font-weight: 600;
    animation: blinker 2s linear infinite;
    font-family: sans-serif;
    text-transform: uppercase;
}

/*frame border*/
.scanner:before,
.scanner:after,
.scanner em:after,
.scanner em:before {
    border-color: #ff0703;/*#18c89b;*/
    content: "";
    position: absolute;
    width: 45px;
    height: 46px;
    border-style: solid;
    border-width: 0px;
}
.scanner:before {
    left: 0;
    top: 0;
    border-left-width: 2px;
    border-top-width: 2px;
    border-radius: 5px 0 0 0;
}
.scanner:after {
    right: 0;
    top: 0;
    border-right-width: 2px;
    border-top-width: 2px;
    border-radius: 0 5px 0 0;
}
.scanner em:before {
    left: 0;
    bottom: 0;
    border-left-width: 2px;
    border-bottom-width: 2px;
    border-radius: 0 0 0 5px;
}
.scanner em:after {
    right: 0;
    bottom: 0;
    border-right-width: 2px;
    border-bottom-width: 2px;
    border-radius: 0 0 5px 0;
}

/*blink scanning*/
@keyframes blinker {
    50% { opacity: 0; }
}

/*move from left to right*/
@keyframes x {
    to {
        transform:translateX(-100%);
        left:97%;
    }
}
/* shadows */
@keyframes y {
    33% {
        clip-path:inset(0 0 0 -200px);
    }
    50% {
        clip-path:inset(0 0 0 0);
    }
    83%{
        clip-path:inset(0 -200px 0 0);
    }

}