.b-hide {
  display: none;
}

/* 舊瀏覽器版本偵測、顯示不支援警告 */
#bsOverlay {
  margin-top: 30px;
}

/* 頂呱呱 */
.top-banner {
  margin-top: 8px;
  margin-bottom: 8px;

  /* padding: 8px 0; */
}

/* Keyword autocomplete */
.autocomplete-suggestions {
  font-size: 16px;
  color: #333;
  letter-spacing: 2px;
  line-height: 24px;
  border: 1px solid #bfb69d;
  background: #fff;
  overflow: auto;
  box-shadow: 0 2px 4px 0 #a9a9a9;
  padding: 5px 0;
  max-height: 400px !important;
}

.autocomplete-suggestion {
  padding-left: 12px;
  white-space: nowrap;
  overflow: hidden;
  font-size: 14px;
  color: #292929;
}

.autocomplete-suggestion.autocomplete-suggestion-adsmart {
  cursor: pointer;
}
.autocomplete-suggestion.autocomplete-suggestion-adsmart .advert-type7 a {
  color: #ff7800;

}


.autocomplete-suggestion.autocomplete-suggestion-cust {
  color: #7e7e7e;
  cursor: pointer;
}

.autocomplete-suggestion.autocomplete-suggestion-custmore {
  color: #1654b9;
}

.autocomplete-suggestion::before,
.autocomplete-suggestion::after {
  content: "";
  display: block;
  height: 5px;
  background-color: #fff;
  margin-left: -12px;
}

.autocomplete-selected {
  background-color: #ffeedf;
}

.autocomplete-group {
  color: #7e7e7e;
  font-size: 12px;
  position: absolute;
  right: 0;
  text-align: right;
  padding-top: 4px;
  padding-right: 5px;
  line-height: 30px;
}

.autocomplete-group + .autocomplete-suggestion {
  border-top: 1px #eee solid;
}

.autocomplete-group:first-child + .autocomplete-suggestion {
  border-top: 0;
}

/* 歷史訊息 */
.search-history {
  width: 715px;
  position: absolute;
  border: 1px solid #ddd;
  background-color: #fff;
  z-index: 4;
  padding: 5px 0;
  box-shadow: 0 2px 4px 0 #a9a9a9;
}

.search-history.higher {
  width: 715px;
}

.search-history__item {
  background-color: #fff;
  width: 100%;
  cursor: pointer;
  padding: 5px 0;
  position: relative;
}

.search-history__item:hover {
  background-color: transparent;
}

.search-history__item:hover a {
  background-color: #ffeedf;
}

.search-history__item span {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("../img/icon-delete@2x.png");
  background-size: cover;

  /* vertical-align: top; */

  /* margin-top: 7px; */
  position: absolute;
  top: 50%;
  right: 8px;
  margin-top: -8px;
}

.search-history__item .advert-type2 a,
.search-history__item .advert-type7 a,
.search-history__item a.history-text {
  /* width: 667px; */
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 20px 0 12px;
  display: block;
  line-height: 24px;
  color: #292929;
}

.search-history__item .advert-type2 a,
.search-history__item .advert-type7 a,
.search-history__item a.ad-text {
  color: #ff7800;
}

.search-history.higher .search-history__item a.history-text {
  /* width: 796px; */
}

.search-history__item a.history-text:hover {
  text-decoration: none;
}

.search-history__item .history-clear {
  width: 5%;
}

.keyword {
  padding-right: 30px;
}

.keyword.js-keyword-hasvalue ~ .keyword-close {
  display: block;
}

.keyword-close {
  display: none;
  position: absolute;
  width: 16px;
  height: 16px;
  background-image: url("../img/icon-delete.svg");
  background-size: cover;
  z-index: 10;
  top: 0;
  bottom: 0;
  margin-top: auto;
  margin-bottom: auto;
  left: 424px;
  cursor: pointer;
}

.keyword-close.keyword-close-higher {
  left: 290px;
}

.keyword-close.keyword-close-student {
  left: 290px;
}
