 body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #96a9bf;

    margin: 0;
}

.calendar-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    width: 100%;
	border: 1px solid #e2e8f0;
    box-sizing: border-box;
    /* Lets the chips below react to the card's real width, not the window. */
    container-type: inline-size;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-header h2 {
    margin: 0;
    font-size: 1.4rem;
    color: #333;
}
.active-date { 
  color: #2f6b4f;
  background: #f2f8f4;
  box-shadow: inset 0 0 0 2px #5b8c6a;
}


.nav-btn {
    text-decoration: none;
    color: #0056b3;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    background: #e9f2ff;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: #cce3ff;
}

.calendar-table {
    width: 100%;
    min-width: 0;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar-table th {
    padding: 10px 0;
    color: #666; 
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
}

.calendar-table td {
    width: 14.28%;
    height: 100px;
    text-align: center;
    vertical-align: top;
    position: relative;
    border: 1px solid #dde2e9;
}

/* Key for the four badge types that appear in the day cells */
.calendar_legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 0;
    padding: 10px 14px 12px;
    border-top: 1px solid #e3e8ee;
    font-size: 0.75rem;
    color: #3c4653;
}

.calendar_legend .legend_item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.calendar_legend .legend_dot {
    width: 11px;
    height: 11px;
    border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.45);
}

