:host {
  display: inline-block;
  --hb-input-tag-font-size: 14px;
  --hb-input-tag-height: 32px;
  --hb-input-tag-border-color: var(--hb-border-color, #dcdfe6);
  --hb-input-tag-border-color-hover: var(--hb-color-primary);
  --hb-input-tag-bg-color: var(--hb-color-white, #ffffff);
}

.hb-input-tag {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 8px;
  min-height: var(--hb-input-tag-height);
  border: 1px solid var(--hb-input-tag-border-color);
  border-radius: 4px;
  background-color: var(--hb-input-tag-bg-color);
  transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
  width: 100%;
  box-sizing: border-box;
}

.hb-input-tag:hover:not(.hb-input-tag--disabled) {
  border-color: var(--hb-input-tag-border-color-hover);
}

.hb-input-tag--focused {
  border-color: var(--hb-input-tag-border-color-hover);
}

.hb-input-tag__tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  margin: 2px 4px 2px 0;
  background-color: var(--hb-fill-color-light, #f0f2f5);
  border: 1px solid var(--hb-border-color-lighter, #e4e7ed);
  border-radius: 4px;
  font-size: 12px;
  color: var(--hb-color-text-regular, #606266);
}

.hb-input-tag__tag--success {
  background-color: var(--hb-color-success-light-9, #f0f9ff);
  border-color: var(--hb-color-success-light-7, #b3e19d);
  color: var(--hb-color-success, #67c23a);
}

.hb-input-tag__tag--info {
  background-color: var(--hb-color-info-light-9, #f4f4f5);
  border-color: var(--hb-color-info-light-7, #c8c9cc);
  color: var(--hb-color-info, #909399);
}

.hb-input-tag__tag--warning {
  background-color: var(--hb-color-warning-light-9, #fdf6ec);
  border-color: var(--hb-color-warning-light-7, #f5dab1);
  color: var(--hb-color-warning, #e6a23c);
}

.hb-input-tag__tag--danger {
  background-color: var(--hb-color-danger-light-9, #fef0f0);
  border-color: var(--hb-color-danger-light-7, #fbc4c4);
  color: var(--hb-color-danger, #f56c6c);
}

.hb-input-tag__tag-text {
  margin-right: 4px;
}

.hb-input-tag__tag-close {
  cursor: pointer;
  font-size: 14px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
  transition: color 0.2s;
}

.hb-input-tag__tag-close:hover {
  color: var(--hb-color-text-regular, #606266);
}

.hb-input-tag__clear {
  cursor: pointer;
  margin-left: 4px;
  padding: 0 2px;
  font-size: 14px;
  color: var(--hb-color-text-placeholder, #c0c4cc);
  transition: color 0.2s;
}

.hb-input-tag__clear:hover {
  color: var(--hb-color-text-regular, #606266);
}

.hb-input-tag__input {
  flex: 1;
  min-width: 60px;
  height: 24px;
  line-height: 24px;
  padding: 0;
  margin: 2px 0;
  border: none;
  outline: none;
  font-size: var(--hb-input-tag-font-size);
  color: var(--hb-color-text-regular, #606266);
  background: transparent;
}

.hb-input-tag__input::placeholder {
  color: var(--hb-color-text-placeholder, #c0c4cc);
}

.hb-input-tag--small {
  min-height: 24px;
  padding: 0 6px;
}

.hb-input-tag--small .hb-input-tag__tag {
  height: 20px;
  font-size: 11px;
  padding: 0 6px;
}

.hb-input-tag--small .hb-input-tag__input {
  height: 20px;
  line-height: 20px;
  font-size: 12px;
}

.hb-input-tag--large {
  min-height: 40px;
  padding: 0 10px;
}

.hb-input-tag--large .hb-input-tag__tag {
  height: 28px;
  font-size: 13px;
  padding: 0 10px;
}

.hb-input-tag--large .hb-input-tag__input {
  height: 28px;
  line-height: 28px;
  font-size: 16px;
}

.hb-input-tag--disabled {
  background-color: var(--hb-fill-color-light, #f5f7fa);
  border-color: var(--hb-input-tag-border-color);
  cursor: not-allowed;
}

.hb-input-tag--disabled .hb-input-tag__input {
  color: var(--hb-color-text-disabled, #c0c4cc);
  cursor: not-allowed;
}

