.fm-gcal {
	--fm-gcal-primary: #333749;
	--fm-gcal-secondary: #606787;
	--fm-gcal-accent-soft: #fad4df;
	--fm-gcal-accent: #111827;
	--fm-gcal-surface: #fff;
	--fm-gcal-tooltip-shift: 0px;
	--fm-gcal-text-column: 30%;
	--fm-gcal-layout-gap: 48px;
	position: relative;
	width: 100%;
	margin-inline: auto;
	color: var(--fm-gcal-primary);
	font-family: var(--e-global-typography-text-font-family, Montserrat, sans-serif);
	box-sizing: border-box;
	container-type: inline-size;
	container-name: fm-gcal;
}

.fm-gcal--has-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--fm-gcal-layout-gap);
}

.fm-gcal__intro-wrap,
.fm-gcal__frame {
	width: 100%;
	min-width: 0;
}

.fm-gcal__intro-wrap {
	align-self: center;
}

.fm-gcal__status {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.fm-gcal *,
.fm-gcal *::before,
.fm-gcal *::after {
	box-sizing: border-box;
}

.fm-gcal__widget-title {
	margin: 0 0 10px;
	color: var(--fm-gcal-primary);
	font-family: var(--e-global-typography-primary-font-family, Montserrat, sans-serif);
	font-size: clamp(22px, 2.4vw, 32px);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -1px;
}

.fm-gcal__intro {
	margin: 0;
	color: var(--fm-gcal-secondary);
}

.fm-gcal__intro > :first-child,
.fm-gcal__tooltip-description > :first-child {
	margin-top: 0;
}

.fm-gcal__intro > :last-child,
.fm-gcal__tooltip-description > :last-child {
	margin-bottom: 0;
}

.fm-gcal__calendar {
	position: relative;
	width: 100%;
	min-width: 0;
}

.fm-gcal__header {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: center;
	gap: 8px;
	margin-bottom: 6px;
	padding: 4px 6px;
	background: #fff;
}

.fm-gcal__nav--prev { grid-column: 1; }
.fm-gcal__month-title {
	grid-column: 2;
	min-width: 0;
	color: var(--fm-gcal-primary);
	font-size: clamp(17px, 1.8vw, 23px);
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
}

.fm-gcal__header-actions {
	grid-column: 3;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	min-width: 0;
}

.fm-gcal__nav,
.fm-gcal__today,
.fm-gcal__event-trigger {
	margin: 0;
	border: 0;
	font: inherit;
	text-transform: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
}

.fm-gcal__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	min-height: 36px;
	padding: 7px;
	border-radius: 999px;
	color: var(--fm-gcal-primary);
	background: var(--fm-gcal-accent-soft);
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .12s ease;
}

.fm-gcal__nav:hover,
.fm-gcal__nav:focus-visible {
	color: #fff;
	background: var(--fm-gcal-accent);
}

.fm-gcal__nav:active,
.fm-gcal__nav.is-active {
	color: #fff;
	background: var(--fm-gcal-primary);
	transform: scale(.96);
}

.fm-gcal__nav svg {
	display: block;
	width: 18px;
	height: 18px;
}

.fm-gcal .fm-gcal__today {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	padding: 6px 12px;
	border: 1px solid var(--fm-gcal-accent-soft);
	border-radius: 999px;
	color: var(--fm-gcal-primary);
	background: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .12s ease;
}

.fm-gcal__today:hover,
.fm-gcal__today:focus-visible {
	border-color: var(--fm-gcal-accent);
	color: #fff;
	background: var(--fm-gcal-accent);
}

.fm-gcal__today:active,
.fm-gcal__today.is-active {
	color: #fff;
	background: var(--fm-gcal-primary);
	transform: scale(.97);
}

.fm-gcal__nav:focus-visible,
.fm-gcal__today:focus-visible,
.fm-gcal__event-trigger:focus-visible,
.fm-gcal__event-link:focus-visible {
	outline: none;
	box-shadow: none;
}

.fm-gcal__grid {
	width: 100%;
	min-width: 0;
	margin: 0;
	border: 0;
	border-collapse: separate;
	border-spacing: 2px;
	table-layout: fixed;
}

