/**
 * Comparison Table — self-contained styles (cmpt- namespace).
 * Ported from the toplist compare table so both look identical, but scoped to
 * the plugin's own classes so it does not depend on any theme.
 */

.cmpt-container {
	width: 100%;
	margin: 0 0 30px 0;
}

.cmpt-inner {
	background: #fff;
	border: 2px solid #BB0713;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.cmpt-header {
	background: #BB0713;
	color: #fff;
	padding: 14px 20px;
	font-size: 16px;
	font-weight: 700;
}

.cmpt-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* Click-and-drag panning (desktop, added by JS) */
.cmpt-scroll.cmpt-draggable {
	cursor: grab;
}

.cmpt-scroll.cmpt-dragging {
	cursor: grabbing;
	user-select: none;
}

.cmpt-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 320px;
	table-layout: fixed;
}

.cmpt-table th,
.cmpt-table td {
	padding: 10px 15px;
	text-align: center;
	border-bottom: 1px solid #e5e7eb;
	border-right: 1px solid #e5e7eb;
	font-size: 14px;
	vertical-align: middle;
	word-break: break-word;
	width: 190px;
	min-width: 190px;
}

.cmpt-table th:last-child,
.cmpt-table td:last-child {
	border-right: none;
}

.cmpt-table th {
	background: #fff;
	font-weight: 700;
	color: #374151;
	white-space: normal;
	padding: 24px 16px;
	vertical-align: top;
}

/* First column: the row labels, sticky to the left edge */
.cmpt-table th:first-child,
.cmpt-table td:first-child {
	text-align: left;
	font-weight: 600;
	color: #6b7280;
	font-size: 13px;
	position: sticky;
	left: 0;
	z-index: 2;
	width: 100px;
	min-width: 100px;
	max-width: 100px;
	border-right: 1px solid #e5e7eb;
}

.cmpt-table th:first-child {
	background: #fff;
}

/* Second column (first casino): also sticky so it stays in view */
.cmpt-table th.cmpt-sticky-first,
.cmpt-table td.cmpt-sticky-first {
	position: sticky;
	left: 99px;
	z-index: 1;
	border-right: 1px solid #e5e7eb;
}

.cmpt-table th.cmpt-sticky-first {
	z-index: 3;
	background: #fff;
}

/* Zebra striping (kept in sync with the sticky column backgrounds) */
.cmpt-table tbody tr:nth-child(odd),
.cmpt-table tbody tr:nth-child(odd) td,
.cmpt-table tbody tr:nth-child(odd) td.cmpt-sticky-first {
	background: #fff;
}

.cmpt-table tbody tr:nth-child(even),
.cmpt-table tbody tr:nth-child(even) td {
	background: #f9fafb;
}

.cmpt-table tbody tr:nth-child(even) td.cmpt-sticky-first {
	background: #f9fafb;
}

/* Header cell contents */
/* Fixed-height logo box so every column's name/rating line up, whatever the
   logo's aspect ratio. */
.cmpt-logo {
	width: auto;
	max-width: 130px;
	height: 56px;
	object-fit: contain;
	object-position: center;
	display: block;
	margin: 0 auto 10px;
}

.cmpt-name {
	font-weight: 700;
	font-size: 15px;
	color: #111827;
	margin-bottom: 4px;
}

.cmpt-name-link {
	color: #111827;
	text-decoration: underline;
	text-decoration-style: dotted;
}

.cmpt-name-link:hover {
	color: #BB0713;
}

/* Payments row: wrapped payment method icons */
.cmpt-payments {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 5px;
	justify-content: center;
	align-items: center;
}

.cmpt-payment-icon {
	height: 22px;
	width: auto;
	display: block;
}

/* Icons beyond the first few stay hidden until the "..." toggle is clicked */
.cmpt-payment-extra {
	display: none;
}

.cmpt-payments.is-expanded .cmpt-payment-extra {
	display: block;
}

.cmpt-payments-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 2px;
	height: 22px;
	min-width: 32px;
	padding: 0 6px;
	background: #e5e7eb;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.2s;
}

.cmpt-payments-more:hover {
	background: #d1d5db;
}

.cmpt-payments-more span {
	display: block;
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background: #6b7280;
}

/* Support cell: email | live chat */
.cmpt-support {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 12px;
	line-height: 1.4;
}

