.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 16px;
  height: 48px;
  position: fixed;
  top: env(safe-area-inset-top);
  left: 0;
  right: 0;
  z-index: 25;
  transition: opacity 180ms ease;
}

.mobile-header__btn {
  width: 24px;
  height: 24px;
  border-radius: 0;
  border: none;
  background: transparent;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
}

.mobile-header__btn img {
  width: 24px;
  height: 24px;
  display: block;
}

.mobile-header__center {
  flex: 1;
  display: grid;
  place-items: center;
}

.mobile-header__pill {
  height: 32px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid #1B1B1B;
  background: #f8fafc00;
  font-weight: 400;
  font-size: 14px;
  cursor: pointer;
  color: #1B1B1B;
}

.mobile-header__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  max-width: 0;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
  overflow: hidden;
  transition: opacity 200ms ease, transform 200ms ease, max-width 200ms ease;
}

.mobile-header__search input {
  flex: 1;
  border: 1px solid #1B1B1B;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  height: 32px;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1B1B1B;
  outline: none;
  box-shadow: none;
  background: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.mobile-header__search input::placeholder {
  color: #8b95a5;
  font-weight: 600;
}

.mobile-header__search input::-webkit-search-decoration,
.mobile-header__search input::-webkit-search-cancel-button,
.mobile-header__search input::-webkit-search-results-button,
.mobile-header__search input::-webkit-search-results-decoration {
  -webkit-appearance: none;
}
.mobile-header__search--hidden {
  max-width: 0;
  opacity: 0;
  transform: translateX(16px);
  pointer-events: none;
}

.mobile-header--search .mobile-header__center {
  display: none;
}

.mobile-header--search .mobile-header__search {
  max-width: 100%;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-header--hidden {
  opacity: 0;
}

@media (min-width: 1023px) {
  .mobile-header {
    display: none;
  }
}
