@layer uniform.components {
.u-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--u-space-1);
  min-height: calc(var(--u-size-target) - var(--u-space-1));
  margin: 0;
  padding: 0 calc(var(--u-space-2) + var(--u-space-1));
  border: 0;
  border-radius: var(--u-radius-pill);
  background: var(--u-color-divider);
  color: var(--u-color-text-default);
  font: inherit;
  font-size: var(--u-font-size-small);
  font-weight: 400;
  line-height: var(--u-line-height-small);
  text-decoration: none;
  white-space: nowrap;
}

@media (hover: hover) {
  a.u-chip:hover { background: var(--u-color-border); }
}

.u-chip > .u-icon {
  width: 16px;
  height: 16px;
}

.u-chip:has(> :is(a, button)) { padding-inline-end: calc(var(--u-space-1) / 2); }

.u-chip > :is(a, button) {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--u-radius-pill);
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.u-chip > :is(a, button)::after {
  content: "";
  position: absolute;
  inset: calc(-1 * var(--u-space-1));
}

@media (hover: hover) {
  .u-chip > :is(a, button):hover { background: var(--u-color-border); }
}

.u-chip > :is(a, button)::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentcolor;
  mask: url("/assets/uniform/icons/x-827f667a.svg") center / contain no-repeat;
  forced-color-adjust: none;
}
}
