.zpt-weekly-schedule {
	--zpt-border: #e5e7eb;
	--zpt-heading: #540102;
	width: 100%;
	overflow-x: auto;
}

.zpt-weekly-schedule__table {
	width: 100%;
	min-width: 760px;
	border-collapse: collapse;
	table-layout: fixed;
}

.zpt-weekly-schedule__table th {
	padding: 12px 10px;
	background: var(--zpt-heading);
	color: #fff;
	font-weight: 700;
	text-align: center;
}

.zpt-weekly-schedule__time-heading,
.zpt-weekly-schedule__row-time {
	width: 112px;
}

.zpt-weekly-schedule__row-time {
	padding: 10px;
	border: 1px solid var(--zpt-border);
	background: #f7f7f7;
	color: #111827;
	font-weight: 700;
	text-align: center;
	vertical-align: middle;
}

.zpt-weekly-schedule__table td {
	padding: 5px;
	border: 1px solid var(--zpt-border);
	vertical-align: top;
}

.zpt-weekly-schedule__event {
	display: flex;
	min-height: 115px;
	margin-bottom: 10px;
	padding: 16px 10px;
	box-sizing: border-box;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 5px;
	background: var(--zpt-course-color);
	color: #fff !important;
	text-align: center;
	text-decoration: none !important;
	transition: filter .2s ease, transform .2s ease;
}

/* A half-hour start is centered on the boundary between the surrounding hour rows. */
@media (min-width: 768px) {
	.zpt-weekly-schedule__table .zpt-weekly-schedule__event.is-minute-offset {
		position: relative;
		z-index: 2;
		transform: translateY(50%);
	}
}

.zpt-weekly-schedule__event:last-child { margin-bottom: 0; }
.zpt-weekly-schedule__event:hover,
.zpt-weekly-schedule__event:focus-visible { filter: brightness(.92); transform: translateY(-1px); }
.zpt-weekly-schedule__event strong { font-size: 14px; line-height: 1.3; }
.zpt-weekly-schedule__event span { font-size: 13px; line-height: 1.35; }
.zpt-weekly-schedule__card-time { font-weight: 700; }
.zpt-weekly-schedule__empty { display: block; min-height: 115px; }

.zpt-weekly-schedule__mobile { display: none; }

@media (max-width: 767px) {
	.zpt-weekly-schedule { overflow: visible; }
	.zpt-weekly-schedule__table { display: none; }
	.zpt-weekly-schedule__mobile { display: block; }
	.zpt-weekly-schedule__mobile-day {
		margin: 0 0 14px;
		border: 1px solid var(--zpt-border);
		background: #fff;
	}
	.zpt-weekly-schedule__mobile-day h3 {
		margin: 0;
		padding: 11px 14px;
		background: var(--zpt-heading);
		color: #fff;
		font-size: 17px;
		line-height: 1.3;
	}
	.zpt-weekly-schedule__mobile-event {
		display: grid;
		grid-template-columns: 92px minmax(0, 1fr);
		align-items: center;
		gap: 12px;
		margin: 10px;
		padding: 14px;
		background: var(--zpt-course-color);
		color: #fff !important;
		text-decoration: none !important;
	}
	.zpt-weekly-schedule__mobile-event.is-time-hidden { grid-template-columns: minmax(0, 1fr); }
	.zpt-weekly-schedule__mobile-time {
		font-size: 13px;
		line-height: 1.35;
	}
	.zpt-weekly-schedule__mobile-course,
	.zpt-weekly-schedule__mobile-course strong,
	.zpt-weekly-schedule__mobile-course span { display: block; }
	.zpt-weekly-schedule__mobile-course strong { font-size: 15px; line-height: 1.3; }
	.zpt-weekly-schedule__mobile-course span { margin-top: 3px; font-size: 13px; line-height: 1.35; }
	.zpt-weekly-schedule__mobile-empty {
		margin: 0;
		padding: 15px 14px;
		color: #6b7280;
	}
}
