.mrec-calendar-wrap {
	margin: 30px 0;
	color: #111;
}

.mrec-calendar-wrap *,
.mrec-calendar-wrap *::before,
.mrec-calendar-wrap *::after,
.mrec-events *,
.mrec-events *::before,
.mrec-events *::after,
.mrec-modal *,
.mrec-modal *::before,
.mrec-modal *::after {
	box-sizing: border-box;
}

.mrec-calendar-wrap,
.mrec-calendar-wrap p,
.mrec-calendar-wrap h1,
.mrec-calendar-wrap h2,
.mrec-calendar-wrap h3,
.mrec-calendar-wrap h4,
.mrec-calendar-wrap h5,
.mrec-calendar-wrap h6,
.mrec-calendar-wrap span,
.mrec-calendar-wrap div,
.mrec-calendar-wrap button,
.mrec-events,
.mrec-events p,
.mrec-events h1,
.mrec-events h2,
.mrec-events h3,
.mrec-events h4,
.mrec-events h5,
.mrec-events h6,
.mrec-events span,
.mrec-events div,
.mrec-modal,
.mrec-modal p,
.mrec-modal h1,
.mrec-modal h2,
.mrec-modal h3,
.mrec-modal h4,
.mrec-modal h5,
.mrec-modal h6,
.mrec-modal span,
.mrec-modal div,
.mrec-modal button {
	color: #111;
}

.mrec-calendar-wrap a,
.mrec-events a {
	color: #111;
}

.mrec-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.mrec-calendar-title {
	margin: 0;
	font-size: 28px;
	line-height: 1.2;
	text-align: center;
	color: #0DC4B6 !important;
}

.mrec-calendar-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 8px 14px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #fff;
	color: #797979 !important;
	font-weight: 700;
	text-decoration: none;
}

.mrec-calendar-nav:hover {
	text-decoration: none;
}

.mrec-calendar-weekdays,
.mrec-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
}

.mrec-calendar-weekdays {
	border: 1px solid #e5e5e5;
	border-bottom: 0;
	background: #f7f7f7;
}

.mrec-calendar-weekdays div {
	padding: 12px;
	font-weight: 700;
	font-size: 14px;
	text-align: center;
	border-right: 1px solid #e5e5e5;
}

.mrec-calendar-weekdays div:last-child {
	border-right: 0;
}

.mrec-calendar-grid {
	border-top: 1px solid #e5e5e5;
	border-left: 1px solid #e5e5e5;
}

.mrec-calendar-day {
	min-height: 170px;
	padding: 10px;
	background: #fff;
	border-right: 1px solid #e5e5e5;
	border-bottom: 1px solid #e5e5e5;
}

.mrec-calendar-day--empty {
	background: #fafafa;
}

.mrec-calendar-day--has-events {
	background: #fff;
}

.mrec-calendar-day__number {
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 8px;
	border-radius: 999px;
	background: #f2f2f2;
	font-size: 13px;
	font-weight: 700;
}

.mrec-calendar-day--has-events .mrec-calendar-day__number {
	background: #111;
	color: #fff !important;
}

.mrec-calendar-day__events {
	display: grid;
	gap: 8px;
}

.mrec-calendar-event {
	padding: 10px;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	background: #fff;
	color: #111;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.mrec-modal__logo {
	display: block;
	width: 100%;
	min-width: 50px;
	margin-bottom: 8px;
	max-width: 320px;
	height: auto;
}

.mrec-calendar-event__logo {
	width: 100%;
	min-width: 50px;
	margin-bottom: 6px;
}

.mrec-calendar-event__logo img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	max-height: 50px;
	object-fit: contain;
	object-position: left center;
	background: #fff;
}

.mrec-calendar-event__title {
	margin: 0 0 5px;
	font-size: 14px;
	line-height: 1.25;
}

.mrec-calendar-event__country,
.mrec-calendar-event__description {
	margin: 0 0 6px;
	font-size: 13px;
	line-height: 1.4;
}

.mrec-calendar-event__country {
	font-weight: 700;
	display: block;
	color: #34014f !important;
}