.calendar_legend .legend_order { background: #4a6699; border: 1px solid #3d567f; }
.calendar_legend .legend_sub { background: #4a6699; border: 1px solid #3d567f; }
.calendar_legend .legend_future { background: #bcdcca; border: 1px solid #a4cdb6; }
.calendar_legend .legend_past { background: #d7dde5; border: 1px solid #c3ccd7; }

/* Legend sample of the day-cell badge that counts open lesson slots. */
.calendar_legend .legend_badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e9f3ed;
    border: 1px solid #d3e5da;
    color: #2f6b4f;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.day-number {
    font-size: 1rem;
    color: #333;
    font-weight: 500;
}

/* Weekend & Empty cell specific colors */
.calendar-table th.sun, .calendar-table td.sun {
    color: #0056b3;
}

.calendar-table th.sat, .calendar-table td.sat {
    color: #0056b3;
}

.calendar-table td.empty {
    background-color: #fafafa;
}
	
	.calendar_welcome {
		display: flex;
		width: 95%;
		margin: auto;
		gap: 15px;
		padding-top:20px;
	}

	.calendar_tz_note {
		margin: -4px 0 12px;
		color: #64748b;
		font-size: 12px;
		font-weight: 600;
	}

	.status_banner {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 14px;
		width: auto;
		margin: 0 12px 18px;
		padding: 18px 22px;
		border: 1px solid;
		border-left-width: 4px;
		border-radius: 12px;
		box-sizing: border-box;
	}

	/* The banner has its own slot in the right column: span the full width. */
	.calendar_right_status .status_banner {
		margin-left: 0;
		margin-right: 0;
	}

	.status_banner__text {
		font-size: 14px;
		line-height: 1.6;
	}

	.status_banner__text p {
		margin: 10px 0 0;
	}

	.status_banner__text strong {
		display: block;
		margin-bottom: 3px;
		font-size: 15.5px;
	}

	.status_banner__actions {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.status_banner__text .status_banner__actions {
		margin-top: 10px;
	}

	.status_banner__actions .status_banner__action {
		display: block;
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	.status_banner__link {
		color: #2f6b4f;
		font-weight: 700;
		text-decoration: underline;
		text-underline-offset: 2px;
	}

	.status_banner__link:hover {
		color: #1f3d2b;
	}

	.status_banner__action {
		flex: 0 0 auto;
		padding: 9px 16px;
		background: #1f2430;
		border-radius: 9px;
		color: #fff;
		font-size: 14px;
		font-weight: 600;
		text-decoration: none;
		white-space: nowrap;
	}

	.status_banner__action:hover {
		background: #364152;
		color: #fff;
	}

	.status_banner--invite,
	.status_banner--success,
	.status_banner--info {
		background: #eef7f1;
		border-color: #cfe3d6;
		border-left-color: #5b8c6a;
	}

	.status_banner--invite .status_banner__text,
	.status_banner--success .status_banner__text,
	.status_banner--info .status_banner__text {
		color: #3f5f4c;
	}

	.status_banner--invite .status_banner__text strong,
	.status_banner--success .status_banner__text strong,
	.status_banner--info .status_banner__text strong {
		color: #1f3d2b;
	}

	.status_banner--warning {
		background: #fdf3f4;
		border-color: #f0c8cd;
		border-left-color: #cc858c;
	}

	.status_banner--warning .status_banner__text {
		color: #7a2f36;
	}

	.status_banner--warning .status_banner__text strong {
		color: #6b2129;
	}

	/* Trial lesson banners (before and after booking): light orange. */
	.status_banner--trial {
		background: #fdf3e7;
		border-color: #efdcc2;
		border-left-color: #e2b05c;
	}

	.status_banner--trial .status_banner__text {
		color: #7a4f12;
	}

	.status_banner--trial .status_banner__text strong {
		color: #6b4410;
	}

	.status_banner--complete {
		background: #fff8e6;
		border-color: #eadfc0;
		border-left-color: #d9a441;
	}

	.status_banner--complete .status_banner__text {
		color: #6b5320;
	}

	.status_banner--complete .status_banner__text strong {
		color: #57431a;
	}

	/* The banner lives in a narrow rail, or full-width once the page stacks.
	   Stacking the action keeps the copy readable in both cases. */
	.status_banner,
	.calendar_right .status_banner {
		flex-direction: column;
		align-items: stretch;
	}

	.status_banner__text {
		max-width: 62ch;
	}

	.status_banner__action {
		width: 100%;
		text-align: center;
		box-sizing: border-box;
	}

	.calendar_left {
		flex: 1.6;
		min-width: 0;
		
	}
	
	.remaining_bookings_calendar {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 14px;
	font-size: 15px;
	font-weight: 600;
	text-align: left;
	color: #1f2430;
}

.remaining_bookings_calendar #lessons_remaining_count {
	font-size: 20px;
	font-weight: 700;
	color: #2f6b4f;
	margin-left: 4px;
}

.calendar_right_content_container {
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: white;
	padding-top: 14px;
}

/* Desktop "Close" for the day panel, bottom-right of the card. */
.calendar_panel_footer {
    display: flex;
    justify-content: flex-end;
    padding: 4px 14px 14px;
}

.calendar_panel_footer[hidden] {
    display: none;
}

.calendar_panel_close {
    padding: 7px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    color: #33404f;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}

.calendar_panel_close:hover {
    background: #f4f7f9;
}

.calendar_panel_empty {
    margin: 0;
    padding: 26px 18px;
    color: #64748b;
    font-size: 14px;
    text-align: center;
}

@media only screen and (max-width: 800px) {
    /* Phones close the sheet from its header instead. */
    .calendar_panel_footer {
        display: none;
    }
}

	
	.calendar_right {
		flex: 1;
		min-width: 0;

	}
	.lessons_left {
	background:  #7893c4;
		font-size: 20px;
		color: white;
		
	}
	.extra_info {
	display: block;
	border:2px solid red;
	border-radius: 10px;
	width: 80%;
	margin: 20px auto ;
	padding: 10px;
	text-align: left;
	color: black;
	
}
	
	table.calendar_table  {
		
		border-collapse:collapse;
		border:2px solid black;
		font-family: Verdana;
		font-size:12px;
		width: 100%;
	}
	
	table.calendar_table tr{
		background-color:#6683b3;
		padding: 10px;
		height:32px;
	}
	
	table.calendar_table td {
		padding: 0;
	    border: 2px solid black;
		width:14.28%;
		text-align:center;
		 vertical-align: top;
	}

	
	
	td.bg-yellow {
		padding: 5px;
		background: #87abe8;
		height:25px;
		font-weight: bold;
		font-size: 18px;
	}
	td.bg-red {
		
		padding: 5px;
		background: #87abe8;
		height:25px;
		font-weight: bold;
		font-size: 18px;
		color: #b53f4d;

	}
	
	.no_date {
		border-right: none;
		background:  #dfe7f5;
	}
	
.trial_lesson, .added_lessons {

	text-align: left;
	margin:  auto 1px auto;
	padding: 0;
	color: black;	
	font-size: 9px;
	width:85%;
	border-radius: 3px;
	border:1px solid black;
	background: white;
}
.future_lesson {
		border: 1px solid black;
		background: #6ca376;
		color: white;
		
}
.future_lesson:hover {
		
		background: blue;
		
}
.past_lesson {
	border: 1px solid grey;
	
}

.test_box {
	width: 200px;
	height: 200px;
	
	
	
}

.test_box:hover{
	background: blue;
}

.today_highlight {
	
	border: 4px solid black;
	position: relative;
	
	min-height: 60px;

}
.trial_lesson {
	border:1px solid black;

}
 .added_lessons {
	border: 1px solid #fa9da7;
	
} .past_date {
	background: #e3e4e6;
	height: 60px;
	overflow: auto;
}
	.past_date_day {
	background: #e3e4e6;
	
} 

.display_lesson_results {
    padding: 40px;
	margin: auto;
	background: white;

}
.display_lesson_results_border {
	border: 2px solid black;
	
}
.calendar_notification {
	
	color: #c62828;
	font-size: 18px;
	margin: auto;
	width: 90%;
	padding: 20px;
text-align: left;
}

/* ---- day-cell chips: past / future lessons, orders, subscriptions ---- */
.calendar_button_past,
.calendar_button_future,
.calendar_button_live,
.calendar_button,
.calendar_button_subscription,
.calendar_button_trial {
    display: block;
    box-sizing: border-box;
    width: calc(100% - 8px);
    max-width: 100%;
    margin: 0 auto;
    padding: 3px 6px;
    border: 1px solid transparent;
    border-radius: 7px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

/* Chips carry a long and a short label. Narrow day cells show the short one
   so the time is never cut off to "09:00 …". */
.chip__short {
    display: none;
}

@media only screen and (max-width: 700px) {
    .chip__sep,
    .chip__teacher,
    .chip__long {
        display: none;
    }

    .chip__short {
        display: inline;
    }
}

/* Same rule keyed to the calendar card's real width, so a narrow rail on a
   wide screen also drops the teacher name instead of truncating the time. */
@container (max-width: 700px) {
    .chip__sep,
    .chip__teacher,
    .chip__long {
        display: none;
    }

    .chip__short {
        display: inline;
    }
}

/* The labels are single-line now, so drop the old <br>. */
.calendar_button_past br,
.calendar_button_future br {
    display: none;
}

.calendar_button_past:focus-visible,
.calendar_button_future:focus-visible,
.calendar_button_live:focus-visible,
.calendar_button:focus-visible,
.calendar_button_subscription:focus-visible {
    outline: 2px solid #5b8c6a;
    outline-offset: 1px;
}

/* Older lessons: quiet and out of the way. Chips are labels now, so no
   hover state — the day cell underneath carries the hover. */
.calendar_button_past,
.past_lesson_box {
    background: #eef1f5;
    border-color: #e0e5ea;
    color: #66707e;
}

/* Upcoming lessons: the site green */
.calendar_button_future,
.future_lesson_box {
    background: #e9f3ed;
    border-color: #d3e5da;
    color: #2f6b4f;
}

/* The lesson that is happening right now. Same box as the other chips —
   only the colour and the corner dot mark it out. */
.calendar_button_live {
    background: #ffc7c7;
    border-color: #ef9a9a;
    color: #961a1a;
    font-weight: 700;
}

/* Inline dot, like a status light before the time. */
.calendar_button_live::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: #e03131;
    vertical-align: middle;
    animation: calendar_live_pulse 1.4s ease-in-out infinite;
}

@keyframes calendar_live_pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.85);
    }

    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Orders (same colour as the subscription chip / right-hand box).
   Chips are labels; the day cell carries the click. */
.calendar_button,
.get_order {
    background: #4a6699;
    border-color: #4a6699;
    color: #fff;
}

/* Subscriptions */
.calendar_button_subscription,
.get_subscription {
    background: #4a6699;
    border-color: #4a6699;
    color: #fff;
}

.calendar_button_subscription:hover {
    background: #3d567f;
    border-color: #3d567f;
}

/* Trial order chip keeps its compact, emphasised label */
.calendar_button_trial {
    font-weight: 700;
    letter-spacing: 0.01em;
    /* The label is two words; let it wrap instead of ending in "Trial l…" */
    white-space: normal;
    line-height: 1.3;
}

.lesson_info {
border: 1px solid black;	
		width: 90%;
	margin: 5px auto 0px auto;
}


.lesson_detail_content {
	padding: 10px;	

	
}

.next_lesson {
	
	background: #a5c9af;
}

.future_date {
	
		position: relative;
		height: 40px;
		overflow: auto;

	}
	.plus_container {

		padding-top: 3px;
		width: 100%;
		bottom: 0;
	} .plus_button {
		background: white;

		border: none;
		width: 100%;
		margin-bottom: 2px;
		margin-top: 1px;
		color: #9c3730;
		height: 25px;
		font-size: 14px;
	} .plus_button:hover {
		
		border: 1px solid #828583;
		color: #828583;
		background: #c8c9cc;
		cursor: pointer;
	}
	.gozoomalink {
		text-decoration: none;
		
	}
	.gozoom {
		
		border: 1px solid black;
		background: #2d8cff;
		color: white;
		margin: auto;
		width: 250px;
		padding: 10px;
		
		text-align: center;
	}
	
	
	
#display_subscription {
  width: 100%;
  padding: 50px 0;
  text-align: center;
  background-color: lightblue;
  margin-top: 20px;
  display: none;
}
.someonebooked, .no_lesson_available {
	
	 height: 28px;

	 display: flex;
	 justify-content: center;
  align-items: center;
background: #ededeb;
	color: #a3a3a0;
	
}
.someonebooked {
	
	background: #d6d6d4;
	
	
}

.canbook {
	
	 background: #a5c9af; 
	 width: 100%;
	  height: 28px;
	 padding:0;
	 margin:0;
}
	.cursor {
	border: 0;
		 width: 100%;
	 height: 27px;
	background: none;
	color: inherit;
margin: 0;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
	}
	
	
	.canbook:hover {
		
	 background: #74a381;
		
	}

.message {
	background: white;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	padding: 15px;
	width: 60%;
	
} .month_link {
	
	color: white;
	font-size: 16px;
	
	
} .month_link a:link, .month_link a:visited {
	
	color: white;
	text-decoration: none;
	
} .month_link a:hover {
	
	color: white;
	text-decoration: underline;
}
#left {
	text-align: left;
	padding-left: 20px;
}
#right {
	text-align: right;
	padding-right: 20px;
}
#center {
	text-align: center;
	font-size: 20px;
}

