.te-calendar {
	max-width: 100%;
	width: 100%;
	margin: 0;
	font-family: Assistant, sans-serif;
	color: #342c2a;
	container-type: inline-size;
	container-name: te-calendar;
	min-width: 0;
}

.te-calendar.is-loading .te-calendar__card {
	opacity: 0.55;
	pointer-events: none;
}

.te-calendar__card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 6px 20px rgba(0, 32, 25, 0.16);
	padding: 0;
	overflow: hidden;
}

.te-calendar__nav {
	direction: ltr;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 16px;
}

.te-calendar__title {
	direction: rtl;
	font-family: Assistant, sans-serif;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	color: #342c2a;
}

.te-calendar .te-calendar__nav-btn,
.te-calendar button.te-calendar__nav-btn {
	appearance: none;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: #db5d39 !important;
	font-size: 42px;
	line-height: 1;
	cursor: pointer;
	padding: 0 8px !important;
	margin: 0;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	fill: currentColor;
}

.te-calendar .te-calendar__nav-btn:hover,
.te-calendar .te-calendar__nav-btn:focus,
.te-calendar button.te-calendar__nav-btn:hover,
.te-calendar button.te-calendar__nav-btn:focus {
	background: none !important;
	background-color: transparent !important;
	color: #d74b23 !important;
	box-shadow: none !important;
}

.te-calendar__nav-btn span {
	display: block;
	font-size: 42px;
	line-height: 1;
	font-weight: 400;
}

.te-calendar__grid {
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	table-layout: fixed;
	direction: rtl;
	margin: 0;
}

.te-calendar__weekday {
	background: #fff;
	color: #342c2a;
	font-size: 14px;
	font-weight: 600;
	padding: 8px;
	border: 0;
	text-align: center;
}

.te-calendar__week,
.te-calendar__week:hover,
.te-calendar__day,
.te-calendar__day.is-pad,
.te-calendar__day.has-events {
	background: #fff !important;
}

.te-calendar__day {
	vertical-align: top;
	background: #fff !important;
	border: 1px solid #eaeaea;
	padding: 8px 0 10px;
	height: 100%;
	overflow: visible;
	transition: background-color 0.15s ease;
}

.te-calendar__week:hover .te-calendar__day {
	background: #fff !important;
}

.te-calendar__day:hover,
.te-calendar__week:hover .te-calendar__day:hover {
	background: #f6f6f6 !important;
}

.te-calendar__day-num {
	display: flex;
	justify-content: center;
	align-items: center;
	color: #685c5c;
	font-size: 14px;
	font-weight: 400;
	padding: 8px;
	height: 10px;
}

.te-calendar__day.has-events .te-calendar__day-num {
	color: #342c2a;
	font-weight: 700;
}

.te-calendar__events {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	min-height: 0;
	padding: 2px 0 0;
	text-align: center;
}

.te-calendar__event {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.1;
	padding: 3px 0 0;
	margin: 0;
	text-decoration: none;
	border: 0;
	border-radius: 0;
	color: #342c2a;
	box-sizing: border-box;
}

.te-calendar__event:hover:not(.is-full) {
	color: #d74b23 !important;
	border-color: #d74b23 !important;
}

.te-calendar__event.is-full {
	position: relative;
	overflow: visible;
	cursor: default;
	text-decoration: none;
}

.te-calendar__full-stamp {
	position: absolute;
	left: 50%;
	right: auto;
	top: 50%;
	z-index: 2;
	transform: translate(-50%, calc(-50% - 2px)) rotate(-12deg);
	pointer-events: none;
	white-space: nowrap;
	background: #fff;
	color: #111 !important;
	border: 1px solid #111;
	border-radius: 1px;
	padding: 1px 6px;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	box-sizing: border-box;
}

