/*
 * DO NOT EDIT THIS FILE.
 * It's generated automatically by 'yarn build' command.
 * @preserve
 */

.m-search-form {
  --m-search-form-icon-size: 1.5rem;

  display: grid;
  grid-template-columns: 1.875rem auto;
  align-items: center;
  gap: 1rem;
}

.m-search-form--second {
  display: flex;
}

@media (min-width: 1025px) {
  .m-search-form--second {
    gap: 1.5rem;
  }
}

.m-search-form__field {
  position: relative;
}

.m-search-form--second .m-search-form__field {
  flex-grow: 1;
}

.m-search-form__field .h-text-input__element {
  padding: 0.125rem 0;
  border-width: 0 0 0.0625rem;
  border-radius: 0;
  background-color: transparent;
}

.m-search-form__field .h-text-input__element:focus {
  border-color: var(--color-text-stroke-tertiary);
}

.m-search-form__button {
  --outline-offset: 0;

  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  cursor: pointer;
  color: var(--color-text-stroke-secondary);
  border: 0;
  border-radius: 0;
  background-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.m-search-form__button--close {
  --m-search-form-icon-size: 0.9375rem;
}

.m-search-form--second .m-search-form__button {
  --outline-offset: 0.1875rem;

  width: var(--m-search-form-icon-size);
  height: var(--m-search-form-icon-size);
  color: var(--color-text-stroke-tertiary);
}

@media (min-width: 1025px) {
  .m-search-form--second .m-search-form__button {
    color: var(--color-text-stroke-secondary);
  }
}

.m-search-form div.m-search-form__button {
  cursor: auto;
}

.m-search-form__icon {
  fill: currentColor;
  width: var(--m-search-form-icon-size);
  height: var(--m-search-form-icon-size);
}

.m-search-form__autocomplete {
  position: absolute;
  z-index: var(--z-index-autocomplete);
  overflow: auto;
  max-height: 12.5rem;
  margin: 0;
  padding: 0.6875rem 0;
  list-style: none;
  border-radius: 0 0 var(--border-radius-6) var(--border-radius-6);
  background-color: var(--color-background-primary);
  box-shadow: var(--box-shadow);
}

@media (min-width: 1025px) {
  .m-search-form__autocomplete {
    max-height: 25rem;
  }
}

.m-search-form__autocomplete.m-search-form__autocomplete a,
.m-search-form__autocomplete.m-search-form__autocomplete a:hover {
  text-decoration: none;
  color: inherit;
}

.m-search-form__autocomplete .autocomplete-suggestion-user-input {
  font-weight: var(--font-weight-700);
}

@media (width <= 1024px) {
  .p-page__header-grand-container .m-search-form__autocomplete {
    position: fixed;
    top: var(--p-page-header-height) !important;
    left: 0 !important;
    width: 100%;
  }
}

.m-search-form__autocomplete .ui-menu-item-wrapper {
  display: block;
  padding: 0.3125rem 1rem;
  cursor: pointer;
  color: var(--color-text-stroke-primary);
}

@media (min-width: 1025px) {
  .m-search-form__autocomplete .ui-menu-item-wrapper {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
  }
}

.m-search-form__autocomplete .ui-menu-item-wrapper.ui-state-active {
  background-color: var(--color-ghost-success);
}