.day {
	font-size: 16px;
	font-weight: bold;
	padding-top: 5px;
}
.add_lesson_container {
	
	position: relative;
	width: 100%;
	bottom: 0;
	margin-bottom: 0px;
	background: white;

	min-height:19px;
}

.calendar_container_day {
		border: 1px solid #dde2e9;
		height: 100%;
}

.calendar_day_container_past, .calendar_day_container, .calendar_day_container_today {
width: 100%;
	  height: auto;
    min-height: 100%;
	 font-size: 1rem;
    font-weight: 500;
    /* Left-anchored numbers leave the top-right corner free for the
       "lessons available" badge, so the two never overlap. */
    text-align: left;
    padding-left: 7px;
}


 
/* Day cells are clickable. The hover tint lives at the end of this file,
   after the per-state backgrounds, so it wins over them. */
.calendar_day_container:hover,
.calendar_day_container_today:hover,
.calendar_day_container_past:hover {
	cursor: pointer;
}

/* Today keeps a light red tint so it stays findable while browsing other days.
   When it is the selected day, the green selection style wins. */
.calendar_day_container_today {
  background: #fdf0f0;
}

.calendar_day_container_today.active-date {
  background: #f2f8f4;
}

 

 


	.calendar_day_container_past {
      background-color: #f3f5f8;
    }





