:root {
  --search-local-icon-stroke-width: 1.4;

  /* searchbox */
  --search-local-searchbox-shadow: inset 0 0 0 2px var(--ifm-color-primary);

  /* key */
  --search-local-key-gradient: linear-gradient(
    -225deg,
    rgb(213, 219, 228) 0%,
    rgb(248, 248, 248) 100%
  );
  --search-local-key-shadow:
    inset 0 -2px 0 0 rgb(205, 205, 230), inset 0 0 1px 1px #fff, 0 1px 2px 1px rgba(30, 35, 90, 0.4);
}

/* Darkmode */

html[data-theme='dark'] {
  --search-local-key-gradient: linear-gradient(-26.5deg, rgb(86, 88, 114) 0%, rgb(49, 53, 91) 100%);

  --search-local-key-shadow:
    inset 0 -2px 0 0 rgb(40, 45, 85), inset 0 0 1px 1px rgb(81, 87, 125),
    0 2px 2px 0 rgba(3, 4, 9, 0.3);
}

.DocSearch-Button {
  background: var(--ifm-navbar-search-input-background-color);
  border: 0;
  border-radius: 40px;
  color: var(--ifm-navbar-search-input-color);
  cursor: pointer;
  height: 36px;
  margin: 0 0 0 16px;
  position: relative;
  width: 200px;
}

@media (max-width: 750px) {
  .DocSearch-Button {
    width: 36px;
  }
}

.DocSearch-Button:hover,
.DocSearch-Button:active,
.DocSearch-Button:focus-within {
  box-shadow: var(--search-local-searchbox-shadow);
  outline: none;
}

.DocSearch-Button-Input {
  background: transparent;
  border: none;
  border-radius: 40px;
  color: var(--ifm-navbar-search-input-color);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  height: 100%;
  left: 0;
  outline: none;
  padding: 0 16px 0 40px;
  position: absolute;
  top: 0;
  width: 100%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 750px) {
  .DocSearch-Button-Input {
    padding: 0 8px 0 32px;
  }
}

.DocSearch-Button-Input:focus {
  cursor: text;
}

.DocSearch-Button-Input::placeholder {
  color: var(--ifm-navbar-search-input-color);
  opacity: 0.7;
}

@media (max-width: 750px) {
  .DocSearch-Button-Input::placeholder {
    opacity: 0;
  }
}

.DocSearch-Button-Icon {
  align-items: center;
  display: flex;
  height: 100%;
  left: 8px;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 1;
}

.DocSearch-Search-Icon {
  color: var(--ifm-font-color-base);
  flex-shrink: 0;
  stroke-width: 1.6;
}

.DocSearch-Button-Keys {
  display: flex;
  min-width: calc(2 * 20px + 2 * 0.4em);
  margin-right: 6px;
}

@media (max-width: 750px) {
  .DocSearch-Button-Keys {
    display: none;
  }
}

.DocSearch-Button-Key {
  align-items: center;
  background: var(--search-local-key-gradient);
  border-radius: 3px;
  box-shadow: var(--search-local-key-shadow);
  color: var(--ifm-color-secondary-darkest);
  display: flex;
  height: 18px;
  justify-content: center;
  margin-right: 0.4em;
  padding-bottom: 2px;
  position: relative;
  top: -1px;
  width: 20px;
}
