/* SEARCH TRAY */
.nav-search-form {
  text-align: center;
  margin: 0 auto;
  position: relative;
  min-width: 320px;

  > div:first-child {
    position: relative;
    z-index: 2;
  }

  .form-wrapper {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-search-tray--submit {
    width: 48px;
    height: 36px;
    background-color: #0066cc;
    border: 0;
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    &:hover {
      background-color: #003366;
    }

    &:focus-visible {
      outline-offset: 3px;
      outline: 1px auto #0066cc;
      background-color: #003366;
    }

    svg {
      fill: #ffffff;
      width: 16px;
      height: 16px;
    }
  }

  .form-item-search-field {
    flex-basis: calc(100% - 48px);
  }

  .form-item input[type=text] {
    height: 36px;
    width: 100%;
    padding: 0 32px 0 8px;
    display: block;
    border: 1px solid #a3a3a3;
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    font-size: 1rem;
    font-family: var(--rh-font-family-body-text, RedHatText, "Red Hat Text", Helvetica, Arial, sans-serif);

    &:hover {
      border-color: #0066cc;
    }

    &:focus {
      outline-offset: -2px;
      outline: 1px auto #0066cc;
    }
  }
}

.clear-text-button {
  position: absolute;
  right: 54px;
  top: 0;
  transform: translateY(calc(50% - 6px));
  font-family: sans-serif;
  font-size: 1.25rem;
  cursor: pointer;
  display: none;
  color: #707070;
  background-color: transparent;
  border: none;
  padding: 0;
  line-height: 1;
  outline: none;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding-bottom: 1px;

  &:hover {
    color: #383838;
  }

  &:focus {
    outline: 1px auto #0066cc;
  }
}
