/*
 * swpl-wishlist-compare-front.css — classic-mode front styles.
 *
 * Deliberately light-touch: buttons inherit the theme's typography and pick
 * up its link color; layout primitives only. Everything is namespaced
 * swpl-wlc- so nothing bleeds into the theme.
 */

.swpl-wlc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}

.swpl-wlc-actions--loop {
	justify-content: center;
	margin: 6px 0 10px;
}

.swpl-wlc-btn {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid currentColor;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 0.85em;
	line-height: 1.4;
	cursor: pointer;
	text-decoration: none;
	transition: opacity 0.15s ease;
}

.swpl-wlc-btn:hover {
	opacity: 0.75;
}

.swpl-wlc-btn--active {
	font-weight: 600;
}

.swpl-wlc-btn[disabled] {
	opacity: 0.5;
	cursor: wait;
}

/* Compare bar */

.swpl-wlc-bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 16px;
	background: #1d2327;
	color: #fff;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.25);
}

.swpl-wlc-bar__title {
	font-weight: 600;
	white-space: nowrap;
}

.swpl-wlc-bar__items {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
}

.swpl-wlc-bar__item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 3px 8px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 6px;
	max-width: 220px;
}

.swpl-wlc-bar__thumb {
	width: 28px;
	height: 28px;
	object-fit: cover;
	border-radius: 4px;
	flex-shrink: 0;
}

.swpl-wlc-bar__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.85em;
}

.swpl-wlc-bar__remove {
	border: 0;
	background: transparent;
	color: inherit;
	font-size: 1.1em;
	line-height: 1;
	cursor: pointer;
	padding: 0 2px;
}

.swpl-wlc-bar__go {
	padding: 6px 16px;
	background: #fff;
	color: #1d2327;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.swpl-wlc-bar__clear {
	border: 0;
	background: transparent;
	color: rgba(255, 255, 255, 0.7);
	cursor: pointer;
	text-decoration: underline;
	white-space: nowrap;
}

/* Wishlist page grid */

.swpl-wlc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.swpl-wlc-grid__item {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
}

.swpl-wlc-grid__link {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: inherit;
}

.swpl-wlc-grid__img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.05);
}

.swpl-wlc-grid__img--none {
	display: block;
}

.swpl-wlc-grid__name {
	font-weight: 600;
}

.swpl-wlc-empty {
	padding: 24px 0;
	opacity: 0.8;
}

/* Compare page table */

.swpl-wlc-table-wrap {
	overflow-x: auto;
}

.swpl-wlc-table {
	border-collapse: collapse;
	width: 100%;
	min-width: 560px;
}

.swpl-wlc-table th,
.swpl-wlc-table td {
	padding: 10px 12px;
	border: 1px solid rgba(128, 128, 128, 0.3);
	text-align: left;
	vertical-align: top;
}

.swpl-wlc-table__product a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	text-decoration: none;
	color: inherit;
	font-weight: 600;
}

.swpl-wlc-table__img {
	width: 110px;
	height: 110px;
	object-fit: cover;
	border-radius: 6px;
}

.swpl-wlc-table__remove {
	margin-top: 6px;
	border: 0;
	background: transparent;
	color: inherit;
	opacity: 0.7;
	cursor: pointer;
	text-decoration: underline;
	font-size: 0.85em;
	padding: 0;
}

/* Footer-fallback container (builder themes that skip post_content):
   presented as a normal centered content block above the footer. */

.swpl-wlc-fallback {
	max-width: 1100px;
	margin: 24px auto 40px;
	padding: 0 20px;
}
