/**
 * LEI Platform Comparison Table Styles
 * Modern SaaS-style comparison table
 *
 * @package LEI_Platform_Comparison
 */

/* Elementor-specific header background override */
.elementor-211 .elementor-element.elementor-element-83d85a7 .lei-comparison-table thead th:not(.lei-ramp) {
	background-color: #fff;
}

/* Elementor-754 specific LEI Ramp header background */
.elementor-754 .elementor-element.elementor-element-574a58fd .lei-comparison-table thead th.lei-ramp {
	background-color: #030f39 !important;
}

.lei-platform-comparison-widget {
	width: 100%;
	margin: 30px 0;
	padding: 0;
}

.lei-comparison-title {
	margin-bottom: 30px;
	font-size: 28px;
	font-weight: 700;
	color: #1a1a1a;
	text-align: center;
	letter-spacing: -0.5px;
}

.lei-comparison-table {
	width: 100%;
	max-width: 800px;
	border-collapse: separate;
	border-spacing: 0;
	margin: 0 auto;
	background-color: #ffffff;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	border-radius: 12px;
	overflow: hidden;
	border-bottom: 1px solid #eee;
	table-layout: fixed;
}

.lei-comparison-table thead {
	background: transparent;
}

.lei-comparison-table thead th {
	padding: 0.5em;
	text-align: center;
	vertical-align: middle;
	font-weight: 600;
	color: #030f39;
	border: none;
	border-top: 1px solid #ededed;
	font-size: 15px;
	letter-spacing: 0.3px;
	font-size: 13px;
	line-height: 1.4;
}

.lei-comparison-table thead th:not(.lei-ramp) {
	background-color: #ffffff;
	color: #030f39;
}


.lei-comparison-table thead th:first-child {
	text-align: left;
	padding-left: 0.5em;
}

/* Column widths - each th except feature-name is 15% */
.lei-comparison-table thead th:not(.feature-name) {
	text-align: center;
}

/* Feature name column is 55% wide */
.lei-comparison-table thead th.feature-name,
.lei-comparison-table tbody td.feature-name {
	width: 55%;
}

.lei-comparison-table thead th:last-child {
	padding-right: 0.5em;
}

/* LEI Express Column Highlighting */
.lei-comparison-table thead th:nth-child(2) {
	font-weight: 700;
	background-color: #ffffff;
	color: #030f39;
	position: relative;
}

.lei-comparison-table thead th:nth-child(2):after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 3px;
}

.lei-comparison-table tbody td:nth-child(2) {
	position: relative;
}

