.bok-menu-search {
  position: relative;
  z-index: 3;
}

.bok-menu-search--desktop {
  padding: 15px;
  background: #f3f3f3;
  border: 1px solid #cbcfd3;
  width: calc(100% + 2px);
  box-sizing: border-box;
  border-bottom: none;
}

.bok-menu-search--mobile {
  padding: 15px;
  margin: 0 0 10px;
  top: 0;
  background: #fff;
  z-index: 3;
}

.bok-megamenu__inner {
  border-top: none;
  padding-bottom: 15px;
}

.bok-menu-search__field-wrap {
  position: relative;
  width: calc(40% - 15px);
}

.bok-menu-search__input {
  width: 100%;
  height: 44px;
  padding: 0 44px 0 15px;
}

.bok-menu-search__input:focus {
  outline: none;
}

.bok-menu-search__clear {
  position: absolute;
  top: 0;
  right: 0px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #000;
  cursor: pointer;
  font-size: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button.bok-menu-search__clear[hidden] {
  font-size: 0;
}

button.bok-menu-search__clear[hidden]:after {
  content: "\f002";
  font-family: fontawesome;
  font-size: 18px;
  color: #666666;
}

.bok-menu-search__clear:hover,
.bok-menu-search__clear:focus {
  background: none;
  color: #000;
  outline: none;
}

.bok-menu-search__results {
  margin-top: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  max-height: min(70vh, 560px);
  overflow-y: auto;
}

.bok-menu-search__status {
  padding: 12px 14px;
  font-size: 14px;
  color: #666;
}

.bok-menu-search__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bok-menu-search__item + .bok-menu-search__item {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bok-menu-search__link {
  display: block;
  padding: 12px 14px;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
}

.bok-menu-search__link:hover,
.bok-menu-search__link:focus {
  background: #f7f7f7;
  outline: none;
  color: inherit;
}

.bok-menu-search__link mark {
  background: transparent;
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
}

.bok-menu-search__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fafafa;
  position: sticky;
  bottom: 0;
}

.bok-menu-search__count {
  color: #666666;
  font-size: 13px;
}

.bok-menu-search__actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bok-menu-search__more,
.bok-menu-search__reset-results {
  border: 0;
  padding: 9px 12px;
  background: #f0f0f0;
  color: #111;
  cursor: pointer;
  line-height: 1.2;
  font-weight: 500;
}

button.bok-menu-search__more[hidden] {
  display: none;
}

.bok-menu-search__more:hover,
.bok-menu-search__more:focus,
.bok-menu-search__reset-results:hover {
  background: #e8e8e8;
  outline: none;
  color: inherit;
}

@media (max-width: 979px) {
  .bok-menu-search--desktop {
    display: none;
  }
  .bok-menu-search__field-wrap {
    width: 100%;
  }
}

@media (min-width: 980px) {
  .bok-menu-search--mobile {
    display: none;
  }
}
