/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.4
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

.single-product div.product .product_meta {
    margin-bottom: 20px;
}

.single-product div.product .product_meta .posted_in, 
.single-product div.product .product_meta .sku_wrapper, 
.single-product div.product .product_meta .tagged_as {
    display: block;
}

div.product .product_meta .posted_in, 
div.product .product_meta .sku_wrapper, 
div.product .product_meta .tagged_as {
    display: block !important;
}

.product_meta {
    text-align: left !important;
}

section.related-wrapper div.product_meta {
    display: none;
}

div.product p.price {
    font-weight: bold;
}

/* make the brand logo that shows on single product only take up max 40% of the available space */

div.storefront-wc-brands-single-product {
    display: inline-block;
    text-align: right;
    width: 100%;
    margin-right: 60%;
}
div.storefront-wc-brands-single-product img {
    max-width: 40% !important;
}

/* on the shopping cart page - hide the 'Shipping to 123 Abc St, Gbah New South Wales 2480.' text */

.woocommerce-shipping-destination {
    display: none;
}

/* force a checkout spinner to display after placing an order - !important declarations are required. */
.woocommerce-checkout .blockUI.blockOverlay {
    background-image: url(wpspin_light-2x.gif) !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
    background-position: center !important;
}

/* show the item PRICE on the cart table ( not just the TOTAL (price*qty) ) */
#page table.cart.woocommerce-cart-form__contents td.product-price, 
#page table.cart.woocommerce-cart-form__contents th.product-price {
    display: table-cell !important;
}

/* reduce the max-width of the LOGIN form */
form.woocommerce-form.woocommerce-form-login {
    max-width: 400px;
}

/* If the browser window is 400px or smaller hide maintenance logo */
@media only screen and (max-width: 400px) {
    body.home.maintenance header div.logo-box { display:none; }
    body.home.maintenance header div.logo-box img { display:none; }
}

/* Select your Make Model Year and we will help find matching parts */

div.make-model-year-lookup-banner {
    background-color: #E8E8E8;
    padding-bottom: 10px;
    width: 100%;
    clear: both;
}

p.make-model-year-lookup-header {
    margin: 10px 0 0px 0;
}
p.make-model-year-lookup-header + p {
    height: 0 !important;
    margin: 0 !important;
}

body #gform_wrapper_3 {
    margin: 0 !important;
}

body #gform_wrapper_3 ul li.gfield {
    margin: 0 !important;
}
body #gform_wrapper_3 .top_label .gfield_label {
    display: none;
}

#gform_wrapper_3 select#input_3_1,
#gform_wrapper_3 select#input_3_2,
#gform_wrapper_3 select#input_3_3 {
    height: 26px;
    min-height: 26px;
    font-size: 16px;
}
#gform_wrapper_3 .chosen-container {
    font-size: 16px;
}

#gform_wrapper_3 form#gform_3 .gform_body {
    padding: 0 !important;
    margin: 0 !important;
    clear: none !important;
    width: 75% !important;
    float: left !important;
}
#gform_wrapper_3 form#gform_3 .gform_footer {
    padding: 0 !important;
    margin: 0 !important;
    clear: none !important;
    width: 25% !important;
    float: right !important;
}

.wcf_ajax_indicator_bg {
    background: url(ajax_indicator.gif) no-repeat;
    background-position: 7px 7px; 
    background-color: #fff;
}

.wcf_ajax_indicator {
    background: url(ajax_indicator.gif) no-repeat;
    width: 16px;
    height: 11px;
    margin: 0px 6px;
    display: none;
}

#gform_wrapper_3 .gform_ajax_spinner {
    margin-top: -28px;
    padding-left: 5px
}

.site-content .woocommerce-breadcrumb {
    width: 100%;
}

/* 992px is when Shoptimizer switches to */
@media only screen and (max-width: 992px) {

    div.make-model-year-lookup-banner {
        /*        min-height: 85px;*/
        padding-top: 5px;
    }
}

