.calendar .month h2 {
	text-overflow: ellipsis;
	white-space: nowrap;
	display: inline-block;
}
.calendar .calendar-row {
	position: relative;
	background: #fff;
	display: flex;
	justify-content: space-evenly;
}
.calendar .calendar-row > a,
.calendar .calendar-row > div {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	flex-basis: 0;
	text-align: center;
	color: #424242;
	box-sizing: border-box;
	border-right: 1px solid #E1E1E1;
	border-bottom: 1px solid #E1E1E1;
	min-height: 88px;
	width: 12.5%;
}
@media (min-width: 650px) {
    .calendar .calendar-row > a, 
    .calendar .calendar-row > div {
        width: 13.43%;
        min-height: 50px;
    }
}
.calendar .calendar-row > a > ul >li > h5 {
	text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    margin: 0.67em 0;
}
.calendar .calendar-row > a:focus,
.calendar .calendar-row > a:hover {
	text-decoration: none;
}
.calendar .calendar-row > a:first-child,
.calendar .calendar-row > div:first-child {
	background: #F1F1F1;
	flex-basis: 29px;
	flex-grow: 0;
}
.calendar .calendar-row-header > a:first-child,
.calendar .calendar-row-header > div:first-child {
	font-weight: 600;
}
.calendar .calendar-row > a:first-child > span,
.calendar .calendar-row > div:first-child > span {
	text-align: center;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: transparent;
}
.calendar .calendar-row > a > .day-of-month {
	align-self: center;
	margin-top: 2px;
	line-height: 1.75em;
	width: 1.75em;
	font-size: .875em;
	font-weight: 600;
}
.calendar div.calendar-row > a.today > div.day-of-month {
	background: #007896;
	color: #FFF;
	border-radius: 40px;
}
.calendar .calendar-row > a > ul,
.calendar .calendar-row > div > ul {
	font-size: .75em;
	text-align: left;
	padding: 0 4px 0 0;
	margin: 2px 0 4px 0;
	list-style: none;
}
@media (max-width: 767px) {
	.calendar .calendar-row > a > ul,
	.calendar .calendar-row > div > ul {
		z-index: 21;
		font-size: 11px;
		padding: 0 2px 0 0;
		margin: 2px 0 2px 0;
	}
}

.calendar .calendar-row > .day > ul > li {
	background: #e8e8e8;
	color: #757575;
	border-radius: 2px;
	padding: 2px 3px;
	margin-top: 2px;
	font-weight: 600;
}
.calendar .calendar-row > .day > ul > li.moreevents {
	background: transparent;
	color: #424242;
	text-align: center;
}
.calendar.week-view .calendar-row > .day > ul > li.moreevents {
	line-height: 2.8;
}
@media (max-width: 767px) {
	.calendar .calendar-row > .day > ul > li.moreevents {
		background: #757575;
		color: #fff;
	}
}
.calendar.week-view .calendar-row > .day > ul > li.moreevents {
	background: #757575;
	color: #fff;
}
@media (max-width: 767px) {
	.calendar .calendar-row > .day > ul > li {
		padding: 0px 2px;
	}
}
.calendar .calendar-row > .day > ul > li.slot-active {
	background: #1D8034;
	color: #fff;
}
.calendar .calendar-row > .day > ul > li *[data-icon-before]::before {
	margin-top: 3px;
}