.fm-gcal__grid th,
.fm-gcal__grid td {
	border: 0;
}

.fm-gcal__weekday {
	padding: 8px 4px;
	color: var(--fm-gcal-primary);
	background: var(--fm-gcal-accent-soft);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
}

.fm-gcal__day {
	position: relative;
	height: 82px;
	min-height: 82px;
	padding: 0;
	vertical-align: top;
	background: #fff;
	transition: background-color .2s ease, border-color .2s ease;
}

.fm-gcal__week--even .fm-gcal__day { background: #faf7f9; }
.fm-gcal__day--empty { background: #f4f1f3 !important; }
.fm-gcal__day:not(.fm-gcal__day--empty):hover { z-index: 10; background: #fff7fa; }
.fm-gcal__day.is-active { z-index: 11; background: var(--fm-gcal-accent-soft); }

.fm-gcal__day-inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 3px;
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 5px;
}

.fm-gcal__date-number {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 27px;
	height: 27px;
	min-height: 27px;
	border-radius: 999px;
	color: var(--fm-gcal-primary);
	background: transparent;
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	transition: color .2s ease, background-color .2s ease, box-shadow .2s ease;
}

.fm-gcal__day.has-events .fm-gcal__date-number {
	color: #fff;
	background: var(--fm-gcal-primary);
}

.fm-gcal__day:hover .fm-gcal__date-number,
.fm-gcal__day.has-events:hover .fm-gcal__date-number {
	color: #fff;
	background: var(--fm-gcal-accent);
}

.fm-gcal__day.is-active .fm-gcal__date-number {
	color: #fff;
	background: var(--fm-gcal-primary);
}

.fm-gcal__day.is-today .fm-gcal__date-number {
	box-shadow: 0 0 0 2px var(--fm-gcal-accent);
}

.fm-gcal__events {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	gap: 3px;
	width: 100%;
	min-width: 0;
}

.fm-gcal__event {
	position: relative;
	width: 100%;
	min-width: 0;
}

.fm-gcal__event-trigger {
	display: flex;
	align-items: center;
	gap: 5px;
	width: 100%;
	min-width: 0;
	padding: 3px 4px;
	border-radius: 4px;
	color: var(--fm-gcal-primary);
	background: transparent;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.25;
	text-align: left;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease;
}

.fm-gcal__event-trigger:hover,
.fm-gcal__event-trigger:focus-visible {
	color: var(--fm-gcal-accent);
	background: #fff7fa;
}

.fm-gcal__event-cell-title {
	display: block;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.fm-gcal__event-dot {
	display: none;
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	border-radius: 999px;
	background: var(--fm-gcal-accent);
}

.fm-gcal__more {
	display: block;
	padding-inline: 4px;
	color: var(--fm-gcal-secondary);
	font-size: 11px;
	line-height: 1.2;
}

.fm-gcal__tooltip {
	position: absolute;
	left: 50%;
	bottom: calc(100% + 10px);
	z-index: 50;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: min(280px, calc(100vw - 32px));
	padding: 18px;
	border: 1px solid var(--fm-gcal-accent-soft);
	border-radius: 14px;
	color: var(--fm-gcal-primary);
	background: #fff;
	box-shadow: 0 18px 50px rgba(33, 16, 30, .18);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateX(calc(-50% + var(--fm-gcal-tooltip-shift))) translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.fm-gcal__event.is-tooltip-below .fm-gcal__tooltip {
	top: calc(100% + 10px);
	bottom: auto;
}

.fm-gcal__event.is-open .fm-gcal__tooltip {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(calc(-50% + var(--fm-gcal-tooltip-shift))) translateY(0);
}

@media (hover: hover) and (min-width: 768px) {
	.fm-gcal__event:hover .fm-gcal__tooltip,
	.fm-gcal__event:focus-within .fm-gcal__tooltip {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
		transform: translateX(calc(-50% + var(--fm-gcal-tooltip-shift))) translateY(0);
	}
}

.fm-gcal__modal-backdrop,
.fm-gcal__modal-close {
	display: none;
}

.fm-gcal__modal-close {
	margin: 0;
	border: 0;
	font: inherit;
	-webkit-appearance: none;
	appearance: none;
	touch-action: manipulation;
}

.fm-gcal__modal-close svg {
	display: block;
	width: 20px;
	height: 20px;
}

.fm-gcal__tooltip-title {
	color: var(--fm-gcal-primary);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.fm-gcal__tooltip-date {
	color: var(--fm-gcal-accent);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
}

.fm-gcal__tooltip-location,
.fm-gcal__tooltip-description {
	color: var(--fm-gcal-secondary);
	font-size: 13px;
	line-height: 1.5;
}

.fm-gcal__event-link {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 4px;
	padding: 8px 12px;
	border: 0;
	border-radius: 999px;
	color: #fff;
	background: var(--fm-gcal-primary);
	font-size: 12px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .12s ease;
}

.fm-gcal__event-link:hover,
.fm-gcal__event-link:focus-visible {
	color: #fff;
	background: var(--fm-gcal-accent);
	text-decoration: none !important;
}

.fm-gcal__event-link:active { transform: scale(.98); }

.fm-gcal__notice,
.fm-gcal__empty {
	margin: 8px 2px;
	padding: 12px 16px;
	border-radius: 8px;
	color: var(--fm-gcal-primary);
	background: var(--fm-gcal-accent-soft);
	font-size: 14px;
}

.fm-gcal__loader {
	position: absolute;
	inset: 0;
	z-index: 70;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(255, 255, 255, .72);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .2s ease, visibility .2s ease;
}

.fm-gcal__calendar.is-loading .fm-gcal__loader {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.fm-gcal__loader span {
	width: 34px;
	height: 34px;
	border: 3px solid var(--fm-gcal-accent-soft);
	border-top-color: var(--fm-gcal-accent);
	border-radius: 50%;
	animation: fm-gcal-spin .7s linear infinite;
}

@keyframes fm-gcal-spin { to { transform: rotate(360deg); } }

@media (min-width: 1025px) {
	.fm-gcal--has-intro {
		grid-template-columns: minmax(0, var(--fm-gcal-text-column)) minmax(0, 1fr);
		align-items: stretch;
	}
}

@media (max-width: 1024px) {
	.fm-gcal--has-intro {
		grid-template-columns: minmax(0, 1fr);
		--fm-gcal-layout-gap: 28px;
	}
}

@media (max-width: 767px) {
	body.fm-gcal-modal-open {
		overflow: hidden;
	}

	.fm-gcal.is-modal-open {
		z-index: 99999;
	}

	.fm-gcal--has-intro {
		--fm-gcal-layout-gap: 20px;
	}

	.fm-gcal__header {
		grid-template-columns: 44px minmax(0, 1fr) auto;
		gap: 6px;
		padding-inline: 2px;
	}

	.fm-gcal__nav {
		width: 44px;
		height: 44px;
		min-height: 44px;
	}

	.fm-gcal .fm-gcal__today {
		min-height: 44px;
		padding-inline: 10px;
		font-size: 16px;
	}

		.fm-gcal__month-title { font-size: 17px; }
		.fm-gcal__weekday { padding: 8px 2px; }
		.fm-gcal__grid { border-spacing: 1px; }
		.fm-gcal__day { height: 56px; min-height: 56px; }
	.fm-gcal__day-inner { align-items: center; gap: 2px; padding: 4px 2px; }
	.fm-gcal__date-number { width: 26px; height: 26px; min-height: 26px; font-size: 12px; }
	.fm-gcal__events { flex-flow: row wrap; align-content: flex-start; justify-content: center; gap: 3px; }
	.fm-gcal__event { width: auto; }
	.fm-gcal__event-trigger { justify-content: center; width: 24px; min-width: 24px; min-height: 24px; padding: 5px; }
	.fm-gcal__event-dot { display: block; }
	.fm-gcal__event-cell-title,
	.fm-gcal__more { display: none; }
	.fm-gcal__event.is-open .fm-gcal__modal-backdrop {
		position: fixed;
		inset: 0;
		z-index: 9998;
		display: block;
		background: rgba(33, 16, 30, .58);
	}
	.fm-gcal__tooltip {
		position: fixed;
		left: 50%;
		right: auto;
		top: auto;
		bottom: max(12px, env(safe-area-inset-bottom));
		z-index: 9999;
		width: min(520px, calc(100vw - 24px));
		max-height: min(70vh, 520px);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
		transform: translateX(-50%) translateY(12px);
	}
	.fm-gcal__event.is-tooltip-below .fm-gcal__tooltip {
		top: auto;
		bottom: max(12px, env(safe-area-inset-bottom));
	}
	.fm-gcal__event.is-open .fm-gcal__tooltip { transform: translateX(-50%) translateY(0); }
	.fm-gcal__modal-close {
		position: absolute;
		top: 8px;
		right: 8px;
		z-index: 1;
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		min-height: 44px;
		padding: 10px;
		border-radius: 999px;
		color: var(--fm-gcal-primary);
		background: var(--fm-gcal-accent-soft);
		cursor: pointer;
		transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .12s ease;
	}
	.fm-gcal__modal-close:hover,
	.fm-gcal__modal-close:focus-visible {
		color: #fff;
		background: var(--fm-gcal-accent);
	}
	.fm-gcal__modal-close:active {
		color: #fff;
		background: var(--fm-gcal-primary);
		transform: scale(.96);
	}
	.fm-gcal__modal-close:focus-visible {
		outline: none;
		box-shadow: none;
	}
	.fm-gcal__tooltip-title {
		min-height: 36px;
		padding-inline-end: 48px;
	}
}

@media (max-width: 479px) {
	.fm-gcal__header {
		grid-template-columns: 44px minmax(0, 1fr) 44px;
		row-gap: 8px;
	}

	.fm-gcal__nav--prev {
		grid-column: 1;
		grid-row: 1;
	}

	.fm-gcal__month-title {
		grid-column: 2;
		grid-row: 1;
	}

	.fm-gcal__header-actions {
		display: contents;
	}

	.fm-gcal__nav--next {
		grid-column: 3;
		grid-row: 1;
	}

	.fm-gcal .fm-gcal__today {
		grid-column: 1 / -1;
		grid-row: 2;
		justify-self: center;
	}
}

/* The widget compacts itself from its actual Elementor column width, even on desktop. */
@container fm-gcal (max-width: 760px) {
	.fm-gcal--has-intro {
		grid-template-columns: minmax(0, 1fr);
		--fm-gcal-layout-gap: 20px;
	}
	.fm-gcal__day { height: 64px; min-height: 64px; }
	.fm-gcal__day-inner { align-items: center; gap: 2px; padding: 4px 2px; }
	.fm-gcal__date-number { width: 26px; height: 26px; min-height: 26px; }
	.fm-gcal__events { flex-flow: row wrap; align-content: flex-start; justify-content: center; gap: 3px; }
	.fm-gcal__event { width: auto; }
	.fm-gcal__event-trigger { justify-content: center; width: 22px; min-width: 22px; min-height: 22px; padding: 5px; }
	.fm-gcal__event-dot { display: block; }
	.fm-gcal__event-cell-title,
	.fm-gcal__more { display: none; }
}

/* Home-page list inspired by the OXA Academy layout. */
.fm-gcal-upcoming {
	--fm-gcal-upcoming-accent: #f05a28;
	--fm-gcal-upcoming-text: #111;
	--fm-gcal-upcoming-muted: #5f5f5f;
	--fm-gcal-upcoming-line: #dedede;
	--fm-gcal-upcoming-date-bg: #fff0e9;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	padding: clamp(20px, 3vw, 42px);
	border-radius: 8px;
	color: var(--fm-gcal-upcoming-text);
	background: #fff;
	font-family: var(--e-global-typography-text-font-family, Montserrat, sans-serif);
	box-sizing: border-box;
	container-type: inline-size;
}

.fm-gcal-upcoming *,
.fm-gcal-upcoming *::before,
.fm-gcal-upcoming *::after { box-sizing: border-box; }

.fm-gcal-upcoming__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 18px;
}

.fm-gcal-upcoming__title {
	margin: 0;
	font-size: clamp(19px, 2.2vw, 27px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.04em;
}

.fm-gcal-upcoming__filter {
	min-width: 180px;
	height: 46px;
	padding: 0 42px 0 16px;
	border: 1px solid #d4d4d4;
	border-radius: 5px;
	color: var(--fm-gcal-upcoming-text);
	background: #fff;
	font: inherit;
	font-size: 15px;
}

.fm-gcal-upcoming__list { border-top: 0; }

.fm-gcal-upcoming__item {
	display: grid;
	grid-template-columns: 100px minmax(0, 1fr) minmax(120px, 170px) 36px;
	align-items: center;
	gap: clamp(16px, 3vw, 34px);
	min-height: 126px;
	padding: 20px 0;
	border-bottom: 1px solid var(--fm-gcal-upcoming-line);
}

.fm-gcal-upcoming__item[hidden] { display: none !important; }

.fm-gcal-upcoming__date {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	width: 100px;
	height: 100px;
	padding: 8px;
	border-radius: 6px;
	color: var(--fm-gcal-upcoming-text);
	background: var(--fm-gcal-upcoming-date-bg);
	text-align: center;
}

.fm-gcal-upcoming__day {
	font-size: 44px;
	font-weight: 700;
	line-height: .95;
	letter-spacing: -.05em;
}

.fm-gcal-upcoming__month {
	margin-top: 7px;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
}

.fm-gcal-upcoming__content { min-width: 0; }

.fm-gcal-upcoming__type {
	margin-bottom: 7px;
	color: var(--fm-gcal-upcoming-accent);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}

.fm-gcal-upcoming__course-title {
	margin: 0 0 7px;
	font-size: clamp(18px, 2vw, 24px);
	font-weight: 600;
	line-height: 1.2;
}

.fm-gcal-upcoming__course-title a {
	color: inherit;
	text-decoration: none;
}

.fm-gcal-upcoming__course-title a:hover,
.fm-gcal-upcoming__course-title a:focus-visible { color: var(--fm-gcal-upcoming-accent); }

.fm-gcal-upcoming__location,
.fm-gcal-upcoming__seats {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--fm-gcal-upcoming-muted);
	font-size: 14px;
	line-height: 1.35;
}

.fm-gcal-upcoming__location svg { width: 19px; height: 19px; flex: 0 0 auto; }
.fm-gcal-upcoming__seats svg { width: 25px; height: 23px; flex: 0 0 auto; }

.fm-gcal-upcoming__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--fm-gcal-upcoming-text);
	text-decoration: none;
	transition: color .2s ease, transform .2s ease;
}

.fm-gcal-upcoming__arrow:hover,
.fm-gcal-upcoming__arrow:focus-visible {
	color: var(--fm-gcal-upcoming-accent);
	transform: translateX(3px);
}

.fm-gcal-upcoming__arrow svg { width: 30px; height: 20px; }

.fm-gcal-upcoming__empty {
	margin: 0;
	padding: 30px 0;
	border-bottom: 1px solid var(--fm-gcal-upcoming-line);
}

.fm-gcal-upcoming__footer {
	display: grid;
	grid-template-columns: 28px minmax(0, 1fr) 32px;
	align-items: center;
	gap: 16px;
	min-height: 68px;
	color: var(--fm-gcal-upcoming-text);
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
}

.fm-gcal-upcoming__footer:hover,
.fm-gcal-upcoming__footer:focus-visible { color: var(--fm-gcal-upcoming-accent); }
.fm-gcal-upcoming__footer > svg:first-child { width: 26px; height: 26px; }
.fm-gcal-upcoming__footer > svg:last-child { width: 30px; height: 20px; justify-self: end; }

@container (max-width: 700px) {
	.fm-gcal-upcoming__item {
		grid-template-columns: 78px minmax(0, 1fr) 32px;
		gap: 15px;
		min-height: 108px;
	}
	.fm-gcal-upcoming__date { width: 78px; height: 78px; }
	.fm-gcal-upcoming__day { font-size: 34px; }
	.fm-gcal-upcoming__seats { grid-column: 2; margin-top: -8px; }
	.fm-gcal-upcoming__arrow { grid-column: 3; grid-row: 1 / span 2; }
}

@container (max-width: 470px) {
	.fm-gcal-upcoming__header { align-items: stretch; flex-direction: column; }
	.fm-gcal-upcoming__filter { width: 100%; }
	.fm-gcal-upcoming__item { grid-template-columns: 70px minmax(0, 1fr) 28px; gap: 12px; }
	.fm-gcal-upcoming__date { width: 70px; height: 70px; }
	.fm-gcal-upcoming__day { font-size: 30px; }
	.fm-gcal-upcoming__month { font-size: 10px; }
	.fm-gcal-upcoming__course-title { font-size: 17px; }
	.fm-gcal-upcoming__location,
	.fm-gcal-upcoming__seats { font-size: 12px; }
}

/* Elementor containers may use align-items:flex-start and shrink widgets to their
 * smallest intrinsic width. Keep both calendar widgets fluid on tablet/mobile. */
@media (max-width: 1024px) {
	.elementor-widget-fm-google-calendar,
	[data-widget_type="fm-google-calendar.default"],
	.elementor-widget-fm-google-calendar-upcoming,
	[data-widget_type="fm-google-calendar-upcoming.default"] {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		align-self: stretch !important;
	}

	.elementor-widget-fm-google-calendar > .elementor-widget-container,
	[data-widget_type="fm-google-calendar.default"] > .elementor-widget-container,
	.elementor-widget-fm-google-calendar-upcoming > .elementor-widget-container,
	[data-widget_type="fm-google-calendar-upcoming.default"] > .elementor-widget-container {
		width: 100%;
		max-width: 100%;
		min-width: 0;
	}
}

@media (max-width: 767px) {
	.fm-gcal-upcoming { padding: 20px; }

	.fm-gcal-upcoming__header {
		align-items: stretch;
		flex-direction: column;
		gap: 16px;
		margin-bottom: 10px;
	}

	.fm-gcal-upcoming__title { font-size: clamp(19px, 5.5vw, 24px); }

	.fm-gcal-upcoming__filter-label,
	.fm-gcal-upcoming__filter {
		width: 100%;
		min-width: 0;
	}

	.fm-gcal-upcoming__item {
		grid-template-columns: 64px minmax(0, 1fr) 28px;
		grid-template-rows: auto auto;
		align-items: start;
		column-gap: 12px;
		row-gap: 9px;
		min-height: 0;
		padding: 20px 0;
	}

	.fm-gcal-upcoming__date {
		grid-column: 1;
		grid-row: 1 / span 2;
		width: 64px;
		height: 64px;
		padding: 6px;
	}

	.fm-gcal-upcoming__day { font-size: 28px; }
	.fm-gcal-upcoming__month { margin-top: 5px; font-size: 9px; }

	.fm-gcal-upcoming__content {
		grid-column: 2;
		grid-row: 1;
		width: 100%;
		min-width: 0;
	}

	.fm-gcal-upcoming__type {
		margin-bottom: 5px;
		font-size: 11px;
	}

	.fm-gcal-upcoming__course-title {
		font-size: 16px;
		line-height: 1.25;
		overflow-wrap: anywhere;
	}

	.fm-gcal-upcoming__location,
	.fm-gcal-upcoming__seats {
		font-size: 12px;
		line-height: 1.35;
	}

	.fm-gcal-upcoming__location > span,
	.fm-gcal-upcoming__seats > span {
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.fm-gcal-upcoming__seats {
		grid-column: 2;
		grid-row: 2;
		align-self: start;
		margin: 0;
	}

	.fm-gcal-upcoming__arrow {
		grid-column: 3;
		grid-row: 1 / span 2;
		align-self: center;
		width: 28px;
		height: 36px;
	}

	.fm-gcal-upcoming__arrow svg { width: 26px; }

	.fm-gcal-upcoming__footer {
		grid-template-columns: 24px minmax(0, 1fr) 26px;
		gap: 10px;
		font-size: 12px;
	}
}

@media (max-width: 360px) {
	.fm-gcal-upcoming { padding: 16px; }
	.fm-gcal-upcoming__item {
		grid-template-columns: 58px minmax(0, 1fr) 24px;
		column-gap: 10px;
	}
	.fm-gcal-upcoming__date { width: 58px; height: 58px; }
	.fm-gcal-upcoming__day { font-size: 25px; }
}

@media (prefers-reduced-motion: reduce) {
	.fm-gcal *, .fm-gcal *::before, .fm-gcal *::after {
		scroll-behavior: auto !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
