.maps-table-wrap {
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.maps-table {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	margin: 0;
	--maps-table-radius-tl: 0px;
	--maps-table-radius-tr: 0px;
	--maps-table-radius-br: 0px;
	--maps-table-radius-bl: 0px;
}

/* Apply corner radius to the table cells themselves, not the outer wrapper.
 * This keeps the radius aligned with the table when its width is less than 100%. */
.maps-table--has-header thead tr:first-child > :first-child {
	border-top-left-radius: var(--maps-table-radius-tl);
}

.maps-table--has-header thead tr:first-child > :last-child {
	border-top-right-radius: var(--maps-table-radius-tr);
}

.maps-table--no-header tbody tr:first-child > :first-child {
	border-top-left-radius: var(--maps-table-radius-tl);
}

.maps-table--no-header tbody tr:first-child > :last-child {
	border-top-right-radius: var(--maps-table-radius-tr);
}

.maps-table tbody tr:last-child > :first-child {
	border-bottom-left-radius: var(--maps-table-radius-bl);
}

.maps-table tbody tr:last-child > :last-child {
	border-bottom-right-radius: var(--maps-table-radius-br);
}

.maps-table caption {
	caption-side: top;
	text-align: left;
	font-weight: 600;
}

.maps-table th,
.maps-table td {
	text-align: left;
	vertical-align: top;
}

.maps-table th > :first-child,
.maps-table td > :first-child {
	margin-top: 0;
}

.maps-table th > :last-child,
.maps-table td > :last-child {
	margin-bottom: 0;
}

.maps-table tbody th {
	font-weight: 600;
}

.maps-table--hover tbody tr > * {
	transition: background-color 0.2s ease;
}

/* Give keyboard users a visible indication that a wide table can be scrolled. */
.maps-table-wrap:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 767px) {
	.maps-table--mobile-scroll {
		min-width: 640px;
	}

	.maps-table--mobile-stack,
	.maps-table--mobile-stack tbody,
	.maps-table--mobile-stack tr,
	.maps-table--mobile-stack th,
	.maps-table--mobile-stack td {
		display: block;
		width: 100%;
	}

	.maps-table--mobile-stack thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
		border: 0;
	}

	.maps-table--mobile-stack tbody tr {
		margin-bottom: 16px;
		border: 1px solid rgba(0, 0, 0, 0.15);
		border-radius: var(--maps-table-radius-tl) var(--maps-table-radius-tr) var(--maps-table-radius-br) var(--maps-table-radius-bl);
		overflow: hidden;
	}

	/* Desktop table corner rules are not needed once each row is a mobile card. */
	.maps-table--mobile-stack tbody tr > :first-child,
	.maps-table--mobile-stack tbody tr > :last-child {
		border-radius: 0;
	}

	.maps-table--mobile-stack tbody tr:last-child {
		margin-bottom: 0;
	}

	.maps-table--mobile-stack tbody th,
	.maps-table--mobile-stack tbody td {
		display: grid;
		grid-template-columns: minmax(110px, 38%) 1fr;
		gap: 12px;
		align-items: start;
		border-width: 0 0 1px 0 !important;
	}

	.maps-table--mobile-stack tbody tr > *:last-child {
		border-bottom-width: 0 !important;
	}

	.maps-table--mobile-stack tbody th::before,
	.maps-table--mobile-stack tbody td::before {
		content: attr(data-label);
		font-weight: 600;
	}

	.maps-table--mobile-stack tbody [data-label=""]::before,
	.maps-table--mobile-stack tbody :not([data-label])::before {
		display: none;
	}
}


@media (max-width: 480px) {
	.maps-table--mobile-stack tbody th,
	.maps-table--mobile-stack tbody td {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}