/* LEI Ramp Column Background */
.lei-comparison-table thead th.lei-ramp,
.elementor-211 .elementor-element.elementor-element-83d85a7 .lei-comparison-table thead th.lei-ramp {
	background-color: #030f39;
	color: #ffffff;
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

/* BEST Label Pill */
.lei-best-label {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	background-color: #aef434;
	border-radius: 12px;
	padding: 5px 6px;
	font-size: 12px;
	font-weight: 600;
	color: #030f39;
	line-height: 1;
	white-space: nowrap;
}

.lei-best-label svg {
	flex-shrink: 0;
	width: 12px;
	height: 12px;
	display: block;
}

.lei-best-text {
	font-size: 9px;
	color: #030f39;
	font-weight: 700;
	letter-spacing: 0.3px;
}

.lei-comparison-table tbody td:nth-child(3) {
	background-color: #030f39;
	position: relative;
	color: #ffffff;
	border-top: 1px solid #252e4d !important;
}

.lei-comparison-table tbody tr:nth-child(even) td:nth-child(3) {
	background-color: #030f39;
}


.lei-comparison-table tbody tr {
	background-color: #ffffff;
	transition: all 0.2s ease;
	border-bottom: none;
}

.lei-comparison-table tbody tr:nth-child(even) {
	background-color: #f9fafb80;
}


.lei-comparison-table tbody td {
	padding: 0.5em;
	border: none;
	border-top: 1px solid #ededed;
	color: #333333;
	font-size: 15px;
	line-height: 1.6;
	vertical-align: middle;
}

/* Column widths - each td except feature-name is 15% */
.lei-comparison-table tbody td:not(.feature-name) {
	width: 15%;
}

.lei-comparison-table tbody tr:first-child td {
	border-top: 1px solid #ededed;
}

.lei-comparison-table tbody td:first-child {
	padding-left: 0.5em;
	font-weight: 500;
	color: #1a1a1a;
}

.lei-comparison-table tbody td:first-child.feature-name {
	padding-left: 1.5em !important;
	padding-right: 5.5em;
}

.lei-comparison-table tbody td:last-child {
	padding-right: 0.5em;
}

.lei-comparison-table tbody .feature-name,
.lei-comparison-table tbody td.feature-name,
.lei-comparison-table thead th.feature-name {
	font-weight: 400 !important;
	font-size: 11px !important;
	text-transform: capitalize !important;
	color: #030f39;
	text-align: left;
	padding-left: 1.5em !important;
}

/* Status Styles */
.lei-comparison-table tbody td.status-included,
.lei-comparison-table tbody td.status-not,
.lei-comparison-table tbody td.status-limited {
	text-align: center;
	vertical-align: middle;
}

.lei-comparison-table tbody td.status-included svg {
	display: inline-block;
	vertical-align: middle;
	width: 24px;
	height: 24px;
}

.lei-comparison-table tbody td.status-not svg {
	display: inline-block;
	vertical-align: middle;
	width: 24px;
	height: 24px;
}

.lei-comparison-table tbody td.status-limited {
	color: #ff8c00;
	font-weight: 600;
	font-size: 14px;
	letter-spacing: 0.3px;
}

.lei-comparison-table tbody td.status-limited .limited-text {
	color: #ff8c00;
	font-weight: 400;
	display: inline-block;
	padding: 4px 12px;
	background-color: transparent;
	border-radius: 6px;
	font-size: 12px;
}


.lei-comparison-table tbody td:nth-child(3).status-limited .limited-text {
	color: #ffffff;
	background-color: transparent;
}

/* Responsive Styles */
@media (max-width: 1024px) {
	.lei-comparison-table thead th,
	.lei-comparison-table tbody td {
		padding: 0.5em;
		font-size: 14px;
	}

	.lei-comparison-table thead th:first-child,
	.lei-comparison-table tbody td:first-child {
		padding-left: 0.5em;
	}

	.lei-comparison-table thead th:last-child,
	.lei-comparison-table tbody td:last-child {
		padding-right: 0.5em;
	}
}

@media (max-width: 768px) {
	.lei-platform-comparison-widget {
		margin: 20px 0;
	}

	.lei-comparison-title {
		font-size: 24px;
		margin-bottom: 24px;
	}

	.lei-comparison-table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		border-radius: 8px;
		box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
	}

	.lei-comparison-table thead {
		display: none;
	}

	.lei-comparison-table tbody {
		display: block;
	}

	.lei-comparison-table tbody tr {
		display: block;
		margin-bottom: 16px;
		border: 1px solid #e8e8e8;
		border-radius: 8px;
		overflow: hidden;
		background-color: #ffffff;
		box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
		transition: all 0.2s ease;
	}

	.lei-comparison-table tbody tr:last-child {
		margin-bottom: 0;
	}

	.lei-comparison-table tbody tr:nth-child(even) {
		background-color: #f9fafb80;
	}
	


	.lei-comparison-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		padding: 0.5em;
		border: none;
		border-bottom: 1px solid #f0f0f0;
		text-align: right;
	}

	.lei-comparison-table tbody td:last-child {
		border-bottom: none;
	}

	.lei-comparison-table tbody td:before {
		content: attr(data-label);
		font-weight: 600;
		color: #030f39;
		text-align: left;
		flex: 1;
		margin-right: 16px;
		font-size: 14px;
	}

	.lei-comparison-table tbody .feature-name,
	.lei-comparison-table tbody td.feature-name {
		font-weight: 400 !important;
		font-size: 11px !important;
		text-transform: capitalize !important;
		color: #030f39;
		background-color: #f8f9fa;
		padding: 0.5em;
		padding-left: 1.5em !important;
		border-bottom: 2px solid #030f39;
		text-align: left;
	}

	.lei-comparison-table tbody .feature-name:before {
		content: none;
	}

	.lei-comparison-table tbody td.status-included,
	.lei-comparison-table tbody td.status-not,
	.lei-comparison-table tbody td.status-limited {
		text-align: right;
		justify-content: flex-end;
	}

	.lei-comparison-table tbody td.status-included:before,
	.lei-comparison-table tbody td.status-not:before,
	.lei-comparison-table tbody td.status-limited:before {
		text-align: left;
	}

	.lei-comparison-table tbody td.status-included svg,
	.lei-comparison-table tbody td.status-not svg {
		width: 20px;
		height: 20px;
	}

	.lei-comparison-table tbody td.status-limited .limited-text {
		font-size: 13px;
		padding: 3px 10px;
		background-color: transparent;
	}

	/* LEI Express column highlight on mobile */
	.lei-comparison-table tbody td:nth-child(2) {
		background-color: rgba(189, 235, 1, 0.05);
	}

	.lei-comparison-table tbody td:nth-child(2):before {
		font-weight: 700;
		color: #030f39;
	}

	/* LEI Ramp column background on mobile */
	.lei-comparison-table tbody td:nth-child(3) {
		background-color: #030f39;
		color: #ffffff;
	}

	.lei-comparison-table tbody td:nth-child(3):before {
		font-weight: 700;
		color: #ffffff;
	}
}

@media (max-width: 480px) {
	.lei-comparison-title {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.lei-comparison-table tbody td {
		padding: 0.5em;
		font-size: 13px;
	}

	.lei-comparison-table tbody .feature-name,
	.lei-comparison-table tbody td.feature-name {
		font-weight: 400 !important;
		font-size: 11px !important;
		text-transform: capitalize !important;
		padding: 0.5em;
		padding-left: 1.5em !important;
	}

	.lei-comparison-table tbody td:before {
		font-size: 13px;
		margin-right: 12px;
	}

	.lei-comparison-table tbody td.status-included svg,
	.lei-comparison-table tbody td.status-not svg {
		width: 18px;
		height: 18px;
	}

	.lei-comparison-table tbody td.status-limited .limited-text {
		font-size: 12px;
		padding: 2px 8px;
		background-color: transparent;
	}
}

/* Print Styles */
@media print {
	.lei-platform-comparison-widget {
		margin: 20px 0;
	}

	.lei-comparison-table {
		box-shadow: none;
		border: 1px solid #000000;
		border-radius: 0;
	}

	.lei-comparison-table thead {
		background-color: #000000 !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.lei-comparison-table thead th {
		color: #ffffff !important;
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
	}

	.lei-comparison-table tbody tr {
		border-bottom: 1px solid #cccccc;
	}


	.lei-comparison-table tbody td.status-included svg,
	.lei-comparison-table tbody td.status-not svg {
		filter: none;
	}
}
