/**
 * Free vs Pro compare tables (Site Lab product pages).
 * Loaded on front-end and in the block editor so Focus preview shows Pro column tints.
 */

.rsm-product-compare {
	--rsm-compare-pro-tint: #ede9fe;
	--rsm-compare-pro-color: #8b5cf6;
	border: 1px solid #e2e8f0;
	border-radius: 24px;
	overflow: hidden;
}

.rsm-product-compare .wp-block-table,
.rsm-product-compare .rsm-product-compare__table {
	margin: 0;
}

.rsm-product-compare .wp-block-table table {
	border-collapse: collapse;
	width: 100%;
}

.rsm-product-compare .wp-block-table td,
.rsm-product-compare .wp-block-table th {
	border-color: #e2e8f0;
}

.rsm-product-compare__table th:nth-child(2),
.rsm-product-compare__table td:nth-child(2),
.rsm-product-compare__table th:nth-child(3),
.rsm-product-compare__table td:nth-child(3) {
	text-align: center;
}

.rsm-product-compare__table th:nth-child(3),
.rsm-product-compare__table td:nth-child(3) {
	background-color: var(--rsm-compare-pro-tint);
}

.rsm-product-compare__table th:nth-child(3) {
	color: var(--rsm-compare-pro-color);
}

.rsm-product-compare__table tr:has(> td.rsm-product-compare__pro-only) td:first-child,
.rsm-product-compare__table tr:has(> td.rsm-product-compare__pro-only) td:nth-child(2) {
	background-color: var(--rsm-compare-pro-tint);
}

/* Per-plugin accent colors (class survives block save; inline cell styles do not). */
.rsm-product-compare--rsm-spark {
	--rsm-compare-pro-tint: #ffedd5;
	--rsm-compare-pro-color: #f97316;
}

.rsm-product-compare--rsm-forms {
	--rsm-compare-pro-tint: #dbeafe;
	--rsm-compare-pro-color: #2563eb;
}

.rsm-product-compare--rsm-menu {
	--rsm-compare-pro-tint: #fef3c7;
	--rsm-compare-pro-color: #d97706;
}

.rsm-product-compare--rsm-calendar {
	--rsm-compare-pro-tint: #d1fae5;
	--rsm-compare-pro-color: #0ea47a;
}

.rsm-product-compare--rsm-directory {
	--rsm-compare-pro-tint: #ccfbf1;
	--rsm-compare-pro-color: #14b8a6;
}

.rsm-product-compare--rsm-careers {
	--rsm-compare-pro-tint: #e0e7ff;
	--rsm-compare-pro-color: #4f46e5;
}

.rsm-product-compare--rsm-popups {
	--rsm-compare-pro-tint: #f3e8ff;
	--rsm-compare-pro-color: #9333ea;
}

.rsm-product-compare--rsm-invoice {
	--rsm-compare-pro-tint: #dbeafe;
	--rsm-compare-pro-color: #1e40af;
}

.rsm-product-compare--rsm-content-widgets {
	--rsm-compare-pro-tint: #ede9fe;
	--rsm-compare-pro-color: #8b5cf6;
}

.rsm-product-compare--rsm-focus {
	--rsm-compare-pro-tint: #cffafe;
	--rsm-compare-pro-color: #0891b2;
}

.rsm-product-compare--rsm-documentation {
	--rsm-compare-pro-tint: #e0f2fe;
	--rsm-compare-pro-color: #0369a1;
}

.rsm-product-compare--rsm-media {
	--rsm-compare-pro-tint: #fce7f3;
	--rsm-compare-pro-color: #db2777;
}

.rsm-product-compare--rsm-consent {
	--rsm-compare-pro-tint: #d1fae5;
	--rsm-compare-pro-color: #059669;
}
