ul.tagit {
    padding: 2px 5px;
    overflow: auto;
    margin-left: inherit; /* usually we don't want the regular ul margins. */
    margin-right: inherit;
    border: none!important;
}
ul.tagit li {
    display: block;
    float: left;
}
ul.tagit li.tagit-choice {
    position: relative;
    line-height: inherit;
}
input.tagit-hidden-field {
    display: none;
}
ul.tagit li.tagit-choice-read-only {
    padding: .2em .5em .2em .5em;
}

ul.tagit li.tagit-choice-editable {
    padding: .2em .5em;
    background-size: 8px;
    font-weight: normal;
    color: #555555;
    border-radius: 5px;
}

ul.tagit li.tagit-new,ul.tagit li.shop-new {
    padding: 0.55em 4px 0.55em 10px;
}

ul.tagit li.tagit-choice a.tagit-label {
    cursor: pointer;
    text-decoration: none;
}
ul.tagit li.tagit-choice .tagit-close {
  cursor: pointer;
}
.ui-icon, .ui-widget-content .ui-icon {
    background: none;
    width: auto;
    height: auto;
}
span.ui-helper-hidden-accessible {
    display: none;
}
.tagit-label {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

/* used for some custom themes that don't need image icons */
ul.tagit li.tagit-choice .tagit-close .text-icon {
  font-size: 17px;
  line-height: 1.2;
  font-weight: normal;
}

ul.tagit li.tagit-choice input {
    display: block;
    float: left;
    margin: 2px 5px 2px 0;
}
ul.tagit input[type="text"] {
    -moz-box-sizing:    border-box;
    -webkit-box-sizing: border-box;
    box-sizing:         border-box;
    vertical-align:baseline;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: none;
    line-height: 1.4;
    margin: 0;
    padding: 0;
    width: inherit;
    background-color: inherit;
    outline: none;
}

@media only screen and (max-width: 768px) {
  ul.tagit {
    padding: 6px 5px 6px 50px;
    white-space: nowrap;
    display: flex;
    width: 95%;
    display: -webkit-flex;
    border: none!important;
    border-radius: 5px;
    white-space: nowrap;
    overflow: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .ui-widget.ui-widget-content {
    width: 95%!important;
  }
  ul.tagit li.tagit-new,ul.tagit li.shop-new {
    padding: 0 4px 0 4px;
    width: 100%;
}
ul.tagit li {
    display: block;
    float: left;
    margin: 0 5px 0 0;
}
ul.tagit li.tagit-choice .tagit-close {
  right: -9px;
}
ul.tagit li.tagit-choice-editable {
    padding: 0.3em 22px 0.1em .5em
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    line-height: 1;
    margin-right: 5px;
    padding: 0 4px;
    border: none;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
  }
}
