﻿/* Copyright 2019, Sciamble Corp. All Rights Reserved. We will take legal action against those who copy our HTML content, CSS style sheets and JavaScript functions. */

/* Product list page styling. */
.product-group {
    text-align: left;
    padding-bottom: 20px;
}

.product-container {
    flex-direction: row;
    flex-wrap: wrap;
    display: -webkit-box; /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox; /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex; /* NEW, Spec - Firefox, Chrome, Opera */
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: flex-start;
}

.product-box {
    width: 285px;
    margin-right: 15px;
    border-radius: 15px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
    border: 1px solid #bbb;
    border-top-color: #999;
    background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

    .product-box > * {
        line-height: 24px;
    }

.product-title {
    font-size: 18px;
    padding: 12px 0;
}

.product-image {
    height: 195px;
    padding: 0 12px;
    max-width: calc(100% - 24px); /* limit max-width to box width minus padding on both sides to prevent overflow. */
}

.product-separatorline {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    height: 1px;
    background-color: black;
}

.product-description {
    text-align: left;
    padding: 0 12px;
}

.product-buttons {
    margin-top: auto; /* pushes container to bottom. */
}

.product-button0 {
    background-color: darkorange;
    border-radius: 0 0 15px 15px;
    width: 100%;
    float: left;
}

.product-button1 {
    background-color: darkorange;
    border-radius: 0 0 0 15px;
    width: 50%;
    float: left;
}

.product-button2 {
    background-color: dodgerblue;
    border-radius: 0 0 15px 0;
    width: 50%;
    float: right;
}


/* Product buy page styling. */
#buy-container {
    padding-top: 10px;
}

#buy-image {
    width: calc(40% - 20px);
    vertical-align: middle;
    padding-right: 10px;
}

#buy-details {
    width: 60%;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 5px;
    border-radius: 15px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
    border: 1px solid #bbb;
    border-top-color: #999;
    background-image: linear-gradient(to bottom, #ffffff, #f2f2f2);
    vertical-align: top;
    position: relative;
}

#buy-details-title {
    text-align: left;
}

#buy-details-description {
    text-align: left;
}

#buy-details-info {
    display: table;
    width: 100%;
    text-align: left;
    padding-bottom: 78px; /* Button following is fixed to bottom of box so will end up overlaying the details box. Hence add padding needed + height of button. */
}

#buy-details-info-price, #buy-details-info-units, #buy-details-info-price > *, #buy-details-info-units > *, #buy-details-info-units label {
    font-size: 24px;
}

#buy-details-info-price, #buy-details-info-units {
    height: 28px;
}

#buy-details-info-left, #buy-details-info-right {
    display: table-cell;
}

#buy-details-info-units select {
    height: 26px;
    box-sizing: border-box;
    padding: 0px 5px;
    border-radius: 5px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.18);
    -webkit-font-smoothing: antialiased;
    border: 1px solid #bbb;
    border-top-color: #999;
    font-size: 18px;
}

#buy-details-disclaimer {
    width: 60%;
    float: right;
    color: gray;
    font-size: 12px;
    text-align: left;
}

    #buy-details-disclaimer * {
        font-size: 12px;
    }

#buy-details-button {
    position: absolute;
    bottom: 0;
    width: calc(100% - 40px);
}

@media screen and (max-width: 1000px) {
    .product-group {
        text-align: center;
        padding-bottom: 0;
    }

    .product-container {
        -webkit-justify-content: space-around;
        justify-content: space-around;
    }

    .product-box {
        margin: 20px 0;
    }

    #buy-container {
        display: block;
    }

    #buy-image {
        display: block;
        width: 100%;
    }

    #buy-details {
        display: block;
        width: calc(100% - 40px);
        margin-top: 20px;
    }

    #buy-details-disclaimer {
        width: 100%;
    }

    #buy-details-info-left, #buy-details-info-right {
        display: block;
        float: none;
    }

    #buy-details-info-right {
        padding-top: 20px;
    }
}
