.choices {
  position: relative;
  margin-bottom: 24px;
}
.choices ::-webkit-input-placeholder {
  color: #999999;
}
.choices ::-moz-placeholder {
  color: #999999;
  opacity: 1;
}
.choices ::placeholder {
  color: #999999;
}
.choices:focus {
  outline: none;
}
.choices:last-child {
  margin-bottom: 0;
}
.choices.is-disabled .choices__inner,
.choices.is-disabled .choices__input {
  background-color: #bbbbbb;
  cursor: not-allowed;
  user-select: none;
}
.choices [hidden] {
  display: none !important;
}
.choices * {
  box-sizing: border-box;
}
.choices.is-open .choices__inner {
  border-radius: 4px 4px 0 0;
}
.choices.is-open.is-flipped .choices__inner {
  border-radius: 0 0 4px 4px;
}

.choices[data-type*=select-one] {
  cursor: pointer;
}
.choices[data-type*=select-one] input.choices__input {
  display: block;
  width: calc(100% - 20px) !important;
  margin: 10px !important;
  padding: 7px 12px !important;
  box-sizing: border-box !important;
  border: 1px solid #cccccc !important;
  border-radius: 4px !important;
  background-color: #fff;
}
.choices[data-type*=select-one] input.choices__input:focus {
  border: 1px solid #016aab !important;
  box-shadow: 0 0 0 1px #016aab !important;
  outline: none !important;
}
.choices[data-type*=select-one] .choices__button {
  background-image: url("../../images/cross-inverse.svg");
  padding: 0;
  background-size: 8px;
  position: absolute;
  top: 50%;
  right: 0;
  margin-top: -10px;
  margin-right: 25px;
  height: 20px;
  width: 20px;
  border-radius: 10em;
  opacity: 0.5;
}
.choices[data-type*=select-one] .choices__button:hover, .choices[data-type*=select-one] .choices__button:focus {
  opacity: 1;
}
.choices[data-type*=select-one] .choices__button:focus {
  box-shadow: 0 0 0 2px #036aab;
}
.choices[data-type*=select-one] .choices__item[data-value=""] .choices__button {
  display: none;
}
.choices[data-type*=select-one]:after {
  content: "";
  height: 0;
  width: 0;
  border-style: solid;
  border-color: currentColor transparent transparent transparent;
  border-width: 5px;
  position: absolute;
  right: 11.5px;
  top: 50%;
  margin-top: -2.5px;
  pointer-events: none;
}
.choices[data-type*=select-one].is-open:after {
  border-color: transparent transparent currentColor transparent;
  margin-top: -7.5px;
}
.choices[data-type*=select-one][dir=rtl]:after {
  left: 11.5px;
  right: auto;
}
.choices[data-type*=select-one][dir=rtl] .choices__button {
  right: auto;
  left: 0;
  margin-left: 25px;
  margin-right: 0;
}

.choices[data-type*=select-multiple] .choices__inner {
  padding-right: 24px;
}
.choices[data-type*=select-multiple] .choices__inner .choices__input {
  padding: 0 4px !important;
}
.choices[data-type*=select-multiple]:after {
  content: "";
  height: 0;
  width: 0;
  border-style: solid;
  border-color: currentColor transparent transparent transparent;
  border-width: 5px;
  position: absolute;
  right: 11.5px;
  top: 50%;
  margin-top: -2.5px;
  pointer-events: none;
}
.choices[data-type*=select-multiple].is-open:after {
  border-color: transparent transparent currentColor transparent;
  margin-top: -7.5px;
}

.choices[data-type*=select-multiple] .choices__inner,
.choices[data-type*=text] .choices__inner {
  cursor: text;
}
.choices[data-type*=select-multiple] .choices__button,
.choices[data-type*=text] .choices__button {
  position: relative;
  display: inline-block;
  vertical-align: baseline;
  margin-top: 0;
  margin-bottom: 0;
  margin-left: 5px;
  padding: 0;
  background-color: transparent;
  background-image: url("../../images/cross.svg");
  background-size: 12px;
  background-position: center center;
  background-repeat: no-repeat;
  width: 12px;
  height: 12px;
  line-height: 1;
  opacity: 0.75;
  border-radius: 0;
}
.choices[data-type*=select-multiple] .choices__button:hover, .choices[data-type*=select-multiple] .choices__button:focus,
.choices[data-type*=text] .choices__button:hover,
.choices[data-type*=text] .choices__button:focus {
  opacity: 1;
}

.choices__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  background-color: #ffffff;
  padding: 4px 6px 0;
  border: 1px solid #cccccc;
  overflow: hidden;
  border-radius: 4px;
}

.choices__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.choices__list--single {
  display: inline-block;
  vertical-align: baseline;
  width: 100%;
  padding: 0 16px 4px 4px;
  font-size: 0.875em;
}
.choices__list--single .choices__item {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 20px;
  white-space: nowrap;
}
.choices__list--single .choices__item[data-value=""] {
  padding-right: 0;
}

