.rbs-search {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block;
}

.rbs-search__form {
  margin: 0;
  width: 100%;
  display: block;
}

.rbs-search__field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 14px 0 16px;
  border: 1px solid #88b2ca;
  border-radius: 999px;
  background: #ffffff;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.rbs-search__icon,
.rbs-search__icon-toggle svg {
  width: 18px;
  height: 18px;
  color: #54758a;
  flex: 0 0 18px;
}

.rbs-search__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  background-color: transparent !important; 
  border-color: transparent !important;
  color: #212121;
  font: inherit;
  font-size: 16px;
  outline: none;
}

.rbs-search__input::-webkit-search-cancel-button,
.rbs-search__input::-webkit-search-decoration,
.rbs-search__input::-webkit-search-results-button,
.rbs-search__input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.rbs-search__input::placeholder {
  color: rgba(33, 33, 33, 0.58);
}

.rbs-search__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 100%;
  border: 0;
  border-left: 1px solid #d9dde3;
  border-radius: 0;
  background: transparent;
  color: #4d5965;
  cursor: pointer;
  flex: 0 0 38px;
  padding: 0;
}

.rbs-search__clear svg {
  width: 14px;
  height: 14px;
}

.rbs-search__clear:hover,
.rbs-search__clear:focus {
  background: rgba(84, 117, 138, 0.06);
  color: #2f3842;
}

.rbs-search__clear[hidden] {
  display: none;
}

.rbs-search--icon {
  width: auto;
  display: inline-flex;
}

.rbs-search--icon .rbs-search__icon-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #54758a;
  cursor: pointer;
}

.rbs-search--icon .rbs-search__icon-toggle svg {
  width: 21px;
  height: 21px;
}

.rbs-search__drawer[hidden] {
  display: none;
}

.rbs-search__drawer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  pointer-events: none;
}

.rbs-search__drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 24, 0.28);
  opacity: 0;
  transition: opacity .24s ease;
}

.rbs-search__drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(420px, 92vw);
  padding: 18px 16px 22px;
  background: #ffffff;
  box-shadow: 18px 0 40px rgba(15, 22, 30, 0.14);
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  transform: translateX(-104%);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.rbs-search__drawer.is-visible {
  pointer-events: auto;
}

.rbs-search__drawer.is-visible .rbs-search__drawer-overlay {
  opacity: 1;
}

.rbs-search__drawer.is-visible .rbs-search__drawer-panel {
  transform: translateX(0);
}

.rbs-search__drawer-head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.rbs-search__drawer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f3f5f7;
  color: #41515f;
  cursor: pointer;
}

.rbs-search__drawer-back svg {
  width: 18px;
  height: 18px;
}

.rbs-search__drawer .rbs-search__form {
  width: 100%;
}

.rbs-search__drawer .rbs-search__field {
  min-height: 50px;
}

.rbs-search__history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rbs-search__history[hidden] {
  display: none;
}

.rbs-search__history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rbs-search__history-title {
  margin: 0;
  color: #212121;
  font-size: 14px;
  font-weight: 700;
}

.rbs-search__history-clear {
  border: 0;
  background: transparent;
  color: #54758a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.rbs-search__history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rbs-search__history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e3e7eb;
  border-radius: 14px;
  background: #ffffff;
  color: #212121;
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.rbs-search__history-item svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  color: #6d7b88;
}

.rbs-search__history-item:hover,
.rbs-search__history-item:focus {
  background: #f7f9fb;
}

.rbcm-mm__search {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: block !important;
  flex: 1 1 100%;
  visibility: visible !important;
  opacity: 1 !important;
  margin: 0 0 14px;
}

.rbcm-mm__search .rbs-search,
.rbcm-mm__search .rbs-search__form,
.rbcm-mm__search .rbs-search__field {
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

.rbcm-mm__search .rbs-search__field {
  display: flex !important;
}

.gb-navigation .rbcm-mm__search,
.gb-navigation .rbcm-mm__search .rbs-search,
.gb-navigation .rbcm-mm__search .rbs-search__form {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
}

@media (max-width: 768px) {
  .rbcm-mm__search {
    order: -1;
    display: block;
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    margin: 0 0 12px;
  }

  .rbcm-mm__search .rbs-search__field {
    min-height: 46px;
    padding-left: 14px;
    padding-right: 12px;
    gap: 10px;
  }

  .rbcm-mm__search .rbs-search__input {
    font-size: 15px;
  }

  .rbcm-mm__search .rbs-search__clear {
    width: 38px;
    height: 100%;
    flex: 0 0 38px;
  }

  .rbs-search__drawer-panel {
    width: min(380px, 92vw);
    padding: 16px 14px 20px;
  }
}

html.rbs-search-drawer-open,
body.rbs-search-drawer-open {
  overflow: hidden;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
