/* =====================================

          MOBILE MENU STYLES 

========================================

* This stylesheet is exclusively for styles for the mobile menu. Don't cross the streams!
* Please do not edit this file, unless you wish to make a global change for all websites that use one of the OPS child themes.
* If you are unsure, please contact Laura Wheatman or Francis Whiteley or email us at projects@flex4.co.uk
*/

.mobile_button {
  position: absolute;
  top: 0.25rem;
  right: 0;
  padding: 10px 12px;
  color: white;
  font-size: 28px;
  opacity: 1;
  -moz-transition: 0.5s;
  -o-transition: 0.5s;
  -webkit-transition: 0.5s;
  transition: 0.5s;
}

@media only screen and (min-width: 991px) {
  .mobile_button, .mobile_toggle {
    display: none;
  }
}

#mobile_nav {
  display: none;
}

#masthead i.fa-close, #masthead i.fa-bars {
  display: none;
}

@media screen and (max-width: 991px) {
  #site-navigation{
    display: none;
  }
  #mobile_nav {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    background-color: #FFF;
    z-index: 20;
    -webkit-box-shadow: -5px 0px 4px -1px rgba(0, 0, 0, 0.47);
    -moz-box-shadow: -5px 0px 4px -1px rgba(0, 0, 0, 0.47);
    box-shadow: -5px 0px 4px -1px rgba(0, 0, 0, 0.47);
    width: 250px;
    transition: 1s ease;
    -webkit-transition: 1s ease;
    -moz-transition: 1s ease;
    -o-transition: 1s ease;
    z-index: 99999;
  }

  #mobile_nav.notvisible {
    transform: translateX(320px);
    -webkit-transform: translateX(320px);
    -moz-transform: translateX(320px);
  }

  div#cart-head {
    display: inline-block;
  }

  .mobile_icons {
    padding-left: 10px;
    padding-top: 3rem;
    display: block;
  }

  .mobile_icons i {
    font-size: 1.25rem;
    padding: 10px;
    color:#FFF;
  }

  .mobile_icons a, .mobile_icons a:visited, .mobile_icons a:active, .mobile_icons a:hover, .searchicon {
    color: white;
    cursor: pointer;
  }

  #mobile_nav .search_form {
    display: block;
    padding: 0.5rem 20px;
    margin-right: 0;
    position: relative;
    height: auto;
    display: none;
  }

  #mobile_nav .search_form .search_field {
    width: 100%;
  }

  #mobile_nav form input.searchicon {
    margin-right: 15px;
    margin-top: 0.25rem;
  }

  #mobile_nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1.125rem;
    padding-bottom: 0.5rem;
  }

  #mobile_nav ul li a {
    color: #000;
    padding: 0.25rem 20px;
    display: block;
    padding-right: 4rem;
  }

  #mobile_nav #mobile_products_links {
    padding-top: 0.5rem;
    font-size: 1rem;
    opacity: 0.85;
    padding-bottom: 3rem;
  }

  #mobile_nav #mobile_products_links li a {
    color: #000;
  }

  #masthead i.fa-times, #masthead i.fa-bars {
    display: block;
    position: absolute;
    padding: 10px 10px;
    top: 1.5rem;
    right: 1.5rem;
    cursor: pointer;
    font-size: 28px;
    transition: 1s ease;
    -webkit-transition: 1s ease;
    -moz-transition: 1s ease;
    -o-transition: 1s ease;
    transform: rotate(0deg);
    -webkit-transform: rotate(0deg);
    -ms-transform: rotate(0deg);
    -moz-transform: rotate(0deg);
    -o-transform: rotate(0deg);
    opacity: 1;
}

  #masthead i.fa-times.notvisible {
    margin-right: -60px;
    opacity: 0;
    -webkit-transform: rotate(180deg);
    -webkit-transform: rotate(180deg);
    -ms-transform: rotate(180deg);
    -moz-transform: rotate(180deg);
    -o-transform: rotate(180deg);
  }

  #masthead i.fa-bars.notvisible {
    margin-right: 60px;
    opacity: 0;
    -webkit-transform: rotate(-180deg);
    -webkit-transform: rotate(-180deg);
    -ms-transform: rotate(-180deg);
    -moz-transform: rotate(-180deg);
    -o-transform: rotate(-180deg);
  }
    /* SubMenu responsive*/

  #mobile_menu li.menu-item-has-children:after{
    font-family: Fontawesome;
    content: '\f054';
    display: block;
    position: absolute;
    right:0;
    top:0;
    padding: 5px 10px 5px 20px;
    cursor: pointer;
    transition: 0.3s;
  }
  #mobile_menu li.menu-item-has-children{
    position: relative;
  }
  #mobile_menu li.active-parent:after{
    transform: translateY(-5px) rotate(90deg);
    -webkit-transform: translateY(-5px) rotate(90deg) ;
    -ms-transform: translateY(-5px) rotate(90deg) ;
    -moz-transform: translateY(-5px) rotate(90deg);
    -o-transform: translateY(-5px) rotate(90deg) ;
  }

  #mobile_nav ul.sub-menu{
    background-color: #f7f7f7;
    padding:0;
  }
  #mobile_menu ul.sub-menu li{
    overflow: hidden;
    display: none;
    transition: 0.3s;
  }
  #mobile_menu ul.sub-menu.active li{
    display: block; padding-left: 1em;
  }
  #mobile_menu ul.sub-menu.active {
    margin-right: -50px;
  }

}