/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

/*
 * 1. Overwrites the base styling of OuiBadge, to give it a larger size and margins
 * that make sense in the input wrap.
 */
.ouiComboBoxPill {
  height: $ouiSizeL - 2px;
  line-height: $ouiSizeL - 2px;
  vertical-align: baseline;

  &,
  & + & /* 1 */ {
    margin: $ouiSizeXS;
  }

  .ouiComboBox--compressed &,
  .ouiComboBox--compressed & + & /* 1 */ {
    margin: ($ouiSizeXS + 1px) $ouiSizeXS 0 0;
  }

  &--plainText {
    @include ouiFont;
    @include ouiTextTruncate;

    line-height: $ouiSizeL;
    font-size: $ouiFontSizeS;
    padding: 0;
    color: $ouiTextColor;
    vertical-align: middle;
    display: inline-block;
  }
}
