// Increased to account for chip height
$controlHeight: control-height() + 0.8rem;
$backdrop-horizontal-spacing: spacing(tighter) * 1.5;

$stacking-order: (
  suggestions: 300,
  input: 20,
  backdrop: 10,
  spinner: 30, 
  icons: 30
);

// AutoSuggest Container Styles

.TopPopoverPicker {
  margin-bottom:2.6rem;
  z-index: z-index(suggestions, $stacking-order);
}
.tableBoxPopoverContainer {
  position: relative;
}

.itemContainer {
  padding: 0px;
}

.containerWrapper {
  width: 100%;
  border-radius: .5rem;
  cursor: text;
  min-height: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  border:1px solid #bdbdbd;
  position: relative;
  padding-top:1.5rem;
  
  &.empty {
    min-width: 10rem;

    > .container {
      width:100%;
    }
  }

  //TODO: Consider using Stack component instead of adding margin.
  .Chip {
    margin-top: control-vertical-padding() + 0.1rem;
    margin-left: control-vertical-padding() + 0.1rem;
    vertical-align: top;
    max-height: 3.2rem;
  }

  > div:last-child  {
    margin-left: -(control-vertical-padding() + 0.1rem);
    flex-grow: 1;
  }
}

.containerWrapperRead {
  width: 100%;
  border-radius: .5rem;
  cursor: text;
  min-height: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  position: relative;
  padding-top:1.5rem;
  
  &.empty {
    min-width: 10rem;

    > .container {
      width:100%;
    }
  }

  //TODO: Consider using Stack component instead of adding margin.
  .Chip {
    margin-top: control-vertical-padding() + 0.1rem;
    margin-left: control-vertical-padding() + 0.1rem;
    vertical-align: top;
    max-height: 3.2rem;
  }

  > div:last-child  {
    margin-left: -(control-vertical-padding() + 0.1rem);
    flex-grow: 1;
  }
}

.container {
  width: 100%;
  display: inline-block;
  //overflow: hidden;
  text-overflow: ellipsis;
}

.input {
  @include text-style-input;
  position: relative;
  display: block;
  flex: 1 1 0%;
  width: 100%;
  min-height: $controlHeight;
  margin: 0;
  padding: control-vertical-padding() 0;
  background: none;
  border: border(transparent);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  appearance: none;

  &:disabled {
    color: color(ink, lightest);
  }

  &:focus {
    outline: none;
  }

  &::placeholder {
    color: color(ink, lightest);
  }
}

// AutoSuggest Suggestions Styles

.suggestionsList {
  position: absolute;
  margin: -0.5rem 0 0;
  padding: 0;
  background: color(white);
  box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.25);
  list-style-type: none;
  z-index: z-index(input, $stacking-order);
}


// AutoSuggest Card Styles

.cardItem {
  padding: 0 0.4rem;

  &.highlighted {
    background: color(sky, light);
  }
  
  .avatarImage {
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    margin: .8rem 0 .8rem 1.2rem;
    vertical-align: middle;
  }

  .nameStyle {
    @include text-style-body;
    margin: 1.8rem 0 1.8rem 1.2rem;
    // width: 200px;
  }

  .emailStyle {
    @include text-style-body;
    @include text-emphasis-subdued;
    margin: 1.8rem 1.2rem;
    // width: 200px;
  }

  .hinting {
    font-weight: bold;
  }
}

// TODO: Do we need these? Should display be none, or hidden?
.pickerResultShow{display:block;}
.pickerResultHide{display:none;}


.labelWrapper {
  left:0px;
  top:0px;
}
body .input {
  padding: 0 1.2rem!important;
    line-height: 4rem!important;
    min-height: 0;
    height: 8rem;
    margin-top: -1.9rem;
}
.NoOptionMessage {
  padding: .3rem .6rem;
  margin-top: -.4rem;
}
.helpText {
  position: absolute;
  left: 0px;
}

.textField {
  padding:0px 1.2rem!important;
  min-height: 6.4rem!important;
  line-height: 6.4rem!important;
}