/* Wish List Connector — frontend styles.
 * Intentionally lightweight and theme-agnostic; everything is namespaced under
 * .wl- so it cannot clash with the host theme. */

.wl-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1.25rem;
}

.wl-card {
	display: flex;
	flex-direction: column;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
}

.wl-card__media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.wl-card__body {
	padding: 0.9rem 1rem 1.1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.wl-card__title {
	margin: 0;
	font-size: 1.05rem;
	line-height: 1.3;
}

.wl-card__title a {
	text-decoration: none;
}

.wl-card__excerpt {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.8;
}

.wl-offers {
	list-style: none;
	margin: 0.25rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
}

.wl-offer {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
	font-size: 0.9rem;
}

.wl-offer__retailer {
	font-weight: 600;
}

.wl-offer__price {
	margin-left: auto;
}

.wl-offer--oos {
	opacity: 0.6;
}

.wl-offer__stock {
	color: #b32d2e;
	font-size: 0.8rem;
}

.wl-offer__link {
	font-size: 0.85rem;
	white-space: nowrap;
}

.wl-delivery-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
	background: #fff4e5;
	color: #8a5300;
	border: 1px solid #f0c98c;
	font-size: 0.8rem;
	font-weight: 600;
	width: fit-content;
}

.wl-category-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.wl-category-list .wl-count {
	opacity: 0.6;
}

.wl-empty {
	padding: 1rem;
	opacity: 0.7;
	font-style: italic;
}
