.wilfam-course-table {
	--wilfam-course-color: #004d61;
	--wilfam-course-section-color: #f39200;
	margin: 0 0 38px;
	overflow: hidden;
	border: 2px solid var(--wilfam-course-color);
	border-radius: 24px;
	background: #fff;
	color: #004d61;
}

.wilfam-course-table__title {
	margin: 0 !important;
	padding: 20px 28px;
	background: var(--wilfam-course-color);
	color: #fff !important;
	font-size:25px;
	font-weight: 700;
	line-height: 1.25;
}

.wilfam-course-table__scroll {
	max-width: 100%;
	overflow-x: auto;
}

.wilfam-course-table .wilfam-course-table__grid {
	width: 100%;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	background: #fff;
	color: inherit;
}

.wilfam-course-table--2 .wilfam-course-table__subject-col {
	width: 82%;
}

.wilfam-course-table--2 .wilfam-course-table__hours-col {
	width: 18%;
}

.wilfam-course-table--3 .wilfam-course-table__subject-col {
	width: 55%;
}

.wilfam-course-table--3 .wilfam-course-table__hours-col {
	width: 22.5%;
}

.wilfam-course-table--4 .wilfam-course-table__subject-col {
	width: 52%;
}

.wilfam-course-table--4 .wilfam-course-table__hours-col {
	width: 16%;
}

.wilfam-course-table .wilfam-course-table__grid th,
.wilfam-course-table .wilfam-course-table__grid td {
	padding: 13px 22px;
	border: 0;
	border-bottom: 2px solid var(--wilfam-course-color);
	background: transparent;
	color: inherit;
	font-size: 20px;
	line-height: 1.35;
	vertical-align: middle;
}

.wilfam-course-table .wilfam-course-table__grid th:first-child {
	padding-left: 28px;
	text-align: left;
}

.wilfam-course-table .wilfam-course-table__grid thead th {
	font-weight: 700;
}

.wilfam-course-table .wilfam-course-table__grid thead th:not(:first-child),
.wilfam-course-table .wilfam-course-table__grid tbody td,
.wilfam-course-table .wilfam-course-table__grid tfoot td {
	text-align: center;
}

.wilfam-course-table .wilfam-course-table__grid tbody th {
	font-weight: 400;
}

.wilfam-course-table .wilfam-course-table__grid tbody td {
	font-weight: 700;
}

.wilfam-course-table .wilfam-course-table__grid tbody .wilfam-course-table__section-row > th,
.wilfam-course-table .wilfam-course-table__grid tbody .wilfam-course-table__section-row > td {
	background: var(--wilfam-course-section-color);
	color: #fff;
	font-weight: 700;
	border-top: 2px solid var(--wilfam-course-section-color);
	border-bottom: 2px solid var(--wilfam-course-section-color);
}

.wilfam-course-table--3 .wilfam-course-table__grid tr > :last-child,
.wilfam-course-table--4 .wilfam-course-table__grid tr > :nth-child(n+3) {
	border-left: 2px solid var(--wilfam-course-color);
}

.wilfam-course-table--3 .wilfam-course-table__grid tbody .wilfam-course-table__section-row > :last-child,
.wilfam-course-table--4 .wilfam-course-table__grid tbody .wilfam-course-table__section-row > :nth-child(n+3) {
	border-left: 0;
}

.wilfam-course-table .wilfam-course-table__grid tbody tr:has(+ .wilfam-course-table__section-row) > th,
.wilfam-course-table .wilfam-course-table__grid tbody tr:has(+ .wilfam-course-table__section-row) > td {
	border-bottom-color: var(--wilfam-course-section-color);
}

.wilfam-course-table .wilfam-course-table__grid tfoot th,
.wilfam-course-table .wilfam-course-table__grid tfoot td {
	border-bottom: 0;
	background: var(--wilfam-course-color);
	color: #fff;
	font-weight: 700;
	font-size: 25px;
}

.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-row th > span,
.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-row td > span {
	display: block;
	min-height: 1.35em;
}

.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-or {
	font-weight: 700;
}

