:root {
  --docsearch-primary-color: var(--ifm-color-primary);
  --docsearch-text-color: var(--ifm-font-color-base);
}

.DocSearch-Button {
  height: 4rem;
  margin: 0;
  padding: 0.8rem 1.2rem;
  background-color: var(--color-Neutral_BackgroundMuted);
  border: 1px solid var(--color-neutral-field-border);
  border-radius: 6px;
  color: var(--color-neutral-text-placeholder);
  /* Annoying, but needed */
  /* https://stackoverflow.com/questions/26140050/why-is-font-family-not-inherited-in-button-tags-automatically/26140154 */
  font-family: inherit;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 2rem;
  transition: background-color var(--ifm-transition-fast) var(--ifm-transition-timing-default),
    color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
}

.AskAI-Button {
  height: 4rem;
  padding: 0.8rem 1.6rem !important;
  background-color: var(--ifm-color-primary);
  border-radius: 8px;
  color: var(--color-neutral-text-on-primary);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 2.4rem;
  border: none;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  cursor: pointer;
  display: block;
  position: relative;
  text-align: center;
  transition: all var(--ifm-transition-fast) var(--ifm-transition-timing-default);
}

.SearchButton-Container {
  display: flex;
  align-items: center;
}

.navbar-sidebar .SearchButton-Container {
  display: none;
}

@media (max-width: 768px) {
    .SearchButton-Container {
      width: 100%;
    }

    .AlgoliaContainer {
      flex: 1;
    }

    .DocSearch-Button {
      width: 100%;
      justify-content: space-between;
    }

    .navbar__inner .SearchButton-Container {
      display: none;
    }

    .navbar-sidebar .SearchButton-Container {
      display: flex;
    }

    .navbar-sidebar .DocSearch-Button-Placeholder {
      display: block;
    }

    .navbar-sidebar .DocSearch-Button-Keys {
      display: flex;
    }
}

.DocSearch-Button:hover {
  box-shadow: none;
  background-color: var(--color-Neutral_BackgroundMuted);
  color: var(--color-neutral-icon);
}

.DocSearch-Search-Icon {
  display: none;
}

.DocSearch-Button-Placeholder {
  color: inherit;
  font-size: 1.4rem;
  line-height: 2.4rem;
  padding: 0;
  transition: color var(--ifm-transition-fast) var(--ifm-transition-timing-default);
}

.DocSearch-Button-Keys {
  width: 3rem;
  min-width: unset;
  height: 2rem;
  background-color: var(--color-neutral-background-subtle);
  border: 1px solid var(--color-neutral-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
}

.DocSearch-Button-Key {
  top: unset;
  width: unset;
  min-width: 0.8rem;
  height: unset;
  margin: unset;
  padding: unset;
  background: unset;
  border-radius: unset;
  box-shadow: unset;
  color: var(--color-neutral-text-subtle);
  font-size: 1.2rem;
  font-weight: 500;
}

.DocSearch-Button-Key:first-child {
  width: 1.2rem;
  height: 1.2rem;
  font-size: 1.6rem;
  line-height: 1.2rem;
}

.DocSearch-Container {
  z-index: calc(var(--ifm-z-index-fixed) + 1);
}
