.modal-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    z-index: 150;
    top: 0;
    left: 0;
}

#close-modal-360 {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

#close-modal-360-responsive {
    position: fixed;
    left: 15px;
    top: 50px;
    display: none;
    width: 33px;
    height: 33px;
    background: url(/CMS/uploads/imagesGeneriques/pictosPages/close-360.png);
    background-size: contain;
    cursor: pointer;
    z-index: 1001;
}

.modal-bg button {
    background: #FFF;
    color: #1e1e23;
    border: 1px solid #64e61e;
    padding: 10px;
    font-weight: 500;
    margin-top: 15px;
    text-align: center;
}

.modal-bg h3 {
    color: #FFF;
    width: 100%;
    text-align: center;
}

@media only screen and (max-width: 767px) {
    #close-modal-360 {
        display: none;
    }

    #close-modal-360-responsive {
        display: block;
    }
    
    .cd-product-viewer-wrapper  {
    top: 50%;
    left: 0;
    transform: translateY(-50%) translateX(0);
    width:100%;
    }
}

/* -------------------------------- 
Main Components 
-------------------------------- */
        
.cd-product-viewer-wrapper {
    text-align: center;
    top: 50%;
    left: 50%;
    padding: 2em 0;
    transform: translateY(-50%) translateX(-50%);
    position: absolute;
    z-index: 151;
}

.cd-product-viewer-wrapper > div {
    display: inline-block;
}

.cd-product-viewer-wrapper .product-viewer {
    position: relative;
    z-index: 1;
    display: inline-block;
    overflow: hidden;
    max-width: 600px;
}

.cd-product-viewer-wrapper img {
    /* this is the image visible before the image sprite is loaded */
    display: block;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.cd-product-viewer-wrapper .product-sprite {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    height: 100%;
    /* our image sprite is composed by 16 frames */
    width: 3000%;
    background: url(/CMS/uploads/FR/images/produits/boitiers/coyoteMini/sprite.jpg) no-repeat center center;
    background-size: 100%;
    opacity: 0;
    -webkit-transition: opacity 0.3s;
    -moz-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.cd-product-viewer-wrapper.loaded .product-sprite {
    /* image sprite has been loaded */
    opacity: 1;
    cursor: ew-resize;
}

.cd-product-viewer-handle {
    position: relative;
    z-index: 2;
    width: 60%;
    max-width: 300px;
    border-radius: 50em;
    margin: 1.5em auto 2em;
    height: 4px;
    background: #4d4d4d;
}

.cd-product-viewer-handle .fill {
    /* this is used to create the loading fill effect */
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: #64e61e;
    -webkit-transform: scaleX(0);
    -moz-transform: scaleX(0);
    -ms-transform: scaleX(0);
    -o-transform: scaleX(0);
    transform: scaleX(0);
    -webkit-transform-origin: left center;
    -moz-transform-origin: left center;
    -ms-transform-origin: left center;
    -o-transform-origin: left center;
    transform-origin: left center;
    -webkit-transition: -webkit-transform 0.5s;
    -moz-transition: -moz-transform 0.5s;
    transition: transform 0.5s;
}

.no-csstransitions .cd-product-viewer-handle .fill {
    display: none;
}

.loaded .cd-product-viewer-handle .fill {
    /* image sprite has been loaded */
    opacity: 0;
    -webkit-transition: -webkit-transform 0.3s, opacity 0.2s 0.3s;
    -moz-transition: -moz-transform 0.3s, opacity 0.2s 0.3s;
    transition: transform 0.3s, opacity 0.2s 0.3s;
}

.cd-product-viewer-handle .handle {
    position: absolute;
    z-index: 2;
    display: inline-block;
    height: 30px;
    width: 30px;
    left: 0;
    top: 10px;
    background: #64e61e url(/CMS/uploads/FR/images/produits/boitiers/coyoteMini/cd-arrows.svg) no-repeat center center;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(100, 230, 30, 0.46), 0 0 20px rgba(0, 0, 0, 0.2);
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    color: transparent;
    -webkit-transform: translateX(-50%) scale(0);
    -moz-transform: translateX(-50%) scale(0);
    -ms-transform: translateX(-50%) scale(0);
    -o-transform: translateX(-50%) scale(0);
    transform: translateX(-50%) scale(0);
    -webkit-transition: box-shadow 0.2s;
    -moz-transition: box-shadow 0.2s;
    transition: box-shadow 0.2s;
}

.cd-product-viewer-handle .handle:active {
    box-shadow: 0 0 0 0 rgba(181, 66, 64, 0), 0 0 20px rgba(0, 0, 0, 0.2);
}

.loaded .cd-product-viewer-handle .handle {
    /* image sprite has been loaded */
    -webkit-transform: translateX(-50%) scale(1);
    -moz-transform: translateX(-50%) scale(1);
    -ms-transform: translateX(-50%) scale(1);
    -o-transform: translateX(-50%) scale(1);
    transform: translateX(-50%) scale(1);
    -webkit-animation: cd-bounce 0.3s 0.3s;
    -moz-animation: cd-bounce 0.3s 0.3s;
    animation: cd-bounce 0.3s 0.3s;
    -webkit-animation-fill-mode: both;
    -moz-animation-fill-mode: both;
    animation-fill-mode: both;
    cursor: ew-resize;
    margin-top: -23px;
}

@-webkit-keyframes cd-bounce {
    0% {
        -webkit-transform: translateX(-50%) scale(0);
    }
    60% {
        -webkit-transform: translateX(-50%) scale(1.1);
    }
    100% {
        -webkit-transform: translateX(-50%) scale(1);
    }
}

@-moz-keyframes cd-bounce {
    0% {
        -moz-transform: translateX(-50%) scale(0);
    }
    60% {
        -moz-transform: translateX(-50%) scale(1.1);
    }
    100% {
        -moz-transform: translateX(-50%) scale(1);
    }
}

@keyframes cd-bounce {
    0% {
        -webkit-transform: translateX(-50%) scale(0);
        -moz-transform: translateX(-50%) scale(0);
        -ms-transform: translateX(-50%) scale(0);
        -o-transform: translateX(-50%) scale(0);
        transform: translateX(-50%) scale(0);
    }
    60% {
        -webkit-transform: translateX(-50%) scale(1.1);
        -moz-transform: translateX(-50%) scale(1.1);
        -ms-transform: translateX(-50%) scale(1.1);
        -o-transform: translateX(-50%) scale(1.1);
        transform: translateX(-50%) scale(1.1);
    }
    100% {
        -webkit-transform: translateX(-50%) scale(1);
        -moz-transform: translateX(-50%) scale(1);
        -ms-transform: translateX(-50%) scale(1);
        -o-transform: translateX(-50%) scale(1);
        transform: translateX(-50%) scale(1);
    }
}