/**
 * Baby-shower gift registry — wishlist page controls.
 * Owner: per-item desired-qty stepper + per-list privacy selector.
 * Everyone: "X of Y purchased" progress (+ buyer names when opted in).
 */

.itr-registry {
	margin-top: 8px;
	font-size: 13px;
	line-height: 1.4;
}

.itr-registry-qty {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
}

.itr-registry-qty label {
	margin: 0;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .02em;
	opacity: .8;
}

.itr-registry-qty-input {
	width: 64px;
	padding: 2px 6px;
	text-align: center;
}

.itr-registry-qty-input[disabled] {
	opacity: .5;
}

/* Inline save feedback next to the stepper. */
.itr-registry-status {
	font-size: 12px;
	line-height: 1;
	opacity: 0;
	transition: opacity .2s ease;
	white-space: nowrap;
}

.itr-registry-status.is-saving,
.itr-registry-status.is-saved,
.itr-registry-status.is-error {
	opacity: 1;
}

.itr-registry-status.is-saving {
	opacity: .7;
}

.itr-registry-status.is-saving::before {
	content: "";
	display: inline-block;
	width: 11px;
	height: 11px;
	margin-right: 5px;
	vertical-align: -1px;
	border: 2px solid currentColor;
	border-top-color: transparent;
	border-radius: 50%;
	animation: itr-registry-spin .6s linear infinite;
}

.itr-registry-status.is-saved {
	color: #2e7d32;
}

.itr-registry-status.is-saved::before {
	content: "\2713"; /* ✓ */
	margin-right: 4px;
	font-weight: 700;
}

.itr-registry-status.is-error {
	color: #c62828;
}

@keyframes itr-registry-spin {
	to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
	.itr-registry-status.is-saving::before {
		animation: none;
	}
}

.itr-registry-progress {
	font-weight: 600;
}

/* Sits inline, immediately before the add-to-cart button. */
.itr-buy-qty-wrap {
	display: inline-block;
	margin-right: 8px;
	vertical-align: middle;
}

.itr-buy-qty {
	width: 56px;
	padding: 2px 6px;
	text-align: center;
	vertical-align: middle;
}

.itr-registry-complete-badge,
.itr-fully-purchased {
	display: inline-block;
	font-weight: 600;
	opacity: .7;
}

/* "Baby Shower" badge next to a shower list's title (owner + shared view). */
.itr-shower-badge {
	display: inline-block;
	margin-left: 10px;
	padding: 1px 10px;
	border-radius: 10px;
	background: #f6e7d8;
	color: #8a5a2b;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.6;
	vertical-align: middle;
}

.wd-wishlist-group-title .itr-shower-badge,
.wd-wishlist-head .itr-shower-badge {
	align-self: center;
}

.itr-shower-intro {
	margin: 0 0 20px;
	font-weight: 600;
}

.itr-atc-disabled {
	pointer-events: none;
	opacity: .4;
}

/* Variable products: hide Woodmart's inline "quick shop" variation form.
 *
 * On the shop archive that form is an on-hover overlay that Woodmart collapses
 * when the card isn't hovered. The wishlist page (.wd-wishlist-content) is not an
 * archive, so nothing collapses it — it expands to its full ~320px height, sits
 * above the price (order:-1) and blows out the card. Because the grid row matches
 * heights, it also inflates neighbouring simple products, producing the large
 * empty space around every title.
 *
 * The registry buy flow doesn't use this inline form anyway: variable products
 * send the buyer to the product page to choose options (Registry::filterAddToCartLink),
 * and the "Choose options" button next to the price already links there. So hide
 * the form entirely and let the card collapse back to its natural height. */
.wd-wishlist-content .variations_form.wd-quick-shop-2 {
	display: none !important;
}