.calendar_day_container_future, .calendar_day_container_past, .calendar_day_container_selected,  .calendar_day_container_today {
      position: relative;
      width: 100%;
	  height: auto;
      min-height: 100%;
}
    .calendar_content_container {
	
		background: #f3f5f8;
	
	
	
    }
	.calendar_day_container {
	padding-bottom: 5px;
	background: white;
	}
	
	

	.calendar_day_container_selected, .calendar_details_big, .calendar_details_small  {
     
	   
	   
    }
	.calendar_day_container_today {
      
	  
    }

    .calendar_linkability{
     border: 2px solid black; 
     width: 90%;
      cursor: pointer;
      margin: auto;
	  background: white;
	  font-size: 20px;
	  padding: 0;
    
    }
	


	.redborder { 
		
		border: 2px solid red; 
	
	}

.calendar_content {

	overflow: auto;
	height: 100px;
	text-align: left;
	position: relative;
}
.add_lesson_blank {

	height: 32px;

	
}
 
.calendar_details_big { 

	
	
}
.past, .order, .subscription, .future {
	width: 100%;
	margin: 2px 0;
	background: transparent;
}
	.notification {
		 top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
  display: flex; /* Use flexbox for easy centering */
  justify-content: center; /* Horizontally center content */
  align-items: center; /* Vertically center content */
  z-index: 1000; /* Ensure it's on top of other content */
  visibility: hidden; /* Hidden by default */
  opacity: 0;
  transition: visibility 0s, opacity 0.3s ease; /* Smooth transition for appearance */

		
		
	}.red, .orange, .green {
		
	
	}
	
	.red {
		color: #c62828;
	
	}
	.green {
		color: green;
		
	}
	
	
	.orange {
		color: orange;
		
	}
	
	.calendar_select_date {
		
		border: 1px solid black;
		border-radius: 10px;
		padding: 10px; 
		margin: 10px;
		color: black;
	}
	.calendar_details_big {
		margin: auto;
	
	}
	.notificationsformobile {
		display: none;
		
	}
	
	
	
	@media only screen and (max-width: 800px)
	{
	
	.notificationsformobile {
		display: block;
		
		padding: 5px;
	}
	
	.calendar_details_big {
	width: 80%;
	position: fixed;
			background: white;
		 border: 2px solid black;
		 position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Optional: Ensures it stays on top of other content */
  z-index: 9999; 
  padding: 10px;
}


.calendar_welcome {
width: 100%;
	 flex-direction: column; /* Stacks columns vertically on smaller screens */
	margin: 0;
	padding: 0;
}

.calendar_left,
.calendar_right {
	flex: 0 0 auto;
	width: 100%;
	min-width: 0;
}

	/* Keep the wide month table inside the page: only the calendar card
	   scrolls sideways, instead of the whole page. */
	.calendar-container {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.calendar-table {
		min-width: 0;
	}

	.calendar-table th {
		padding: 8px 0;
		font-size: 0.8rem;
	}

	.calendar-table td {
		height: 76px;
	}

	.calendar_button_past,
	.calendar_button_future,
	.calendar_button_live,
	.calendar_button,
	.calendar_button_subscription,
	.calendar_button_trial {
		padding: 2px 4px;
		font-size: 9.5px;
	}

	
	.calendar_content  {
		max-height: 80px;
		
		}
	
	
	 .calendar_linkability{
     border: 1px solid black; 
     width: 90%;
      cursor: pointer;
      margin: auto;
	  background: white;
	  font-size: 12px;
	  padding: 0;
    
    }
	.calendar_linkability:hover {
     border-bottom: 1px solid red; 
     border-right: 1px solid red; 
    border-top: 1px solid red; 
    }
	
	.add_lesson_blank {

	height: 24px;

	
}

.red {
		border-left: 4px solid red;
	
	}
	.green {
		border-left: 4px solid green;
		
	}
	
	
	.orange {
		border-left: 4px solid orange;
		
	}




  
	.display_lesson_results_border   {
		background: white;
		 border: 2px solid black;
		 position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  /* Optional: Ensures it stays on top of other content */
  z-index: 9999; 
}
	.account_lessons	{
		margin-bottom: 0px;
	padding-bottom: 0px;
		 font-size: 15px;
	
	}
		.calendar_notification {
	
	color: blue;
	font-size: 16px;
	margin: auto;
	width: 90%;
text-align: left;
}

	}
	
	
	
/* Next subscription lesson delivery, under "Lessons remaining". */
.remaining_bookings_next {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.4;
}

/* Guests: trial invite + picked-slot confirmation */
.guest_trial_link {
    display: inline-block;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.guest_trial_link:hover {
    text-decoration: underline;
}

.trial_booked {
    margin: 0 0 8px;
    padding: 10px 12px;
    border: 1px solid #cfe3d6;
    border-radius: 10px;
    background: #eef7f1;
    color: #2f5c40;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

/* Available lesson times left on each day */
.day-slots {
    position: absolute;
    top: 3px;
    right: 4px;
    min-width: 15px;
    padding: 1px 5px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
    text-align: center;
    /* No pointer-events:none — the badge must be hoverable to show its tooltip.
       Clicks still bubble to the day cell, so it remains clickable. */
}

/* Instant tooltip: "11 lessons available" */
.day-slots::after {
    content: attr(data-tip);
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 6;
    padding: 4px 8px;
    border-radius: 6px;
    background: #0e2a3a;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease 0.1s, visibility 0s linear 0.22s;
    pointer-events: none;
}

.day-slots:hover::after,
.day-slots:focus-visible::after {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.12s ease 0.1s;
}

.day-slots--high,
.day-slots--low {
    background: #e9f3ed;
    border-color: #d3e5da;
    color: #2f6b4f;
}

/* Guest banner: the whole message links to registration. */
.status_banner__link {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---- mobile detail sheet -------------------------------------------
   Chips load into #contentDisplay, which sits below the calendar on
   phones. Surface that panel as a bottom sheet after a real tap. */
@media only screen and (max-width: 800px) {
    body.calendar_sheet_open {
        overflow: hidden;
    }

    /* No day loaded yet: the card around the day panel would be an empty box. */
    .calendar_right_content_container.is-empty {
        display: none;
    }

    /* "Lessons remaining" moves into the top bar on phones. */
    .links_container {
        position: relative;
    }

    .remaining_bookings_calendar.is-in-bar {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        margin: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #fff;
        font-size: 12.5px;
        font-weight: 700;
        white-space: nowrap;
    }

    .remaining_bookings_calendar.is-in-bar #lessons_remaining_count {
        margin-left: 3px;
        color: #a8d5bb;
        font-size: 14px;
    }

    .calendar_sheet_backdrop {
        position: fixed;
        inset: 0;
        z-index: 9998;
        background: rgba(9, 24, 35, 0.48);
    }

    #calendarSheet.calendar_sheet_open {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10000;
        display: flex;
        flex-direction: column;
        max-height: 82vh;
        background: #fff;
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.35);
    }

    #calendarSheetHeader {
        display: none;
        flex: 0 0 auto;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 16px;
        border-bottom: 1px solid #e3e8ee;
        border-radius: 16px 16px 0 0;
        background: #fff;
    }

    #calendarSheet.calendar_sheet_open #calendarSheetHeader {
        display: flex;
    }

    #calendarSheetHeader strong {
        font-size: 12px;
        font-weight: 700;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: #52606d;
    }

    #calendarSheetClose {
        padding: 6px 12px;
        border: 1px solid #d7dde5;
        border-radius: 8px;
        background: #fff;
        color: #1f2430;
        font-family: inherit;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
    }

    #calendarSheetClose:hover {
        background: #f4f7f9;
    }

    #calendarSheet.calendar_sheet_open #contentDisplay {
        flex: 1 1 auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;        padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    }
}

