@import "../properties.css";

.wrap {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  position: relative;
  width: 100%;
}

.header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  line-height: 38px;
  border-bottom: 2px solid var(--color-grey-400);
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-radius: 0px;
  cursor: default;
  position: relative;
  padding: 2px 0px;
  height: 32px;
  background-color: var(--color-transparent);
  font-size: 16px;
  font-family: var(--font-family-noto-sans);
  appearance: none;
  background-color: var(--color-transparent);  
  color: var(--color-grey-700);  
}

.header.focused {
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-radius: 0px;  border-bottom: 2px solid var(--color-secondary-100);
}

.header.error {
  border-bottom: 2px solid var(--color-danger);
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  border-radius: 0px;  
}

.header:disabled {
  cursor: not-allowed;
}

.header:focus {
  outline: none;
}

.title {
  width: 100%;
  border: 0;
}

.list {
  z-index: 10;
  position: absolute;
  width: 100%;
  border: 1px solid #dfdfdf;
  border-top: none;
  border-bottom-right-radius: 3px;
  border-bottom-left-radius: 3px;
  background-color: #fff;
  -webkit-box-shadow: 0 2px 5px -1px #e8e8e8;
  box-shadow: 0 2px 5px -1px #e8e8e8;
  font-weight: 700;
  padding: 15px 0;
  max-height: 215px;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
}

.item {
  width: 100%;
  font-size: 1.5rem;
  padding: 8px 10px;
  line-height: 1.6rem;
  cursor: default;
  display: inline-block;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.item.selected {
  color: #fff;
  background-color: #ffcc01;
}

.item:hover {
  color: #fff;
  background-color: #ffcc01;
}
