/*
 Theme Name:     Divi Child
 Theme URI:      https://tecchemicals.com
 Description:    Divi Child Theme
 Author:         David Heriot
 Author URI:     https://opws.co.uk
 Template:       Divi
 Version:        1.0.0
*/
 
 
/* =Theme customization starts here
------------------------------------------------------- */

/* colours 
Tecchemicals colours

Pantone 425: 54585a (dk grey)
Pantone 032: ef3340 (red)
Pantone 151: ff8200 (orange)

*/


/* header */
.container {
  width:90%
}
.top-search {
  height: 150px;
}
.logo_container {
  float: left;
  text-align: left;
  width: 40%;
}
.strapline_container {
  width: 20%;
  float: left;
}
.strapline {
  font-family: 'Proza Libre',Helvetica,Arial,Lucida,sans-serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
  padding-top: 40px;
}

/* Links */

a { color: #ff8200; }



@media only screen and (min-width: 1024px) {
  .logo_container {
    /*height: 120px !important;*/
    margin-top: 20px;
  }
  .search_container {
    float: right;
    width: 30%;
    padding-top: 30px;
  }
  .et_header_style_centered #logo {
      /*height: 125px !important;*/
      max-height: 100% !important;
  }
}

@media screen and (min-width: 480px) {
  #top-header .container {
    padding-bottom: 5px;
  }
  #et-secondary-menu .et-social-icons {
    margin-top: 6px;
  }
}

/* typography */

h2 {
  margin: 20px 0;
}
.search_container .et_pb_widget {
    margin-bottom: 30px;
    width: 100%;
    float: none;
}
.widget_search #searchsubmit {
  background-color: #ff8200;
  color: #fff !important;
  border: 1px solid #ff8200 !important;
}
.widget_search input#s {
  border: 1px solid #ff8200;
}

@media (max-width: 980px) {
  .logo_container {
      width: 40%;
  }
  .strapline_container {
    width: 60%;
  }
  p.strapline {
    padding: 0;
    width: 100%;
  }
  .search_container{
    width: 70%;
    margin: auto !important;
    float: none;
    padding-top: 91px;
  }
}

/* thank you page */
.woocommerce-notice, .woocommerce-notice--success, .woocommerce-thankyou-order-received {
  font-weight: bold;
  font-size: 30px;
  padding-bottom: 60px !important;
  font-family: 'Proza Libre',Helvetica,Arial,Lucida,sans-serif;
}

/* megamenu structure */


.et_header_style_centered nav#top-menu-nav {
  width: 100%;
}
#top-menu {
  display: flex;
}
#top-menu li {
 flex: 3;
}
#top-menu li.mega-menu > ul > li:nth-of-type(5n) {
  clear: none;
}
#top-menu li.mega-menu > ul > li:nth-of-type(6n) {
  clear: none;
}
#top-menu li.mega-menu > ul > li {
  width: 20%;
  margin: 0;
}

/* sold out indicator */
.soldout {
  padding: 3px 8px;
  text-align: center;
  background: #6F561D;
  color: #fff;
  font-weight: bold;
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 12px;
}

/* cart */
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals {
    width: 28%;
}


.et-db #et-boc .et-l .et_pb_text_0_tb_body h6 {
  text-transform: none !important;
}

#et-secondary-menu  {
    display: block!important;
}



/* remove divi default effects for items with a drop down menu 
#top-menu .menu-item-has-children > a:first-child {padding-right: 0px!important; padding-bottom: 17px!important;} */
@media only screen and (min-width: 1024px) {

#top-menu .menu-item-has-children > a:first-child {
  text-align: center; margin: 0; flex-grow: 1;
}

#top-menu .menu-item-has-children > a:first-child:after{
  content: ''; margin-top: -2px;
}

#et-secondary-nav .menu-item-has-children>a:first-child, #top-menu .menu-item-has-children>a:first-child {
  font-weight:300;
  text-align: center; 
  margin: 0; 
  flex-grow: 1; 
  padding-right: 0!important;  
}

}

#et-top-navigation {
  font-weight: 300 !important; 
}

.hilight-menu-item a {
  padding-bottom: 0 !important;
  background: #e02b20;
  color: #fff !important;
  font-weight: bold !important;
  text-transform: uppercase;
  border: 2px solid #e02b20 ;
}

