/**
 * Zeventra Monthly Events Calendar sidebar widget.
 */

.zozo-monthly-cal {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.zozo-monthly-cal *,
.zozo-monthly-cal *::before,
.zozo-monthly-cal *::after {
	box-sizing: border-box;
}

.zozo-monthly-cal__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.zozo-monthly-cal__heading {
	flex: 1 1 auto;
	margin: 0;
	font-size: 16px;
	line-height: 1.3;
	font-weight: 600;
	text-align: center;
	color: inherit;
}

.zozo-monthly-cal__nav {
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	padding: 0;
	margin: 0;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #434655;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease, background-color 0.2s ease;
}

.zozo-monthly-cal__nav:hover,
.zozo-monthly-cal__nav:focus {
	color: var(--zozo-primary, #2196f3);
	background: rgba(67, 70, 85, 0.06);
	outline: none;
}

.zozo-monthly-cal__nav:focus-visible {
	outline: 2px solid var(--zozo-primary, #2196f3);
	outline-offset: 2px;
}

.zozo-monthly-cal.is-loading .zozo-monthly-cal__body {
	opacity: 0.55;
	pointer-events: none;
}

.zozo-monthly-cal__body {
	width: 100%;
}

.zozo-monthly-cal .month-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 2px;
	width: 100%;
}

.zozo-monthly-cal .month-grid .day-header {
	font-size: 11px;
	font-weight: 600;
	color: #434655;
	text-align: center;
	height: auto;
	padding: 4px 0;
}

.zozo-monthly-cal .day {
	padding: 2px;
	min-height: 36px;
	max-height: 42px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: transparent;
}

.zozo-monthly-cal .day.previous-month,
.zozo-monthly-cal .day.next-month {
	color: rgba(67, 70, 85, 0.35);
}

.zozo-monthly-cal .day-num {
	font-weight: 500;
	font-size: 12px;
	line-height: 1.2;
	text-align: center;
}

.zozo-monthly-cal .day-events-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	justify-content: center;
	max-width: 100%;
	margin-top: 2px;
}

.zozo-monthly-cal .day-events-wrapper .day-event {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.zozo-monthly-cal .zozo-yearly-events {
	padding-top: 12px;
	margin-top: 8px;
	border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.zozo-monthly-cal .zozo-yearly-events p {
	font-size: 13px;
	margin: 0;
}

.zozo-monthly-cal .zozo-yearly-event {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
}

.zozo-monthly-cal .zozo-yearly-event:last-child {
	padding-bottom: 0;
}

.zozo-monthly-cal .zozo-yearly-event-color {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.zozo-monthly-cal .zozo-yearly-event-title {
	font-size: 13px;
	font-weight: 600;
	flex: 1 1 auto;
	min-width: 0;
}

.zozo-monthly-cal .zozo-yearly-event-title a {
	color: inherit;
	text-decoration: none;
	word-break: break-word;
	overflow-wrap: anywhere;
	transition: color 0.2s ease;
}

.zozo-monthly-cal .zozo-yearly-event-title a:hover,
.zozo-monthly-cal .zozo-yearly-event-title a:focus {
	color: var(--zozo-primary, #2196f3);
}

.zozo-monthly-cal .zozo-yearly-event-date {
	font-size: 11px;
	font-weight: 400;
	color: #94a3b8;
	flex: 0 0 auto;
}
