.spot-favorite-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.7rem;
}

.spot-favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.35rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--discover-border, #cbd5e1);
  border-radius: 999px;
  background: var(--discover-surface, #fff);
  color: var(--discover-text, #334155);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}

.spot-favorite-toggle:hover,
.spot-favorite-toggle:focus-visible {
  border-color: var(--discover-brand-accent, #2563eb);
  outline: none;
}

.spot-favorite-toggle:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--discover-brand-accent, #2563eb) 22%, transparent);
}

.spot-favorite-toggle svg {
  width: 1rem;
  height: 1rem;
}

.discover-card-save {
  position: absolute;
  z-index: 4;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgb(15 23 42 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 94%);
  color: #334155;
  box-shadow: 0 2px 8px rgb(15 23 42 / 16%);
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.discover-card-save[hidden] {
  display: none;
}

.discover-card-save:hover,
.discover-card-save:focus-visible {
  color: var(--discover-brand-accent, #2563eb);
  outline: none;
  transform: translateY(-1px);
}

.discover-card-save:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--discover-brand-accent, #2563eb) 30%, transparent), 0 2px 8px rgb(15 23 42 / 16%);
}

.discover-card-save svg {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  max-width: 1.125rem;
  max-height: 1.125rem;
  flex: none;
}

.discover-card-save.is-saved {
  color: var(--discover-brand-accent, #2563eb);
}

.discover-card-save.is-saved svg {
  fill: currentColor;
}

.discover-card-save:disabled {
  cursor: wait;
  opacity: 0.65;
}

.spot-favorite-toggle.is-saved {
  border-color: color-mix(in srgb, var(--discover-brand-accent, #2563eb) 35%, var(--discover-border, #cbd5e1));
  background: color-mix(in srgb, var(--discover-brand-accent, #2563eb) 8%, var(--discover-surface, #fff));
  color: var(--discover-brand-accent, #2563eb);
}

.spot-favorite-toggle.is-saved svg {
  fill: currentColor;
}

.spot-favorite-toggle:disabled,
.saved-space-card__remove:disabled {
  cursor: wait;
  opacity: 0.65;
}
