/* Pole wybranych działek to lista wyniku wyboru, nie pole do wpisywania. */
.bootstrap-tagsinput.parcel-tags {
  background-color: #f5f5f5;
  border: 1px dashed #bbb;
  box-shadow: none;
  cursor: default;
  min-height: 34px;
}

.bootstrap-tagsinput.parcel-tags:focus-within {
  border-color: var(--blue-color);
}

.bootstrap-tagsinput.parcel-tags input {
  caret-color: transparent;
  cursor: default;
}

/* Pole mieści cały komunikat, więc przy tagach przeszłoby do nowej linii. */
.bootstrap-tagsinput.parcel-tags .tag ~ input {
  display: none;
}

.bootstrap-tagsinput.parcel-tags input::placeholder {
  color: #777;
  font-style: italic;
}

/* Przycisk ma pole 24 × 24 px (WCAG 2.5.8), a ujemne marginesy nie pozwalają mu powiększyć tagu. */
.bootstrap-tagsinput .tag [data-role="remove"] {
  background: none;
  border: 0;
  color: inherit;
  display: inline-block;
  height: 24px;
  line-height: 24px;
  margin: -6px -6px -6px 2px;
  padding: 0;
  text-align: center;
  vertical-align: middle;
  width: 24px;
}

/* Zerowa wysokość linii — powiększony znak nie podnosi wysokości przycisku. */
.bootstrap-tagsinput .tag [data-role="remove"]:after {
  content: "\00d7";
  font-size: 200%;
  line-height: 0;
  vertical-align: -0.1em;
}

.bootstrap-tagsinput .tag [data-role="remove"]:disabled {
  box-shadow: none;
  cursor: not-allowed;
}
