/* ==========================================================================
   Weekly booking cards
   ========================================================================== */

.tutorhelper-calendar-day__bookings {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.tutorhelper-calendar-booking {
	--tutorhelper-booking-colour: #328bb8;

	position: relative;
	display: flex;
	flex-direction: column;
	gap: 7px;
	padding: 11px 12px 11px 15px;
	overflow: hidden;
	background: #fff;
	background:
		color-mix(
			in srgb,
			var(--tutorhelper-booking-colour) 8%,
			#fff
		);
	border: 1px solid rgba(19, 57, 73, 0.14);
	border: 1px solid
		color-mix(
			in srgb,
			var(--tutorhelper-booking-colour) 30%,
			transparent
		);
	border-left: 5px solid
		var(--tutorhelper-booking-colour);
	border-radius: 10px;
	box-shadow: 0 2px 7px rgba(19, 57, 73, 0.07);
	color: inherit;
	text-decoration: none;
	cursor: pointer;
	transition:
		transform 140ms ease,
		box-shadow 140ms ease,
		background-color 140ms ease,
		border-color 140ms ease;

}

.tutorhelper-calendar-booking:hover,
.tutorhelper-calendar-booking:focus-visible {
	transform: translateY(-1px);
	color: inherit;
	text-decoration: none;
	background: #fff;
	background:
		color-mix(
			in srgb,
			var(--tutorhelper-booking-colour) 13%,
			#fff
		);
	border-color: rgba(19, 57, 73, 0.22);
	border-color:
		color-mix(
			in srgb,
			var(--tutorhelper-booking-colour) 44%,
			transparent
		);
	box-shadow: 0 6px 16px rgba(19, 57, 73, 0.14);
}

.tutorhelper-calendar-booking:focus {
	outline: none;
}

.tutorhelper-calendar-booking:focus-visible {
	outline: 3px solid
		var(
			--tutorhelper-blue,
			#328bb8
		);
	outline-offset: 3px;
}


.tutorhelper-calendar-booking__header {
	display: flex;
	align-items: flex-start;
	flex-direction: column;
	gap: 5px;
}

.tutorhelper-calendar-booking__status {
	align-self: flex-start;
}

.tutorhelper-calendar-booking__time {
	color: var(--tutorhelper-dark);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.35;
}

.tutorhelper-calendar-booking__status {
	display: inline-flex;
	align-items: center;
	min-height: 20px;
	padding: 2px 7px;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: 0.035em;
	border-radius: 999px;
}

.tutorhelper-calendar-booking__status.is-confirmed {
	color: #116329;
	background: #dff3e4;
}

.tutorhelper-calendar-booking__status.is-unconfirmed {
	color: #7a4f00;
	background: #fff1c7;
}

.tutorhelper-calendar-booking__student {
	color: var(--tutorhelper-dark);
	font-size: 13px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	word-break: normal;
}

.tutorhelper-calendar-booking__type {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	color: #45636f;
	font-size: 12px;
	line-height: 1.4;
	overflow-wrap: anywhere;
	word-break: normal;
}


.tutorhelper-calendar-booking__type-dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	margin-top: 4px;
	background: var(--tutorhelper-booking-colour);
	border-radius: 50%;
}

.tutorhelper-calendar-booking__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 12px;
	padding-top: 2px;
	color: #55717c;
	font-size: 11px;
}

.tutorhelper-calendar-booking__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.tutorhelper-calendar-booking__meta .dashicons {
	width: 14px;
	height: 14px;
	font-size: 14px;
	line-height: 1;
}

.tutorhelper-calendar-booking__edit-cue {
	margin-left: auto;
	font-weight: 700;
	opacity: 0.72;
}

.tutorhelper-calendar-booking:hover
.tutorhelper-calendar-booking__edit-cue,
.tutorhelper-calendar-booking:focus-visible
.tutorhelper-calendar-booking__edit-cue {
	opacity: 1;
}


/* ==========================================================================
   Collapsible calendar side panel
   ========================================================================== */

.tutorhelper-calendar-sidebar-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	gap: 5px;
	min-height: 46px !important;
	padding: 0 18px !important;
	color: var(--tutorhelper-dark) !important;
	font-weight: 700 !important;
	white-space: nowrap;
	background: #fff !important;
	border: 1px solid rgba(19, 57, 73, 0.24) !important;
	border-radius: 999px !important;
	box-shadow: 0 2px 5px rgba(19, 57, 73, 0.06);
}

.tutorhelper-calendar-sidebar-toggle .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
	line-height: 1;
	transition: transform 160ms ease;
}

.tutorhelper-booking-hub__layout {
	transition: grid-template-columns 180ms ease;
}

.tutorhelper-booking-hub__calendar-area {
	min-width: 0;
}

.tutorhelper-booking-hub__sidebar {
	overflow: visible;
	opacity: 1;
	transition:
		opacity 140ms ease,
		visibility 0s linear 0s;
}

.tutorhelper-booking-hub__layout.is-sidebar-collapsed {
	grid-template-columns: minmax(0, 1fr);
}

.tutorhelper-booking-hub__layout.is-sidebar-collapsed
.tutorhelper-booking-hub__sidebar {
	display: none;
}

.tutorhelper-calendar-sidebar-toggle[aria-expanded="false"]
[data-calendar-sidebar-toggle-icon] {
	transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
	.tutorhelper-booking-hub__layout,
	.tutorhelper-calendar-sidebar-toggle .dashicons,
	.tutorhelper-calendar-booking {
		transition: none;
	}

	.tutorhelper-calendar-booking:hover,
	.tutorhelper-calendar-booking:focus-visible {
		transform: none;
	}
}


