﻿.catalog-carousel {
    padding: 20px 10px 0 10px;
}

.catalog-carousel .cat-label {
    font-size: 14px;
    margin: 0 0 6px 18px;
    display: block;
    font-weight: normal;
}

.catalog-carousel .cat-container div {
    white-space: nowrap;
}

.catalog-carousel .clear-selection {
    position: absolute;
    top: 21px;
    left: 110px;
    color: #5e0d0d;
    cursor: pointer;
}

    .catalog-carousel .clear-selection .i24x24 {
        vertical-align: middle;
    }

    .catalog-carousel .clear-selection .text {
        vertical-align: middle;
        display: inline-block;
        margin-left: 4px;
        font-size: large;
    }

.catalog-carousel .cat-items-wrapper {
    overflow: hidden;
}

.catalog-carousel .cat-items-wrapper::-webkit-scrollbar {
    display: none;
}

.catalog-carousel .icon {
    height: 0;
    width: 0;
    display: inline-block;
    margin-top: 24px;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0;
    transition: opacity 150ms linear;
    -webkit-user-select: none;
    user-select: none;
    cursor: pointer;
}

    .catalog-carousel .icon.enable {
        opacity: 1;
        -webkit-user-select: auto;
        user-select: all;
    }

.catalog-carousel .icon.leftarrow {
    border-right: 8px solid #626262;
    float: left;
    margin-right: 10px;
}

.catalog-carousel .icon.rightarrow {
    border-left: 8px solid #626262;
    float: right;
    margin-left: 10px;
}

.catalog-carousel .items {
    margin: 0;
    padding: 0;
    list-style: none;
    display: block;
    font-size: 0;
}

.catalog-carousel .item {
    width: 65px;
    padding: 0;
    display: inline-block;
    cursor: pointer;
    vertical-align: top;
    margin: 0;
    transition: margin 250ms cubic-bezier(0.215, 0.61, 0.355, 1);
}

    .catalog-carousel .item.showing {
        animation: showItemXs 250ms cubic-bezier(0.215, 0.61, 0.355, 1) forwards;
    }

    .catalog-carousel .item.hiding {
        animation: hideItemXs 250ms cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
    }

    .catalog-carousel .item + .item {
        margin: 0 0 0 10px;
    }

    .catalog-carousel .item + .item.hiding {
        margin: 0;
    }

    .catalog-carousel .item-img {
        height: 65px;
        width: 65px;
        background-position: center center;
        background-repeat: no-repeat;
    }

    .catalog-carousel .item-name {
        display: block;
        overflow: hidden;
        white-space: normal;
        text-align: center;
        color: #1a1a1a;
        font-weight: bold;
        line-height: 14px;
        margin-top: 2px;
    }

@media (min-width: 768px) {
    .catalog-carousel {
        padding: 20px 20px 0 20px;
    }

    .catalog-carousel .cat-label {
        margin-left: 23px;
    }

    .catalog-carousel .cat-items-wrapper {
        overflow: hidden;
    }

    .catalog-carousel .icon {
        margin-top: 42px;
    }

        .catalog-carousel .icon.leftarrow {
            margin-right: 15px;
        }

        .catalog-carousel .icon.rightarrow {
            margin-left: 15px;
        }

    .catalog-carousel .item {
        width: 100px;
    }

        .catalog-carousel .item.showing {
            animation-name: showItemSm;
        }

        .catalog-carousel .item.hiding {
            animation-name: hideItemSm;
        }

        .catalog-carousel .item + .item {
            margin: 0 0 0 15px;
        }

    .catalog-carousel .item-img {
        height: 100px;
        width: 100px;
    }

    .catalog-carousel .clear-selection {
        top: 38px;
        left: 145px;
    }
}

@keyframes showItemXs {
    from {
        transform: scale(0.5);
        width: 0;
        opacity: 0;
    }
    to {
        transform: scale(1);
        width: 65px;
        opacity: 1;
    }
}

@keyframes showItemSm {
    from {
        transform: scale(0.5);
        width: 0;
        opacity: 0;
    }
    to {
        transform: scale(1);
        width: 100px;
        opacity: 1;
    }
}

@keyframes hideItemXs {
    from {
        transform: scale(1);
        width: 65px;
        opacity: 1;
    }
    to {
        transform: scale(0.5);
        width: 0;
        opacity: 0;
    }
}

@keyframes hideItemSm {
    from {
        transform: scale(1);
        width: 100px;
        opacity: 1;
    }
    to {
        transform: scale(0.5);
        width: 0;
        opacity: 0;
    }
}