/*
 Theme Name:   Divi Child Plus Shop
 Theme URI:    /divi-child-plus-shop/
 Description:  A modified child theme of Divi for eCommerce
 Author:       Web Wizards
 Author URI:   https://webwizards.ca/
 Template:     Divi
 Version:      1.1.0
 Tags:         responsive-layout, accessibility-ready
 Text Domain:  divi-child-plus-shop
*/

@import "modified.css";
@import "child-style.css";

/* ============================== */
/* =========== Header =========== */
/* ============================== */

/* adds custom cart design to header */
.custom-cart {
    display: inline-block;
}

.cart-contents {
    position: relative;
    display: flex !important;
    flex-flow: column nowrap;
    justify-content: center;
    
    background-image: url(img/navigation-cart.png);
    height: 36px;
    width: 36px;
}
    .cart-contents:hover {
        text-decoration: none;
    }

/* number of items in the cart */
.cart-contents-count {
    background: #000;
    border-radius: 50%;
    color: #fff;
    padding: 1px;
    white-space: nowrap;
    
    font-size: 11px;
    font-weight: normal;
    line-height: 24px;
    text-align: center;
    vertical-align: middle;
    
    position: absolute;
    top: 45px;
    right: -5px;
    
    height: 26px;
    width: 26px;
    
    transform: translateY(-105%) translateX(25%);
}

.my-cart-icon p {
    padding: 0 !important;
}

/* adds custom 'My Acccount' section */
.my-account-icon .et_pb_main_blurb_image {
    padding-bottom: 7px;
}

.my-account-icon .et_pb_blurb_content {
    display: flex;
    flex-direction: column;
}

/* --- navigation changes */

/* corrects issue where all naivgation items are marked as active */
#page-container #divi-child-plus-header .et_pb_menu ul li.current-menu-item a {
    color: #1a1a1b !important;
}

#page-container #divi-child-plus-header .et_pb_menu ul li.current-menu-item > a,
#page-container #divi-child-plus-header .et_pb_menu ul li.current-menu-ancestor > a {
    color: #006799 !important;
}

#page-container #divi-child-plus-header .et_mobile_menu .menu-item-has-children > a {
    font-weight: 700 !important;
}

#page-container #divi-child-plus-header .et_mobile_menu .sub-menu-toggle.popped ~ ul.sub-menu {
    background: #f5f5f5 !important;
}



@media (min-width: 981px) {
    #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu,
    #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu .et-menu-nav, 
    #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu .et-menu-nav > ul {
        width: 100%;
    }
        #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu .et-menu-nav > ul {
            display: flex;
            justify-content: space-between !important;
            margin: 0 !important;
        }
            #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu .et-menu-nav > ul > li {
                padding: 0 !important;
                margin: 0 !important;
            }
                #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu .et-menu-nav > ul > li > a {
                    border-top: 5px solid rgba(0, 0, 0, 0);
                    border-bottom: 5px solid rgba(0, 0, 0, 0);
                    padding: 15px 10px !important;
                }

                /* active top-level navigation item has underline */
                #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu .et-menu-nav > ul > li.current_page_item > a {
                    border-bottom-color: #006799;
                }

            /* removes dropdown arrow from top-level navigation items */
            #page-container  #divi-child-plus-header .modified-navigation .et_pb_menu__menu .et-menu-nav > ul > li.menu-item-has-children > a:after {
                display: none;
            }
}

@media (max-width: 980px) {
    .et_pb_menu__logo img {
        width: auto !important;
    }
}


/* ============================ */
/* =========== Body =========== */
/* ============================ */

/* --------------- Title w/ Line --------------- */
.line-title h2 {
  overflow: hidden;
  text-align: center;
}
    .line-title h2:before,
    .line-title h2:after {
      background-color: #e0e0e0;
      content: "";
      display: inline-block;
      height: 1px;
      position: relative;
      vertical-align: middle;
      width: 50%;
    }

    .line-title h2:before {
      right: 1.5em;
      margin-left: -50%;
    }

    .line-title h2:after {
      left: 1.5em;
      margin-right: -50%;
    }

/* --- Category Section */
.category-display-section {
    
}
    .category-display-section .category-display-item {
        border-left: 5px solid #fff;
        border-right: 5px solid #fff;
    }
        .category-display-section .category-display-item:first-of-type {
            border-left-color: #f5f5f5
        }

        .category-display-section .category-display-item:last-of-type {
            border-right-color: #f5f5f5;
        }


    .category-display-section .category-display-item.gift-card {

    }

@media (max-width: 980px) {
    .category-display-section .category-display-item:nth-child(1) {
        border-bottom: 5px solid #fff;
    }

    .category-display-section .category-display-item:nth-child(2) {
        border-right-color: #f5f5f5;
        border-bottom: 5px solid #fff;
    }

    .category-display-section .category-display-item:nth-child(3) {
        border-left-color: #f5f5f5;
        border-top: 5px solid #fff;
    }

    .category-display-section .category-display-item:nth-child(4) {
        border-top: 5px solid #fff;
    }
}

