/*** LIVE EAN SCANNER ***/
div#ean-live-scanner-container {
    margin: 10px;
}

#start-ean-scanner {
    background: #2d5b96;
    border: none;
    padding: 6px 13px;
    border-radius: 3px;
    font-size: 1.5em;
    color: #ffffff;
}

#stop-ean-scanner {
    height: 40px;
    width: 40px;
    color: #bb0808;
    font-size: 3em;
    padding: 0;
    border-radius: 100%;
    background: 0;
    border: 0;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
}

#ean-live-scanner {
    width: min-content;
    margin: 10px auto;
    display: flex;
    justify-content: center;
    position: relative;
    display: none;
}

#ean-live-scanner video {
    position: absolute;
    max-width: 500px;
    text-align: center;
}

#ean-live-scanner canvas {
    position: relative;
    top: 0;
    left: 0;
    max-width: 500px;
}

#ean-scanner-progressbar {
    position: absolute;
    top: 10px;
    left: 10px;
    height: 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    display: flex;
    color: #FFF;
    font-size: 1em;
    font-weight: bold;
    background-color: rgb(45, 91, 150);
    border-radius: 100%;
    border: 3px solid #FFF;
}

#stop-ean-scanner i {
    border-radius: 100%;
    background-color: #FFFFFF;
    padding: 3px 2px 2px 2px;
}

@media only screen and (min-width: 768px) {
    #ean-live-scanner, #start-ean-scanner {
        display: none;
    }
}

@media only screen and (max-width: 767px) {
    #ean-live-scanner {
        width: initial;
        margin: 0;
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background: rgba(0,0,0,0.6);
        z-index: 100;
    }

    #ean-live-scanner video {
        position: absolute;
        max-width: 100%;
        width: 100%;
        text-align: center;
        height: 100%;
    }

    #ean-live-scanner canvas {
        position: relative;
        top: 0;
        left: 0;
        max-width: 100%;
        width: 100%;
        height: 100%;
    }
}
/*** END OF EAN SCANNER ***/