/**
 * Wishlist hearts (researchback-core Saved\Saved). Base look only; the theme
 * places them (product page share row, paper cards, header).
 */

.rb-save {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	color: var(--color-text, #1f2937);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: color 0.2s ease;
}

.rb-save:hover,
.rb-save:focus-visible {
	color: var(--color-primary, #0b1f66);
}

.rb-save__icon {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: fill 0.2s ease, transform 0.2s ease;
}

.rb-save.is-saved {
	color: var(--color-primary, #0b1f66);
	font-weight: 600;
}

.rb-save.is-saved .rb-save__icon {
	fill: #e0245e;
	stroke: #e0245e;
}

.rb-save:active .rb-save__icon {
	transform: scale(0.88);
}

/* Header heart with the count */
.rb-saved-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: inherit;
	text-decoration: none;
}

.rb-saved-link__icon {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rb-saved-link__count {
	position: absolute;
	top: -8px;
	left: 10px;
	min-width: 16px;
	height: 16px;
	padding: 0 4px;
	border-radius: 8px;
	background: #e0245e;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 16px;
	text-align: center;
}

.rb-saved-link__count[hidden] {
	display: none;
}
