/* Best Before theme · WPC Smart Wishlist button, theme-native look (global).
   The plugin's own icon font (the grey "rotating" glyph while adding) and
   text label are hidden; this draws its own heart via a CSS mask instead,
   toggled purely by the `.woosw-added`/`.woosw-adding` classes the plugin
   already applies to its unchanged `.woosw-btn` markup - no plugin files
   edited. Settings (icon-only, no popup) are in inc/integrations/wishlist.php. */

.woosw-btn {
	position: relative;
	display: inline-grid !important;
	place-items: center;
	width: var(--bb-touch);
	height: var(--bb-touch);
	min-width: var(--bb-touch);
	padding: 0 !important;
	border: 1.5px solid var(--bb-border-2) !important;
	border-radius: 50%;
	background: var(--bb-surface) !important;
	box-shadow: none !important;
	overflow: hidden;
	cursor: pointer;
}
.woosw-btn:hover { border-color: var(--bb-ink) !important; }
.woosw-btn:focus-visible { outline: 3px solid var(--bb-ink); outline-offset: 2px; }

/* The plugin's own icon font + any text label - replaced below. */
.woosw-btn .woosw-btn-icon,
.woosw-btn .woosw-btn-text {
	display: none !important;
}

.woosw-btn::before {
	content: "";
	width: 20px;
	height: 20px;
	background-color: var(--bb-ink);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center/contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E") center/contain no-repeat;
	transition: background-color .15s var(--bb-ease);
}

/* Filled heart, theme urgency/red, with a small pop when it becomes added. */
.woosw-btn.woosw-added::before {
	background-color: var(--bb-urgency);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E");
	animation: bbHeartPop .35s var(--bb-ease);
}
@keyframes bbHeartPop {
	0% { transform: scale(1); }
	45% { transform: scale(1.35); }
	100% { transform: scale(1); }
}

/* Subtle pulse while the add/remove request is in flight - not a rotating icon. */
.woosw-btn.woosw-adding::before {
	animation: bbHeartPulse 1s ease-in-out infinite;
}
@keyframes bbHeartPulse {
	0%, 100% { opacity: .35; }
	50% { opacity: .9; }
}

@media (prefers-reduced-motion: reduce) {
	.woosw-btn.woosw-added::before { animation: none; }
	.woosw-btn.woosw-adding::before { animation: none; opacity: .6; }
}


/* The plugin's own stylesheet switches .woosw-added::before to a "✓" glyph with
   display:none, which left an empty white circle. Force our filled heart back. */
.woosw-btn.woosw-btn-added::before,
.woosw-btn.woosw-added::before,
.woosw-btn.woosw-adding::before {
	content: "" !important;
	display: block !important;
	width: 20px !important;
	height: 20px !important;
	font-size: 0 !important;
}
.woosw-btn .woosw-btn-icon { display: none !important; }
