.ui-noSelect {
    -moz-user-select: -moz-none;
    -khtml-user-select: none;
    -webkit-user-select: none;
    -o-user-select: none;
    user-select: none;
}
.ui-noSelect::selection { background: transparent;color:inherit; }
.ui-noSelect::-moz-selection { background: transparent;color:inherit; }
.ui-noSelect::-webkit-selection { background: transparent;color:inherit; }

.ui-shadow {
    -moz-box-shadow: #000 0 0 5px;
    -webkit-box-shadow: #000 0 0 5px;
    -ms-box-shadow: #000 0 0 5px;
    -o-box-shadow: #000 0 0 5px;
    box-shadow: #000 0 0 5px;
}
.ui-shadow:hover {
    -moz-box-shadow: #000 0 0 15px;
    -webkit-box-shadow: #000 0 0 15px;
    -ms-box-shadow: #000 0 0 15px;
    -o-box-shadow: #000 0 0 15px;
    box-shadow: #000 0 0 15px;
}

.ui-tag-shadow {
    -moz-box-shadow: #999 0 6px 10px;
    -webkit-box-shadow: #999 0 6px 10px;
    -ms-box-shadow: #999 0 6px 10px;
    -o-box-shadow: #999 0 6px 10px;
    box-shadow: #999 0 6px 10px;
}
.ui-tag-shadow:hover {
    -moz-box-shadow: #999 0 6px 15px;
    -webkit-box-shadow: #999 0 6px 15px;
    -ms-box-shadow: #999 0 6px 15px;
    -o-box-shadow: #999 0 6px 15px;
    box-shadow: #999 0 6px 15px;
}

.ui-shadow-hover {
    -moz-box-shadow: #000 0 0 15px;
    -webkit-box-shadow: #000 0 0 15px;
    -ms-box-shadow: #000 0 0 15px;
    -o-box-shadow: #000 0 0 15px;
    box-shadow: #000 0 0 15px;
}

.ui-transition {
    -webkit-transition: all 0.5s ease-in-out;
    -moz-transition: all 0.5s ease-in-out;
    -o-transition: all 0.5s ease-in-out;
    transition: all 0.5s ease-in-out;
}

.reset-outwidth {
    padding: 0;
    margin: 0;
}

.navbar-brand {
    padding: 10px 15px;
}

img.shoppable-logo {
    width: 32px;
}

.shop-name {
    font-size: 18px;
    font-weight: bold;
    margin: 15px 0 0 0;
}

.shop-name-ul {
    vertical-align: middle;
    height: 50px;
}

.shop-name-div {
    vertical-align: middle;
    height: 50px;
}

.shop-name {
    vertical-align: middle;
    margin: 12px 0 0;
    height: 50px;
}

#shoppable {
    padding: 65px 0 0 0;
}

#shoppable-slogan {
    padding: 0 5px;
    font-size: 16px;
    font-style: italic;
}

#shoppable-newsletter {
    padding: 10px 5px;
}

/* Preloader */
.preloader {
    color: #262626;
}

#grid {
    padding: 0 0 0 5px;
    margin: 0 auto;
}

.ui-grid-item {
    margin: 0 0 10px 0;
    width: calc(33% - 10px);
}

.ui-grid-item a img {
    width: 100%;
}

img.media-view {
    width: 100%;
}

.thumbnail {
    position:relative;
    overflow:hidden;
}

.shoppable-img-caption {
    height: auto;
    opacity: .8;
    background: #262626;
    color: #ffffff;
    font-weight: bold;
    width: 100%;
    padding: 2%;
    z-index: 999;

    -webkit-transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

.caption-top {
    top: 0;
}

.caption-bottom {
    bottom: 0;
}

p.user-info img {
    max-width: 16px;
}

.media-thumbnail:hover .shoppable-img-caption {
    opacity: 0;
}

a.media-thumbnail {
    border: 0 !important;
    padding: 0;
}

.shoppable-tags {
    max-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
}

.shoppable-tag-img {
    max-width: 100%;
    min-height: 100px;
    height: auto;
}

.shoppable-tag {
    cursor: pointer;
    margin: 0 0 10px 0;
}

.shoppable-tag-inner {
    height: auto;
    padding: 10px;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;
}

.shoppable-tag-label {
    display: table;
    font-size: 16px;
    overflow: hidden;
    height: 50px;
    width: 100%;
}

.preloader {
    position: fixed;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

a.callToAction, a.callToAction:hover {
    text-decoration: none;
}

/** Blur backdrop effect */
body.modal-open #shoppable {
    -webkit-filter: blur(7px);
    -moz-filter: blur(7px);
    -o-filter: blur(7px);
    -ms-filter: blur(7px);
    filter: blur(7px);
}

.modal-header {
    border: none;
    padding: 10px 0;
}

.modal-footer {
    /* pour separer les boutons de navigation de l’image dans la popin de 5 pixels */
    margin-top: 5px;
    padding-top: 0;
    border: none;
}

/* Avoid a bug under the popin when a tag tooltip is displayed on the bottom outside the image */
.shoppable-media {
    padding: 0 0 30px 0;
}

.modal-body {
    padding-top: 0;
    padding-bottom: 0;
}

/* Reset button style */
a.btn-tag, a.btn-tag:visited, a.btn-tag:active {
    color: #262626;
}

a.btn-tag:hover {
    font-weight: bold;
}

a.close {
   opacity: 1 !important;
}

#scroll-anchor {
    width: 100%;
    height: 1px;
    margin: 0 0 10px 0;
    background: transparent;
}

#shoppable-details-content {
    overflow-x: hidden;
}

@media screen and (min-width: 0) and (max-width: 680px) {
    /* Fullscreen modal on mobile */
    .modal-dialog {
        position: fixed;
        width: 100%;
        height: 100%;
        margin: 0 ;
        top: 0;
        left: 0;
    }
    .modal-body {
        position: absolute;
        top: 50px;
        bottom: 0;
        font-size: 15px;
        overflow: auto;
        margin-bottom: 60px;
        padding: 0 15px 0;
        width: 100%;
    }
    .modal-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        border: none;
    }
    .modal-content {
        min-height: 100%;
        border-radius: 0;
    }

    .modal-footer {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 60px;
        padding: 10px;
    }

    /* Remove scrollbar on tags list */
    .shoppable-tags {
        max-height: none;
        overflow: hidden;
    }

    /* Remove imag bottom padding on mobile */
    .shoppable-media {
        padding: 0;
    }
}

div.play-video {
    top: 16px;
    right: 31px;
    position: absolute;
    z-index:1024;
}

button.play-video {
    color: white;
    border-radius: 0px;
    cursor: pointer;
    background-color: #bbbbbb;
}

video {
    width: 100%;
}

span.icon-video {
    display: none;
    top: 6px;
    right: 11px;
    position: absolute;
    color: white;
    font-size: 18px;
}

.ui-grid-item .video-image {
    display: none;
}

/* On mobile, display only icon with no launching video capability */
@media screen and (min-width: 0) and (max-width: 680px) {
    span.icon-video {
        display: initial;
    }
    div.play-video {
        display: none !important;
    }

    .ui-grid-item .video-image {
        display: initial;
    }
    .ui-grid-item video {
        display: none;
    }
}
