.icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-container {
  display: flex;
  flex-flow: column;
  align-items: center;
  justify-content: flex-start;

  height: auto;

  background-color: transparent;

  transition:
    top 0.3s ease,
    left 0.3s ease,
    right 0.3s ease,
    height 0.3s ease,
    background-color 0.3s ease;

  .search-close {
    position: absolute;
    right: calc((100vw - 830px) / 2);

    display: none;

    opacity: 0;

    transition: opacity 0.3s ease;
  }

  &.focused {
    position: fixed;
    z-index: 99999;
    inset: 0;

    background-color: rgb(255 255 255 / 90%);

    .search-close {
      top: 15px;
      right: 15px;

      display: flex;

      width: 32px;
      height: 32px;

      opacity: 1;

      &:hover {
        opacity: 0.8;
      }
    }

    .search-wrapper {
      width: 800px;
      margin: 24px 0;
    }
  }
}

.search-wrapper {
  position: relative;
  width: 100%;

  input {
    position: relative;

    width: 100%;
    padding: 17px 32px 17px 17px;

    font-size: 18px;

    border: 0 none;
    border-radius: 5px;
    outline: none;
  }

  button {
    cursor: pointer;

    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;

    padding: 0 16px;

    color: transparent;

    background-color: transparent;
    border: 0 none;
    border-radius: 0 3px 3px 0;
  }
}

.dnone {
  display: none;
}
