// (C) Copyright 2011-2013 Hewlett-Packard Development Company, L.P.

#hp-main-banner {
  #hp-search-control {
    position: absolute;
    top: 0px;
    left: 200px;
    right: 0px;
    height: $banner-height - 4px;
    padding: 2px 12px 2px 45px;
    //border-left: 1px solid $global-divider;
    background-image: url($img-file);
    background-position: -380px -99px;
    background-repeat: no-repeat;
    font-size: 21px;
    line-height: $banner-height - 2px;
    color: $global-secondary-color;
    @include transition(left, $normal-animation-duration);
    
    &:hover {
      background-color: $global-hover-background;
      color: $global-primary-color;
      background-position: -380px -59px;
    }
    
    &.hp-selected {
      color: $global-primary-color;
      background-position: -380px -59px;
    }
    
    span.hp-property {
      font-family: 'HPLight', Arial, Helvetica, sans-serif;
    }
  }
}

#hp-search-menu {
  position: absolute;
  top: 0px;
  left: 200px;
  right: 150px;
  @include box-sizing(border-box);
  padding: 0px 18px;
  background-color: $global-selected-background;
  z-index: ($banner-z-index + 1);
  display: none;
  border: 2px solid $dropdown-border;
  
  &.hp-active {
    display: block;
  }
  
  > header {
    height: $banner-height - 3px;
    background-image: url($img-file);
    background-position: -399px -61px;
    background-repeat: no-repeat;
    
    #hp-search-input {
      position: absolute;
      top: 0px;
      left: 0px;
      right: 0px;
      padding-top: 16px;
      padding-left: 43px;
      padding-right: 40px;
      height: $banner-height - 18px;
    }
    
    input {
      width: 100%;
      font-size: 21px;
      line-height: normal;
      font-weight: normal;
      -webkit-font-smoothing: antialiased;
      margin: 0px;
      padding: 0px;
      background: transparent;
      font-family: 'HPRegular', Arial, Helvetica, sans-serif;
      color: #000;
      border: none;
      //@include remove-box-shadow();
      cursor: default;
      
      &::-moz-selection {
        background: $selected-background;
      }
      &::-ms-clear {
        display: none;
      }
    }
    
    #hp-search-clear {
      position: absolute;
      top: 20px;
      right: 10px;
      width: 20px;
      height: 20px;
      background-image: $close-url;
      background-repeat: no-repeat;
      cursor: pointer;
      
      &:hover {
        background-image: $close-over-url;
      }
    }
  }
  
  #hp-search-choices {
    position: relative;
    padding: 10px 25px 0px 25px;
    background-image: $horizontal-dot-url;
    background-position: left top;
    background-repeat: repeat-x;
    overflow: hidden;
    
    h2 {
      display: none;
    }
    
    li {
      cursor: pointer;
    }
  }
  
  #hp-search-suggestions, #hp-search-recent {
    margin: 0px -25px;
    font-size: 16px;
    white-space: nowrap;
    margin-bottom: 15px;
    
    li {
      padding: 5px 25px;
      overflow: hidden;
      text-overflow: ellipsis;
      
      &:hover {
        background-color: $primary-hover-background;
        color: $primary-color;
      }
      
      &.hp-selected {
        background-color: $selected-background;
        color: $primary-color;
      }
    }
  }
  
  /*#hp-search-recent {
    margin: 0px;
    font-size: 13px;
    
    li {
      display: inline-block;
      background-color: $global-hover-background;
      white-space: nowrap;
      margin-right: 5px;
      margin-bottom: 5px;
      padding: 2px 5px;
    }
  }*/
  
  #hp-search-scope {
    padding: 11px 0px;
    background-image: $horizontal-dot-url;
    background-position: left top;
    background-repeat: repeat-x;
    @include box-sizing(border-box);
    
    input {
      display: inline-block;
      margin: 0px 3px 0px 0px;
    }
    
    label {
      display: inline-block;
      max-width: 50%;
      overflow: hidden;
      text-overflow: ellipsis;
      margin-right: 20px;
      
      &:first-child {
        margin-right: 10px;
      }
    }
  }
}
