/* =============== Custom Menu Primary =============== */
/* requires .custom-desktop class */

/* Parent List */
.main-nav{
  text-align: right;
}

.header-nav-wrapper {
  background: transparent;
}

.custom-logo {
  margin-left: 0 !important;
}

.custom-logo.span2 {
  width: 15%;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li a {
  display: inline-block;
  padding: 10px 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.custom-menu-primary,
.custom-menu-primary .hs-menu-wrapper > ul,
.custom-menu-primary .hs-menu-wrapper > ul li,
.custom-menu-primary .hs-menu-wrapper > ul li a {
  display: inline-block;
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
  padding: 0;
  margin: 0;
  background-image: none;
  border: 0;
  max-width: none;
  width: auto;
  height: auto;
  line-height: 1;  
  font-weight: normal;
  text-decoration: none;
  text-indent: 0;
  text-align: left;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
}

.custom-menu-primary .hs-menu-wrapper > ul {
    width: auto;
    max-width: calc( 100% - 37px ); 
}

.mobile-open .custom-menu-primary .hs-menu-wrapper > ul {
    width: auto;
    max-width: calc( 100% - 0px ); 
    overflow-x: hidden;
}

/* modify to set menu 1st level height to center with logo height */
.custom-menu-primary .hs-menu-wrapper > ul li {
    padding: 10px; 
}
.custom-menu-primary .hs-menu-wrapper > ul li.hs-item-has-children {
    padding-right: 10px; 
}
/* set a down arrow after menu item if wanted (this is all items) */
/* items with children are later */
.custom-menu-primary .hs-menu-wrapper > ul > li.hs-item-has-children > a:after {
    content:"\f078";
    bottom: calc( 50% + 7.5px );
    left: calc( 100% - 20px);
    height: 0;
    position: absolute;
    width: 0;
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
}
.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children a {
    padding-right: 30px !important; 
}

.mobile-open .hs-menu-wrapper.hs-menu-flow-horizontal>ul li.hs-item-has-children {
    padding-right: 0;  
    width: calc( 100% - 0px);
}
/* Hover Style */

.main-nav.custom-desktop .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li {
    margin-bottom: 0;
    -webkit-transition: all 300ms ease 0s;
         -o-transition: all 300ms ease 0s;
            transition: all 300ms ease 0s;
}

/* Mobile Menu Button */
.mobile-trigger{
  max-width: 50px;
}

.mobile-open .mobile-trigger{
  
}

.fa-navicon:before, 
.fa-reorder:before, 
.fa-bars:before {
  content: "\f0c9"; /* Burger menu bars */
}

.fa {
  display: inline-block;
  font: normal normal normal 14px/1;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Mobile Child Toggle Buttons ===== */

.mobile-open .child-trigger {
  display: block !important; /* Hide button on Desktop */
  cursor: pointer; /* Mouse pointer type on hover */
  position: absolute;
  top: 5px;
  right: 0;
  width: 45px !important; 
  min-width: 45px !important;
  height: 45px !important; 
  padding: 0 !important;
  border-left: 1px solid rgba(255, 255, 255, .20);
}

.mobile-open ul li ul li .child-trigger {
    display: block !important;
    cursor: pointer;
    position: absolute;
    top: 2px;
    right: 12px;
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border-left: 1px solid rgba(255, 255, 255, .20);
}

.mobile-open .child-trigger:hover{
  text-decoration: none;
}

.mobile-open .child-trigger i {
  position: relative;
  top: 50%; /* Centers icon inside button */
  margin: 0 auto !important;
  -webkit-transform: rotate(0deg);
  -ms-transform: rotate(0deg);
  transform: rotate(0deg);
}

.mobile-open .child-trigger i:after{
  position: absolute;
  content: '';
}

.mobile-open .child-trigger i, 
.mobile-open .child-trigger i:after{
  width: 10px; /* Icon line width */
  height: 1px; /* Icon line height */
  background-color: #ffffff; /* Icon color */
  display: block;
}

.mobile-open .child-trigger i:after{
  -webkit-transform: rotate(-90deg);
  -ms-transform: rotate(-90deg);
  transform: rotate(-90deg);
}

.mobile-open .child-trigger.child-open i{}

.mobile-open .child-trigger.child-open i:after{
  -webkit-transform: rotate(-180deg);
  -ms-transform: rotate(-180deg);
  transform: rotate(-180deg);
}  
.mobile-open .close-trigger {
  text-align: center;
  line-height: 20px;
  height: 41px;
  padding: 0 40px;
  margin: 0;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  color: rgba(255, 255, 255, 0.6);
}

.mobile-open .close-trigger a.mm-title {
  font-size: 16px;
  line-height: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0px;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
  padding: 10px 0;
}

.mobile-mm-navbar {
  height: 42px;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  text-align: center;
  line-height: 20px;
  left: 0;
  right: 0;
  margin: 0;
  position: absolute;
  top: auto;
  bottom: 0px;
  z-index: 999999;
  background: #333333;
}

.mobile-menu-socials {
  display: block;
  padding: 10px 0;
}  

.overlay {
  background: transparent;
  position: fixed;
  width: 100%;
  float: right;
  top: 0;
  left: auto;
  z-index: 10;
  display: none !important;
  height: 100%;
}

.mobile-open .overlay {
  display: block !important;
}

/* Override max width on menu links */
.custom-menu-primary .hs-menu-wrapper > ul li a, 
.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
  overflow: visible !important;
  max-width: none !important;
  width: auto !important;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a, .hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children a {
  border-bottom: none !important;
}

.custom-menu-primary .hs-menu-wrapper > ul {
  float: right;  
}

.custom-menu-primary .hs-menu-wrapper > ul > li {
  position: relative;
  margin-bottom: 0;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
}

.custom-menu-primary .hs-menu-wrapper > ul > li > a {
  margin-right: 0;
  outline: 0;
  display: inline-block;
  float: left;
  position: relative;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
}

 .mobile-open .custom-menu-primary .hs-menu-wrapper > ul {
    float: left;  
}
 /* 2nd Level */
.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper {
  top: 40px;
  font-size: 18px;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
  position: absolute;
  left: 0;
  z-index: 1308;
  text-align: left;
  text-transform: none;
  visibility: hidden;
  min-width: 100px;
  height:0;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li:hover ul.hs-menu-children-wrapper {
  display: block;
  -webkit-box-shadow: rgba(0, 0, 1, 0.025) 8px 16px 5px 1px;
  -os-box-shadow: rgba(0, 0, 1, 0.025) 8px 16px 5px 1px;
  -ms-box-shadow: rgba(0, 0, 1, 0.025) 8px 16px 5px 1px;  
  box-shadow: rgba(0, 0, 1, 0.025) 8px 16px 5px 1px;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li {
  display: block;
  width: 100%;
  margin-left: 0;
  margin-bottom: 0;
  float: left;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li:first-child {
  padding-top: 13px;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
  height:auto;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li:last-child {
  padding-bottom: 13px;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > a {
  display: block;
  letter-spacing: 0px;
  font-size: 16px;
  line-height: 1.2em;
  padding: 10px 20px !important;
  margin: 0 !important;
  width: unset;
  white-space: normal;
  word-break: break-word;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li.menu-item-has-icon > a:before {
  margin-right: 0;
  content: "";
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > a:before {
  width: 18px;
  font-size: 18px;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper.left {
  left: -281px;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper.left ul {
  left: -281px;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li {
  margin-bottom: 0;
  -webkit-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}

/* 3rd level */

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > ul {
  top: 0;
  padding: 0;
  background: none;
  left: 281px;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li:hover > ul {
  /* display: block; */
  height:auto;
  opacity:1;
  visibility:visible;
  -webkit-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > ul > li {
  background: #efefef;
  background: rgba(239,239,239,0.94);
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > ul > li:first-child,
.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > ul > li:last-child {
  padding: 0;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li > ul.hs-menu-children-wrapper.left {
  right: 80px;
  left: auto;
}

.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > ul > li:last-child {
  margin-bottom: 0;
  padding-bottom: 13px;
  -webkit-transition: all 300ms ease 0.00ms;
  -o-transition: all 300ms ease 0.00ms;
  transition: all 300ms ease 0.00ms;
}
/* other level */
.custom-menu-primary .hs-menu-flow-horizontal > ul > li ul.hs-menu-children-wrapper > li > ul ul{
  top: 0;
}

/* Override max width on menu links */
.custom-menu-primary .hs-menu-wrapper > ul li a,
.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
  /* overflow: visible !important;
  max-width: none !important;
  width: auto !important; */
  -webkit-transition: all 300ms ease;
  -o-transition: all 300ms ease;
  transition: all 300ms ease;
  display: flex;
  flex-direction: row;
  flex-grow: 1;
  flex-shrink: 0;
  justify-content: flex-start;
}

.hs-menu-wrapper.hs-menu-flow-horizontal > ul li.hs-item-has-children ul.hs-menu-children-wrapper li a {
  padding-right: 20px !important;
}

/* Search */
.search-trigger {
    display: inline;
    cursor: pointer;
    width: 37px;
    float: right;
  	margin-left: 0;
    line-height: 37px;
}

.mobile-open .search-trigger {
    display: block;
    visibility: visible;
    background-color: rgba(,.85);
    cursor: pointer;
    height: 52px;
    width: 100% !important;
    margin:0px !important;
    text-align: center !important;
    padding: 0px !important;
}

#search-toggle {
    margin-left: 30px;
    position: relative;
}

#search-toggle:after {
    content: ' ';
    position: absolute;
    top: -20px;
    right: -30%;
    display: block;
    width: 160%;
    height: 60px;
}

#search-form-wrapper{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: none;
    width: 100%;
    height: 120px;
    padding: 11px 20px 0;
    font-size: .8em;
    text-align: center;
    z-index: 999;
}

#search-form-wrapper label{
    display: none;
}

#search-form-wrapper .hs-button.primary{
    visibility: hidden;
}

#search-form-wrapper input[type="text"]{
    box-sizing: border-box;
    width: 100%;
    height: 100px;
    padding: 0 0 0 70px;
    font-weight: 300;
    text-align: left;
    background: url('https://www.kayakmarketing.com/hubfs/images/k4/global-images/icon-search-large.png') left 20px center no-repeat transparent;
    background-size: 30px 30px;
    border: none;
    border-radius: 0;
}

#search-form-wrapper input[type="text"]:focus{
    box-shadow: none;
}

.hs-search-field--open .hs-search-field__suggestions {
  background-color:#fff !important;
  border: 0px solid #000 !important;
  padding: 2% !important;
}

.hs-search-field--open .hs-search-field__suggestions li {
  border-bottom: 1px solid #ddd !important;
  padding: 2px 0 !important;
}

.hs-search-field--open .hs-search-field__suggestions li:first-child, .hs-search-field--open .hs-search-field__suggestions li:last-child {
  border-bottom: 0px solid #ddd !important;
  padding: 0px 0 2px !important;
}
