.chc-compare-page {
	width: 100%;
	margin: 32px 0;
}

.chc-compare-page__loading,
.chc-compare-empty {
	padding: 24px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	color: var(--chc-color-muted);
}

.chc-compare-grid {
	display: grid !important;
	grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	gap: 24px !important;
	width: 100%;
}

.chc-compare-item {
	display: flex !important;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 100%;
	padding: 16px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
}

.chc-compare-item__image img {
	width: 100%;
	height: auto;
	display: block;
}

.chc-compare-item__content {
	display: grid;
	gap: 10px;
}

.chc-compare-item__title {
	margin: 0;
	font-size: 1rem;
	line-height: 1.35;
}

.chc-compare-item__title a {
	text-decoration: none;
}

.chc-compare-item__price {
	font-weight: 700;
}

.chc-compare-item__stock {
	font-size: 0.9rem;
	color: var(--chc-color-muted);
}

.chc-compare-item__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-top: auto;
}

.chc-compare-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 14px;
	border: 1px solid var(--chc-color-border);
	border-radius: var(--chc-radius);
	background: #fff;
	cursor: pointer;
}

.chc-compare-toggle,
.chc-compare-toggle *,
.chc-compare-remove,
.chc-compare-remove * {
	cursor: pointer !important;
}

.chc-compare-toggle.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
}

.chc-compare-icon {
	font-size: 1rem;
	line-height: 1;
}

@media (max-width: 980px) {
	.chc-compare-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 560px) {
	.chc-compare-grid {
		grid-template-columns: 1fr !important;
	}
}

.chc-compare-table-wrap {
	width: 100%;
	overflow-x: auto;
}

.chc-compare-table {
	width: 100%;
	min-width: 680px;
	border-collapse: collapse;
	background: #fff;
}

.chc-compare-table th,
.chc-compare-table td {
	padding: 14px;
	border: 1px solid var(--chc-color-border);
	text-align: center;
	vertical-align: middle;
}

.chc-compare-table th:first-child,
.chc-compare-table td:first-child {
	width: 160px;
	text-align: left;
	font-weight: 700;
	background: #fafafa;
}

.chc-compare-table-product {
	display: grid;
	justify-items: center;
	gap: 10px;
	text-decoration: none;
	color: inherit;
}

.chc-compare-table-product img {
	width: 96px;
	height: 96px;
	object-fit: contain;
}

.chc-compare-table-title {
	font-size: 0.95rem;
	line-height: 1.35;
	font-weight: 600;
}

.chc-compare-stock {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1;
}

.chc-compare-stock.in-stock {
	background: #e9f8ef;
	color: #14833b;
}

.chc-compare-stock.out-of-stock {
	background: #f3f3f3;
	color: #666;
}

.chc-compare-table-actions {
	display: grid;
	gap: 8px;
	justify-items: center;
}

.chc-compare-table-actions .button,
.chc-compare-table-actions .chc-compare-remove {
	width: 100%;
	max-width: 160px;
}

.chc-compare-page {
	width: 100%;
	max-width: 100%;
	overflow-x: hidden;
}

.chc-compare-table-wrap {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto !important;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
}

.chc-compare-table {
	width: 680px !important;
	min-width: 680px !important;
	max-width: 680px !important;
}

/* Hard mobile containment for Compare page */
@media (max-width: 768px) {
	body,
	html {
		overflow-x: hidden !important;
	}

	.chc-compare-page,
	.chc-compare-page *,
	.entry-content,
	.site-main,
	.chc-container {
		box-sizing: border-box;
	}

	.chc-compare-page {
		width: 100% !important;
		max-width: 100% !important;
		overflow: hidden !important;
	}

	.chc-compare-table-wrap {
		width: 100% !important;
		max-width: calc(100vw - 32px) !important;
		overflow-x: auto !important;
		overflow-y: hidden !important;
		margin: 0 auto !important;
	}

	.chc-compare-table {
		width: 680px !important;
		min-width: 680px !important;
		max-width: 680px !important;
	}

	.chc-compare-table th,
	.chc-compare-table td {
		min-width: 120px;
	}
}