ul.ks-cboxtags {
  list-style: none;
  padding: 0px;
  display: flex;
}
ul.ks-cboxtags .li {
  display: inline;
}
ul.ks-cboxtags .li label {
  display: inline-flex;
  background-color: rgba(255, 255, 255, 0.9);
  border: 2px dashed var(--secondary-color);
  border-radius: 25px;
  white-space: nowrap;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: all 0.2s;
  margin-right: 5px;
}
ul.ks-cboxtags .li label {
  padding: 8px 12px;
  cursor: pointer;
}
ul.ks-cboxtags .li label::before {
  content: "";
  position: relative;
  display: none;
  left: -10px;
  top: 4px;
  width: 8px;
  height: 13px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

ul.ks-cboxtags .li input[type="checkbox"]:disabled + label {
  background-color: rgb(211 211 211 / 90%);
  cursor: not-allowed;
}

ul.ks-cboxtags .li input[type="checkbox"]:checked + label::before,
ul.ks-cboxtags .li input[type="radio"]:checked + label::before {
  display: block;
}
ul.ks-cboxtags .li input[type="checkbox"]:checked + label,
ul.ks-cboxtags .li input[type="radio"]:checked + label {
  border: 2px solid var(--primary-color);
  background-color: var(--primary-color);
  color: #fff;
  transition: all 0.2s;

  display: inline-flex;
  padding-left: 25px;
  width: min-content;
}
ul.ks-cboxtags .li input[type="checkbox"] {
  display: absolute;
}
ul.ks-cboxtags .li input[type="checkbox"] {
  position: absolute;
  opacity: 0;
}
ul.ks-cboxtags .li input[type="checkbox"]:focus + label {
  border: 2px solid var(--primary-color);
}
