* {
	font-family: Arial;
}

body {
	padding-top: 300px;
	background-color: #eeeeee;
}

.flat-calendar-root {
	max-width: 1300px;
	padding: 0 20px;
	margin: auto;
}

.flat-calendar-container {
	display: flex;
	align-items: center;
	user-select: none;
	-webkit-user-select: none;
	-ms-user-select: none;
}

.block::-webkit-scrollbar {
	display: none;
}

.flat-calendar {
	display: flex;
	flex-direction: row;
	align-items: center;
	width: 100%;
}

.month {
	position: relative;
	display: flex;
	flex-direction: column;
	padding-right: 30px;
	z-index: 100;
}

.month:nth-child(2) {
	padding-right: 15px;
}

.title {
	margin: 0px 0px 10px 10px;
	font-size: 12px;
	line-height: 14px;
	color: rgba(0, 0, 0, 0.3);
	text-transform: uppercase;
	position: sticky;
	left: 0px;
	width: fit-content;
}

.days {
	display: flex;
	flex-direction: row;
}

.day {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 7px 9px;
	margin-right: 6px;
	color: inherit;
	text-decoration: none;
	z-index: 1000;
}

.day.active {
	position: relative;
	cursor: pointer;
}

.day.active .flat-calendar-tooltip {
	display: none;
	opacity: 0;
}

.day.active:hover .day-number,
.day.active:hover .day-week,
.day.active.focus .day-number,
.day.active.focus .day-week {
	color: #f9423a;
	transition: all .2s ease;
}

.day.active.focus::after {
	content: "";
	background-color: white;
	width: 8px;
	height: 8px;
	position: absolute;
	left: 50%;
	bottom: -4px;
	border: 1px solid #d5d5d5;
	border-top-color: white;
	border-left-color: white;
	transform: translateX(-50%) rotate(-135deg);
	animation: open .8s;
}

.day.active span {
	position: absolute;
	top: -0.3rem;
	right: -0.1rem;
	width: 14px;
	height: 14px;
	font-size: 10px;
	color: #ffffff;
	border-radius: 50%;
	border-top-left-radius: 50%;
	border-top-right-radius: 50%;
	border-bottom-right-radius: 50%;
	border-bottom-left-radius: 50%;
	line-height: 1.3;
	background: #f9423a;
	text-align: center;
}

.day-number {
	font-weight: 600;
	font-size: 24px;
	line-height: 28px;
}

.day-week {
	color: rgba(0, 0, 0, 0.5);
	font-size: 12px;
	line-height: 14px;
	text-transform: uppercase;
}

.dayOff {
	color: rgb(247, 47, 47);
}

.control {
	position: relative;
	height: 82px;
	width: 0;
	display: flex;
	align-items: center;
	cursor: pointer;
	opacity: 0;
	transition: width 0.3s ease, opacity 0.3s ease;
}

.control span {
	font-size: 26px;
	color: #999999;
}

.control:hover span {
	opacity: .5;
}

.control-left {
	margin-right: 12px;
}

.control-right {
	opacity: 1;
	width: 26px;
}

.control-left span::after,
.control-right span::after {
	position: absolute;
	top: -26px;
	content: "";
	display: block;
	width: 38px;
	height: 60px;
	margin-top: 14px;
	pointer-events: none;
	z-index: 200;
}

.control-left span::after {
	right: -38px;
	background: linear-gradient(to right, #eeeeee 0%, #eeeeee 38.67%, rgba(238, 238, 238, 0) 100%);
}

.control-right {
	margin-left: 12px;
}

.control-right span::after {
	left: -38px;
	background: linear-gradient(to left, #eeeeee 0%, #eeeeee 38.67%, rgba(238, 238, 238, 0) 100%);
}

.flat-calendar-wrapper {
	position: relative;
	overflow-x: scroll;
	overflow-y: hidden;
	scrollbar-width: none;
}

.flat-calendar-tooltip-container {
	position: relative;
	width: 100%;
	height: 0;
	top: -1px;
}

.flat-calendar-tooltip {
	position: relative;
	max-width: 360px;
	background-color: #fafafa;
	padding: 16px 16px;
	border: 1px solid rgba(0, 0, 0, .15);
	border-radius: 4px;
	box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
	animation: open .5s;
	z-index: 10;
}

.flat-calendar-tooltip ul {
	position: relative;
	padding-left: 0;
	margin: 0;
	list-style: none;
	text-decoration: none;
}

.flat-calendar-tooltip ul li {
	position: relative;
	padding-left: 16px;
	margin-bottom: 4px;
}

.flat-calendar-tooltip ul li:last-child {
	margin-bottom: 0;
}

.flat-calendar-tooltip ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 10px;
	transform: translateY(-50%);
	width: 6px;
	height: 6px;
	background-color: #f9423a;
	border-radius: 50%;
}

.flat-calendar-tooltip li a {
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-decoration: none;
	color: #333333;
}

.flat-calendar-tooltip li a:hover {
	color: #f9423a;
}

.flat-calendar-button {
	display: block;
	margin-bottom: 10px;
	border-radius: 2px;
	padding: 6px 12px;
	margin-bottom: 0;
	font-size: 14px;
	color: #ffffff;
	background-color: #008cfa;
	white-space: nowrap;
	align-self: end;
	position: relative;
	bottom: 9px;
}

.flat-calendar-button:focus,
.flat-calendar-button:hover {
	color: #ffffff;
	text-decoration: none;
	background-color: #f9423a;
	transform: translateY(-4px);
	box-shadow: rgba(193, 193, 193, 0.7) 0px 5px 12px;
	transition-duration: 0.3s;
	transition-property: box-shadow, transform;
	transition-timing-function: ease;
}

.special .day-number,
.day.active.special:hover .day-number,
.day.active.special.focus .day-number {
	color: #ffffff;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.special::before {
	content: '';
	position: absolute;
	top: -5px;
	background: linear-gradient(126deg, rgba(131, 58, 180, 1) 0%, rgba(253, 29, 29, 1) 50%, rgba(252, 176, 69, 1) 100%);
	width: 55px;
	height: 55px;
	z-index: -1;
	clip-path: polygon(100% 50%, 78.98% 57.76%, 93.3% 75%, 71.21% 71.21%, 75% 93.3%, 57.76% 78.98%, 50% 100%, 42.24% 78.98%, 25% 93.3%, 28.79% 71.21%, 6.7% 75%, 21.02% 57.76%, 0% 50%, 21.02% 42.24%, 6.7% 25%, 28.79% 28.79%, 25% 6.7%, 42.24% 21.02%, 50% 0%, 57.76% 21.02%, 75% 6.7%, 71.21% 28.79%, 93.3% 25%, 78.98% 42.24%);
	animation: morph 1.5s infinite alternate ease-in-out,
		rotate 8s linear infinite;
}

.day.active.special.focus::before,
.day.active.special:hover::before {
	animation-play-state: paused;
}

@keyframes morph {
	0% {
		scale: 1;
	}

	100% {
		scale: 1.15;
	}
}

@keyframes rotate {
	0% {
		rotate: 0deg;
	}

	100% {
		rotate: 360deg;
	}
}

@keyframes open {
	from {
		opacity: 0;
		visibility: hidden;
	}

	to {
		opacity: 1;
		visibility: visible;
	}
}