/*
Copyright 2015 Google Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/


@import "./select2.css";


.select2-container-multi  {
  display: block!important;
  vertical-align: inherit!important;
}

/**
 * The generated input box (looks like a text field).
 */

.select2-container-multi .select2-choices {
  background: #fff!important;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-shadow: none;
  box-sizing: border-box;
  font: inherit;
  font-weight: 400;
  height: auto;
  line-height: inherit;
  min-height: 0;
  padding: calc(6em/14) calc(6em/14) 0;
}

.select2-container-multi.select2-container-active .select2-choices {
  border-color: var(--border-color-active);
}

.select2-container-multi.select2-dropdown-open .select2-choices {
  border-radius: 4px 4px 0 0;
}

.select2-container-multi.select2-dropdown-open.select2-drop-above .select2-choices {
  border-radius: 0 0 4px 4px;
}


/**
 * The select dropdown and its contents.
 */

.select2-drop {
  borde-radius: 0 0 4px 4px!important;
}
.select2-drop.select2-drop-above {
  borde-radius: 4px 4px 0 0!important;
  border-width: 1px 1px 0;
}
.select2-drop.select2-drop-active {
  border-color: var(--border-color-active);
  border-width: 0 1px 1px;
}

.select2-drop .select2-results {
  border: solid #eee;
  border-width: 1px 0 0;
  max-height: 300px;
  margin: 0;
  padding: 0;
}

.select2-drop.select2-drop-above .select2-results {
  border-width: 0 0 1px;
}

.select2-drop .select2-result {
  border: solid #eee;
  border-width: 1px 0 0;
}

.select2-drop .select2-result:first-child {
  border-width: 0;
}

.select2-drop .select2-result.select2-highlighted {
  border-color: transparent;
  background: var(--border-color-active);
}

.select2-drop .select2-result.select2-highlighted * {
  color: #fff!important;
}

.select2-drop .select2-results .select2-result-label {
  padding: 0;
}

.select2-drop .select2-results .select2-selection-limit {
  background: 0;
  color: var(--text-color-faded);
  font-size: .85em;
  padding: .5em;
}


/**
 * The search field within the input box.
 */

.select2-container-multi .select2-choices .select2-search-field {
  display: inline-block;
  float: none;
  margin: 0 0 calc(6em/14);
  padding: calc(2em/14) 0;
}

.select2-container-multi .select2-choices .select2-search-field input {
  color: inherit;
  font: inherit;
  height: auto;
  margin: 0;
  padding: 0;
}


/**
 * The tags.
 */

.select2-container-multi .select2-choices .select2-search-choice {
  background: hsl(0,0%,92.5%);
  border: 0;
  display: inline-flex;
  float: none;
  font: inherit;
  margin: 0 calc(6em/14) calc(6em/14) 0;
  max-width: 100%;
  padding: calc(2em/14) calc(6em/14);
}

.select2-container-multi .select2-choices .select2-search-choice-focus {
  background: hsl(0,0%,87.5%);
}

.select2-container-multi .select2-choices .select2-search-choice > div {
  cursor: text;
  font: inherit;
  margin-right: .4em;
  user-select: initial;
  word-wrap: break-word;
}

.select2-container-multi .select2-choices .select2-search-choice-close {
  color: inherit;
  font: inherit;
  height: auto;
  opacity: .25;
  position: static;
  width: auto;
}

.select2-container-multi .select2-choices .select2-search-choice-focus .select2-search-choice-close,
.select2-container-multi .select2-choices .select2-search-choice-close:hover {
  opacity: 1;
}

.select2-container-multi .select2-choices  .select2-search-choice-close::after {
  display: inline-block;
  content: '\2715';
  font-size: .9em;
}
