.collapse-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  padding: 0;
  overflow-anchor: none;
}

.collapse-button:after {
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  margin-left: auto;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052c65' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M2 5L8 11L14 5'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1.25rem;
}

.collapse-button:not(.collapsed):after {
  transform: rotate(-180deg);
}

.list-filter-trigger {
  cursor: pointer;
  min-height: calc(1.5em + 0.75rem + 2px);
  min-width: 16rem;
}

.pr-filter-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  z-index: 1020;
  background-color: var(--bs-body-bg);
}

.list-filter-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.list-filter-option:has(input:checked) {
  background-color: var(--bs-primary-bg-subtle);
  font-weight: 600;
}

[data-controller="list-filter"] .dropdown-menu {
  max-height: 60vh;
  overflow-y: auto;
}
