/*
Theme Name:  Slanka_Divi
Theme URI:   http://slanka.se
Version:     1.0
Description: A child theme of Divi. This is a custom child theme created for our site .
Author:      Torkel
Author URI:  http://data.hannah.se
Template:    Divi
*/

@import url("../Divi/style.css");

/* Full size stuff */

@media screen and ( min-width: 980px) {
    /* slankare menyfont */
    #et-top-navigation {
        width: 1080px !important;
        margin: 0px auto 0;
        font-weight: 400 !important;
        padding: 5px;
    }
    #searchiconmobile {
        display: none;
    }
    #top-menu-nav {
        text-align: left;
        width: 100%;
    }
    #et_top_search {
        display: block;
        float: right !important;
        position: relative;
        width: 18px;
        top: -10px;
    }
    .et_fullwidth_nav #main-header .container {
        padding-top: 24px;
        padding-bottom: 24px;
    }
    #main-header {
        z-index: 9888;
    }
    .logo_cart {
        float: right;
        position: relative;
        clear: both;
        padding-top: 50px;
    }
    .wpmenucart-shortcode.hover {
        background-color: white;
    }
    .wpmenucart-shortcode.hover:hover {
        border: 1px solid gray;
        position: absolute;
        left: -400px;
        z-index: 1000 !important;
        padding: 10px;
    }
    div.wpmenucart-shortcode.hover:hover ul.wpmenucart {
        display: block !important;
        text-align: left;
        width: 450px;
    }
    /* quantity on cart page should be left */
    .woocommerce table.cart td.product-quantity .qib-container {
        display: flex;
        justify-content: left!important;
    }
    /* cart-totals should be 100% */
    .woocommerce .cart-collaterals .cart_totals,
    .woocommerce-page .cart-collaterals .cart_totals {
        float: none;
        width: 100%;
    }
}


/* min-width 980 */


/* custom search form */

#fz-search-form {
    margin: 20px;
}


/* Hide bundled items */

.woocommerce-cart-form__cart-item.cart_item.bundled_table_item {
    display: none;
}

.woocommerce #content div.product form.cart div.quantity,
.woocommerce div.product form.cart div.quantity,
.woocommerce-page #content div.product form.cart div.quantity,
.woocommerce-page div.product form.cart div.quantity {
    margin: inherit !important;
}

.woocommerce #content input.button.alt:hover,
.woocommerce #content input.button:hover,
.woocommerce #respond input#submit.alt:hover,
.woocommerce #respond input#submit:hover,
.woocommerce a.button.alt:hover,
.woocommerce a.button:hover,
.woocommerce button.button.alt:hover,
.woocommerce button.button:hover,
.woocommerce input.button.alt:hover,
.woocommerce input.button:hover,
.woocommerce-page #content input.button.alt:hover,
.woocommerce-page #content input.button:hover,
.woocommerce-page #respond input#submit.alt:hover,
.woocommerce-page #respond input#submit:hover,
.woocommerce-page a.button.alt:hover,
.woocommerce-page a.button:hover,
.woocommerce-page button.button.alt:hover,
.woocommerce-page button.button:hover,
.woocommerce-page input.button.alt:hover,
.woocommerce-page input.button:hover {
    padding: .3em 2em 0.3em 1em !important;
    border: 2px solid transparent;
}


/* Buy button */

.woocommerce div.product form.cart .qib-container+button[type="submit"],
.woocommerce li.product .qib-container+.add_to_cart_button {
    margin-left: 5px !important;
    padding: 0.0em 0.5em 0.1em 0.5em !important;
    border: 2px solid transparent;
    height: 35px;
    vertical-align: top;
}

.woocommerce li.product .qib-container+.add_to_cart_button:hover {
    margin-left: 5px !important;
    padding: 0.0em 0.5em 0.1em 0.5em !important;
    border: 2px solid transparent;
}

.woocommerce ul.products li.product .button {
    margin-top: 0em;
}


/* hide the ugly "view cart" button in product listings */

a.added_to_cart {
    display: none !important
}


/* fixed height for product name in archive listings */

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-weight: bold;
    height: 2.5em;
    padding: 0 0 !important;
}


/* Size and color for price in listings */

.woocommerce ul.products li.product .price,
.woocommerce ul.products li.product .price del,
.woocommerce-page ul.products li.product .price,
.woocommerce-page ul.products li.product .price del {
    color: #16677f !important;
    font-size: 18px !important;
    padding-bottom: 0.4em;
}


/* related products title, force same font-size as other product views */

.product .related h2 {
    padding-bottom: 16px;
    font-size: inherit !important;
    padding
}


/* dropdown category selection */