.calendar .calendar-day {
	-webkit-transform: translateY(0);
	-moz-transform: translateY(0);
	-ms-transform: translateY(0);
	-o-transform: translateY(0);
	transform: translateY(0);
	display: none;
	position: relative;
	background: #f7f7f7;
	padding-left: 12.5%;
}
.calendar .calendar-day > div,
.calendar .calendar-day .event-list-container {
	background: #f9f9f9;
}
.calendar .calendar-day .event-list > li {
	background: #fff;
	padding-left: 24px;
}
.calendar .calendar-day .event-list a {
	position: relative;
	text-decoration: none;
}
.calendar .calendar-day .event-list span:before {
	position: absolute;
	top: 0;
	left: -12px;
	display: inline-block;
	vertical-align: top;
	width: 6px;
	height: 6px;
	border-radius: 100%;
	background: #0064ad;
	content: '';
	margin-top: .4em;
}
.calendar .meta-line {
	color: #5c6a70;
	margin: 0.5em 0;
}
.calendar div.calendar-row > a {
	cursor: default;
}
.calendar div.calendar-row > a.activities {
	cursor: pointer;
}
@media (min-width: 650px) {
	.calendar div.calendar-row > a.activities:hover {
		background: #F7F7F7;
	}
	.calendar.week-view div.calendar-row > a.activities:hover {
		background: transparent;
		cursor: default;
	}
	.calendar.week-view div.calendar-row > a.activities li:hover {
		background: #E0E0E0;
		cursor: pointer;
	}
	.calendar.week-view div.calendar-row > a.activities li.slot-active:hover {
		background: #15782C;
	}
	.calendar.week-view div.calendar-row > a.activities li.moreevents:hover {
		background: #7D7D7D;
	}
}
.calendar div.calendar-row > a.adjacent-month > div {
	color: #757575;
	font-weight: 400;
}
.calendar .calendar-row-header > div {
	display: block;
	font-weight: 600;
	line-height: 1.75;
	padding: 0;
	white-space: nowrap;
	min-height: 26px;
	color: #424242;	
}
.calendar .calendar-row-header > div > span {
	position: static;
	background: transparent;
	padding: 0;
}
.calendar h2.calendar-month {
	text-transform: capitalize;
	vertical-align: middle;
    padding: 0;
    text-align: center;
    font-size: 1em;
    margin: 0px 5px; 	
    min-width: 115px; /* Length of longest month-name to prevent buttons from moving around with month change*/
}

.calendar.week-view .calendar-row > a.adjacent-month > div {
	color: #424242;
	font-weight: 600;
}
.calendar.week-view .calendar-row > .day > ul > li {
	min-height: 2.8em;
}
.calendar.week-view .hide-week {
	display: none !important;
}
.calendar:not(.week-view) .hide-month {
	display: none !important;
}
@media (max-width: 767px) {
	.calendar.week-view .week-mode-hide-mobile {
		display: none !important;
	}
	.calendar:not(.week-view) .month-mode-hide-mobile {
		display: none !important;
	}
}
.calendar .font-weight-normal {
	font-weight: normal;
}
.calendar .arrow-button {
	padding: 13px 15px;
	margin: 0;
	vertical-align: bottom;
	border: 1px solid #C4C4C4;
}
.calendar .arrow-button:hover {
	padding: 13px 15px;

}

@media only screen and (max-width: 1024px) {
	.featherlight .featherlight-content.calendar-day-modal {
		margin: 0px;		
	}
}
.featherlight .featherlight-content.calendar-day-modal {
	padding: 0px;
	border-bottom: none;
}
.featherlight .calendar-day-modal .featherlight-close-icon {
	background: transparent;
	top: 18px;
	right: 18px;
}
.calendar-day-modal {
	min-width: 300px;
	max-width: 688px;
}
.calendar-day-modal .modal-header {
	background: #E8E8E8;
	padding: 10px 15px;
}
.calendar-day-modal .modal-body {
	max-height: 80vh;
	overflow-y: auto;
}
	.calendar-day-modal ul.event-list > li:not(:last-child):after {
	content: "";
	display: block;
	margin: 0 auto;
	width: calc(100% - 30px);
	border-bottom: 1px solid #E8E8E8;
}
.calendar-day-modal ul.event-list > li > a {
	padding: 10px 15px;
	display: flex;
	flex-direction: column;
	min-height: 40px;
}
.calendar-day-modal ul.event-list > li > a:focus,
.calendar-day-modal ul.event-list > li > a:hover {
	text-decoration: none;
	outline: none;
}
.calendar-day-modal ul.event-list > li > a:hover {
	cursor: default;
}
.calendar-day-modal ul.event-list > li.detail-slot-active > a:focus {
	background: #fbfbfb;
}
.calendar-day-modal ul.event-list > li.detail-slot-active > a:hover {
	background: #f7f7f7;
	cursor: pointer;
}
.calendar-day-modal ul.event-list li .event-info {
	color: #424242;
}
.calendar-day-modal ul.event-list li .event-time {
	background: #757575;
	color: #fff;
	border-radius: 2px;
	padding: 2px 3px;
	font-weight: 600;
}
.calendar-day-modal ul.event-list li.not-bookable .event-time-info,
.calendar-day-modal ul.event-list li.passed .event-time-info {
	font-weight: 600;
	font-style: italic;
}
.calendar-day-modal ul.event-list li.detail-slot-active .event-time {
	background: #1D8034;
	color: #fff;
}
.calendar-day-modal ul.event-list li .choose-event {
	margin-top: 8px;
	font-weight: 600;
}