.modal-wrapper {
  font-family: 'Open Sans';
  line-height: 21px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  // min-height: 507px;
  max-height: 880px;

  .header {
    .close-icon {
      position: absolute;
      top: 25px;
      right: 25px;
    }

    .close-icon:hover {
      cursor: pointer;
    }
  }

  .title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 36px;
    span {
      font-size: 20px;
      font-weight: bold;
      color: #000000;
      text-align: center;
    }
  }

  .sub-title {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 28px;
    font-size: 16px;

    span {
      text-align: center;
    }
  }

  .search-area {
    width: 80%;
    align-self: center;
    margin-top: 20px;
  }

  .result-container {
    margin-top: 21px;
    overflow-y: scroll;
  }

  .result-row {
    padding: 27px;
    display: grid;
    grid-template-columns: max-content auto max-content;
    grid-gap: 25px;
  }

  .quantity-wrapper {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 5px;
  }

  .quantity-icon {
    position: relative;
    top: -5px;
    right: 3px;
  }
}

@media (min-height: 633px) and (max-height: 882px) {
  .modal-wrapper {
    max-height: 600px;
  }
}

@media (min-height: 433px) and (max-height: 632px) {
  .modal-wrapper {
    max-height: 450px;
  }
}

@media (min-height: 400px) and (max-height: 432px) {
  .modal-wrapper {
    max-height: 300px;
  }
}
