/*
 * =========================================================
 * TESY QUICK
 * =========================================================
 */


/*
 * =========================================================
 * PAGE LAYOUT
 * HIDE LEFT / RIGHT COLUMNS
 * =========================================================
 */

body#module-tesyquick-display #left_column,
body#module-tesyquick-display #right_column {
    display: none !important;
}

body#module-tesyquick-display #columns {
    width: 100% !important;
}

body#module-tesyquick-display #columns > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body#module-tesyquick-display #center_column {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    flex: none !important;
    flex-basis: auto !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
}

body#module-tesyquick-display .tesyquick-inner {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}


/*
 * =========================================================
 * DESKTOP
 * =========================================================
 */

@media (min-width: 992px) {

    body#module-tesyquick-display #left_column,
    body#module-tesyquick-display #right_column {
        display: none !important;
    }

    body#module-tesyquick-display #center_column {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        flex: none !important;
        flex-basis: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}


/*
 * =========================================================
 * TABLET / MOBILE
 * =========================================================
 */

@media (max-width: 991px) {

    body#module-tesyquick-display #left_column,
    body#module-tesyquick-display #right_column {
        display: none !important;
    }

    body#module-tesyquick-display #center_column {
        width: 100% !important;
        max-width: 100% !important;
        float: none !important;
        flex: none !important;
        flex-basis: auto !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
}


/*
 * =========================================================
 * PAGE
 * =========================================================
 */

#tesyquick {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#tesyquick *,
#tesyquick *:before,
#tesyquick *:after {
    box-sizing: border-box;
}


#tesyquick .tesyquick-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 25px;
}


/*
 * =========================================================
 * HEADER
 * =========================================================
 */

#tesyquick .tesyquick-header {
    width: 100%;
    margin-bottom: 25px;
}

#tesyquick .tesyquick-header h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

#tesyquick .tesyquick-intro {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}


/*
 * =========================================================
 * CALCULATOR
 * =========================================================
 */

#tesyquick .tesyquick-calculator {
    width: 100%;
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #ddd;
    background: #fff;
}

#tesyquick .tesyquick-form-row {
    display: flex;
    align-items: flex-end;
    width: 100%;
}

#tesyquick .tesyquick-field {
    width: 300px;
    max-width: 100%;
}

#tesyquick .tesyquick-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

#tesyquick .tesyquick-field select {
    width: 100%;
    height: 42px;
    padding: 8px 10px;
}


/*
 * =========================================================
 * REQUIRED VOLUME
 * =========================================================
 */

#tesyquick .tesyquick-result {
    width: 100%;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#tesyquick .tesyquick-required {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
}

#tesyquick .tesyquick-required-label {
    font-weight: 400;
}

#tesyquick #tesyquick-required-volume {
    font-size: 20px;
    font-weight: 700;
}


/*
 * =========================================================
 * PRODUCTS
 * =========================================================
 */

#tesyquick .tesyquick-products {
    width: 100%;
    margin-top: 25px;
}

#tesyquick .tesyquick-products h2,
#tesyquick .tesyquick-selected h2 {
    margin: 0 0 15px;
    font-size: 22px;
    line-height: 1.3;
}


/*
 * =========================================================
 * PRODUCTS LIST
 * =========================================================
 */

#tesyquick .tesyquick-products-list {
    width: 100%;
}


#tesyquick .tesyquick-product {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 120px;
    margin-bottom: 12px;
    padding: 15px;
    border: 1px solid #ddd;
    background: #fff;
    transition: border-color 0.15s ease,
                box-shadow 0.15s ease;
}


#tesyquick .tesyquick-product:hover {
    border-color: #aaa;
}


/*
 * =========================================================
 * CHECKBOX
 * =========================================================
 */

#tesyquick .tesyquick-product-check {
    flex: 0 0 45px;
    width: 45px;
    text-align: center;
}


#tesyquick .tesyquick-product-checkbox {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
}


/*
 * =========================================================
 * IMAGE
 * =========================================================
 */

#tesyquick .tesyquick-product-image {
    flex: 0 0 110px;
    width: 110px;
    text-align: center;
}


#tesyquick .tesyquick-product-image a {
    display: inline-block;
}


#tesyquick .tesyquick-product-image img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/*
 * =========================================================
 * INFO
 * =========================================================
 */

#tesyquick .tesyquick-product-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 20px;
}


#tesyquick .tesyquick-product-name {
    margin-bottom: 8px;
    font-size: 17px;
    font-weight: 700;
}


#tesyquick .tesyquick-product-name a {
    color: inherit;
    text-decoration: none;
}


#tesyquick .tesyquick-product-name a:hover {
    text-decoration: underline;
}


#tesyquick .tesyquick-product-reference,
#tesyquick .tesyquick-product-volume {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.4;
}


/*
 * =========================================================
 * PRICE - LEFT + BOLD
 * =========================================================
 */

#tesyquick .tesyquick-product-price {
    flex: 0 0 150px;
    width: 150px;
    text-align: left;
    font-size: 19px;
    font-weight: 700;
    white-space: nowrap;
}