.status_banner__link:hover {
    text-decoration-thickness: 2px;
}

/* ---- phones: all seven days must fit without sideways scrolling ---- */
@media only screen and (max-width: 480px) {
    .calendar-header {
        padding: 0 8px;
    }

    .calendar_tz_note {
        padding: 0 8px;
    }

    .calendar-header h2 {
        font-size: 1.15rem;
    }

    .nav-btn {
        padding: 5px 8px;
        font-size: 0.82rem;
    }

    .calendar-table th {
        padding: 6px 0;
        font-size: 0.72rem;
    }

    .calendar-table td {
        height: 68px;
    }

    .calendar_day_container,
    .calendar_day_container_past,
    .calendar_day_container_today {
        font-size: 0.9rem;
    }

    .calendar_button_past,
    .calendar_button_future,
    .calendar_button_live,
    .calendar_button,
    .calendar_button_subscription,
    .calendar_button_trial {
        width: calc(100% - 4px);
        padding: 2px 4px;
        border-radius: 5px;
        font-size: 10px;
    }

    .day-slots {
        top: 2px;
        right: 2px;
        min-width: 13px;
        padding: 0 4px;
        font-size: 10px;
    }

    .calendar_legend {
        gap: 5px 12px;
        padding: 8px 10px;
        font-size: 0.7rem;
    }
}

