/**
 * JezPress Woo Wishlist — front-end styles.
 *
 * Intentionally light-touch so the theme's own product/button styling shows
 * through. Only layout and state helpers live here.
 *
 * @package JezPress\WooWishlist
 * @since   1.0.0
 */

/* Add button state */
.jpww-add-button.jpww-in-list {
	opacity: 0.85;
}

.jpww-context-loop.jpww-add-button,
.jpww-context-rec.jpww-add-button {
	margin-top: 0.5em;
}

/* Store grid */
.jpww-store__actions {
	margin-bottom: 1em;
	text-align: right;
}

.jpww-store__table {
	width: 100%;
}

.jpww-store__table td,
.jpww-store__table th {
	vertical-align: middle;
}

.jpww-cell-thumb img {
	max-width: 64px;
	height: auto;
}

.jpww-cell-qty .jpww-qty {
	width: 5em;
}

.jpww-unavailable {
	display: block;
	font-size: 0.85em;
	color: #b32d2e;
}

.jpww-remove {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 1.4em;
	line-height: 1;
	color: #b32d2e;
	padding: 0 0.25em;
}

.jpww-remove:hover {
	color: #8a1f20;
}

.jpww-empty {
	padding: 1em 0;
}

/* Notice region */
.jpww-notice {
	display: none;
	margin-top: 1em;
	padding: 0.75em 1em;
	border-radius: 3px;
}

.jpww-notice--success {
	background: #edfaef;
	border: 1px solid #46b450;
}

.jpww-notice--error {
	background: #fbeaea;
	border: 1px solid #b32d2e;
}

/* Recommendations */
.jpww-recommendations {
	margin-top: 2.5em;
}

.jpww-recommendations__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1em;
	list-style: none;
	margin: 0;
	padding: 0;
}

.jpww-rec-item {
	text-align: center;
}

.jpww-rec-item__link {
	display: block;
	text-decoration: none;
}

.jpww-rec-item__title {
	display: block;
	margin: 0.5em 0 0.25em;
}

.jpww-rec-item__price {
	display: block;
	margin-bottom: 0.5em;
}

@media (max-width: 768px) {
	.jpww-recommendations__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* Catalogue block */
.jpww-catalogue {
	margin-top: 2.5em;
}

.jpww-catalogue__links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}

.jpww-catalogue__embeds {
	margin-top: 1em;
}

.jpww-catalogue__embed {
	position: relative;
	width: 100%;
	padding-top: 66%; /* 3:2 reader aspect */
	margin-bottom: 1em;
}

.jpww-catalogue__embed iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
