.flip-gallery-tag {
  display: inline-block;
}

.flip-gallery-tag__input {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  pointer-events: none;
}

.flip-gallery-tag__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  user-select: none;
  transition:
    color 0.15s ease-in-out,
    background-color 0.15s ease-in-out,
    border-color 0.15s ease-in-out;
  color: #6c757d;
  border: 1px solid #6c757d;
  background-color: transparent;
  font-size: 1rem;
  line-height: 1.5;
}

.flip-gallery-tag__input:checked + .flip-gallery-tag__pill {
  color: #fff;
  background-color: #6c757d;
}

.flip-gallery-tag__input:focus-visible + .flip-gallery-tag__pill {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

.flip-gallery-tag > .flip-gallery-tag__pill {
  border-radius: var(--flip-gallery-tag-radius, 50rem);
}

.flip-gallery-tag[data-fgt-border] > .flip-gallery-tag__pill {
  border-color: var(--flip-gallery-tag-border);
}

.flip-gallery-tag[data-fgt-bg-unchecked] > .flip-gallery-tag__input:not(:checked) + .flip-gallery-tag__pill {
  background-color: var(--flip-gallery-tag-bg-unchecked);
}

.flip-gallery-tag[data-fgt-bg-checked] > .flip-gallery-tag__input:checked + .flip-gallery-tag__pill {
  background-color: var(--flip-gallery-tag-bg-checked);
}

.flip-gallery-tag[data-fgt-text-unchecked] > .flip-gallery-tag__input:not(:checked) + .flip-gallery-tag__pill {
  color: var(--flip-gallery-tag-text-unchecked);
}

.flip-gallery-tag[data-fgt-text-checked] > .flip-gallery-tag__input:checked + .flip-gallery-tag__pill {
  color: var(--flip-gallery-tag-text-checked);
}
