/* Feature Matrix Table Widget Stylesheet */

.collab-feature-matrix-wrapper {
	font-family: "Inter", Sans-serif;
	color: #111827;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	padding: 10px 0;
	box-sizing: border-box;
}

.collab-matrix-top-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}

.collab-matrix-category-filters {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex-wrap: wrap;
}

.matrix-cat-btn {
	background: #ffffff !important;
	color: #111827 !important;
	border: 1px solid #111827 !important;
	border-radius: 50px !important;
	padding: 4px 16px !important;
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition: all 0.2s ease;
	outline: none;
	white-space: nowrap;
}

.matrix-cat-btn:hover {
	background: #f9fafb !important;
	color: #374151 !important;
	border-color: #d1d5db !important;
}

.matrix-cat-btn.active {
	background: #111827 !important;
	color: #ffffff !important;
	border-color: #111827 !important;
}

.collab-matrix-card {
	background: #ffffff;
	border-radius: 16px;
	border: 1px solid #edf0f5;
	overflow: hidden;
	padding: 32px;
}

.collab-matrix-table-responsive {
	width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.collab-matrix-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	text-align: left;
}

.collab-feature-matrix-body tr:first-child td {
	border-width: 1px 0 0 0 !important;
}

.collab-feature-matrix-body tr:last-child td {
	border: none;
}

.collab-matrix-table th {
	padding: 12px 15px;
	font-size: 13px;
	font-weight: 600;
	color: #4b5563;
	vertical-align: bottom;
	white-space: nowrap;
	border: none;
	border-block-start: none !important;
}

.col-feature-head {
	text-align: left;
	font-size: 36px !important;
	font-weight: 600;
	letter-spacing: 0.8px;
	color: #111827 !important;
	text-transform: capitalize !important;
	width: 24%;
	border-top-left-radius: 16px;
	position: sticky;
	left: 0;
	z-index: 10;
	background-color: #fff;
}

.col-comp-head {
	text-align: center;
	border: none;
}

.highlight-badge-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.highlight-badge {
	/* background: #ffb81c; */
	color: #685bc7;
	font-weight: 700;
	font-size: 13px;
	border-radius: 8px;
	letter-spacing: 0.3px;
	cursor: pointer;
}

.comp-title {
	color: #374151;
	font-weight: 600;
}

.comp-title:hover {
	color: #685bc7;
}

.category-header-row td {
	background: #f6f4ff !important;
	color: #6b7280;
	font-size: 16px;
	font-weight: 600;
	line-height: 28px;
	letter-spacing: 1px;
	text-transform: uppercase;
	padding: 0;
	border-width: 0px 0 0 0;
	border-color: #d4d6db;
}

.category-header-row td:hover {
	background: #f6f4ff !important;
}

.feature-row td {
	padding: 12px 15px;
	vertical-align: middle;
	border-width: 0px 0 1px 0;
	border-color: #d4d6db;
	background-color: #fff !important;
}

.feature-row td:hover {
	background-color: #fff !important;
}

.feature-title-cell {
	padding-left: 20px;
	font-size: 16px;
	font-weight: 400;
	line-height: 28px;
	color: #111827;
	white-space: nowrap;
	min-width: 310px;
	position: sticky;
	left: 0;
	z-index: 10;
}

.collab-compare-description {
	font-size: 12px;
	color: #6b7280;
	font-weight: 400;
	margin-top: 4px;
	white-space: normal;
}

.score-cell {
	text-align: center;
	border-width: 1px 0 0 0;
	border-style: solid;
	border-color: #111827;
}

.score-cell.highlight-col {
	background: #f6f4ff !important;
	/* border-bottom-color: #ede9fe; */
}

.score-cell.highlight-col:hover {
	background: #f6f4ff !important;
}

.matrix-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	opacity: 0.9;
}

.collab-matrix-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
	font-size: 13px;
	color: #6b7280;
}

.collab-matrix-legend {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #111827;
	font-weight: 500;
}

.legend-item .matrix-icon {
	width: 18px;
	height: 18px;
}

.collab-matrix-count {
	font-size: 13px;
	color: #6b7280;
}

.no-results-row td {
	text-align: center;
	padding: 40px 20px;
	color: #6b7280;
	font-size: 15px;
}

.collab-matrix-loading {
	opacity: 0.4;
	pointer-events: none;
}

.bottom_note {
	margin-top: 16px;
	font-size: 13px;
	color: #6b7280;
	line-height: 1.5;
}

@media (max-width: 1300px) {
	.col-feature-head {
		font-size: 34px !important;
	}
}

@media (max-width: 1024px) {
	.col-feature-head {
		font-size: 30px !important;
	}
}

@media (max-width: 767px) {
	.col-feature-head {
		font-size: 26px !important;
	}

	.collab-matrix-legend {
		gap: 10px;
	}

	.collab-matrix-card {
		padding: 20px;
	}

	.feature-title-cell {
		min-width: 50vw;
		white-space: normal;
	}

	.feature-row td {
		padding: 8px 10px;
	}
}

.category-header-row.merged-row .collab-compare-left-text {
	padding: 12px 15px;
}

.category-header-row.merged-row {
	position: relative;
}

.category-header-row.merged-row td {
	position: sticky;
	left: 0;
}

.category-header-row.merged-row .collab-compare-left-text {
	position: sticky;
	left: 0;
	width: max-content;
}