.choices__list--multiple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.choices__list--multiple .choices__item {
  display: inline-grid;
  align-items: center;
  border-radius: 2px;
  padding: 4px 7px;
  font-size: 0.75em;
  line-height: 1;
  font-weight: 400;
  margin-right: 4px;
  margin-top: 0;
  margin-bottom: 4px;
  background-color: #036aab;
  border: 1px solid #036aab;
  color: #ffffff;
  word-break: break-all;
  grid-template-columns: 1fr calc( 12px + 5px );
}
.choices__list--multiple .choices__item.is-highlighted {
  background-color: #036aab;
}

.is-disabled .choices__list--multiple .choices__item {
  background-color: #bbbbbb;
  border: 1px solid #bbbbbb;
}

.choices__list--dropdown {
  display: none;
  z-index: 2;
  position: absolute;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #cccccc;
  top: 100%;
  margin-top: -1px;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  overflow: hidden;
  overflow-wrap: break-word;
}
.choices__list--dropdown.is-active {
  display: block;
}
.choices__list--dropdown .choices__list {
  position: relative;
  max-height: 300px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  will-change: scroll-position;
}
.choices__list--dropdown .choices__item {
  position: relative;
  vertical-align: top;
  padding: 10px;
  font-size: 0.875em;
}
@media (min-width: 640px) {
  .choices__list--dropdown .choices__item--selectable {
    padding-right: 100px;
  }
  .choices__list--dropdown .choices__item--selectable:after {
    content: attr(data-select-text);
    font-size: 0.75em;
    line-height: 1;
    opacity: 0;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
}
.choices__list--dropdown .choices__item--selectable.is-highlighted {
  background-color: #f2f2f2;
}
.choices__list--dropdown .choices__item--selectable.is-highlighted:after {
  opacity: 0.5;
}
.choices__list--dropdown .choices__placeholder {
  display: none;
}

.is-flipped .choices__list--dropdown {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: -1px;
  border-radius: 4px 4px 0 0;
}

.choices__item {
  cursor: default;
}

.choices__item--selectable {
  cursor: pointer;
}

.choices__item--disabled {
  cursor: not-allowed;
  user-select: none;
  opacity: 0.5;
}

.choices__heading {
  font-weight: 600;
  font-size: 0.75em;
  text-transform: uppercase;
  padding: 10px;
  border-top: 1px solid #f2f2f2;
  border-bottom: 1px solid #f2f2f2;
  color: #a6a6a6;
}
.choices__group[data-value=hidden] > .choices__heading {
  display: none;
}

.choices__button {
  text-indent: -9999px;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
}
.choices__button:focus {
  outline: none;
}

.choices__input {
  display: inline-block;
  background-color: transparent;
  margin: 0 0 4px 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  max-width: 100%;
  min-height: 0 !important;
  width: auto !important;
  padding: 2px 4px !important;
  height: auto !important;
}
.choices__input--hidden {
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  width: 1px !important;
  min-width: auto !important;
  word-wrap: normal !important;
}

.choices .choices__inner input.choices__input:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

.choices__placeholder {
  opacity: 0.5;
}

#charitable-admin-form-embed-wizard .choices.is-open.is-flipped .choices__inner {
  border-radius: 4px 4px 0 0;
}
#charitable-admin-form-embed-wizard .is-flipped .choices__list--dropdown {
  border-radius: inherit;
}
#charitable-admin-form-embed-wizard .choices[data-type*=select-one]:after {
  border: none;
  background: #ffffff url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%206l5%205%205-5%202%201-7%207-7-7%202-1z%22%20fill%3D%22%23777%22%2F%3E%3C%2Fsvg%3E) no-repeat center;
  background-size: 16px 16px;
  cursor: pointer;
  width: 16px;
  height: 16px;
  top: 13px;
  right: 8px;
  margin-top: 0;
}
#charitable-admin-form-embed-wizard .choices[data-type*=select-one].is-flipped:after {
  transform: rotate(180deg);
}

body.rtl .choices[data-type*=select-multiple] .choices__inner {
  padding-right: 4px;
  padding-left: 24px;
}
body.rtl .choices[data-type*=select-multiple]:after {
  right: auto;
  left: 11.5px;
}
body.rtl .choices__list--single {
  padding-right: 4px;
  padding-left: 16px;
}
body.rtl .choices__list--multiple .choices__item {
  margin-right: 0;
  margin-left: 3.75px;
}
body.rtl .choices__list--multiple .choices__item[data-deletable] {
  padding-right: 10px;
  padding-left: 5px;
}
body.rtl .choices__list--dropdown .choices__item {
  text-align: right;
}
body.rtl .choices__input {
  padding-right: 2px !important;
  padding-left: 0 !important;
}
body.rtl .choices[data-type*=select-multiple] .choices__button, body.rtl .choices[data-type*=text] .choices__button {
  margin-right: 2px;
  margin-left: -1px;
  border-right: 1px solid #024b79;
  border-left: none;
}
@media (min-width: 640px) {
  body.rtl .choices__list--dropdown .choices__item--selectable {
    text-align: right;
    padding-left: 100px;
    padding-right: 10px;
  }
  body.rtl .choices__list--dropdown .choices__item--selectable:after {
    right: auto;
    left: 10px;
  }
}
