/*******************************************************************************
Works with the CSS_Menu_Maker_Walker class found in the napco-wp-site plugin,
as well as the default styles found in the napco-2019 theme.
*******************************************************************************/

/* Custom CSS Styles to override the napco-2019 defaults */
#cssmenu {
  font-size: 12px;
}
#cssmenu > ul {
  *display: inline-block;
}

#cssmenu ul ul {
  left: -10px;
}

#cssmenu > ul > li {
  margin: 0 1em;
}

#cssmenu:after,
#cssmenu ul:after {
  content: '';
  display: block;
  clear: both;
}
#cssmenu ul {
  text-transform: uppercase;
}
#cssmenu ul ul {
  /*border-top: 4px solid #1b9bff;*/
  text-transform: none;
  min-width: 190px;
}
#cssmenu ul ul a {
  /*background: #1b9bff;*/
  color: #000;
  /*border: 1px solid #0082e7;*/
  border-top: 0 none;
  line-height: 150%;
  padding: 8px 20px 8px 10px;
  font-size: 12px;
  border-bottom: 3px solid #fff;
}
#cssmenu ul ul ul {
  border-top: 0 none;
}
#cssmenu ul ul li {
  position: relative;
}
#cssmenu ul ul li:first-child > a {
  /*border-top: 1px solid #0082e7;*/
}

#cssmenu ul ul li:hover > a {
  background-color: #ccc;
  border-bottom: 3px solid #999;
  color: #000;
}

#cssmenu > ul > li.menu-item-search:hover {
  cursor: pointer;
}

#cssmenu ul ul li.has-sub > a:after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -8px;
}
#cssmenu ul li:hover > a,
#cssmenu ul li.active > a {
  /*background: #1b9bff;*/
  /*color: #ffffff;*/
}
/*#cssmenu ul li.has-sub > a:after {
  content: '+';
  margin-left: 5px;
}*/
#cssmenu ul li.last ul {
  left: auto;
  right: 0;
}
#cssmenu ul li.last ul ul {
  left: auto;
  right: 99.5%;
}
#cssmenu a {
  background: #fff;
  color: #000;
  padding: 0 .2em;
}
#cssmenu > ul > li > a {
  line-height: 1;
  font-size: 12px;
}
#cssmenu ul ul {
  padding-top: 3px;
}

#cssmenu.menu_header li:last-of-type {
  margin-right: 0;
}


/*******************************************************************************
Works with the sticky-nav.js found in the napco-2019 theme.

*******************************************************************************/

#cssmenu-mobile {
  background: #fff;
  font-size: 12px;
}
#cssmenu-mobile > ul {
  *display: inline-block;
}

#cssmenu-mobile > ul > li {
  margin: 0 2em;
}

#cssmenu-mobile > ul > li:hover {
  /*border-bottom-color: #D2A9A8;*/
}

#cssmenu-mobile:after,
#cssmenu-mobile ul:after {
  content: '';
  display: block;
  clear: both;
}

#cssmenu-mobile ul {
}

#cssmenu-mobile ul ul {
  display: none;
}

#cssmenu-mobile ul ul a {
}

#cssmenu-mobile ul ul ul {
}

#cssmenu-mobile ul ul li {
  border-width: 0;
}

#cssmenu-mobile ul ul li:first-child > a {
}

#cssmenu-mobile ul ul li:hover > a {
}

#cssmenu-mobile ul ul li:last-child > a {
}

#cssmenu-mobile ul ul li:last-child:hover > a {
}

#cssmenu-mobile ul ul li.has-sub > a:after {
  content: '+';
  position: absolute;
  top: 50%;
  right: 15px;
  margin-top: -8px;
}

#cssmenu-mobile ul li:hover > a,
#cssmenu-mobile ul li.active > a {
}

.mobile-nav-header {
  display: none;
  position: relative;
  height: 80px;
  background-image: url(https://logos.napco.com/napco_media/horizontal/color_black/napco_media_horizontal_color_k_rgb_600.png);
  background-repeat: no-repeat;
  background-position: 10px 10px;
  background-size: auto 60px;
}

.hamburger-close {
  text-align: right !important;
  padding-right: 1em;
  display: block;
  color: #000;
  padding: 0;
  position: absolute;
  top: 5px;
  right: 3px;
  font-size: 1.2em;
  background-color: #fff;
  cursor: pointer;
}

.hamburger-close:hover {
  color: #f00;
}

#cssmenu-mobile ul li.last ul {
  left: auto;
  right: 0;
}
#cssmenu-mobile ul li.last ul ul {
  left: auto;
  right: 99.5%;
}
#cssmenu-mobile a {
  background: #fff;
  color: #000;
  padding: .75em;
  font-size: 1.2em;
}
#cssmenu-mobile a:not(.right-arrow):not(.hamburger-close):hover {
  background-color: #ffc;
}
#cssmenu-mobile > ul > li > a {
}
#cssmenu-mobile ul ul {
  padding: .75em;
/*  background-color: #efefef;
  margin: .5em;*/
}

#cssmenu-mobile .right-arrow {
  position: absolute;
  width: 0.7em;
  height: 0.7em;
  background: forestgreen;
  vertical-align: middle;
  right: 3em;
  cursor: pointer;
  background: url(../images/arrow-down-black.png) no-repeat center center;
  background-size: 60%;
  margin-top: .1em;
  border-width: 0;
}

#cssmenu-mobile .right-arrow:hover {
  background-image: url(../images/arrow-down-red.png);
}

#cssmenu-mobile .open > a:not(.right-arrow) {
  padding-bottom: 0;
}

#cssmenu-mobile .open .right-arrow {
  background-image: url(../images/arrow-up-black.png);
}

#cssmenu-mobile .open .right-arrow:hover {
  background-image: url(../images/arrow-up-red.png);
}

#cssmenu-mobile .right-arrow:hover {
  -webkit-filter: drop-shadow(12px 12px 25px rgba(0,0,0,0.5));
  filter: url(#drop-shadow);
  -ms-filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
  filter: "progid:DXImageTransform.Microsoft.Dropshadow(OffX=12, OffY=12, Color='#444')";
}

#cssmenu-mobile .menu-item-search .header-search,
#cssmenu-mobile .menu-item-search a {
  display: inline-block;
  vertical-align: middle;
}

#cssmenu-mobile .menu-item-search .header-search input[type=text] {
  border: 1px #ccc solid;
  font-size: 1.5em;
  width: 142px;
}

#cssmenu-mobile .menu-item-search .header-search input[type=submit] {
  font-size: 1.5em;
  padding: 0.2em 0.2em;
}