/* ---- tablet / half-screen laptop -------------------------------------
   Between 800px and 1000px the two columns stayed side by side, which
   squeezed the right rail to ~290px: teacher cards wrapped one word per
   line and the time buttons were clipped. Stack the columns until the
   rail can be at least ~360px wide. */
@media only screen and (max-width: 1000px) {
    .calendar_welcome {
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding: 0 12px;
        box-sizing: border-box;
    }

    .calendar_left,
    .calendar_right {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }
}

/* ---- small phones (320px) -------------------------------------------
   Seven columns inside ~280px leave ~40px per day. Trim the chips and the
   badge so the time still fits and nothing overlaps the date number. */
@media only screen and (max-width: 360px) {
    .calendar-table td {
        height: 62px;
    }

    .calendar_day_container,
    .calendar_day_container_past,
    .calendar_day_container_today {
        padding-left: 4px;
        font-size: 0.8rem;
    }

    .calendar_button_past,
    .calendar_button_future,
    .calendar_button_live,
    .calendar_button,
    .calendar_button_subscription,
    .calendar_button_trial {
        padding: 1px 2px;
        border-radius: 4px;
        font-size: 9.5px;
    }

    .day-slots {
        top: 1px;
        right: 1px;
        min-width: 10px;
        padding: 0 2px;
        font-size: 9px;
    }
}

/* Mobile booking errors: keep the message on screen wherever the student is. */
.calendar_toast {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 10050;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 46px 13px 16px;
    background: #1f2430;
    border-left: 4px solid #b42318;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    animation: calendarToastIn 0.18s ease;
}

.calendar_toast[hidden] {
    display: none;
}

.calendar_toast__text {
    margin: 0;
}

.calendar_toast__close {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
}

.calendar_toast__close:hover {
    background: rgba(255, 255, 255, 0.12);
}

@keyframes calendarToastIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Post-checkout confirmation banner and processing state. */
.calendar_pay_notice {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 12px 16px;
    padding: 14px 18px;
    background: #eef7f1;
    border: 1px solid #bcdcca;
    border-left: 4px solid #2f6b4f;
    border-radius: 12px;
    color: #1f2b23;
    font-size: 14px;
    line-height: 1.5;
}

.calendar_pay_notice strong {
    font-weight: 700;
}

.calendar_pay_notice a {
    margin-left: 6px;
    color: #2f6b4f;
    font-weight: 700;
}

.calendar_pay_notice__spinner {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    border: 2px solid #bcdcca;
    border-top-color: #2f6b4f;
    border-radius: 50%;
    animation: calendarPaySpin 0.8s linear infinite;
}

@keyframes calendarPaySpin {
    to { transform: rotate(360deg); }
}

/* Subscription chips are labels now; the whole day cell is clickable. */
.calendar_button_subscription {
    cursor: default;
}

.calendar_button_subscription:hover {
    background: #4a6699;
    border-color: #4a6699;
}

/* ==========================================================================
   Day panel  ·  calendar/get_lessons_by_date_by_teacher.php
   Moved out of the AJAX response so the rules are downloaded and parsed once
   per visit instead of on every date click. Everything here is .glt_* and is
   used only by that panel.
   ========================================================================== */
.glt_page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 14px 14px 18px;
    color: #1f2430;
    font-family: inherit;
}

