/* Compare Feature - Checkbox on activity cards */
.sp-compare-check {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 0.78rem;
	color: var(--wp--preset--color--muted, #6B7B8D);
	cursor: pointer;
	margin-left: auto;
	white-space: nowrap;
	user-select: none;
}

.sp-compare-check:hover {
	color: var(--wp--preset--color--primary, #0A4D8C);
}

.sp-compare-input {
	width: 14px;
	height: 14px;
	accent-color: var(--wp--preset--color--primary, #0A4D8C);
	cursor: pointer;
	margin: 0;
}

/* Floating compare bar */
.sp-compare-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: rgba(10, 77, 140, 0.97);
	color: #fff;
	padding: 0.85rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	z-index: 9999;
	transform: translateY(100%);
	transition: transform 0.3s ease;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.sp-compare-bar.is-visible,
.sp-compare-bar.visible {
	transform: translateY(0);
}

.sp-compare-bar__text {
	font-size: 0.95rem;
	font-weight: 600;
}

.sp-compare-bar__btn {
	display: inline-block;
	background: #FFD700;
	color: #0A4D8C;
	padding: 0.5rem 1.25rem;
	border-radius: 6px;
	font-weight: 700;
	font-size: 0.9rem;
	text-decoration: none;
	border: none;
	cursor: pointer;
	transition: background 0.2s;
}

.sp-compare-bar__btn:hover {
	background: #FFC107;
}

.sp-compare-bar__clear {
	background: none;
	border: 1px solid rgba(255, 255, 255, 0.4);
	color: #fff;
	padding: 0.4rem 0.8rem;
	border-radius: 6px;
	font-size: 0.8rem;
	cursor: pointer;
	transition: border-color 0.2s;
}

.sp-compare-bar__clear:hover {
	border-color: #fff;
}

/* Compare page table */
.sp-compare {
	max-width: 1100px;
	margin: 0 auto;
	padding: 2rem 1rem;
}

.sp-compare__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 2rem;
	flex-wrap: wrap;
	gap: 1rem;
}

.sp-compare__header h2 {
	margin: 0;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--wp--preset--color--heading, #1A2B3C);
}

.sp-compare__back {
	color: var(--wp--preset--color--primary, #0A4D8C);
	text-decoration: none;
	font-size: 0.9rem;
	font-weight: 600;
}

.sp-compare__back:hover {
	text-decoration: underline;
}

.sp-compare-table {
	display: grid;
	grid-template-columns: 140px repeat(var(--sp-compare-cols, 2), 1fr);
	gap: 0;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	background: #fff;
}

.sp-compare-table__label {
	background: #f8fbff;
	padding: 0.85rem 1rem;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--wp--preset--color--muted, #6B7B8D);
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-bottom: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
}

.sp-compare-table__cell {
	padding: 0.85rem 1rem;
	font-size: 0.9rem;
	border-bottom: 1px solid #e2e8f0;
	border-left: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	word-break: break-word;
}

.sp-compare-table__cell--name {
	font-weight: 700;
	font-size: 1rem;
}

.sp-compare-table__cell--name a {
	color: var(--wp--preset--color--primary, #0A4D8C);
	text-decoration: none;
}

.sp-compare-table__cell--name a:hover {
	text-decoration: underline;
}

.sp-compare-table__cell a {
	color: var(--wp--preset--color--primary, #0A4D8C);
}

.sp-compare-table__cell .stars {
	color: #F5A623;
	margin-right: 0.3rem;
}

/* Last row remove border-bottom */
.sp-compare-table > :nth-last-child(-n+4) {
	border-bottom: none;
}

/* Responsive */
@media (max-width: 768px) {
	.sp-compare-table {
		grid-template-columns: 100px repeat(var(--sp-compare-cols, 2), 1fr);
		font-size: 0.82rem;
	}

	.sp-compare-table__label {
		font-size: 0.75rem;
		padding: 0.65rem 0.6rem;
	}

	.sp-compare-table__cell {
		font-size: 0.82rem;
		padding: 0.65rem 0.6rem;
	}

	.sp-compare-table__cell--name {
		font-size: 0.88rem;
	}
}

@media (max-width: 480px) {
	.sp-compare-table {
		grid-template-columns: 80px repeat(var(--sp-compare-cols, 2), 1fr);
	}

	.sp-compare-table__label,
	.sp-compare-table__cell {
		padding: 0.5rem;
		font-size: 0.75rem;
	}
}
