﻿.assetWrapper {
    max-width: 400px;
    line-height: 100%;
    margin: 10px;
}
.assetWrapper .userAvatarWrapper {
    border: 0 !important;
}
.assetWrapper .assetImageWrap {
    display: flex;
    margin-bottom: 8px;
    position: relative;
}
.assetWrapper .assetImageWrap img.mainImg {
    position: relative;
    z-index: 2;
    border-radius: 3px;
    display: block;
    -webkit-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.4);
    -moz-box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.4);
    box-shadow: 0px 0px 2px 0px rgba(0,0,0,0.4);
}
.assetWrapper .assetImageWrap video,
.assetWrapper .assetImageWrap img.gifImg {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
}

.assetWrapper .assetImageWrap:hover video,
.assetWrapper .assetImageWrap:hover img.gifImg {
    display: block;
    z-index: 3;
    animation-name: fadeInOpacity;
    animation-iteration-count: 1;
    animation-timing-function: ease-in;
    animation-duration: 500ms;
}

@keyframes fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}
.bundleInner .inBasketLabel,
.assetWrapper .inBasketLabel {
    background: #7df972;
    color: #377931;
    margin: 0 !important;
}
.assetWrapper .inBasketLabel {
    position: absolute;
    z-index: 3;
    bottom: 10px;
    left: 10px;
}

    .assetWrapper .assetImageWrap.hasOverlay:hover .gifLabel,
    .assetWrapper .assetImageWrap.hasOverlay:hover .exclusiveNotice {
        animation-name: fadeOutOpacity;
        animation-iteration-count: 1;
        animation-timing-function: ease-in;
        animation-duration: 150ms;
        opacity: 0;
    }

.assetWrapper .itemNameWrap {
    margin-bottom: 5px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.assetWrapper a.assetName {
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
    line-height: 100%;
    display: inline;
    font-weight: 500;
    margin-right: 7px;
}
.assetWrapper .priceWrap {
    display: inline-flex;
    background: #efefef;
    border-radius: 3px;
    font-weight: 500;
    vertical-align: top;
    margin-top: 1px;
}
.assetWrapper .priceWrap span.from {
    font-style: italic;
    padding: 0 !important;
    font-size: 0.7rem;
    position: relative;
    top: -3px;
}

    .assetWrapper .priceWrap.exclusive {
        background: #dc0d8a !important;
        color: #fff;
    }
.assetWrapper .discount {
    background: #dc0d8a !important;
    color: #ffffff !important;
}

.assetWrapper .priceWrap span {
    padding: 4px;
    font-size: 0.85rem;
    line-height: 100%;
}

.assetWrapper .priceWrap span.price {
    font-style: italic;
    padding-left: 6px;
    padding-right: 6px;
}

.assetWrapper .discount {
    font-size: 0.85rem;
    padding: 0 5px;
}
.assetWrapper .discount {
    -webkit-border-top-right-radius: 3px;
    -webkit-border-bottom-right-radius: 3px;
    -moz-border-radius-topright: 3px;
    -moz-border-radius-bottomright: 3px;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

.assetWrapper:hover .discount {
    animation-duration: 1000ms;
    animation-iteration-count: 1;
    animation-name: rubberBand;
    animation-delay: 0;
}

.assetWrapper span.description {
    font-size: 1rem;
    margin: 0;
    padding: 0;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.assetWrapper .bottomWrap {
    margin-top: 5px;
    display: flex;
    align-items: center;
}

.assetWrapper .bottomWrap .author {
    display: flex;
    align-items: center;
    font-size: 1rem;
    flex: 1;
    line-height: 100%;
}

.assetWrapper .bottomWrap .author img {
    border-radius: 3px;
    display: block;
    margin-right: 5px;
}
.assetWrapper:hover .rating.high > div img{
    animation-duration: 800ms;
    animation-iteration-count: 1;
    animation-name: rubberBand;
    animation-delay: 0;
}

.assetWrapper .gifLabel,
.assetWrapper .exclusiveNotice {
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #ffffff;
    font-weight: 500;
    z-index: 3;
    line-height: 100%;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.75rem;
    padding: 3px 6px;
    text-transform: uppercase;
}
.assetWrapper .exclusiveNotice {
    left: 10px;
    right: auto;
    background: #dc0d8a;
}

/* Tile fav control */
.assetImageWrap .favouriteWrap {
    position: absolute;
    top: 5px;
    right: 5px;
    border: 0 !important;
    z-index: 4;
}

.assetImageWrap .favouriteWrap .countWrapper {
    display: none;
}
.rating {
    flex: 0;
    white-space: nowrap;
    min-width: 100px;
    position: relative;
    font-size: 0;
    display: inline-flex;
}
.rating img {
    opacity: 0.3;
}

.rating > div {
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.rating > div img {
    opacity: 1;
}

.inBasketLabel {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    line-height: 100%;
    font-size: 0.75rem;
    padding: 4px 5px;
    background: #7df972;
    color: #377931;
    margin-bottom: 5px;
    margin-top: 2px;
    text-transform: uppercase;
    font-weight: 500;
}

.inBasketLabel img {
    margin-right: 3px;
    opacity: 0.5;
    margin-top: -1px;
}


.bannerWrapper {
    width: 150px;
    height: 150px;
    overflow: hidden;
    position: absolute;
    top: -5px;
    left: -5px;
}

    .bannerWrapper:after,
    .bannerWrapper:before {
        content: "";
        display: block;
        width: 10px;
        height: 5px;
        background-color: #b22622;
        position: absolute;
        top: 0;
        right: 28px;
        z-index: 1;
    }

.bannerWrapper:before {
    top: auto;
    right: auto;
    bottom: 28px;
    height: 20px;
}

.bannerWrapper > div {
    width: 200px;
    padding: 5px;
    background-color: #dc0d8a;
    color: #fff;
    text-align: center;
    -webkit-transform: rotate(-45deg) translate(-28%, -35%);
    transform: rotate(-45deg) translate(-28%, -35%);
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 3;
    position: relative;
}

.bannerWrapper.demoAvailable > div {
    background-color: #b953f8;
}

.bannerWrapper.demoAvailable:after,
.bannerWrapper.demoAvailable:before {
    background-color: #8927c6;
}

.bannerWrapper.freeSample > div {
    background-color: #f45bcc;
}
.bannerWrapper.freeSample:after,
.bannerWrapper.freeSample:before {
    background-color: #c5329f;
}


.constructOfficialUserWrap {
    background: #fafafa;
    border-radius: 3px;
    display: flex;
    align-items: center;
    font-weight: 500;
    padding: 2px 5px;
    white-space: nowrap;
    max-width: 168px;
}



.assetWrapper.sws span.discount {
    background: #ff3dbf !important;
}
.assetWrapper.sws .bannerWrapper > div {
    background: #ff3dbf !important;
}
.assetWrapper.sws .exclusiveNotice {
    background: #ff3dbf !important;
}
.assetWrapper.sws .rating img {
    filter: invert(38%) sepia(69%) saturate(3205%) hue-rotate(300deg) brightness(107%) contrast(101%);
}