/* prettier-ignore */
:host {
  position: relative;
  display: inline-block;
  background-color: var(--bce-c500-ghost);
  color: var(--bce-con1-ghost);
  height: 32px;
  font-size: 14px;
  margin: 2px 0;
  border-radius: 16px;
  overflow: hidden;
  transition: color 0.2s ease-in-out, background-color 0.2s ease-in-out;
  cursor: pointer;
}
:host bce-ripple {
  background-color: var(--bce-c500);
}
:host [data-thumbnail],
:host [data-icon],
:host [data-remove] {
  position: absolute;
  display: flex;
  justify-content: center;
  align-items: center;
}
:host [data-thumbnail],
:host [data-icon] {
  top: 4px;
  left: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 90%;
  pointer-events: none;
}
:host [data-remove] {
  right: 8px;
  top: 7px;
  width: 18px;
  height: 18px;
}
:host [data-remove]:hover {
  color: var(--bce-c500-error);
}
:host > input {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
}
:host > label {
  display: block;
  height: inherit;
  padding: 0 12px;
  line-height: 32px;
  user-select: none;
  transition: padding 0.2s ease;
  cursor: inherit;
}

:host(:focus-within) {
  background-color: var(--bce-c300-ghost);
  color: var(--bce-con1-surface);
}

:host(:hover) {
  background-color: var(--bce-c400-ghost);
  color: var(--bce-con1-surface);
}

:host([checked]) {
  color: var(--bce-con1);
  background-color: var(--bce-c500);
}

:host([checked]:focus-within) {
  background-color: var(--bce-c300);
}

:host([checked]:hover) {
  background-color: var(--bce-c400);
}

:host([thumbnail][icon]) [data-icon],
:host([thumbnail][checked]) [data-icon] {
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
}

:host([thumbnail]) > label,
:host(:not([type=filter])[icon]) > label,
:host([type=filter][checked]) > label {
  padding-left: 34px;
}

:host([removable]:not([disabled])) > label {
  padding-right: 34px;
}