/**
 * Product wishlist & share — compact, theme-safe.
 */

.ps-product-single-actions,
.ps-product-card-wishlist {
	--ps-action-size: 36px;
	--ps-action-gap: 8px;
	--ps-action-color: #64748b;
	--ps-action-active: #db2777;
	--ps-action-hover: #334155;
	--ps-action-bg: transparent;
	--ps-action-bg-hover: transparent;
	--ps-action-bg-active: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	line-height: 1;
}

.ps-product-single-actions {
	flex-direction: column;
	gap: var(--ps-action-gap);
}

.ps-product-card-wishlist {
	position: relative;
}

.ps-wishlist-btn,
.ps-share-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ps-action-size);
	height: var(--ps-action-size);
	min-width: var(--ps-action-size);
	min-height: var(--ps-action-size);
	padding: 0;
	margin: 0;
	border: 0 !important;
	border-radius: 999px;
	background: var(--ps-action-bg) !important;
	background-color: var(--ps-action-bg) !important;
	color: var(--ps-action-color);
	cursor: pointer;
	font-family: inherit;
	line-height: 1;
	text-transform: none;
	box-shadow: none !important;
	transition: color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}

.ps-wishlist-btn:hover,
.ps-share-btn:hover {
	color: var(--ps-action-hover);
	background: var(--ps-action-bg-hover, var(--ps-action-bg)) !important;
	background-color: var(--ps-action-bg-hover, var(--ps-action-bg)) !important;
}

.ps-wishlist-btn.is-active {
	color: var(--ps-action-active);
	background: var(--ps-action-bg-active, var(--ps-action-bg)) !important;
	background-color: var(--ps-action-bg-active, var(--ps-action-bg)) !important;
}

.ps-wishlist-btn.is-active:hover {
	color: var(--ps-action-active);
	background: var(--ps-action-bg-active, var(--ps-action-bg)) !important;
	background-color: var(--ps-action-bg-active, var(--ps-action-bg)) !important;
}

.ps-wishlist-btn:active,
.ps-share-btn:active {
	transform: scale(0.94);
}

.ps-wishlist-btn:focus,
.ps-share-btn:focus {
	outline: none;
	box-shadow: none !important;
}

.ps-wishlist-btn:focus-visible,
.ps-share-btn:focus-visible {
	outline: 2px solid var(--ps-action-active);
	outline-offset: 2px;
}

.ps-wishlist-icon,
.ps-share-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: calc(var(--ps-action-size) * 0.52);
	line-height: 1;
	color: inherit;
}

.ps-wishlist-icon svg,
.ps-share-icon svg {
	display: block;
	width: 1em;
	height: 1em;
}

.ps-wishlist-btn .ps-heart-outline {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
}

.ps-wishlist-btn .ps-heart-filled {
	fill: currentColor;
	stroke: none;
}

.ps-share-btn svg {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
}

.ps-wishlist-btn .ps-heart-filled {
	display: none;
}

.ps-wishlist-btn.is-active .ps-heart-outline {
	display: none;
}

.ps-wishlist-btn.is-active .ps-heart-filled {
	display: block;
}

.ps-wishlist-btn.is-loading {
	opacity: 0.55;
	pointer-events: none;
}

.ps-wishlist-toast {
	position: fixed;
	left: 50%;
	bottom: max(16px, env(safe-area-inset-bottom));
	transform: translate(-50%, 12px);
	z-index: 99999;
	max-width: min(92vw, 280px);
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.92);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.45;
	text-align: center;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease, transform 0.2s ease;
	white-space: nowrap;
}

.ps-wishlist-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

@media (max-width: 480px) {
	.ps-wishlist-toast {
		font-size: 11px;
		padding: 7px 12px;
		max-width: min(94vw, 240px);
	}
}
