@import "button";


systelab-chip-button {

  .slab-chip-button {
    display: inline-block;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    margin-right: 3px;
    margin-bottom: 3px;

    button {
      color: var(--text-color);
      border: 1px solid var(--primary);
      background-color: transparent;
      font-size: 0.875rem;
      padding-top: 3px;
      padding-bottom: 3px;
      padding-left: 10px;
      padding-right: 4px;
      border-radius: 50px;
      min-height: 27px;

      .slab-chip-text {
        margin-right: 7px;
      }


      .slab-chip-button-remove {
        background: transparent;
        -webkit-appearance: none;
        font-size: 1rem;
        line-height: 1;
        margin: 0 0 0 0;
        border: 1px solid var(--primary);
        border-radius: 50%;
        width: 18px;
        height: 18px;
        display: inherit;
      }

      &.slab-is-selected {
        color: white;
        background-color: var(--primary);
        border: 1px solid var(--primary);

        .slab-chip-button-remove {
          border: 1px solid white;
        }
      }

      &:hover {
        color: white;
        background-color: var(--primary);
        border: 1px solid var(--primary);

        .slab-chip-button-remove {
          border: 1px solid white;
        }
      }

    }

    // Empty badges collapse automatically
    &:empty {
      display: none;
    }



  }

  .slab-chip-button-add {
    min-width: auto !important;
    color: var(--text-color);
    border: 1px solid var(--primary);
    background-color: transparent;
    border-radius: 50%;
    vertical-align: top;
    margin-top: 1px;
    padding-top: 0;
    width: 26px;

    &:disabled {
      opacity: 0.45;
    }
  }
}
