.overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  z-index: 1000;
  background-color: #0000008c;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup {
  background-color: #fff;
  position: relative;
  width: 850px;
  padding: 1.1em;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  font-family: var(--neuzeit-reg-font);
  text-transform: uppercase;
  font-size: var(--font-size-md);
  margin: 10px 0;
}

.close_icon_popup {
  color: #000;
  font-size: 1.2rem;
  cursor: pointer;
}

.store {
  padding: 1em;
  border: solid black 1px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  height: 180px;
  box-sizing: border-box;
}

.store .detail {
  display: flex;
  margin: 8px 0;
  align-items: flex-start;
  gap: 0.5em;
}

.store .storeName {
  min-width: 60px;
  flex-shrink: 0;
  font-weight: 500;
  font-size: var(--font-size-md);
}

.store .separator {
  flex-shrink: 0;
  font-weight: bold;
  display: flex;
  align-items: flex-start;
}

.store .value {
  flex: 1;
  font-weight: bold;
  word-break: break-word;
  font-size: var(--font-size-md);
}

.store .stockAvailability {
  margin-top: auto;
}

.body {
  max-height: 75vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1em;
  padding-right: 0.5em;
  margin-right: -0.5em;
}

.showList {
  font-weight: normal;
  margin: 0 10px;
  border-bottom: 1px solid black;
  cursor: pointer;
}

.searchIcon {
  margin-left: 5px;
  font-size: 0.8em;
}

ul.list {
  font-weight: normal;
}

@media only screen and (max-width: 1023px) {
  .popup {
    width: 85vw;
  }

  .store {
    height: 180px;
  }

  .store .storeName {
    min-width: 50px;
    font-size: 0.8em;
  }

  .store .separator {
    font-size: 0.8em;
    padding: 0px 5px;
  }

  .store .value {
    font-size: 0.9em;
  }
}

@media only screen and (min-width: 681px) and (max-width: 780px) {
  .store {
    height: 200px;
  }
}

@media only screen and (max-width: 680px) {
  .popup {
    width: 90%;
    flex-direction: column-reverse;
  }

  .body {
    grid-template-columns: 1fr;
  }

  .store {
    height: auto;
  }

  .store .storeName {
    min-width: 60px;
  }

  .store .value {
    max-width: 80%;
    margin-left: 10px;
  }
}
