.header-favorites {
  display: none;
}

.header-favorites svg {
  width: 21px;
  height: 18px;
}

.header-favorites a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 43px;
  height: 43px;
  color: var(--color-black);
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: color 0.15s linear;
}

.main-menu .header-favorites a {
  color: var(--color-white);
}

.header-favorites_full a,
.header-favorites a:hover {
  color: var(--color-coral);
}

.header-favorites a #header-favorites-icon {
  fill: transparent;
  stroke: currentColor;
  transition: stroke 0.15s linear;
}

.header-favorites_full a #header-favorites-icon {
  fill: currentColor;
}

.header-favorites a:has(.counter) {
  margin-right: 7px;
}

.header-favorites .counter {
  position: absolute;
  top: 0;
  right: -7px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 9px;
  color: var(--color-white);
  background-color: var(--color-coral);
  border-radius: 50%;
}

.main-menu__mobile .header-favorites {
  margin-left: auto;
}

@media (min-width: 768px) {
  .header-favorites {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-favorites a,
  .header-favorites a #header-favorites-icon {
    transition: none;
  }
}
