@import "../../scss/mnd-bootstrap/variables/variables";

.mnd-c-select__select {
  position: relative;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.mnd-c-select__select-button {
  width: 100%;
  line-height: 1.45;
  font-size: 1rem;
  padding: 0.5rem 2rem 0.5rem 1rem;
  border-radius: 0.25rem;
  border: 1px solid $color-gray-4000;
  background-color: $color-white;
  text-align: left;
  height: 2.75rem;
  white-space: nowrap;
  overflow-x: hidden;
  text-overflow: ellipsis;
}

.mnd-c-select__select-button--open {
  border-radius: 0.25rem 0.25rem 0 0;
}

.mnd-c-select__select-caret {
  position: absolute;
  right: 1rem;
  height: 1.25rem;
  color: $color-gray-1000;
}

.mnd-c-select__select-list {
  position: absolute;
  top: 100%;
  width: 100%;
  background-color: $color-white;
  border-width: 0 1px 1px;
  border-color: $color-gray-4000;
  border-style: solid;
  z-index: $z-index-select-list;
  padding: 0;
  margin: 0;
  max-height: 50vh;
  overflow-y: auto;
}

.mnd-c-select__select-list-item {
  list-style: none;
}

.mnd-c-select__select-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  border: 0;
  background-color: $color-white;
  color: $color-gray-1000;
}

.mnd-c-select__select-option:hover {
  background-color: $color-gray-6000;
}

