/* =========================================================
   GRUNDFOS SONDAJ
   PrestaShop 1.6.1.24
   Theme: owl_esonic
   ========================================================= */


/* =========================================================
   PAGE LAYOUT
   HIDE LEFT / RIGHT COLUMNS
   ========================================================= */

body#module-grundfossondaj-display #left_column,
body#module-grundfossondaj-display #right_column {
    display: none !important;
}

body#module-grundfossondaj-display #columns {
    width: 100% !important;
}

body#module-grundfossondaj-display #columns > .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

body#module-grundfossondaj-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;
}


/* =========================================================
   GRUNDFOS SONDAJ
   ========================================================= */

#grundfossondaj {
    width: 100%;
    margin: 20px 0;
    box-sizing: border-box;
}

#grundfossondaj *,
#grundfossondaj *:before,
#grundfossondaj *:after {
    box-sizing: border-box;
}

.grundfossondaj-inner {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 25px;

    background: #ffffff;
    border: 1px solid #dddddd;
}


/* =========================================================
   TITLE
   ========================================================= */

.grundfossondaj-title {
    width: 100%;
    margin: 0 0 25px 0;
    padding: 0 0 15px 0;

    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    text-align: left;

    border-bottom: 1px solid #dddddd;
}


/* =========================================================
   CALCULATOR LAYOUT
   FORM + DIAGRAM
   ========================================================= */

.grundfossondaj-calculator-layout {
    display: flex;
    align-items: flex-start;

    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   FORM
   ========================================================= */

.grundfossondaj-calculator-layout .grundfossondaj-form {
    flex: 1 1 65%;
    width: 65%;
    min-width: 0;

    padding-right: 30px;
}

.grundfossondaj-distance-row,
.grundfossondaj-consumption-row {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 -10px;
}

.grundfossondaj-distance-row .grundfossondaj-field,
.grundfossondaj-consumption-row .grundfossondaj-field {
    width: calc(33.333333% - 20px);
    margin: 0 10px 20px 10px;
}


/* =========================================================
   DIAGRAM
   ========================================================= */

.grundfossondaj-diagram {
    flex: 0 0 35%;
    width: 35%;

    margin: 0;
    padding: 0;

    text-align: center;
}

.grundfossondaj-diagram img {
    display: block;

    width: 100%;
    max-width: 100%;
    height: auto;

    margin: 0 auto;
}


/* =========================================================
   FIELD
   ========================================================= */

.grundfossondaj-field {
    position: relative;
}

.grundfossondaj-field label {
    display: block;
    width: 100%;
    min-height: 42px;
    margin: 0 0 7px 0;

    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
}

.grundfossondaj-field input {
    display: block;
    width: 100%;
    height: 44px;

    padding: 8px 12px;

    border: 1px solid #cccccc;
    background: #ffffff;

    font-size: 16px;
    line-height: 26px;

    color: #333333;

    outline: none;
}

.grundfossondaj-field input:focus {
    border-color: #999999;
}


/* =========================================================
   BUTTON
   ========================================================= */

.grundfossondaj-action {
    width: 100%;
    margin-top: 5px;
    text-align: left;
}

.grundfossondaj-button {
    display: inline-block;

    min-width: 180px;
    height: 45px;

    padding: 8px 25px;

    border: 1px solid #7bbd2a;
    background: #7bbd2a;

    color: #ffffff;

    font-size: 15px;
    line-height: 29px;
    font-weight: 700;

    text-align: center;

    cursor: pointer;

    transition: all 0.2s ease;
}

.grundfossondaj-button:hover {
    background: #68a91f;
    border-color: #68a91f;
    color: #ffffff;
}


/* =========================================================
   ERROR
   ========================================================= */

.grundfossondaj-error {
    width: 100%;
    margin-top: 20px;
    padding: 12px 15px;

    background: #f9e6e6;
    border: 1px solid #e0b4b4;

    color: #a94442;

    font-size: 14px;
    line-height: 20px;
}


/* =========================================================
   RESULT
   ========================================================= */

.grundfossondaj-result {
    width: 100%;
    margin-top: 30px;
    padding-top: 25px;

    border-top: 1px solid #dddddd;
}


/* =========================================================
   REQUIREMENTS
   ========================================================= */

.grundfossondaj-requirements {
    display: flex;
    flex-wrap: wrap;

    width: 100%;
    margin: 0 -10px 25px -10px;
}

.grundfossondaj-requirement {
    width: calc(50% - 20px);

    margin: 0 10px;
    padding: 15px;

    background: #f6f6f6;
    border: 1px solid #dddddd;

    font-size: 17px;
    line-height: 25px;
}

.grundfossondaj-requirement-label {
    font-weight: 600;
}


/* =========================================================
   PRODUCTS TITLE
   ========================================================= */

.grundfossondaj-products-title {
    width: 100%;
    margin: 0 0 20px 0;

    font-size: 21px;
    line-height: 28px;
    font-weight: 700;
}


/* =========================================================
   LOADING
   ========================================================= */

.grundfossondaj-loading {
    width: 100%;
    margin: 15px 0;

    font-size: 15px;
    line-height: 22px;
}


/* =========================================================
   PRODUCTS
   ========================================================= */

.grundfossondaj-products {
    width: 100%;
}

.grundfossondaj-product {
    display: flex;
    flex-wrap: nowrap;

    width: 100%;
    margin: 0 0 20px 0;
    padding: 20px;

    background: #ffffff;
    border: 1px solid #dddddd;
}


/* =========================================================
   PRODUCT IMAGE
   ========================================================= */

.grundfossondaj-product-image {
    flex: 0 0 180px;
    width: 180px;

    margin-right: 25px;

    text-align: center;
}

.grundfossondaj-product-image a {
    display: block;
}

.grundfossondaj-product-image img {
    display: block;

    width: 180px;
    height: 180px;

    max-width: 100%;

    object-fit: contain;
}


/* =========================================================
   PRODUCT CONTENT
   ========================================================= */

.grundfossondaj-product-content {
    flex: 1 1 auto;
    min-width: 0;
}

.grundfossondaj-product-name {
    width: 100%;
    margin: 0 0 15px 0;

    font-size: 19px;
    line-height: 25px;
    font-weight: 700;
}

.grundfossondaj-product-name a {
    color: #333333;
    text-decoration: none;
}

.grundfossondaj-product-name a:hover {
    text-decoration: underline;
}


/* =========================================================
   SPECS
   ========================================================= */

.grundfossondaj-product-specs {
    display: flex;
    flex-wrap: wrap;

    width: 100%;
    margin: 0 -10px 15px -10px;
}

.grundfossondaj-spec {
    margin: 0 10px 5px 10px;

    font-size: 15px;
    line-height: 22px;
}

.grundfossondaj-spec-label {
    font-weight: 600;
}


/* =========================================================
   PRICE
   ========================================================= */

.grundfossondaj-product-price {
    width: 100%;
    margin: 5px 0 15px 0;

    font-size: 20px;
    line-height: 26px;
    font-weight: 700;
}


/* =========================================================
   PRODUCT ACTIONS
   ========================================================= */

.grundfossondaj-product-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;

    width: 100%;
}