@media (max-width: 480px) {
    .category-display-section .category-display-item {
        border-left: 0;
        border-right: 0;
        border-top: 5px solid #fff;
        border-bottom: 5px solid #fff;
    }
        .category-display-section .category-display-item:first-of-type {
            border-top-color: #f5f5f5;
        }

        .category-display-section .category-display-item:last-of-type {
            border-bottom-color: #f5f5f5;
        }
}

/* --- Product Listing Page */

.products .type-product .product-meta {
    font-size: 14px;
}


/* --- Product Page */

/* resizes images to actual size */
.woocommerce div.product div.images img {
    margin: auto;
    width: auto;
    max-width: 100%;
}

/* removes broken indication arrow on tooltips */
.variations_form .variations td.value span:after {
    display: none !important;
}

.reset_variations {
    border: 2px solid #eee;
    border-radius: 100px;
    padding: 5px 10px;
}
    .reset_variations:before {
        content: 'X';
        color: #ff0000;
        padding-right: 5px;
    }


/* modified toggle boxes */
.toggle-universal-product-info .et_pb_toggle {
    border: none !important;
    border-bottom: 1px solid #e0e0e0 !important;
    padding: 15px 0 !important;
}
    .toggle-universal-product-info .et_pb_toggle:first-child {
        border-top: 1px solid #e0e0e0 !important;
    }

    .toggle-universal-product-info .et_pb_toggle h3.et_pb_toggle_title {
        padding-top: 5px;
        padding-bottom: 5px;
    }

/* fixed variable pricing */
.woocommerce-variation .woocommerce-variation-price {
    font-size: 20px;
    margin-bottom: 1em;
}

/* ------ Product Page - Gift Cards */

.product-gift-card .woocommerce_gc_giftcard_form input[type=text] {
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 16px;
    padding: 12px 10px;
}

.product-gift-card .woocommerce_gc_giftcard_form textarea {
    border: 1px solid #e5e5e5;
    border-radius: 0;
    font-size: 16px;
    padding: 12px 10px;
    width: 100% !important;
}

/* ------ Account Page - Gift Cards */
.woocommerce-Giftcards.woocommerce-MyAccount-Giftcards-form {
    margin-bottom: 30px;
}
    .woocommerce-Giftcards.woocommerce-MyAccount-Giftcards-form input[type=text] {
        border: 1px solid #e5e5e5;
        border-radius: 0;
        font-size: 16px;
        padding: 12px 10px;
        margin: 0;
        width: calc(100% - 150px);
    }

    .woocommerce-Giftcards.woocommerce-MyAccount-Giftcards-form button {
        font-size: 14px !important;
        max-width: 150px;
    }

/* ------ Checkout Page - Gift Cards */
.add_gift_card_form #wc_gc_cart_redeem_form {
    display: flex;
    flex-wrap: wrap;
}
    .wc_gc_add_gift_card_form__notices {
        width: 100%;
    }

    .woocommerce-checkout .add_gift_card_form #wc_gc_cart_redeem_form input[type="text"] {
        border: 1px solid #e5e5e5;
        border-radius: 0;
        font-size: 16px;
        padding: 12px 10px;
        margin: 0;
        width: calc(100% - 100px);
    }

    .woocommerce-checkout .add_gift_card_form #wc_gc_cart_redeem_form button {
        background-color: #006799;
        color: #fff;
        border: none;
        border-color: #006799;
        border-radius: 0px;
        font-size: 18px;
        font-weight: normal;
        font-style: normal;
        text-transform: uppercase;
        text-decoration: none;
        width: 100px;
    }

/* --- Customer Service Page --- */

/* hides parent page */
#body-navigation ul li:first-of-type {
    display: none;
}

#body-navigation li {
    padding-left: 5px;
    padding-right: 5px;
    margin-top: 10px !important;
}
    #body-navigation li a {
        border: 2px solid #f5f5f5;
        border-radius: 100px;
        padding: 12.5px;
    }


@media (max-width: 980px) {
    #body-navigation .et_pb_menu__menu {
        display: block !important;
    }

    #body-navigation .et_mobile_nav_menu {
        display: none !important;
    }
}

.woocommerce #payment #place_order, .woocommerce-page #payment #place_order {
    float: none;
    width: 100%;
}


/* ============================ */
/* ========== Footer ========== */
/* ============================ */

/* --- footer - navigation menus */
.footer-navigation h4 {
    padding-bottom: 30px;
}

/* --- footer - four benefits section */
#page-container .footer-blurb-alt .et_pb_main_blurb_image {
    margin: 0 !important;
    width: 50px !important;
}

#page-container .footer-blurb-alt .et_pb_blurb_container h3 {
    padding-bottom: 0;
}

@media (min-width: 768px) {
    #page-container .footer-blurb-alt .et_pb_blurb_content {
        display: flex;
        align-items: center !important;
    }
}

@media (max-width: 767px) {
    #page-container .footer-blurb-alt .et_pb_main_blurb_image {
        margin-bottom: 15px !important;
    }

    #page-container .footer-blurb-alt .et_pb_blurb_container {
        display: block !important;
        text-align: center !important;
    }
        #page-container .footer-blurb-alt .et_pb_blurb_container h3 {
            padding-bottom: 0;
        }
}






.footer-main > .et_pb_row {
    width: 90%;
}