.pix-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.375rem;
  min-width: 2.375rem;
  height: 2.375rem;
  padding: 0;
  color: var(--pix-neutral-800);
  background-color: transparent;
  border: none;
  border-radius: 50%;
  outline: none;
  cursor: pointer;

  &__icon {
    width: 1.35rem;
    height: 1.35rem;

    &--small {
      width: 1.18rem;
      height: 1.18rem;
    }
  }

  &[aria-disabled='true'],
  &:disabled {
    cursor: not-allowed;
    opacity: 0.5;
  }

  &:not([aria-disabled='true']) {
    &:hover:enabled {
      background-color: var(--pix-neutral-20);
      outline: 0;
    }

    &:focus:enabled {
      color: var(--pix-neutral-0);
      background-color: var(--pix-neutral-800);
      outline: 1px solid var(--pix-neutral-0);
      outline-offset: -3px;
    }

    &:active:enabled {
      color: var(--pix-neutral-800);
      background-color: var(--pix-neutral-100);
      outline: 0;
    }
  }

  &--small {
    width: 2rem;
    min-width: 2rem;
    height: 2rem;
  }

  &--xsmall {
    width: 1rem;
    min-width: 1rem;
    height: 1rem;
  }
}
