/* These styles are required for the nbrown carousel to function */
.js-nbrown-carousel-track {
    display: flex;
    -webkit-overflow-scrolling: touch;
    overflow: auto;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.js-nbrown-carousel-item {
    flex-grow: 1;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.gui-carousel-container:empty {
	display: none;
}

.gui-carousel-container {
    background: #f2f2f2;
    display: flex;
    justify-content: center;
    flex-flow: row wrap;
    padding: 24px 0;
}

.gui-carousel-container h1 {
    flex: 1 0 100%;
    margin: 0;
    text-align: center;
    padding: 0 24px;
    box-sizing: border-box;
}

.gui-carousel {
    box-sizing: border-box;
    position: relative;
    width: 100%;
}

.gui-carousel .gui-carousel-track {
    padding: 24px 0;
    box-sizing: border-box;
    scroll-snap-type: x mandatory;
}

.gui-carousel .gui-carousel-track:before,
.gui-carousel .gui-carousel-track:after {
    content: '';
    flex: 0 0 20%;
}

.gui-carousel .gui-card {
    flex: 0 0 60%;
    margin-right: 16px;
    scroll-snap-align: center;
    text-decoration: none;
    color: black;
}

.gui-carousel .gui-card img {
    width: 100%;
    height: auto;
    margin-bottom: 24px;
}

.gui-carousel .gui-card h4 {
	margin-bottom: 12px;
	line-height: 20px;
}

p.price-was {
    margin-bottom: 6px;
    text-decoration: line-through;
    font-size: 14px;
}

.gui-carousel .price-now {
	font-weight: bold;
	font-size: 20px;
}

p.price-was ~ p.price-now {
    color: #ED2939;
}

.gui-carousel .gui-card .rating:not(:empty) {
    margin-bottom: 16px;
}


.gui-carousel .gui-card:last-child {
    margin-right: 0px;
}

.gui-btn.gui-carousel-next,
.gui-btn.gui-carousel-prev {
    display: none;
}

/* Product Prices */
.gui-carousel .product-prices {
    padding-bottom: 0px;
    text-align: center;
    
    -webkit-justify-content: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    margin-bottom: 24px;
    
    display: -webkit-box;
    
    display: -webkit-flex;
    
    display: -ms-flexbox;
    
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column;
        -ms-flex-flow: column;
            flex-flow: column;
}
.gui-carousel .product-prices {
    margin-bottom: 0;
    justify-content: flex-start;
    text-align: left;   
}
.gui-carousel .product-prices span {
	width: auto;
    display: initial;
}
.gui-carousel .product-prices p.was,
.gui-carousel .product-prices p.now,
.gui-carousel .product-prices p.save {
    display: block;
    margin-bottom: 6px;
}
.gui-carousel .product-prices p.now {
    font-size: 30px;
    font-weight: bold;
    -webkit-box-ordinal-group: 2;
    -webkit-order: 1;
        -ms-flex-order: 1;
            order: 1;
}
.gui-carousel .product-prices p.was {
    font-size: 14px;
    color: #575757;
    text-decoration: line-through;
    -webkit-box-ordinal-group: 3;
    -webkit-order: 2;
        -ms-flex-order: 2;
            order: 2;
}
.gui-carousel .product-prices p.save {
    font-size: 14px;
    font-weight: bold;
    -webkit-box-ordinal-group: 4;
    -webkit-order: 3;
        -ms-flex-order: 3;
            order: 3;
}
.gui-carousel .product-prices.was-now-save p.now {
    color: #ED2939;
}

/* Hide certain price labels and save price by default */
.gui-carousel .product-prices p.now .label-now,
.gui-carousel .product-prices p.now .label-from,
.gui-carousel .product-prices p.was .label-from,
.gui-carousel .product-prices p.save {
    display: none;
}

@media screen and (min-width: 768px) {
    .gui-carousel {
        width: auto;
    }

    .gui-carousel .gui-carousel-track {
        scroll-padding: 16px;
        max-width: 636px;
        margin: 0 auto;
    }

    .gui-carousel .gui-carousel-track:before,
    .gui-carousel .gui-carousel-track:after {
        display: none;
    }

    .gui-carousel .gui-card {
        flex: 0 0 calc(33% - 8px);
    }

    .gui-btn.gui-carousel-next.nbrown-carousel-move-disabled,
    .gui-btn.gui-carousel-prev.nbrown-carousel-move-disabled {
        display: none;
    }

    .gui-btn.gui-carousel-next,
    .gui-btn.gui-carousel-prev {
        position: absolute;
        top: calc(50% - 17px);
        border-radius: 50px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        padding: 9px;
        margin-bottom: 0;
        display: inline-flex;
    }

    .gui-btn.gui-carousel-next {
        right: -50px;
    }
    .gui-btn.gui-carousel-prev {
        left: -50px;
    }

    .gui-btn.gui-carousel-next:after,
    .gui-btn.gui-carousel-prev:before {
        margin: 0;
    }
}

@media screen and (min-width: 1024px) {
    .gui-carousel .gui-carousel-track {
        scroll-padding: 0;
        max-width: 890px;
    }

    .gui-carousel .gui-card {
        flex: 0 0 calc(25% - 12px);
        scroll-snap-align: start;
    }
}

/* View Bag Styles for Rich Relevance */
@media screen and (min-width: 768px) {
    .viewBag_rr .gui-carousel {
        width: 80%;
    }
}
@media screen and (min-width: 1024px) {
    .viewBag_rr .gui-carousel .gui-carousel-track {
        max-width: 678px;
    }
}