/*
 * =========================================================
 * SELECTED PRODUCTS
 * =========================================================
 */

#tesyquick .tesyquick-selected {
    width: 100%;
    margin-top: 30px;
    padding: 20px;
    border: 2px solid #72b239;
    background: #fff;
}


#tesyquick .tesyquick-selected-product {
    width: 100%;
}


/*
 * =========================================================
 * SELECTED PRODUCT ROW
 * =========================================================
 */

#tesyquick .tesyquick-selected-product-item {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 100px;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}


#tesyquick .tesyquick-selected-product-item:first-child {
    padding-top: 0;
}


#tesyquick .tesyquick-selected-product-item:last-of-type {
    border-bottom: 0;
}


/*
 * =========================================================
 * SELECTED IMAGE
 * =========================================================
 */

#tesyquick .tesyquick-selected-image {
    flex: 0 0 110px;
    width: 110px;
    text-align: center;
}


#tesyquick .tesyquick-selected-image a {
    display: inline-block;
}


#tesyquick .tesyquick-selected-image img {
    display: block;
    width: 100px;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}


/*
 * =========================================================
 * SELECTED INFO
 * =========================================================
 */

#tesyquick .tesyquick-selected-info {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 20px;
}


#tesyquick .tesyquick-selected-name {
    margin-bottom: 8px;
    font-size: 18px;
    font-weight: 700;
}


#tesyquick .tesyquick-selected-name a {
    color: inherit;
    text-decoration: none;
}


#tesyquick .tesyquick-selected-name a:hover {
    text-decoration: underline;
}


#tesyquick .tesyquick-selected-reference,
#tesyquick .tesyquick-selected-volume {
    margin-top: 4px;
    font-size: 14px;
}


/*
 * =========================================================
 * SELECTED PRICE
 * =========================================================
 */

#tesyquick .tesyquick-selected-price {
    flex: 0 0 150px;
    width: 150px;
    text-align: left;
    font-size: 20px;
    font-weight: 700;
    white-space: nowrap;
}


/*
 * =========================================================
 * SELECTED TOTAL
 * =========================================================
 */

#tesyquick .tesyquick-selected-total {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 20px;
    text-align: right;
}


#tesyquick .tesyquick-selected-total span {
    margin-right: 10px;
    font-weight: 400;
}


#tesyquick .tesyquick-selected-total strong {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}


/*
 * =========================================================
 * ADD TO CART
 * =========================================================
 */

#tesyquick .tesyquick-selected-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}


#tesyquick .tesyquick-green-button {
    display: inline-block;
    min-width: 220px;
    height: 44px;
    padding: 10px 20px;
    border: 1px solid #72b239;
    border-radius: 3px;
    background: #72b239;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
}


#tesyquick .tesyquick-green-button:hover {
    background: #5f9d2f;
    border-color: #5f9d2f;
}


#tesyquick .tesyquick-green-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/*
 * =========================================================
 * MESSAGE
 * =========================================================
 */

#tesyquick .tesyquick-message {
    width: 100%;
    margin-top: 20px;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    font-size: 14px;
}


/*
 * =========================================================
 * MOBILE
 * =========================================================
 */

@media (max-width: 767px) {

    #tesyquick .tesyquick-inner {
        padding: 15px;
    }


    /*
     * PRODUCTS
     */

    #tesyquick .tesyquick-product {
        flex-wrap: wrap;
    }


    #tesyquick .tesyquick-product-check {
        flex: 0 0 40px;
        width: 40px;
    }


    #tesyquick .tesyquick-product-image {
        flex: 0 0 90px;
        width: 90px;
    }


    #tesyquick .tesyquick-product-image img {
        width: 80px;
    }


    #tesyquick .tesyquick-product-info {
        flex: 1 1 calc(100% - 130px);
        padding: 0 10px;
    }


    #tesyquick .tesyquick-product-price {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 12px;
        padding-left: 50px;
        text-align: left;
    }


    /*
     * SELECTED PRODUCTS
     */

    #tesyquick .tesyquick-selected-product-item {
        flex-wrap: wrap;
    }


    #tesyquick .tesyquick-selected-image {
        flex: 0 0 90px;
        width: 90px;
    }


    #tesyquick .tesyquick-selected-image img {
        width: 80px;
    }


    #tesyquick .tesyquick-selected-info {
        flex: 1 1 calc(100% - 90px);
        padding: 0 10px;
    }


    #tesyquick .tesyquick-selected-price {
        flex: 1 1 100%;
        width: 100%;
        margin-top: 12px;
        padding-left: 100px;
        text-align: left;
    }


    /*
     * TOTAL
     */

    #tesyquick .tesyquick-selected-total {
        justify-content: flex-end;
        font-size: 18px;
    }


    #tesyquick .tesyquick-selected-total strong {
        font-size: 21px;
    }


    /*
     * BUTTON
     */

    #tesyquick .tesyquick-green-button {
        width: 100%;
    }
}