.cwm-matrix-table {
	--cwm-divider-color: #dddddd;
	--cwm-divider-width: 1px;
	--cwm-radius: 5px;
	--cwm-mobile-gap: 16px;
	--cwm-mobile-padding: 16px 20px;
	--cwm-mobile-widget-padding: 0;
	--cwm-mobile-widget-margin: 0;
	--cwm-mobile-title-bg: #000000;
	--cwm-mobile-title-color: #ffffff;
	--cwm-mobile-label-color: #cc3366;
	--cwm-mobile-first-label-color: #facf81;
	width: 100%;
	color: #000000;
	font-family: "Segoe UI", Arial, sans-serif;
}

.cwm-matrix-table *,
.cwm-matrix-table *::before,
.cwm-matrix-table *::after {
	box-sizing: border-box;
}

.cwm-matrix-table__title {
	display: flex;
	flex-wrap: wrap;
	gap: 0.18em;
	margin: 0 0 36px;
	color: #000000;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: clamp(32px, 4vw, 52px);
	font-weight: 500;
	line-height: 1.12;
	letter-spacing: -1.5px;
}

.cwm-matrix-table__viewport {
	width: 100%;
	overflow-x: auto;
	border: 0;
	border-radius: var(--cwm-radius);
	background: #ffffff;
}

.cwm-matrix-table__table {
	width: 100%;
	min-width: 900px;
	margin: 0;
	border: 0;
	border-spacing: 0;
	border-collapse: separate;
	table-layout: fixed;
}

.cwm-matrix-table__table th,
.cwm-matrix-table__table td {
	padding: 28px;
	border: 0;
	border-right: var(--cwm-divider-width) solid var(--cwm-divider-color);
	border-bottom: var(--cwm-divider-width) solid var(--cwm-divider-color);
	text-align: left;
	vertical-align: top;
}

.cwm-matrix-table__table th:last-child,
.cwm-matrix-table__table td:last-child {
	border-right: 0;
}

.cwm-matrix-table__table tbody tr:last-child td {
	border-bottom: 0;
}

.cwm-matrix-table__table th {
	background: #000000;
	color: #ffffff;
	font-family: Inter, "Segoe UI", Arial, sans-serif;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.25;
}

.cwm-matrix-table__table td {
	background: #ffffff;
	color: #383838;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.55;
	transition: background-color 0.3s ease;
}

.cwm-matrix-table__table tbody tr:hover td {
	background: #fff8ea;
}

.cwm-matrix-table__table th:nth-child(1),
.cwm-matrix-table__table td:nth-child(1) {
	width: 24%;
}

.cwm-matrix-table__table th:nth-child(2),
.cwm-matrix-table__table td:nth-child(2) {
	width: 44%;
}

.cwm-matrix-table__table th:nth-child(3),
.cwm-matrix-table__table td:nth-child(3) {
	width: 32%;
}

.cwm-matrix-table__table td:nth-child(3) {
	color: #000000;
	font-weight: 500;
}

.cwm-matrix-table__caption {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 767px) {
	.cwm-matrix-table {
		width: auto;
		padding: var(--cwm-mobile-widget-padding);
		margin: var(--cwm-mobile-widget-margin);
	}

	.cwm-matrix-table__title {
		margin-bottom: 24px;
		font-size: 32px;
		letter-spacing: -1px;
	}

	.cwm-matrix-table__viewport {
		overflow: visible;
		background: transparent;
	}

	.cwm-matrix-table__table {
		min-width: 0;
	}

	.cwm-matrix-table__table,
	.cwm-matrix-table__table tbody,
	.cwm-matrix-table__table tr,
	.cwm-matrix-table__table td {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
	}

	.cwm-matrix-table__table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.cwm-matrix-table__table tbody {
		display: grid;
		gap: var(--cwm-mobile-gap);
	}

	.cwm-matrix-table__table tbody tr {
		display: block !important;
		width: 100% !important;
		overflow: hidden;
		border: 0;
		border-radius: var(--cwm-radius);
		background: #ffffff;
	}

	.cwm-matrix-table__table td,
	.cwm-matrix-table__table td:nth-child(n) {
		display: block !important;
		width: 100% !important;
		max-width: 100% !important;
		padding: var(--cwm-mobile-padding) !important;
		border: 0;
		border-bottom: var(--cwm-divider-width) solid var(--cwm-divider-color);
		border-radius: 0;
		font-size: 16px;
		font-weight: 400;
		line-height: 1.45;
	}

	.cwm-matrix-table__table td:first-child {
		background: var(--cwm-mobile-title-bg) !important;
		color: var(--cwm-mobile-title-color) !important;
	}

	.cwm-matrix-table__table td:last-child {
		border-bottom: 0;
	}

	.cwm-matrix-table__table td::before {
		content: attr(data-label);
		display: block;
		margin-bottom: 6px;
		color: var(--cwm-mobile-label-color);
		font-family: Inter, "Segoe UI", Arial, sans-serif;
		font-size: 12px;
		font-weight: 500;
		line-height: 1.2;
		letter-spacing: 0.04em;
		text-transform: uppercase;
	}

	.cwm-matrix-table__table td:first-child::before {
		color: var(--cwm-mobile-first-label-color);
	}

	.cwm-matrix-table__table tbody tr:hover td {
		background: #ffffff;
	}

	.cwm-matrix-table__table tbody tr:hover td:first-child {
		background: var(--cwm-mobile-title-bg) !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cwm-matrix-table__table td {
		transition: none;
	}
}
