@layer components {
  .search-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }
  @media (min-width: 1024px) {
    .search-bar {
      width: 27.375rem;
    }
  }
  .search-bar__field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  @media (min-width: 1024px) {
    .search-bar__field {
      flex-direction: row;
      align-items: center;
      gap: 1.5rem;
      background-color: var(--theme-surface-secondary);
      border-radius: 9999px;
      padding: 1rem;
    }
  }
  .search-bar__input {
    flex: 1;
    min-width: 0;
    min-height: 2.75rem;
    border: none;
    background-color: var(--theme-surface-secondary);
    border-radius: 9999px;
    padding: 1.25rem 1rem;
    font: inherit;
    color: var(--theme-text-secondary);
  }
  @media (min-width: 1024px) {
    .search-bar__input {
      background: transparent;
      border-radius: 0;
      padding: 0 0.9375rem;
    }
    .search-bar__input.focus, .search-bar__input:focus-visible {
      outline: none;
      box-shadow: 0 0 0 0.125rem var(--theme-focus-primary);
      border-radius: 9999px;
      padding: 0 0.9375rem;
    }
  }
  .search-bar__input::placeholder {
    color: var(--theme-text-secondary);
  }
  .search-bar__input.focus, .search-bar__input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.125rem var(--theme-focus-primary);
  }
  .search-bar__suggestions-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .search-bar__submit {
    width: 100%;
  }
  @media (min-width: 1024px) {
    .search-bar__submit {
      position: relative;
      width: auto;
      min-height: 2.5rem;
      padding: 0.75rem 1.5rem;
      font-family: var(--font-primary);
      font-size: 0.875rem;
      font-weight: 600;
      line-height: 1;
      letter-spacing: 0;
    }
    .search-bar__submit::after {
      content: "";
      position: absolute;
      inset: -0.125rem 0;
    }
  }
  .search-bar__suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 10;
    margin: 0.5rem 0 0;
    padding: 0.5rem;
    max-height: 16.5rem;
    overflow-y: auto;
    list-style: none;
    background-color: var(--theme-surface-secondary);
    border-radius: 1rem;
    box-shadow: 0px 16px 16px 0px rgba(29, 33, 48, 0.1), 0px 10px 10px 0px rgba(29, 33, 48, 0.08), 0px 6px 6px 0px rgba(29, 33, 48, 0.06), 0px 3px 3px 0px rgba(29, 33, 48, 0.04), 0px 1px 1px 0px rgba(29, 33, 48, 0.02);
  }
  .search-bar__suggestion {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    cursor: pointer;
    color: var(--theme-text-primary);
  }
  .search-bar__suggestion:hover, .search-bar__suggestion--active {
    background-color: var(--theme-surface-tertiary);
  }
  .search-bar__no-match {
    margin: 0;
    padding: 0.75rem 1.5rem;
    color: var(--theme-text-primary);
  }
  .search-bar__no-match:empty {
    display: none;
  }
}