.hilight-menu-item a:hover {
  background: #fff;
  color: #e02b20 !important;
  opacity: 1 !important;
}

/* blurb image text */

.blurbtext .et_pb_blurb_content {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.blurbtext .et_pb_blurb_container {
  position: absolute;
  align-self: center;
}

.blurbtext .et_pb_main_blurb_image {
  visibility: hidden;
  margin: 0;
}


/* cart mods */

.woocommerce-cart .woocommerce {
  display: flex;
}

/* The table containing the list of products and our custom elements */
.woocommerce-cart .woocommerce-cart-form {
  flex: 1 0 70%; /* 100% at small screens; 70% on larger screens */
  margin-right: 30px;
}

/* The element that contains the cart totals */
.woocommerce-cart .cart-collaterals {
  flex: 1 0 30%; /* 100% at small screens; 30% on larger screens */
  margin-left: 30px;
}

/* Some minor tweak to make sure the cart totals fill the space */
.woocommerce-cart .cart-collaterals .cart_totals {
  width: 100%;
  padding: 0 20px 70px;
}

/* enter coupon field */
.coupon #coupon_code, .input[name="coupon-code"]  {
  font-size: 14px !important;
  padding: 9px 10px !important;
  height: inherit !important;
  width: 144px !important;
  color: #333 !important;
}

/* Apply Coupon button */
.button[name="apply_coupon"] {
  font-size: 14px !important;
}

 /* move to checkout button 
.woocommerce a.button.checkout-button, .woocommerce-page a.button.checkout-button {
  background-color: #ff8200 !important;
  border-color: #ff8200 !important;
  color: #fff !important;
  font-weight: 600 !important
}
*/

/* counteract quantity code that shrinks the add to basket button height */
form.cart button[type='submit']:not(#qib_id):not(#qib_id):not(_):not(_) {
    height: inherit;
}

/* color & background mods */



.et-pb-contact-message p {
  background-color: #3550a0;
    color: #fff;
}

.woocommerce .woocommerce-error, .woocommerce .woocommerce-info, .woocommerce .woocommerce-message {
    background: #ff8200;
}

#et_search_icon:hover, .mobile_menu_bar:before, .mobile_menu_bar:after, .et-social-icon a:hover, .comment-reply-link, .form-submit .et_pb_button, 
.entry-summary p.price ins, .woocommerce div.product span.price, .woocommerce-page div.product span.price, 
.woocommerce #content div.product span.price, .woocommerce-page #content div.product span.price, .woocommerce div.product p.price, 
.woocommerce-page div.product p.price, .woocommerce #content div.product p.price, .woocommerce-page #content div.product p.price, 
.woocommerce .star-rating span:before, .woocommerce-page .star-rating span:before, .woocommerce a.button.alt, .woocommerce-page a.button.alt, 
.woocommerce button.button.alt, .woocommerce button.button.alt.disabled, .woocommerce-page button.button.alt, .woocommerce-page button.button.alt.disabled, 
.woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, 
.woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, 
.woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button, .woocommerce #respond input#submit, .woocommerce-page #respond input#submit, 
.woocommerce #content input.button, .woocommerce-page #content input.button, .woocommerce a.button.alt:hover, .woocommerce-page a.button.alt:hover, .woocommerce button.button.alt:hover, 
.woocommerce button.button.alt.disabled:hover, .woocommerce-page button.button.alt:hover, .woocommerce-page button.button.alt.disabled:hover, .woocommerce input.button.alt:hover, 
.woocommerce-page input.button.alt:hover, .woocommerce #respond input#submit.alt:hover, .woocommerce-page #respond input#submit.alt:hover, .woocommerce #content input.button.alt:hover, 
.woocommerce-page #content input.button.alt:hover, .woocommerce a.button:hover, .woocommerce-page a.button:hover, .woocommerce button.button, .woocommerce-page button.button:hover, 
.woocommerce input.button:hover, .woocommerce-page input.button:hover, .woocommerce #respond input#submit:hover, .woocommerce-page #respond input#submit:hover, .woocommerce #content input.button:hover, 
.wp-pagenavi span.current, .wp-pagenavi a:hover, .et_password_protected_form .et_submit_button, .nav-single a, .posted_in a, #top-menu li.current-menu-ancestor > a, #top-menu li.current-menu-item > a, 
.bottom-nav li.current-menu-item > a, .footer-widget h4 {
    color: #ff8200;
}






