pf-radio-collection {
  @apply grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  label {
    @apply cursor-pointer;
    grid-row: 1;
    &:has( > input:checked) + p {
      @apply block;
    }
  }
  p {
    @apply hidden col-span-full;
    grid-row: 2;
  }
  &[pills] {
    label {
      @apply text-center rounded-full py-1;
      &:has(input:checked) {
        @apply bg-primary text-white;
      }
      &:not(:has(input:checked)):hover {
        @apply bg-surface-hover;
      }
      & > input {
        @apply hidden;
      }
    }
  }
}