.te-calendar__event[data-term="5"] { color: #c90606; }
.te-calendar__event[data-term="6"] { color: #100ddb; }
.te-calendar__event[data-term="7"] { color: #f48b44; }
.te-calendar__event[data-term="8"] { color: #00aa38; }
.te-calendar__event[data-term="9"] { color: #ff11f7; }
.te-calendar__event[data-term="68"] { color: #bf0092; }
.te-calendar__event[data-term="114"] { color: #683fe2; }

.te-calendar__event-full {
	display: none;
}

.te-calendar__event-short {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
	width: 100%;
	line-height: 1.1;
}

.te-calendar__event-time {
	flex: 0 0 auto;
	writing-mode: horizontal-tb;
	text-orientation: mixed;
	white-space: nowrap;
	line-height: 1.1;
	font-size: 12px;
	font-weight: 400;
	text-align: center;
	border: 0;
	padding: 0;
	margin: 0;
	color: #342c2a;
}

.te-calendar__event-name {
	flex: 0 0 auto;
	text-align: center;
	line-height: 1.1;
	padding: 0 0 2px;
	margin: 0 0 2px;
	font-weight: 700;
	letter-spacing: -0.05em;
	font-size: 12px;
	border: 0;
	border-bottom: 1px solid #ccc;
}

.te-calendar__event:last-child {
	margin-bottom: 0;
}

.te-calendar__event:last-child .te-calendar__event-name {
	border-bottom: 0;
	padding-bottom: 0;
	margin-bottom: 0;
}

.te-calendar__day-dots,
.te-calendar__mobile-trigger {
	display: none;
}

.te-calendar__mobile-row td {
	border: 1px solid #eaeaea;
	padding: 10px;
	background: #fffaf9;
}

.te-calendar__mobile-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin: 0 0 10px;
}

.te-calendar__mobile-title {
	flex: 1 1 auto;
	font-size: 12px;
	font-weight: 700;
	color: #000;
	text-align: center;
	margin: 0;
	line-height: 1.4;
}

.te-calendar .te-calendar__mobile-day-nav,
.te-calendar button.te-calendar__mobile-day-nav {
	appearance: none;
	flex: 0 0 auto;
	font-family: Assistant, sans-serif;
	font-size: 10px !important;
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
	color: #db5d39 !important;
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	padding: 0 !important;
	margin: 0;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
	cursor: pointer;
}

.te-calendar .te-calendar__mobile-day-nav:hover,
.te-calendar .te-calendar__mobile-day-nav:focus,
.te-calendar button.te-calendar__mobile-day-nav:hover,
.te-calendar button.te-calendar__mobile-day-nav:focus {
	background: none !important;
	background-color: transparent !important;
	color: #d74b23 !important;
	box-shadow: none !important;
}

.te-calendar__mobile-events {
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	align-items: stretch;
	justify-content: flex-start;
	gap: 0;
}

.te-calendar__mobile-events .te-calendar__event {
	display: block;
	width: 100%;
	text-align: right;
	border: 0;
	border-bottom: 1px solid currentColor;
	border-radius: 0;
	padding: 5px 2px;
	margin: 0 0 5px;
	line-height: 1.35;
}

.te-calendar__mobile-events .te-calendar__event:last-child {
	margin-bottom: 0;
	border-bottom: 0;
}

@container te-calendar (width < 1024px) {
	.te-calendar__card {
		border-radius: 0;
		padding: 0;
		box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
		margin: 20px 0;
	}

	.te-calendar__title {
		font-size: 20px;
	}

	.te-calendar__day {
		padding: 3px;
	}

	.te-calendar__event {
		font-size: 10px;
	}

	.te-calendar__event-time {
		font-size: 10px;
	}

	.te-calendar__event-name {
		font-size: 11px;
	}

	.te-calendar__full-stamp {
		font-size: 7px;
		padding: 1px 3px;
		transform: translate(-50%, calc(-50% - 2px)) rotate(-12deg);
	}
}

.te-calendar.is-compact .te-calendar__card {
	border-radius: 0;
	padding: 0;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
	margin: 20px 0;
}

.te-calendar.is-compact .te-calendar__title {
	font-size: 20px;
}

.te-calendar.is-compact .te-calendar__day {
	padding: 3px;
}

.te-calendar.is-compact .te-calendar__event {
	font-size: 10px;
}

.te-calendar.is-compact .te-calendar__event-time {
	font-size: 10px;
}

.te-calendar.is-compact .te-calendar__event-name {
	font-size: 11px;
}

.te-calendar.is-compact .te-calendar__full-stamp {
	font-size: 7px;
	padding: 1px 3px;
	transform: translate(-50%, calc(-50% - 2px)) rotate(-12deg);
}

@media screen and (min-width: 769px) {
	.te-calendar__card,
	.te-calendar.is-compact .te-calendar__card {
		border-radius: 12px;
	}
}