@media screen and (max-width: 1100px) {
	.tutorhelper-booking-hub__display-controls {
		align-items: stretch;
		width: 100%;
		margin-left: 0;
	}

	.tutorhelper-booking-hub__display-controls-row {
		justify-content: space-between;
		width: 100%;
	}

	.tutorhelper-calendar-sidebar-toggle {
		align-self: flex-end;
	}
}

@media screen and (max-width: 782px) {
	.tutorhelper-booking-hub__display-controls-row {
		align-items: stretch;
		flex-direction: column;
	}

	.tutorhelper-calendar-sidebar-toggle {
		align-self: stretch;
		width: 100%;
	}
}

/* ==========================================================================
   Calendar toolbar display controls
   ========================================================================== */

.tutorhelper-booking-hub__display-controls {
	display: flex;
	align-items: flex-end;
	flex-direction: column;
	gap: 10px;
	margin-left: auto;
}

.tutorhelper-booking-hub__display-controls-row {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 12px;
}

.tutorhelper-calendar-sidebar-toggle {
	align-self: flex-end;
	min-height: 46px;
	padding: 0 18px;
	color: var(--tutorhelper-dark);
	font-weight: 700;
	background: #fff;
	border: 1px solid rgba(19, 57, 73, 0.24);
	border-radius: 999px;
	box-shadow: 0 2px 5px rgba(19, 57, 73, 0.06);
}

.tutorhelper-calendar-sidebar-toggle:hover,
.tutorhelper-calendar-sidebar-toggle:focus {
	color: var(--tutorhelper-dark);
	background: #f8fbfc;
	border-color: rgba(19, 57, 73, 0.4);
}

.tutorhelper-calendar-sidebar-toggle:focus {
	box-shadow:
		0 0 0 1px #fff,
		0 0 0 3px var(--tutorhelper-blue, #328bb8);
}


/* ==========================================================================
   Monthly compact booking indicators
   ========================================================================== */

.tutorhelper-month-bookings {
	display: flex;
	flex-direction: column;
	gap: 5px;
	width: 100%;
	margin-top: 6px;
}

.tutorhelper-month-booking {
	--tutorhelper-booking-colour: #328bb8;

	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	align-items: center;
	gap: 6px;
	min-width: 0;
	padding: 5px 7px;
	color: var(--tutorhelper-dark);
	font-size: 11px;
	line-height: 1.25;
	text-decoration: none;
	background: #fff;
	background:
		color-mix(
			in srgb,
			var(--tutorhelper-booking-colour) 9%,
			#fff
		);
	border: 1px solid rgba(19, 57, 73, 0.14);
	border-left: 4px solid
		var(--tutorhelper-booking-colour);
	border-radius: 6px;
	transition:
		transform 120ms ease,
		box-shadow 120ms ease,
		background-color 120ms ease;
}

.tutorhelper-month-booking.is-unconfirmed {
	border-style: dashed;
	border-left-style: solid;
}

.tutorhelper-month-booking:hover,
.tutorhelper-month-booking:focus-visible {
	transform: translateY(-1px);
	color: var(--tutorhelper-dark);
	text-decoration: none;
	background: #fff;
	background:
		color-mix(
			in srgb,
			var(--tutorhelper-booking-colour) 15%,
			#fff
		);
	box-shadow: 0 4px 10px rgba(19, 57, 73, 0.13);
}

.tutorhelper-month-booking:focus {
	outline: none;
}

.tutorhelper-month-booking:focus-visible {
	outline: 3px solid
		var(
			--tutorhelper-blue,
			#328bb8
		);
	outline-offset: 2px;
}

.tutorhelper-month-booking__time {
	font-weight: 700;
	white-space: nowrap;
}

.tutorhelper-month-booking__student {
	min-width: 0;
	overflow: hidden;
	font-weight: 600;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tutorhelper-month-bookings__more {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	padding: 2px 4px;
	color: #45636f;
	font-size: 11px;
	font-weight: 700;
	text-decoration: none;
	border-radius: 4px;
}

.tutorhelper-month-bookings__more:hover,
.tutorhelper-month-bookings__more:focus-visible {
	color: var(
		--tutorhelper-blue,
		#328bb8
	);
	text-decoration: underline;
}

.tutorhelper-month-day__content {
	min-width: 0;
}

.tutorhelper-month-calendar__grid
.tutorhelper-calendar-day {
	min-width: 0;
}

.is-outside-month
.tutorhelper-month-booking {
	opacity: 0.72;
}

.is-outside-month
.tutorhelper-month-booking:hover,
.is-outside-month
.tutorhelper-month-booking:focus-visible {
	opacity: 1;
}


@media (prefers-reduced-motion: reduce) {
	.tutorhelper-booking-hub__layout,
	.tutorhelper-calendar-sidebar-toggle .dashicons,
	.tutorhelper-calendar-booking,
	.tutorhelper-month-booking {
		transition: none;
	}

	.tutorhelper-calendar-booking:hover,
	.tutorhelper-calendar-booking:focus-visible,
	.tutorhelper-month-booking:hover,
	.tutorhelper-month-booking:focus-visible {
		transform: none;
	}
}


.tutorhelper-calendar-booking.is-cancelled {
	--tutorhelper-booking-colour: #8c8f94;
	opacity: 0.72;
}

.tutorhelper-calendar-booking__status.is-cancelled {
	background: #f0f0f1;
	color: #646970;
}

.tutorhelper-calendar-booking__cancellation {
	display: block;
	margin-top: 6px;
	color: #646970;
	font-size: 11px;
	font-weight: 700;
}

.tutorhelper-calendar-booking__cancellation-reason {
	display: block;
	margin-top: 3px;
	padding: 5px 7px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.72);
	color: #50575e;
	font-size: 11px;
	line-height: 1.35;
}

.tutorhelper-calendar-booking.is-cancelled {
	cursor: default;
}