/* 641px is were Gravity Forms goes to display:block on .gform_wrapper .ginput_container <span> elements - i.e. input fields */
@media only screen and (max-width: 641px) {

    div.make-model-year-lookup-banner {
        overflow: auto;
        /*        min-height: 300px;*/
    }

    #gform_wrapper_3 form#gform_3 .gform_body,
    #gform_wrapper_3 form#gform_3 .gform_footer {
        margin-bottom: 20px !important;
        clear: both !important;
        width: 100% !important;
        float: none !important;
    }

    p.make-model-year-lookup-header {
        text-align: center;
    }

    #gform_wrapper_3 select#input_3_1,
    #gform_wrapper_3 select#input_3_2,
    #gform_wrapper_3 select#input_3_3 {
        height: auto !important;
        min-height: 0px !important;
    }
}

/* TO TOP */
#toTop { display:none; text-decoration:none; position:fixed; bottom:10px; right:10px; overflow:hidden; width:46px; height:46px; border:none; text-indent:100%; background:url('assets/images/ui.totop.png') no-repeat left top; }
#toTopHover { background:url('assets/images/ui.totop.png') no-repeat left -46px; width:46px; height:46px; display:block; overflow:hidden; float:left; opacity: 0; -moz-opacity: 0; filter:alpha(opacity=0); }
#toTop:active, #toTop:focus { outline: none; }

/* hide empty <p> HTML elements - the :empty pseudo selector will select elements that contain either nothing or only an HTML comment */
div.make-model-year-lookup-banner p:empty,
div.make-model-year-lookup-banner p::empty {
   display: none !important;
}

div.make-model-year-lookup-banner p:empty:before,
div.make-model-year-lookup-banner p::empty:before {
   content: initial;
}

div#primary.content-area main#main.site-main hr.backtotop-snippet {
    display: block;
    width: 100%;
    clear: both;
    border: 0;
    border-bottom: 1px solid #808080;
    height: 25px;
    background: url('assets/images/back-to-top-ARROW-26x26.png') 100% 0 no-repeat;
    margin: 20px 0;
    
    cursor: pointer !important; /* Improves usability and consistency of cursor style between image-type 'input' and others */
}

h2 a {
    color: inherit !important;
}
    
/* ==========================================================================
   Print styles - borrowed from HTML5 Boilerplate v8.0.0
   source: https://github.com/h5bp/html5-boilerplate/blob/master/dist/css/style.css
   ========================================================================== */
span.show-on-print-media-only {
    display: none !important;
}

@media print {

    span.show-on-print-media-only {
        display: inherit !important;
        margin: 0 0 20px 0;
    }
    
    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        /* Black prints faster */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]::after {
        content: " (" attr(href) ")";
    }

    abbr[title]::after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]::after,
    a[href^="javascript:"]::after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * https://web.archive.org/web/20180815150934/http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
    
    /* END OF BOILER PLATE */
    /* START OF HIDING SECTIONS OF THE WEBSITE */
    
    .site-branding button.menu-toggle,
    ul.site-header-cart.menu,
    div.header-widget-region,
    div.make-model-year-lookup-banner,
    ol.flex-control-nav,
    ol.flex-control-thumbs,
    ol.flex-control-nav.flex-control-thumbs,
    form#sticky-scroll,
    section.related-wrapper,
    div.below-content,
    footer.site-footer,
    footer.copyright div#text-8 a,
    section.shoptimizer-sticky-add-to-cart,
    .ssba, 
    .ssba a {
        display: none !important;
    }

    div.woocommerce-Tabs-panel {
        display: inherit !important;
    }
    
    .single-product div.product .woocommerce-product-gallery img {
        max-height: 200px !important;
        width: auto !important;
    }
    
    .single-product div.product .woocommerce-product-gallery div.flex-viewport {
        height: auto !important;
        min-height: 200px !important;
    }

    /* Don't show breadcrumb links */
    nav.woocommerce-breadcrumb a::after {
        content: "" !important;
    }

    /* Don't show ANY links */
    a::after {
        content: "" !important;
    }
}

/* hide empty div.gform_validation_errors elements - the :empty pseudo selector will select elements that contain either nothing or only an HTML comment */
div.gform_validation_errors.validation_error:empty {
   display: none !important;
}