/* Favorite (heart) toggle button — loaded site-wide, kept intentionally tiny. */

.tp-favorite-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	border: 1px solid rgba(18, 62, 82, .12);
	background: #fff;
	color: #6b7c82;
	font: inherit;
	font-size: 13px;
	line-height: 1;
	border-radius: 999px;
	padding: 8px 14px;
	transition: color .18s ease, border-color .18s ease, background-color .18s ease, transform .12s ease;
	text-decoration: none;
}

.tp-favorite-button svg {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	stroke: currentColor;
	fill: none;
	transition: fill .18s ease, stroke .18s ease;
}

.tp-favorite-button:hover {
	color: #d55a67;
	border-color: #f3c3ca;
}

.tp-favorite-button.is-active {
	color: #d55a67;
	border-color: #f3c3ca;
	background: #fff0f2;
}

.tp-favorite-button.is-active svg {
	fill: #d55a67;
	stroke: #d55a67;
}

.tp-favorite-button:active {
	transform: scale(.94);
}

.tp-favorite-button[disabled] {
	opacity: .6;
	cursor: default;
	transform: none;
}

/* Icon-only variant used on business cards. Cards render as a static
 * <article> in the theme; make it a positioning context so the button can
 * sit in the corner without needing a theme CSS change. */
.tp-business-card {
	position: relative;
}

.tp-favorite-button.is-icon-only {
	position: absolute;
	z-index: 3;
	inset-inline-end: 12px;
	top: 12px;
	width: 34px;
	height: 34px;
	padding: 0;
	display: grid;
	place-items: center;
	border: 0;
	background: rgba(255, 255, 255, .92);
	box-shadow: 0 4px 14px rgba(18, 62, 82, .14);
}

.tp-favorite-button.is-icon-only span {
	display: none;
}

/* Small pulse to acknowledge the click before the server confirms it. */
@keyframes tpFavoritePulse {
	0% { transform: scale(1); }
	40% { transform: scale(1.18); }
	100% { transform: scale(1); }
}

.tp-favorite-button.is-pulsing svg {
	animation: tpFavoritePulse .32s ease;
}

.tp-favorite-toast {
	position: fixed;
	z-index: 9999;
	bottom: 22px;
	left: 50%;
	transform: translateX(-50%) translateY(10px);
	background: #1f2c31;
	color: #fff;
	padding: 11px 18px;
	border-radius: 12px;
	font-size: 13px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}

.tp-favorite-toast.is-visible {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