.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-spacer,
.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-value--empty {
	visibility: hidden;
}

.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-mobile-label {
	display: none;
}

@media (max-width: 767px) {
	.wilfam-course-table {
		margin-bottom: 26px;
		border-radius: 17px;
	}

	.wilfam-course-table__title {
		padding: 17px 20px;
	}

	.wilfam-course-table__scroll {
		overflow-x: visible;
	}

	.wilfam-course-table .wilfam-course-table__grid,
	.wilfam-course-table .wilfam-course-table__grid tbody,
	.wilfam-course-table .wilfam-course-table__grid tfoot,
	.wilfam-course-table .wilfam-course-table__grid tr {
		display: block;
		width: 100%;
		min-width: 0;
	}

	.wilfam-course-table .wilfam-course-table__grid colgroup {
		display: none;
	}

	.wilfam-course-table .wilfam-course-table__grid thead {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		white-space: nowrap;
	}

	.wilfam-course-table .wilfam-course-table__grid tbody tr {
		border-bottom: 2px solid var(--wilfam-course-color);
	}

	.wilfam-course-table .wilfam-course-table__grid tbody tr:has(+ .wilfam-course-table__section-row) {
		border-bottom-color: var(--wilfam-course-section-color);
	}

	.wilfam-course-table .wilfam-course-table__grid th,
	.wilfam-course-table .wilfam-course-table__grid td {
		box-sizing: border-box;
		width: 100%;
		padding: 15px 12px;
		border: 0;
		text-align: left;
		overflow-wrap: anywhere;
	}

	.wilfam-course-table .wilfam-course-table__grid th:first-child {
		padding-left: 20px;
	}

	.wilfam-course-table .wilfam-course-table__grid tbody td,
	.wilfam-course-table .wilfam-course-table__grid tfoot td {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 16px;
		padding: 5px 20px 12px;
		text-align: right;
	}

	.wilfam-course-table .wilfam-course-table__grid tbody td:empty,
	.wilfam-course-table .wilfam-course-table__grid tfoot td:empty {
		display: none;
	}

	.wilfam-course-table .wilfam-course-table__grid tbody td::before,
	.wilfam-course-table .wilfam-course-table__grid tfoot td::before {
		content: attr(data-label);
		font-size: 16px;
		font-weight: 400;
		text-align: left;
	}

	.wilfam-course-table--3 .wilfam-course-table__grid tr > :last-child,
	.wilfam-course-table--4 .wilfam-course-table__grid tr > :nth-child(n+3) {
		border-left: 0;
	}

	.wilfam-course-table .wilfam-course-table__grid tfoot th,
	.wilfam-course-table .wilfam-course-table__grid tfoot td {
		background: var(--wilfam-course-color);
	}

	.wilfam-course-table .wilfam-course-table__grid tbody .wilfam-course-table__choice-row > th {
		display: none;
	}

	.wilfam-course-table .wilfam-course-table__grid tbody .wilfam-course-table__choice-row > td {
		display: block;
		text-align: left;
	}

	.wilfam-course-table .wilfam-course-table__grid tbody .wilfam-course-table__choice-row > td + td {
		border-top: 2px solid var(--wilfam-course-color);
	}

	.wilfam-course-table .wilfam-course-table__grid tbody .wilfam-course-table__choice-row > td::before {
		display: block;
		margin-bottom: 5px;
		font-weight: 700;
	}

	.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-row td > .wilfam-course-table__choice-value {
		display: flex;
		justify-content: space-between;
		gap: 16px;
		visibility: visible;
	}

	.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-row td > .wilfam-course-table__choice-value--empty,
	.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-row td > .wilfam-course-table__choice-spacer--empty {
		display: none;
	}

	.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-row td > .wilfam-course-table__choice-spacer:not(.wilfam-course-table__choice-spacer--empty) {
		visibility: visible;
		text-align: left;
	}

	.wilfam-course-table .wilfam-course-table__grid .wilfam-course-table__choice-row .wilfam-course-table__choice-mobile-label {
		display: inline;
		font-weight: 400;
	}
}