.grundfossondaj-view-button,
.grundfossondaj-cart-button {
    display: inline-block;

    min-height: 40px;

    margin: 0 10px 0 0;
    padding: 8px 18px;

    font-size: 14px;
    line-height: 22px;

    text-align: center;

    cursor: pointer;
    text-decoration: none;

    transition: all 0.2s ease;
}

.grundfossondaj-view-button {
    border: 1px solid #7bbd2a;
    background: #ffffff;
    color: #68a91f;
}

.grundfossondaj-view-button:hover {
    background: #7bbd2a;
    border-color: #7bbd2a;
    color: #ffffff;
    text-decoration: none;
}

.grundfossondaj-cart-button {
    border: 1px solid #7bbd2a;
    background: #7bbd2a;
    color: #ffffff;
}

.grundfossondaj-cart-button:hover {
    background: #68a91f;
    border-color: #68a91f;
    color: #ffffff;
}

.grundfossondaj-cart-button:disabled {
    opacity: 0.6;
    cursor: default;
}


/* =========================================================
   CART MESSAGE
   ========================================================= */

.grundfossondaj-cart-message {
    width: 100%;
    margin-top: 10px;

    font-size: 14px;
    line-height: 20px;
}

.grundfossondaj-cart-success {
    color: #3c763d;
}

.grundfossondaj-cart-error {
    color: #a94442;
}


/* =========================================================
   NO PRODUCTS
   ========================================================= */

.grundfossondaj-no-products {
    width: 100%;
    padding: 15px;

    background: #f6f6f6;
    border: 1px solid #dddddd;

    font-size: 15px;
    line-height: 22px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991px) {

    .grundfossondaj-calculator-layout .grundfossondaj-form {
        flex: 1 1 60%;
        width: 60%;
        padding-right: 20px;
    }

    .grundfossondaj-diagram {
        flex: 0 0 40%;
        width: 40%;
    }

    .grundfossondaj-distance-row .grundfossondaj-field,
    .grundfossondaj-consumption-row .grundfossondaj-field {
        width: calc(50% - 20px);
    }

    .grundfossondaj-product-image {
        flex: 0 0 150px;
        width: 150px;
    }

    .grundfossondaj-product-image img {
        width: 150px;
        height: 150px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    body#module-grundfossondaj-display #center_column {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .grundfossondaj-inner {
        padding: 15px;
    }

    .grundfossondaj-title {
        font-size: 20px;
        line-height: 26px;
    }


    /* -----------------------------------------------------
       CALCULATOR
       ----------------------------------------------------- */

    .grundfossondaj-calculator-layout {
        display: block;
    }

    .grundfossondaj-calculator-layout .grundfossondaj-form {
        width: 100%;
        padding-right: 0;
    }

    .grundfossondaj-diagram {
        width: 100%;
        margin-top: 25px;
    }

    .grundfossondaj-diagram img {
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }


    /* -----------------------------------------------------
       FORM
       ----------------------------------------------------- */

    .grundfossondaj-distance-row,
    .grundfossondaj-consumption-row {
        display: block;
        margin: 0;
    }

    .grundfossondaj-distance-row .grundfossondaj-field,
    .grundfossondaj-consumption-row .grundfossondaj-field {
        width: 100%;
        margin: 0 0 18px 0;
    }

    .grundfossondaj-field label {
        min-height: 0;
    }


    /* -----------------------------------------------------
       REQUIREMENTS
       ----------------------------------------------------- */

    .grundfossondaj-requirements {
        display: block;
        margin: 0 0 20px 0;
    }

    .grundfossondaj-requirement {
        width: 100%;
        margin: 0 0 10px 0;
    }


    /* -----------------------------------------------------
       PRODUCTS
       ----------------------------------------------------- */

    .grundfossondaj-product {
        display: block;
        padding: 15px;
    }

    .grundfossondaj-product-image {
        width: 100%;
        margin: 0 0 15px 0;
    }

    .grundfossondaj-product-image img {
        width: 180px;
        height: 180px;
        margin: 0 auto;
    }

    .grundfossondaj-product-actions {
        display: block;
    }

    .grundfossondaj-view-button,
    .grundfossondaj-cart-button {
        display: block;
        width: 100%;
        margin: 0 0 10px 0;
    }

}
