@layer components {
  .app-active-filters {
    margin: 0 0 0.875rem;
  }

  .app-active-filters-inner {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .app-filter-chip-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
  }

  .app-filter-chip-list li {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .app-filter-chip {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    border: 1px solid var(--app-form-element-border-color);
    background: var(--app-form-element-background-color);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    line-height: 1.15;
    font-weight: 500;
    color: var(--app-form-element-color);
    --app-background-color: var(--app-form-element-background-color);
    --app-border-color: var(--app-form-element-border-color);
    --app-color: var(--app-form-element-color);
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease, color 160ms ease;
  }

  .app-filter-chip:hover {
    border-color: var(--app-primary, #1d4ed8);
    background: var(--app-card-background-color, #fff);
    color: var(--app-form-element-color);
    --app-color: var(--app-form-element-color);
    transform: translateY(-1px);
  }

  .app-filter-chip:focus-visible {
    outline: 2px solid var(--app-primary, #1d4ed8);
    outline-offset: 2px;
    color: var(--app-form-element-color);
    --app-color: var(--app-form-element-color);
  }

  .app-filter-chip:active {
    color: var(--app-form-element-color);
    --app-color: var(--app-form-element-color);
  }

  .app-filter-chip i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    font-size: 0.58rem;
    background: var(--app-muted-border-color);
  }

  .app-filter-chip-clear {
    border-style: dashed;
    --app-color: var(--app-muted-color);
  }
}
