/* WhatsOn article comparison tables.
 * Wide editorial tables remain readable on small screens by scrolling horizontally.
 */
.whatson-table-wrap {
	box-sizing: border-box;
	display: block;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	margin: 1.5rem 0 2rem;
	border: 1px solid #e3e5e8;
	border-radius: 14px;
	background: #fff;
}

.whatson-table-wrap table {
	display: table !important;
	width: max-content !important;
	min-width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border: 0 !important;
	border-collapse: collapse !important;
	border-spacing: 0 !important;
	table-layout: auto !important;
	font-size: 0.94rem;
	line-height: 1.45;
}

.whatson-table-wrap .whatson-price-table {
	min-width: 980px !important;
}

.whatson-table-wrap .whatson-feature-table {
	min-width: 840px !important;
}

.whatson-table-wrap thead {
	display: table-header-group !important;
}

.whatson-table-wrap tbody {
	display: table-row-group !important;
}

.whatson-table-wrap tfoot {
	display: table-footer-group !important;
}

.whatson-table-wrap tr {
	display: table-row !important;
}

.whatson-table-wrap th,
.whatson-table-wrap td {
	display: table-cell !important;
	float: none !important;
	position: static !important;
	box-sizing: border-box !important;
	width: auto !important;
	height: auto !important;
	min-width: 120px;
	padding: 12px 14px !important;
	vertical-align: top !important;
	text-align: left !important;
	border: 0 !important;
	border-bottom: 1px solid #e3e5e8 !important;
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
}

.whatson-table-wrap th {
	font-weight: 700 !important;
	background: #f5f6f7 !important;
	color: #0d1728 !important;
	white-space: nowrap !important;
}

.whatson-table-wrap td {
	white-space: normal !important;
}

.whatson-table-wrap tbody tr:last-child td {
	border-bottom: 0 !important;
}

.whatson-table-wrap .whatson-price-table th:first-child,
.whatson-table-wrap .whatson-price-table td:first-child,
.whatson-table-wrap .whatson-feature-table th:first-child,
.whatson-table-wrap .whatson-feature-table td:first-child {
	min-width: 150px !important;
	font-weight: 700;
}

.whatson-table-wrap .whatson-price-table th:nth-child(2),
.whatson-table-wrap .whatson-price-table td:nth-child(2) {
	min-width: 190px !important;
}

.whatson-table-wrap .whatson-price-table th:nth-child(3),
.whatson-table-wrap .whatson-price-table td:nth-child(3) {
	min-width: 175px !important;
}

.whatson-table-wrap .whatson-price-table th:nth-child(4),
.whatson-table-wrap .whatson-price-table td:nth-child(4) {
	min-width: 120px !important;
}

.whatson-table-wrap .whatson-price-table th:nth-child(5),
.whatson-table-wrap .whatson-price-table td:nth-child(5) {
	min-width: 170px !important;
}

.whatson-table-wrap .whatson-price-table th:nth-child(6),
.whatson-table-wrap .whatson-price-table td:nth-child(6) {
	min-width: 140px !important;
}

@media (max-width: 782px) {
	.whatson-table-wrap {
		margin: 1.1rem 0 1.6rem;
		border-radius: 10px;
		box-shadow: inset -18px 0 18px -24px rgba(13, 23, 40, 0.35);
	}

	.whatson-table-wrap table {
		font-size: 0.9rem !important;
	}

	.whatson-table-wrap th,
	.whatson-table-wrap td {
		padding: 10px 12px !important;
	}

	/* Keep the gym name visible while the reader swipes through the price columns. */
	.whatson-table-wrap th:first-child,
	.whatson-table-wrap td:first-child {
		position: sticky !important;
		left: 0;
		z-index: 2;
		background: #fff !important;
		box-shadow: 1px 0 0 #e3e5e8;
	}

	.whatson-table-wrap th:first-child {
		z-index: 3;
		background: #f5f6f7 !important;
	}
}
