.choices {
  position: relative;
  font-size: 16px;
  cursor: pointer;
  z-index: 9;
}

.choices:not(:last-child) {
  margin-bottom: 24px
}

.choices [hidden] {
  display: none !important
}

.choices:focus {
  outline: 0;
}

.choices__input.choices__input--cloned {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  background-color: #fff;
  margin: 0;
  z-index: 9;
}

.choices[data-type*=select-one]:after {
  content: '';
  position: absolute;
  right: 16px;
  transform: translateY(-50%);
  top: 50%;
  width: 20px;
  height: 10px;
  background-repeat: no-repeat;
  background-position: 100% 50%;
  -webkit-transition: transform .4s ease;
  -o-transition: transform .4s ease;
  transition: transform .4s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10' fill='none' viewBox='0 0 20 10'%3E%3Cpath fill='%23343A40' d='M10.399 9.846l9.434-8.93a.514.514 0 000-.758.587.587 0 00-.8 0L10 8.708.969.157a.587.587 0 00-.8 0 .51.51 0 000 .754l9.434 8.93c.218.21.579.21.797.004z'/%3E%3C/svg%3E");
}

.choices[data-type*=select-one].is-open:after {
  transform: rotate(-180deg) translateY(45%);
}

.choices__inner {
  display: inline-flex;
  vertical-align: top;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #343a40;
  border-radius: 4px;
  font-size: 16px;
  min-height: 44px;
  overflow: hidden;
  font-weight: 700;
  transition: background-color .3s, border-color 0.3s;
}

.is-selected {
  background-color: #e6edf3;
  border-color: #e6edf3;
}

.choices__inner:hover {
  background-color: #e6edf3;
  border-color: #e6edf3;
}

.is-focused .choices__inner,
.is-open .choices__inner {
  z-index: 1000;
  border-color: #343a40;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
}

.choices.is-disabled .choices__inner,
.choices.is-disabled .choices__input {
  background-color: #eaeaea;
  cursor: not-allowed;
  -webkit-user-select: none;
  user-select: none;
}

.choices.is-disabled .choices__item {
  cursor: not-allowed;
}

.choices.is-open {
  z-index: 11;
}

.choices.is-open .choices__inner {
  border-radius: 4px 4px 0 0;
}

.choices__list[role] {
  margin: 0;
  padding-left: 0;
  list-style: none;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  display: flex;
  flex-direction: column;
}

.choices__list--single {
  display: inline-block;
  width: 100%
}

.choices__list--single .choices__item {
  width: 100%;
  text-overflow: ellipsis;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  padding-right: 26px;
}

.choices__list--dropdown {
  visibility: hidden;
  z-index: 1;
  position: absolute;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  top: 100%;
  margin-top: -1px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  overflow: hidden;
  word-break: break-all;
  will-change: visibility
}

.choices__list--dropdown.is-active {
  visibility: visible;
}

.is-open .choices__list--dropdown {
  border-color: #343a40;
  border-top: none;
}

.choices__list--dropdown .choices__list {
  position: relative;
  max-height: 300px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position
}

.choices__item[role=option] {
  padding: 12px 16px;
  font-size: 16px;
  transition: background-color 0.3s;
  white-space: normal;
}

.choices__item[role=option]:hover {
  background-color: #e6edf3;
}

.choices__input:focus {
  outline: 0
}

.choices__input {
  display: inline-block;
  vertical-align: baseline;
  background-color: #f9f9f9;
  font-size: 16px;
  margin-bottom: 5px;
  border: 0;
  border-radius: 0;
  max-width: 100%;
  -webkit-appearance: none;
  padding: 4px 0 4px 2px;
}

.choices__item.choices__item--choice.has-no-results {
  padding: 12px 16px;
  font-size: 16px;
}

.choices__item[data-choice-disabled] {
  background-color: #eaeaea;
}