.cmpt-support-item {
	overflow-wrap: anywhere;
}

.cmpt-sep {
	color: #d1d5db;
	flex-shrink: 0;
}

.cmpt-stars {
	color: #fbbf24;
	font-size: 16px;
	letter-spacing: 2px;
}

.cmpt-rating-num {
	font-size: 12px;
	color: #6b7280;
	margin-top: 2px;
}

/* Body cell contents */
.cmpt-bonus {
	color: #111827;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
}

.cmpt-bonus + br + small {
	color: #9ca3af;
	font-size: 12px;
	font-weight: 400;
}

.cmpt-depbonus {
	color: #111827;
	font-weight: 700;
}

/* Bonus code + copy button */
.cmpt-code-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	padding: 5px 8px;
	max-width: 100%;
}

.cmpt-code {
	font-weight: 700;
	color: #111827;
	letter-spacing: 0.5px;
	overflow-wrap: anywhere;
}

.cmpt-copy {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	padding: 2px;
	cursor: pointer;
	color: #6b7280;
	flex-shrink: 0;
	transition: color 0.2s;
}

.cmpt-copy:hover {
	color: #111827;
}

.cmpt-copy.cmpt-copied {
	color: #059669;
}

.cmpt-no {
	color: #BB0713;
	font-weight: 700;
}

.cmpt-yes {
	color: #22c55e;
	font-weight: 700;
}

.cmpt-features {
	text-align: left;
	list-style: none;
	padding: 0 !important;
	margin: 0 0 0 10px !important;
	font-size: 12px;
	line-height: 1.6;
}

.cmpt-features li {
	padding: 2px 0;
}

.cmpt-features li::marker {
	content: none;
}

.cmpt-features li::before {
	content: "✓ ";
	color: #22c55e;
	font-weight: 700;
}

/* CTA row */
.cmpt-cta-row td {
	padding: 20px 5px 24px;
	border-bottom: none;
}

.cmpt-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 6px 14px;
	background: linear-gradient(135deg, rgb(21, 128, 61), rgb(34, 197, 94));
	color: #fff;
	text-decoration: none;
	border-radius: 10px;
	font-size: 10px;
	font-weight: 700;
	transition: opacity 0.2s;
	white-space: nowrap;
	box-shadow: 0 4px 12px rgba(46, 166, 46, 0.3);
	box-sizing: border-box;
}

.cmpt-cta:hover {
	opacity: 0.9;
	color: #fff;
}

.cmpt-cta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	background: rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	flex-shrink: 0;
	margin-left: 10px;
}

.cmpt-cta-icon svg {
	width: 14px;
	height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
	.cmpt-table th,
	.cmpt-table td {
		padding: 10px 8px;
		font-size: 11px;
		min-width: 100px;
		width: 110px;
	}

	.cmpt-table th {
		padding: 14px 8px;
	}

	.cmpt-table th:first-child,
	.cmpt-table td:first-child {
		min-width: 70px;
		max-width: 80px;
		font-size: 10px;
		padding: 10px 6px;
	}

	.cmpt-table th.cmpt-sticky-first,
	.cmpt-table td.cmpt-sticky-first {
		left: 78px;
	}

	.cmpt-logo {
		height: 36px;
		max-width: 90px;
	}

	.cmpt-name {
		font-size: 12px;
	}

	.cmpt-bonus {
		font-size: 12px;
	}

	.cmpt-header {
		font-size: 14px;
		padding: 12px 16px;
	}

	.cmpt-cta {
		padding: 8px 14px;
		font-size: 8px;
	}
}

@media (max-width: 480px) {
	.cmpt-table th:first-child,
	.cmpt-table td:first-child {
		width: 65px;
		min-width: 65px;
		max-width: 65px;
		font-size: 10px;
	}

	.cmpt-table th.cmpt-sticky-first,
	.cmpt-table td.cmpt-sticky-first {
		left: 63px;
	}

	.cmpt-table th,
	.cmpt-table td {
		min-width: 90px;
		width: 110px;
		padding: 8px 6px;
		font-size: 10px;
		line-height: 18px;
	}

	.cmpt-logo {
		height: 30px;
		max-width: 70px;
	}

	.cmpt-name {
		font-size: 11px;
	}
}
