.favorite-button,
.mobile-unit-top-row .button-wrapper .favorite-button {
  background-color: transparent !important;
  height: 40px;
  /* width: 45px; */
  border: var(--beon-unit-map-button-border);
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.favorite-button img,
.mobile-unit-top-row .button-wrapper .favorite-button img {
  filter: var(--beon-icon-filter-text-color);
  width: 20px;
  height: 20px;
}

.simplefavorite-text {
  color: var(--beon-primary-text-color);
}

.favorite-button.favorited,
.mobile-unit-top-row .button-wrapper .favorite-button.favorited {
  /* !important needed to beat the transparent !important on .favorite-button */
  background-color: var(--beon-primary-color-2) !important;
}

.favorite-button.favorited img,
.mobile-unit-top-row .button-wrapper .favorite-button.favorited img {
  filter: var(--beon-icon-filter-white);
}

.favorite-button span,
.favorite-button.favorited span.simplefavorite-text {
  display: none;
}

.favorite-button.favorited .simplefavorited-text,
.mobile-unit-top-row .button-wrapper .favorite-button.favorited .simplefavorited-text {
  display: block;
}

.favorite-button span.simplefavorite-text {
  display: block;
}