.glt_header {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.glt_header__eyebrow {
    margin-bottom: 4px;
    color: #e38227;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.glt_header__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #1f2430;
}

.glt_tz_note {
    margin: -10px 0 20px;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.glt_section {
    margin-bottom: 22px;
    padding: 4px 16px 10px;
    background: #f7f9fb;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.glt_section__title {
    margin: 0 0 14px;
    padding: 0;
    color: #1f2430;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* The booking section heading matches the date heading above it. */
.glt_section__title--lg {
    color: #1f2430;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
}

.glt_reserved {
    display: grid;
    gap: 12px;
}

/* The day's lesson cards stand on their own — no panel around them. */
.glt_reserved--bare {
    margin: 0 0 22px;
    padding: 14px 16px;
    background: #f7f9fb;
    border: 1px solid #eef2f7;
    border-radius: 12px;
}

.glt_lesson {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    background: #e9f3ed;
    border: 1px solid #d3e5da;
    border-left: 4px solid #5b8c6a;
    border-radius: 10px;
    color: #1f2430;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.glt_lesson__time {
    color: #132a3c;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
}

.glt_lesson__time span {
    margin: 0 4px;
    color: #94a3b8;
    font-weight: 400;
}

.glt_lesson__label {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Trial lessons get a green tag instead of the plain label. */
.glt_badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.5;
}

.glt_badge--trial {
    background: #dcece2;
    border: 1px solid #bcd8c7;
    color: #2f5c40;
}

/* Trial tag sits at the top-left of the card, above the time. */
.glt_lesson__top {
    flex: 1 1 100%;
    display: flex;
    justify-content: flex-start;
}

.glt_lesson__teacher {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 600;
}

.glt_auto_note {
    display: block;
    margin-top: 3px;
    color: #8a97a5;
    font-size: 11.5px;
    font-weight: 600;
}

.glt_lesson--past .glt_auto_note {
    color: #8a97a5;
}

.glt_lesson__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: auto;
}

/* Primary action reads as the "go" button on the card. */
.glt_lesson .glt_btn--primary {
    background: #2f6b4f;
    border: 1px solid #2f6b4f;
    color: #fff;
}

.glt_lesson .glt_btn--primary:hover {
    background: #3f6b4e;
    border-color: #3f6b4e;
}

.glt_lesson__action {
    margin: 0;
}

.glt_btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.glt_btn--primary {
    background: #1f2430;
    border-color: #1f2430;
    color: #fff;
}

.glt_btn--primary:hover {
    background: #364152;
    border-color: #364152;
}

.glt_btn--danger {
    background: #fff;
    border-color: #fecaca;
    color: #b91c1c;
}

.glt_btn--danger:hover:not(:disabled) {
    background: #fef2f2;
    border-color: #fca5a5;
}

.glt_btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Smaller secondary action, used for the cancel button */
.glt_btn--sm {
    padding: 6px 11px;
    font-size: 12.5px;
}

/* Messages inside a reserved lesson card */
.glt_alert {
    flex: 1 1 100%;
    margin: 0;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.35;
}

.glt_alert--live {
    background: #ffe3e3;
    border: 1px solid #f0a2a2;
    color: #9f1d1d;
}

.glt_alert--soon {
    background: #fdf1df;
    border: 1px solid #eccd9d;
    color: #7a4f12;
}

.glt_alert--note {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-weight: 600;
}

.glt_lesson--live {
    background: #fdf0f0;
    border-color: #f0c9c9;
    border-left-color: #e03131;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.glt_lesson--soon {
    background: #fdf7ea;
    border-color: #ecd9b6;
    border-left-color: #e2b05c;
}

/* Finished lessons match the calendar's past chips: quiet grey. */
.glt_lesson--past {
    background: #eef1f5;
    border-color: #e0e5ea;
    border-left-color: #c3ccd7;
    color: #66707e;
    box-shadow: none;
}

.glt_lesson--past .glt_lesson__time {
    color: #66707e;
}

.glt_lesson--past .glt_lesson__time span {
    color: #98a4b1;
}

.glt_lesson--past .glt_lesson__label {
    color: #98a4b1;
}

.glt_lesson--past .glt_lesson__teacher {
    color: #66707e;
}

/* Finished lessons: name links to the profile, unit sits under it. */
.glt_lesson__name {
    color: inherit;
    font-weight: 600;
    text-decoration: none;
}

.glt_lesson__name:hover {
    text-decoration: underline;
}

.glt_lesson__unit {
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.glt_lesson__unit--link {
    display: inline-block;
    text-decoration: none;
}

.glt_lesson__unit--link:hover {
    text-decoration: underline;
}

.glt_lesson--past .glt_lesson__unit {
    color: #7c8896;
}

.glt_lesson--past .glt_avatar {
    opacity: 0.75;
}

.glt_teachers {
    display: grid;
    /* One card in the narrow calendar rail, two or more when the page stacks. */
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.glt_teacher {
    position: relative;
    padding: 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.glt_teacher__name {
    color: #1f2430;
    font-size: 16px;
    font-weight: 700;
}

.glt_teacher__hint {
    margin-top: 2px;
    color: #e38227;
    font-size: 12px;
}

.glt_teacher__hint--full {
    color: #b91c1c;
    font-weight: 600;
    line-height: 1.45;
}

/* A 96px portrait leaves almost no room for text in the calendar rail. */
.glt_teacher .glt_avatar {
    width: 64px;
    height: 64px;
}

.glt_teacher .glt_avatar svg {
    width: 34px;
    height: 34px;
}

.glt_teacher__auto {
    margin-top: 6px;
    padding: 6px 10px;
    border: 1px solid #d6e8dd;
    border-radius: 8px;
    background: #eef7f1;
    color: #2f5c40;
    font-size: 12px;
    font-weight: 600;
}

.glt_teacher__auto-title {
    display: block;
    margin-bottom: 2px;
    color: #3f6b4e;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.glt_teacher__auto-list {
    margin: 0;
    padding-left: 15px;
}

.glt_teacher__auto-list li {
    line-height: 1.55;
}

.glt_teacher__profile {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding: 9px 14px;
    border: 1px solid #2f6b4f;
    border-radius: 9px;
    background: #2f6b4f;
    color: #fff;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    box-sizing: border-box;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.glt_teacher__profile:hover {
    background: #3f6b4e;
    border-color: #3f6b4e;
    color: #fff;
    text-decoration: none;
}

.glt_teacher__fav {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border-radius: 50%;
    color: #b6c0cb;
    line-height: 0;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease;
}

.glt_teacher__fav svg {
    width: 19px;
    height: 19px;
    display: block;
}

.glt_teacher__fav svg path {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linejoin: round;
}

.glt_teacher__fav:hover {
    color: #e11d48;
    background: #fdf2f4;
}

.glt_teacher__fav[data-fav="1"] {
    color: #e11d48;
}

.glt_teacher__fav[data-fav="1"] svg path {
    fill: currentColor;
}

.glt_teacher__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.glt_avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    overflow: hidden;
    background: #eef2f7;
    border-radius: 0;
    color: #94a3b8;
}

.glt_avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: auto;
}

.glt_avatar svg {
    width: 50px;
    height: 50px;
}

.glt_avatar--sm {
    width: 40px;
    height: 40px;
}

.glt_avatar--sm svg {
    width: 24px;
    height: 24px;
}

.glt_times {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.glt_page .glt_time {
    margin: 0;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1f3d2b;
    font-size: 13.5px;
    font-weight: 600;
    text-align: center;
    user-select: none;
}

.glt_page .teacher_profile_lessons_list {
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.glt_page .teacher_profile_lessons_list:hover {
    background: #a5c9af;
    border-color: #8fbfa0;
}

.glt_page .glt_time--booked,
.glt_page .glt_time--closed {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

.glt_empty {
    margin: 0;
    padding: 18px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    font-size: 14px;
}

@media (max-width: 640px) {
    .glt_page {
        padding: 16px;
    }

    .glt_lesson {
        flex-wrap: wrap;
    }

    .glt_lesson__actions {
        margin-left: 0;
        width: 100%;
    }

    .glt_lesson__actions .glt_btn {
        width: 100%;
    }

    .glt_teachers {
        grid-template-columns: 1fr;
    }
}

.glt_msg {
    width: 100%;
    margin-top: 10px;
}

.glt_msg__toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: auto;
    cursor: pointer;
    list-style: none;
}

.glt_msg__toggle::-webkit-details-marker {
    display: none;
}

.glt_msg__toggle::after {
    content: "\25BE";
    font-size: 10px;
}

.glt_msg[open] .glt_msg__toggle::after {
    content: "\25B4";
}

.glt_msg__body {
    margin-top: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 9px;
    color: #2f3847;
    font-size: 13px;
    line-height: 1.65;
}

.glt_phrases__list {
    margin: 0;
    padding-left: 20px;
}

.glt_phrases__list li {
    margin: 3px 0;
}

.glt_purchase_note {
    flex: 1 1 100%;
    margin: 4px 0 0;
    color: #b42318;
    font-size: 12.5px;
    font-weight: 700;
}

/* ---- month-calendar day-cell hover ------------------------------------
   Only the calendar page cells get a hover tint. The teacher-profile grid
   uses its own .tp_cal styles and deliberately has no hover tint.
   The selected day (.active-date) keeps its green selection state. */
.calendar_day_container,
.calendar_day_container_past,
.calendar_day_container_today {
    transition: background-color 0.12s ease;
}

.calendar_day_container:hover:not(.active-date) {
    background: #f3faf6;
}

.calendar_day_container_past:hover:not(.active-date) {
    background: #e9eef4;
}

.calendar_day_container_today:hover:not(.active-date) {
    background: #fbe9e9;
}
