/*
  Search Banner Drop Down
*/
.block-funnelback-search-block {
  top: 0;
  background:var(--cutler);
  z-index:999;
  margin-top:-100%;
  position:absolute;
  padding: 12px 0px;
  width:100%;
  display: none;
  -webkit-transition:margin .5s;
  -moz-transition:margin .5s;
  -ms-transition:margin .5s;
  -o-transition:margin .5s;
  transition:margin .5s;
}

/* Style as relative for no-js, keeping it from hiding the masthead */
body.no-js .block-funnelback-search-block {
  position:relative;
  margin-top:0;
}

.block-funnelback-search-block.active {
  margin-top:0px;
  display:block !important;
}

.block-funnelback-search-block .searchBoxContainer {
  position:relative;
  width:100%;
  height:50px;
  background:var(--white);
  box-sizing: border-box;
}

.block-funnelback-search-block .form-item-search {
  width: 85%;
  font-size: 30px;
  color: var(--black);
  display: inline-block;
  max-width: calc(85% - 44px);
  height:40px;
  margin-top:2px;
  margin-bottom:8px;
}

.block-funnelback-search-block .form-item-search input {
  width: 100%;
  border: none;
  text-align: center;
}

.block-funnelback-search-block input.form-submit {
  display:inline-block;
  position:relative;
  width:100px;
  background: var(--under-the-elms);
  padding: 6px;
  font-size: 16px;
  border:none;
  color:var(--white);
  vertical-align: top;
  margin:8px 0 0;
}

.block-funnelback-search-block .form-submit:hover, .block-funnelback-search-block .form-submit:focus {
  background: #00553e;
  cursor:pointer;
}

.block-funnelback-search-block .form-search {
  box-sizing: inherit;
}

/* Search Box Close Button */
#closeSearch {
  height:50px;
  width:50px;
  position: relative;
  float:left;
  margin-right:5px;
  z-index: 8;
}

#closeSearch span{
  display: block;
  left: -1px;
  position: relative;
  color:var(--white);
  font-size:1px;
  line-height:1px;
  height:1px;
  width:1px;
  overflow:hidden;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

#closeSearch:before, #closeSearch:after {
  content: "";
  display: block;
  height: 2px;
  width: 25px;
  color: var(--black);
  position: absolute;
  background: var(--black);
  top: 24px;
  left: 12px;
  transform: rotate(0);
  transition: all .7s ease-in;
}

.block-funnelback-search-block.active #closeSearch:before{
  transform:rotate(45deg);
}

.block-funnelback-search-block.active #closeSearch:after{
  transform:rotate(-45deg);
}

fieldset#edit-site-selector--wrapper {
  text-align:center;
  background: var(--cutler);
  border:none;
  padding: 15px 0px 0px 0px;
  margin:0;
}

fieldset#edit-site-selector--wrapper * {
  color:var(--white);
}

#edit-site-selector .form-item {
  display:inline-block;
  margin:0 15px;
}

@media screen and (max-width:767px) {
  fieldset#edit-site-selector--wrapper {
    margin-left:110px;
  }

  #edit-site-selector .form-item:first-of-type label {
    border-radius: 5px 0 0 5px;
  }

  #edit-site-selector .form-item:last-of-type label {
    border-radius: 0 5px 5px 0;
  }

  #edit-site-selector .form-item {
    margin: 0;
    position: relative;
    vertical-align: top;
    top: -4px;
    float: left;
    transition: all 0.05s ease-in;
  }

  #edit-site-selector label {
    color: var(--black) !important;
    background: var(--trillium);
    width: 80px;
    padding: 5px;
    font-size: 16px;
    border: 1px solid #bbb;
    cursor: pointer;
    transition: all 0.05s ease-in;
  }

  #edit-site-selector label:hover {
    color:var(--white) !important;
    background: #00553e;
  }

  #edit-site-selector input:checked + label {
    color:var(--white) !important;
    background: #00553e;
  }

  #edit-site-selector input {
    position: absolute;
    z-index: -1;
  }
}

@media screen and (max-width:512px) {
  .block-funnelback-search-block.active input.form-submit {
    display: block; width: 100%;
  }

  .block-funnelback-search-block .searchBoxContainer {
    height: auto;
  }
  
  .block-funnelback-search-block fieldset#edit-site-selector--wrapper {
    margin-left:0;
  }
}
