:host {
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  display: inline-flex;
  justify-content: space-between;
  max-height: var(--grit-chip-height);
  min-height: var(--grit-chip-height);
  border-radius: var(--grit-chip-border-radius);
  background: var(--grit-chip-background);
  border: 1px solid var(--grit-chip-border-color);
  color: var(--grit-chip-color);
  font-size: var(--grit-chip-font-size);
  line-height: 16px;
  padding: var(--grit-chip-padding);
  font-family: var(--grit-font-family-body);
}

:host([multiline]) {
  max-height: unset;
  display: flex;
}

.grit-chip__text-content {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  line-height: var(--grit-chip-font-size);
}
.grit-chip__text-content.grit-chip__multiline {
  white-space: normal;
}

.grit-chip__action-icon-wrap {
  padding-left: var(--grit-chip-padding);
}
.grit-chip__action-icon-wrap,
.grit-chip__action-icon-wrap grit-wc-icon {
  display: flex;
  align-items: center;
  color: inherit;
  cursor: pointer;
}
.grit-chip__action-icon-wrap.grit-chip__multiline {
  align-self: flex-start;
}

.grit-chip_icon-button {
  border: 0;
  margin: 0;
  padding: 0;
  background-color: transparent;
}