.path-webform .select2-selection--multiple {
  min-height: 80px !important;
}

.path-webform .select2-selection--multiple .select2-selection__rendered {
  align-content: flex-start;
}

.path-webform .select2-search__field {
  width: auto !important;
  height: auto !important;
  line-height: normal !important;
  display: inline-block !important;
  margin: 0 !important;
  min-height: unset !important;
}

/* Disable right border on remove (×) button */
.path-webform .select2-container--default
.select2-selection--multiple
.select2-selection__choice__remove {
  background-color: transparent;
  border: none !important;
  border-right: none !important;
  border-left: none !important;
  box-shadow: none !important;
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  color: #999;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
  padding: 0 4px;
  position: absolute;
  left: 0;
  top: 0;
}

[data-qat-form] [data-qat-select-other].webform-select-other {
  display: block !important;
}

[data-qat-form] [data-qat-select-other] .js-form-type-textfield {
  display: none;
  padding-left: 400px;
}
@media screen and (max-width: 850px) {
  [data-qat-form] [data-qat-select-other] .js-form-type-textfield {
    padding-left: 0!important;
  }
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  display: inline-flex !important;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  margin: 2px 4px 2px 0;
  padding: 2px 8px 2px 8px; /* symmetric base */
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
}

/* X stays inline, not absolute */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  order: 2;
  margin-left: 6px;
  position: static !important;
  width: auto;
  height: auto;
  font-size: 12px;
  line-height: 1;
  flex: 0 0 auto;
}

/* text */
.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
  order: 1;
  flex: 0 0 auto;
}

/* prevent first-row misalignment from input */
.select2-container--default .select2-selection--multiple .select2-search--inline {
  display: inline-block;
  vertical-align: middle;
  margin: 2px 0;
}

/* ensure container doesn't stretch items inconsistently */
.select2-container--default .select2-selection--multiple {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}
.selectize-input .item {
  color: #ffffff !important;
}
