.tipitoe-wishlist-toggle {
	display: inline-grid;
	width: 2.7rem;
	height: 2.7rem;
	padding: 0;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: #fff;
	color: #1a1a1a;
	cursor: pointer;
	place-items: center;
	transition: background-color .15s ease, color .15s ease, transform .15s ease;
}

/*
 * Product feeds render the shared control after the add-to-cart action.
 * Take it out of that flow and float it over the product thumbnail instead.
 * Shoptimizer and Elementor product feeds both use WooCommerce's product-list
 * markup. Elementor landing pages are not always given a `woocommerce` body
 * class, so scope this to the product list rather than the page body.
 */
ul.products li.product {
position: relative;
}

ul.products li.product .tipitoe-wishlist-toggle {
position: absolute;
top: .75rem;
right: .75rem;
z-index: 2;
box-sizing: border-box;
display: grid;
width: 32px;
min-width: 32px;
max-width: 32px;
height: 32px;
min-height: 32px;
max-height: 32px;
}

/*
 * Single-product controls mount in the active product gallery. CommerceKit
 * replaces WooCommerce's standard gallery wrapper on this Shoptimizer site, so
 * support both without placing a heart in the purchase form.
 */
body.single-product #commercegurus-pdp-gallery-wrapper,
body.single-product .woocommerce-product-gallery__wrapper {
position: relative;
}

body.single-product #commercegurus-pdp-gallery-wrapper .tipitoe-wishlist-toggle--single,
body.single-product .woocommerce-product-gallery .tipitoe-wishlist-toggle--single {
position: absolute;
top: .75rem;
right: .75rem;
z-index: 6;
box-sizing: border-box;
display: grid;
width: 32px;
min-width: 32px;
max-width: 32px;
height: 32px;
min-height: 32px;
max-height: 32px;
}

body.single-product #commercegurus-pdp-gallery-wrapper .tipitoe-product-share--single,
body.single-product .woocommerce-product-gallery .tipitoe-product-share--single {
position: absolute;
top: 3.25rem;
right: .75rem;
z-index: 6;
box-sizing: border-box;
display: grid;
width: 32px;
min-width: 32px;
max-width: 32px;
height: 32px;
min-height: 32px;
max-height: 32px;
}

.tipitoe-wishlist-toggle:hover,
.tipitoe-wishlist-toggle:focus-visible {
	background: #fce9e9;
	color: #c91f32;
}

.tipitoe-wishlist-toggle:focus-visible,
.tipitoe-wishlist-card__remove:focus-visible {
	outline: 3px solid #1a73e8;
	outline-offset: 3px;
}

.tipitoe-wishlist-toggle:active {
	transform: scale(.95);
}

.tipitoe-wishlist-toggle:disabled {
	cursor: wait;
	opacity: .6;
}

.tipitoe-wishlist-toggle svg {
width: 18px;
height: 18px;
}

.tipitoe-wishlist-toggle.is-saved {
	border-color: #c91f32;
	background: #c91f32;
	color: #fff;
}

/*
 * The previous XStore/YITH controls may still be emitted by an older theme or
 * plugin during rollout. Hide those known legacy UI roots so customers only see
 * the app-bridge controls backed by the shared Postgres list. This does not
 * read, migrate, or write legacy wishlist storage.
 */
body .et-wishlist,
body .et-wishlist-btn,
body .et-wishlist-widget,
body .xstore-wishlist,
body .yith-wcwl-add-to-wishlist {
	display: none !important;
}

.tipitoe-wishlist-page {
	margin: 1rem 0;
}

.tipitoe-wishlist-loading {
	display: flex;
	flex-direction: column;
}

.tipitoe-wishlist-loading__row {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	align-items: center;
	column-gap: 1rem;
	min-height: 120px;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.tipitoe-wishlist-loading__image,
.tipitoe-wishlist-loading__line {
	display: block;
	background: #eeeeee;
}

.tipitoe-wishlist-loading__image {
	width: 120px;
	height: 120px;
	border-radius: .5rem;
}

.tipitoe-wishlist-loading__content {
	display: flex;
	flex-direction: column;
	gap: .8rem;
}

.tipitoe-wishlist-loading__line {
	height: .9rem;
	border-radius: .3rem;
}

.tipitoe-wishlist-loading__line--long {
	width: min(78%, 26rem);
}

.tipitoe-wishlist-loading__line--short {
	width: min(32%, 8rem);
}

.tipitoe-wishlist-loading__image,
.tipitoe-wishlist-loading__line {
	animation: tipitoe-wishlist-pulse 1.35s ease-in-out infinite;
}

@keyframes tipitoe-wishlist-pulse {
	0%, 100% {
		opacity: .55;
	}
	50% {
		opacity: 1;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tipitoe-wishlist-loading__image,
	.tipitoe-wishlist-loading__line {
		animation: none;
	}
}

.tipitoe-wishlist-page__guest {
	padding: .75rem 1rem;
	border-radius: .5rem;
	background: #fdf3f4;
	margin-bottom: 1rem;
}

.tipitoe-wishlist-page__empty,
.tipitoe-wishlist-page__error,
.tipitoe-wishlist-login {
	padding: 1rem;
	border-radius: .5rem;
	background: #f7f7f7;
}

.tipitoe-wishlist-page__error {
	background: #fdeced;
	color: #8d1724;
}

.tipitoe-wishlist-grid {
	display: flex;
	flex-direction: column;
}

.tipitoe-wishlist-card {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	column-gap: 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, .12);
}

.tipitoe-wishlist-card__link {
	display: grid;
	grid-template-columns: 120px minmax(0, 1fr);
	grid-template-rows: auto auto;
	align-items: center;
	column-gap: 1rem;
	min-width: 0;
	color: inherit;
	text-decoration: none !important;
}

.tipitoe-wishlist-card__link img {
	display: block;
	width: 100%;
	height: 120px;
	grid-row: 1 / span 2;
	border-radius: .5rem;
	background: #f8f8f8;
	object-fit: contain;
}

.tipitoe-wishlist-card__link h3 {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.35;
	text-decoration: none !important;
}

.tipitoe-wishlist-card__link:hover h3,
.tipitoe-wishlist-card__link:focus-visible h3 {
	text-decoration: none !important;
}

.tipitoe-wishlist-card__price {
	display: block;
	margin: .25rem 0 0;
	color: #111;
	font-size: clamp(.75rem, .623rem + .4065vw, .875rem);
	font-weight: 400;
	line-height: 1.5;
	text-decoration: none !important;
}

.tipitoe-wishlist-card__remove {
	align-self: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
	font: inherit;
	font-size: .9rem;
	opacity: .8;
	text-decoration: none !important;
	white-space: nowrap;
}

.tipitoe-wishlist-card__remove:hover,
.tipitoe-wishlist-card__remove:focus-visible {
	opacity: 1;
}

@media (max-width: 600px) {
	.tipitoe-wishlist-loading__row {
		grid-template-columns: 96px minmax(0, 1fr);
		column-gap: .85rem;
		min-height: 96px;
	}

	.tipitoe-wishlist-loading__image {
		width: 96px;
		height: 96px;
	}

	.tipitoe-wishlist-card {
		grid-template-columns: minmax(0, 1fr);
		row-gap: .65rem;
	}

	.tipitoe-wishlist-card__link {
		grid-template-columns: 96px minmax(0, 1fr);
		column-gap: .85rem;
	}

	.tipitoe-wishlist-card__link img {
		height: 96px;
	}

	.tipitoe-wishlist-card__remove {
		grid-column: 1;
		justify-self: start;
		margin-left: calc(96px + .85rem);
	}
}