#search_block_top {
  float: right;
  height: 50px;
  padding-top: 6px; 
}
#search_block_top #searchbox {
  width: 100%; }
  #search_block_top .btn.button-search {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    border: none;
    width: 50px;
    height: 35px;
    text-align: center;}
    #search_block_top .btn.button-search span {
      display: none; }
      #search_block_top .btn.button-search:before {
      }
      #search_block_top .btn.button-search:hover {
      }
      #search_block_top #search_query_top {
        font: 300 17px 'ProximaNovaCond';
        transition: all 0.5s;
        padding: 0 30px 0 13px;
        height: 38px;
        background: #fbfbfb;
        margin-right: 1px;
        border: none;
        background-color: transparent;
        width: 40px;
        color: #000;
        right: 0;
        position: absolute;
      }
      #search_block_top .btn.btn-default.button-search {
        background: transparent url(https://cristal-of.com/themes/crystal/img/icon/head-sprite.png) no-repeat 6px 9px;
        width: 30px;
        padding: 0;
      }
      @media (min-width: 768px) {
        #search_block_top:hover #search_query_top{
          border-bottom: 2px solid #000;
          width: 200px;
        }
        #search_block_top {
  width: auto;}
      }
      @media (max-width: 767px) {
        #search_block_top #search_query_top {
          border-bottom: 2px solid #000;
          width: 100%;
        } 
      }

      #search_block_top #search_query_top:focus{
        box-shadow: none;
      }
      .ac_results {
        background: #fff;
        border: 1px solid #d6d4d4;
        width: 271px;
        margin-top: -1px; }
        .ac_results li {
          padding: 0 10px;
          font-weight: normal;
          color: #686666;
          font-size: 13px;
          line-height: 22px; }
          .ac_results li.ac_odd {
            background: #fff; }
            .ac_results li:hover, .ac_results li.ac_over {
              background: #fbfbfb; }

              form#searchbox {
                position: relative; }
                form#searchbox label {
                  color: #333; }
                  form#searchbox input#search_query_block {
                    margin-right: 10px;
                    max-width: 222px;
                    margin-bottom: 10px;
                    display: inline-block;
                    float: left; }
                    form#searchbox .button.button-small {
                      float: left; }
                      form#searchbox .button.button-small i {
                        margin-right: 0; }

                        @media (max-width: 767px) {
                          #search_block_top {
                            float: none;
                          }
                        }