.fa-icon-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.fa-icon-picker__item {
  min-width: 0;
}

.fa-icon-picker__label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  border: 1px solid var(--w-color-border-field-default, #d1d5db);
  border-radius: 0.375rem;
  background: var(--w-color-surface-page, #fff);
  cursor: pointer;
  text-align: center;
}

.fa-icon-picker__label:has(input:checked) {
  border-color: var(--w-color-primary, #007d7e);
  background: color-mix(in srgb, var(--w-color-primary, #007d7e) 8%, #fff);
  box-shadow: 0 0 0 1px var(--w-color-primary, #007d7e);
}

.fa-icon-picker__label input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fa-icon-picker__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  color: var(--w-color-primary, #007d7e);
}

.fa-icon-picker__name {
  font-size: 0.7rem;
  line-height: 1.2;
  color: var(--w-color-text-label, #374151);
  word-break: break-word;
}
