.gene-table-wrapper {
	width: 100%;
	max-height: 380px;
	overflow-x: hidden;
	overflow-y: auto;

	border: 1px solid #dce6ee;
	background: #dce6ee;
	box-shadow: 0 8px 24px rgba(18, 54, 82, 0.06);
	box-sizing: border-box;
}

.gene-table {
	display: block;
	width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
	border-spacing: 0;
	border-collapse: separate;
	table-layout: auto;
	background: transparent;
}

/*
 * Flatten the original table rows so every gene becomes
 * part of one responsive grid.
 */
.gene-table tbody {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;

	width: 100%;
	margin: 0;
	padding: 0;
	background: #dce6ee;
}

.gene-table tr,
.gene-table tr:not(:last-child) {
	display: contents;
	border: 0;
}

.gene-table td {
	display: flex;
	align-items: center;

	min-width: 0;
	min-height: 58px;

	margin: 0;
	padding: 13.6px 15.3px;

	border: 0 !important;
	background: #fff;
	box-sizing: border-box;

	color: #172c3d;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	text-align: left;

	white-space: normal;
	overflow-wrap: anywhere;
	word-break: normal;
}


@media (max-width: 767px) {

	/* Remove desktop scrolling */
	.gene-table-wrapper {
		max-height: none;
		overflow: hidden;
	}

	/*
	 * On mobile, move the grid responsibility from tbody
	 * to the table itself.
	 */
	.gene-table {
		display: grid !important;
		grid-template-columns:
			repeat(auto-fit, minmax(min(95px, 100%), 1fr));
		gap: 1px;

		width: 100%;
		height: auto !important;
		min-height: 0 !important;
	}

	.gene-table tbody,
	.gene-table tr {
		display: contents !important;
	}

	.gene-table td {
		min-height: 54px;
		padding: 11.9px 10.2px;
		font-size: 14px;
		line-height: 1.3;
	}

	.test-accordion .elementor-widget-html {
		display: contents !important;
	}

	.test-accordion .gene-table-wrapper {
		width: 100%;
	}
}


@media (max-width: 380px) {

	.gene-table {
		grid-template-columns:
			repeat(auto-fit, minmax(min(90px, 100%), 1fr));
	}

}