.woocommerce .dropdown_product_cat {
    width: 100%;
    background-color: #ececec;
    border: none;
    margin-bottom: 20px;
    height: 20px;
}

.woocommerce .dropdown_product_cat option {
    height: 20px;
}


/* hide dropdown in fullscreen */

@media screen and ( min-width: 980px) {
    .woocommerce .dropdown_product_cat {
        display: none;
    }
}


/* styling kartsidan */

.et-learn-more,
.et-tabs-container,
.tabs-left,
.et-simple-slider,
.author-shortcodes,
.et-tooltip-box {
    color: #666 !important;
    text-shadow: none !important;
}

.et-learn-more h3.heading-more {
    line-height: 20px;
}

img.alignright {
    margin-left: 14px !important;
}

#wpsl-stores,
#wpsl-direction-details {
    text-align: left;
}

#wpsl-result-list li p {
    line-height: 1.3em;
    margin-bottom: 5px !important;
}

#wpsl-stores .wpsl-store-thumb {
    height: 90px !important;
    width: 90px !important;
}

#wpsl-stores strong {
    text-transform: uppercase;
}

#wpsl-result-list {
    background: none repeat scroll 0 0 #fff !important;
    border-radius: 10px;
}

#wpsl-result-list li {
    border-bottom: 1px dotted #000 !important;
}

#wpsl-result-list a {
    font-weight: bold;
}

.wpsl-directions {
    color: #F89767;
}

.zoom-to-store {
    color: #F89767;
}

#wpsl-stores,
#wpsl-direction-details,
#wpsl-gmap {
    height: 490px !important;
}


/* mobile stuff */

@media screen and ( max-width: 980px) {
    /* less top padding on small screens */
    #main-content .container {
        padding-top: 20px;
    }
    #main-header>.container {
        width: 100% !important;
    }
    .container.clearfix.et_menu_container {
        height: 70px!important;
    }
    /* remove torkelheader, flags and other stuff */
    #torkelheader {
        margin: 0px auto 0px;
        margin: initial !important;
        padding: initial !important;
        top: 0px;
        position: absolute;
        width: 100%!important;
    }
    #torkelheaderleft {
        display: none!important;
    }
    #torkelheaderright {
        width: 100%!important;
        position: relative;
        height: 90px;
    }
    /* size menu container */
    #main-header {
        position: fixed;
        height: 90px !important;
        box-shadow: none;
    }
    #searchiconmobile {
        display: block;
        position: absolute;
        right: 0px;
        top: 10px;
        z-index: 100;
    }
    .et_menu_container {
        z-index: 99;
    }
    #page-container {
        padding-top: 100px ! important;
    }
    /* smaller logo */
    .logo_container {
        position: relative;
    }
    #logo {
        max-width: 260px;
        height: auto;
        left: 50%;
        transforM: translate(-50%, 0%);
        position: relative;
        top: -15px;
    }
    .logo_cart {
        position: relative;
        height: 80px !important;
        width: 100% !important;
    }
    .wpmenucart-shortcode.hover {
        position: relative;
        width: 20%;
        top: 40px;
        z-index: 2000;
        text-align: right;
        float: right;
    }
    .wpmenucart-shortcode.hover:hover {
        border: 1px solid gray;
        position: absolute;
        z-index: 2000 !important;
        margin: 20px;
        width: 95% !important;
        padding: 10px;
        background-color: white;
        top: 50px;
    }
    div.wpmenucart-shortcode.hover:hover ul.wpmenucart {
        display: block !important;
        text-align: left;
        width: 450px;
    }
    /* navigation up / left */
    div#et-top-navigation {
        position: absolute!important;
    }
    .et_mobile_menu {
        top: 0px !important;
    }
    .mobile_menu_bar {
        left: 5px !important;
        right: inherit !important;
        top: -80px !important;
    }
    /* product listings, max 1 per row on small screens */
    .woocommerce-page ul.products li.product:nth-child(n) {
        clear: none;
        width: 100% !important;
        margin: 0 9.5% 9.5% 0 !important;
        float: left !important;
    }
    .woocommerce ul.products[class*="columns-"] li.product {
        width: 100%!important;
    }
    /* cart */
    .wpmenucart-display-right {
        float: left !important;
        width: 100%;
    }
    .shop_table .qib-container {
        float: inherit;
    }
    /* Hide menu help text */
    .mobile_nav .select_page {
        display: none !important;
    }
    .et_header_style_centered #main-header .mobile_nav {
        display: block;
        padding: 0px 0px;
    }
    /* quantity and buy button */
    .qib-container {
        display: block;
        float: left;
    }
    .woocommerce ul.products li.product .button {
        margin-top: 0;
        float: left;
    }
}