.favorites-only-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.favorites-only-toggle .favorite-toggle-star {
  font-size: 0.95em;
  line-height: 1;
  opacity: 0.75;
}

.favorites-only-toggle.is-selected,
.favorites-only-toggle[aria-pressed="true"] {
  background: rgba(255, 199, 64, 0.18);
  border-color: rgba(255, 197, 61, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 223, 128, 0.09), 0 6px 18px rgba(0, 0, 0, 0.08);
}

.favorites-only-toggle.is-selected .favorite-toggle-star {
  opacity: 1;
  transform: scale(1.05);
}

.gp-favorite {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  margin-left: 2px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform 140ms ease, color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.gp-favorite:hover,
.gp-favorite:focus-visible {
  color: rgba(255, 226, 141, 0.98);
  background: rgba(255, 216, 107, 0.11);
  border-color: rgba(255, 216, 107, 0.28);
  transform: scale(1.06);
  outline: none;
}

.gp-favorite.is-selected {
  color: #ffd86b;
  background: rgba(255, 208, 72, 0.14);
  border-color: rgba(255, 216, 107, 0.34);
  text-shadow: 0 0 12px rgba(255, 214, 95, 0.42);
}

.gp-favorite:disabled {
  opacity: 0.35;
  cursor: default;
  transform: none;
}

.cell.is-favorite-hidden,
.group.is-favorite-empty,
.row.is-favorite-empty,
.focus-cells.is-favorite-empty {
  display: none !important;
}

@media (max-width: 768px) {
  .favorites-only-toggle {
    gap: 4px;
  }

  .gp-favorite {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }
}