.mrec-calendar-event__link {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.mrec-calendar-event__link:hover {
	text-decoration: underline;
}

.mrec-events {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
	margin: 30px 0;
}

.mrec-events--columns-1 {
	grid-template-columns: 1fr;
}

.mrec-events--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mrec-events--columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mrec-events--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mrec-event {
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	padding: 24px;
	background: #fff;
	color: #111;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.mrec-event__logo {
	width: 100%;
	min-width: 50px;
	margin-bottom: 18px;
}

.mrec-event__logo img {
	display: block;
	width: 100%;
	max-width: 220px;
	height: auto;
	max-height: 110px;
	object-fit: contain;
	object-position: left center;
	background: #fff;
	border-radius: 8px;
}

.mrec-event__title {
	margin: 0 0 8px;
	font-size: 22px;
	line-height: 1.25;
}

.mrec-event__date,
.mrec-event__country {
	margin: 0 0 12px;
	font-weight: 700;
}

.mrec-event__description {
	margin: 0 0 18px;
}

.mrec-event__link {
	display: inline-block;
	font-weight: 700;
	text-decoration: none;
}

.mrec-event__link:hover {
	text-decoration: underline;
}

.mrec-calendar-event__button {
	appearance: none;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: #111;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.mrec-calendar-event__button:hover .mrec-calendar-event__title,
.mrec-calendar-event__button:focus .mrec-calendar-event__title {
	text-decoration: underline;
}

.mrec-modal-is-open {
	overflow: hidden;
}

.mrec-modal[aria-hidden="true"] {
	display: none;
}

.mrec-modal[aria-hidden="false"] {
	display: block;
}

.mrec-modal__overlay {
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(0, 0, 0, 0.55);
}

.mrec-modal__dialog {
	position: fixed;
	top: 50%;
	left: 50%;
	z-index: 99999;
	width: min(680px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 32px;
	border-radius: 18px;
	background: #fff;
	color: #111;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.25);
	transform: translate(-50%, -50%);
}

.mrec-modal__close {
	appearance: none;
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	background: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}

.mrec-modal__logo {
	margin: 0 0 18px;
}

.mrec-modal__logo img {
	display: block;
	max-width: 220px;
	max-height: 120px;
	width: auto;
	height: auto;
}

.mrec-modal__title {
	margin: 0 44px 12px 0;
	font-size: 28px;
	line-height: 1.2;
}

.mrec-modal__meta {
	margin: 0 0 8px;
	font-weight: 700;
}

.mrec-modal__description {
	margin: 18px 0 22px;
}

.mrec-modal__description p {
	margin: 0 0 14px;
}

.mrec-modal__description p:last-child {
	margin-bottom: 0;
}

.mrec-modal__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border-radius: 999px;
	background: #111;
	color: #fff !important;
	font-weight: 700;
	text-decoration: none;
}

.mrec-modal__link:hover,
.mrec-modal__link:focus {
	color: #fff;
	text-decoration: none;
}

.mrec-calendar-title,
.mrec-calendar-day__number,
.mrec-calendar-event__title,
.mrec-calendar-event__country,
.mrec-calendar-event__description,
.mrec-event__title,
.mrec-event__date,
.mrec-event__country,
.mrec-event__description,
.mrec-modal__title,
.mrec-modal__meta,
.mrec-modal__description {
	color: #111;
}

.mrec-calendar-title {
	color: #0DC4B6 !important;
}

.mrec-calendar-day--has-events .mrec-calendar-day__number {
	color: #fff;
}

@media (max-width: 900px) {
	.mrec-calendar-header {
		display: flex;
		flex-wrap: wrap;
		align-items: center;
		justify-content: center;
		gap: 10px;
	}

	.mrec-calendar-title {
		order: 1;
		width: 100%;
		text-align: center;
		color: #0DC4B6 !important;
	}

	.mrec-calendar-nav {
		order: 2;
		flex: 1 1 calc(50% - 5px);
		max-width: 180px;
	}

	.mrec-calendar-weekdays {
		display: none;
	}

	.mrec-calendar-grid {
		display: grid;
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 10px;
		border: 0;
	}

	.mrec-calendar-day,
	.mrec-calendar-day--empty {
		min-height: 120px;
		padding: 8px;
		border: 1px solid #e5e5e5;
		border-radius: 12px;
	}

	.mrec-calendar-day--empty {
		display: block;
		background: #fafafa;
	}

	.mrec-calendar-day__number {
		width: 26px;
		height: 26px;
		font-size: 12px;
		margin-bottom: 6px;
	}

	.mrec-calendar-event {
		padding: 7px;
		border-radius: 8px;
	}

	.mrec-calendar-event__logo img {
		max-height: 38px;
	}

	.mrec-calendar-event__title {
		font-size: 12px;
	}

	.mrec-calendar-event__country,
	.mrec-calendar-event__description {
		font-size: 11px;
	}

	.mrec-events,
	.mrec-events--columns-3,
	.mrec-events--columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.mrec-calendar-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
		gap: 8px;
	}

	.mrec-calendar-day,
	.mrec-calendar-day--empty {
		min-height: 105px;
		padding: 6px;
	}

	.mrec-calendar-event__logo img {
		max-height: 32px;
	}

	.mrec-events,
	.mrec-events--columns-2,
	.mrec-events--columns-3,
	.mrec-events--columns-4 {
		grid-template-columns: 1fr;
	}

	.mrec-modal__dialog {
		padding: 24px;
	}

	.mrec-modal__title {
		font-size: 24px;
	}
}