.aet-calendar {
	--aet-font-family: var(--the7-base-font-family, "Roboto", Helvetica, Arial, Verdana, sans-serif);
	--aet-fallback-accent: #f3615a;
	--aet-accent: var(--the7-accent-color, var(--aet-fallback-accent));
	--aet-accent-hover: var(--the7-btn-hover-bg-color, #c64e4b);
	--aet-title: var(--the7-title-color, #333333);
	--aet-text: var(--the7-base-color, #85868c);
	--aet-border: var(--the7-divider-color, rgba(51, 51, 51, .12));
	position: relative;
	box-sizing: border-box;
	width: 100%;
	color: var(--aet-text);
	font-family: var(--aet-font-family);
	font-size: 15px;
	line-height: 1.5;
}

.aet-calendar *,
.aet-calendar *::before,
.aet-calendar *::after {
	box-sizing: border-box;
	font-family: inherit !important;
}

.aet-calendar button,
.aet-calendar input,
.aet-calendar a {
	font-family: inherit;
}

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

.aet-calendar__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 20px;
}

.aet-calendar__title {
	margin: 0;
	color: var(--aet-title);
	font-family: var(--the7-h2-font-family, var(--aet-font-family)) !important;
	font-size: clamp(26px, 3vw, var(--the7-h2-font-size, 34px));
	font-weight: var(--the7-h2-font-weight, 700);
	line-height: 1.2;
}

.aet-calendar__navigation {
	display: flex;
	align-items: center;
	gap: 9px;
}

.aet-calendar__month-label {
	min-width: 175px;
	color: var(--aet-title);
	font-family: var(--the7-h4-font-family, var(--aet-font-family)) !important;
	font-size: 18px;
	font-weight: 700;
	text-align: center;
	text-transform: capitalize;
}

.aet-calendar__nav-button {
	display: inline-grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--aet-border);
	border-radius: var(--the7-base-border-radius, 1px);
	color: var(--aet-title);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.aet-calendar__nav-button:hover,
.aet-calendar__nav-button:focus-visible {
	background: var(--aet-accent);
	border-color: var(--aet-accent);
	color: #fff;
	outline: 0;
}

.aet-calendar__nav-button:disabled {
	opacity: .45;
	cursor: wait;
}

.aet-calendar__viewport {
	background: #fff;
	border: 1px solid var(--aet-border);
	border-radius: var(--the7-base-border-radius, 1px);
	overflow: hidden;
	transition: opacity .2s ease;
}

.aet-calendar--loading .aet-calendar__viewport {
	opacity: .45;
	pointer-events: none;
}

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

.aet-weekday {
	padding: 13px 8px;
	background: #fff7f6;
	background: color-mix(in srgb, var(--aet-accent), white 94%);
	border-right: 1px solid var(--aet-border);
	color: var(--aet-title);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-align: center;
	text-transform: uppercase;
}

.aet-weekday:nth-child(7) {
	border-right: 0;
}

.aet-weekday__short,
.aet-day__mobile-label {
	display: none;
}

.aet-day {
	min-width: 0;
	min-height: 145px;
	padding: 10px;
	background: #fff;
	border-top: 1px solid var(--aet-border);
	border-right: 1px solid var(--aet-border);
}

.aet-day:nth-child(7n) {
	border-right: 0;
}

.aet-day--outside {
	background: rgba(0, 0, 0, .018);
}

.aet-day__heading {
	display: flex;
	justify-content: flex-end;
	margin-bottom: 7px;
}

.aet-day__number {
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	color: var(--aet-title);
	font-size: 13px;
	font-weight: 700;
}

.aet-day--today .aet-day__number {
	background: var(--aet-accent);
	border-radius: 50%;
	color: #fff;
}

.aet-day__events {
	display: grid;
	gap: 5px;
}

.aet-event-pill {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	padding: 7px 8px 7px 11px;
	background: #fdf1f0;
	background: color-mix(in srgb, var(--aet-event-color), white 89%);
	border: 0;
	border-left: 3px solid var(--aet-event-color);
	border-radius: 2px;
	color: var(--aet-title);
	font-size: 12px;
	line-height: 1.35;
	text-align: left;
	cursor: pointer;
	transition: background-color .18s ease, transform .18s ease;
}

.aet-event-pill:hover,
.aet-event-pill:focus-visible {
	background: #fbe3e1;
	background: color-mix(in srgb, var(--aet-event-color), white 80%);
	outline: 0;
	transform: translateY(-1px);
}

.aet-event-pill__time {
	display: block;
	font-size: 10px;
	font-weight: 700;
	opacity: .72;
}

.aet-event-pill__title {
	display: block;
	overflow: hidden;
	font-weight: 700;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.aet-calendar__empty {
	margin: 0;
	padding: 22px;
	background: #fff9f8;
	background: color-mix(in srgb, var(--aet-accent), white 96%);
	border-top: 1px solid var(--aet-border);
	text-align: center;
}

.aet-modal[hidden] {
	display: none;
}

.aet-modal {
	position: fixed;
	z-index: 999999;
	inset: 0;
	display: grid;
	place-items: center;
	padding: 24px;
}

.aet-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 24, .72);
	backdrop-filter: blur(4px);
}

.aet-modal__dialog {
	position: relative;
	width: min(820px, 100%);
	max-height: min(86vh, 900px);
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, .28);
	overflow: auto;
	outline: 0;
}

.aet-modal__close {
	position: absolute;
	z-index: 2;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 42px;
	height: 42px;
	padding: 0;
	background: rgba(255, 255, 255, .94);
	border: 0;
	border-radius: 50%;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .15);
	color: #333;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.aet-event-detail__image {
	height: min(330px, 36vh);
	background: #f4f4f4;
}

.aet-event-detail__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.aet-event-detail__content {
	padding: clamp(24px, 5vw, 46px);
}

.aet-event-detail__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 13px;
}

.aet-event-detail__categories span {
	padding: 5px 9px;
	background: #fce7e5;
	background: color-mix(in srgb, var(--aet-accent), white 88%);
	color: var(--aet-accent-hover);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
}

.aet-event-detail__title {
	margin: 0 52px 20px 0;
	color: var(--aet-title);
	font-family: var(--the7-h3-font-family, var(--aet-font-family)) !important;
	font-size: clamp(24px, 4vw, var(--the7-h3-font-size, 30px));
	font-weight: var(--the7-h3-font-weight, 700);
	line-height: 1.25;
}

.aet-event-detail__meta {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px 24px;
	margin: 0 0 26px;
	padding: 20px;
	background: var(--the7-content-boxes-bg, #f7f7f7);
}

.aet-event-detail__meta div {
	min-width: 0;
}

.aet-event-detail__meta dt {
	margin-bottom: 2px;
	color: var(--aet-title);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.aet-event-detail__meta dd {
	margin: 0;
	color: var(--aet-text);
	font-size: 14px;
}

.aet-event-detail__description,
.aet-event-detail__section {
	margin: 0 0 23px;
}

.aet-event-detail__section h4,
.aet-event-share h4 {
	margin: 0 0 8px;
	color: var(--aet-title);
	font-size: 15px;
	font-weight: 700;
	font-family: var(--the7-h4-font-family, var(--aet-font-family)) !important;
}

.aet-event-detail__section p {
	margin: 0;
	white-space: pre-line;
}

.aet-event-detail__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 5px;
	padding: var(--the7-btn-m-padding, 12px 18px);
	background: var(--aet-accent);
	border-radius: var(--the7-btn-m-border-radius, 1px);
	color: var(--the7-btn-color, #fff) !important;
	font-family: var(--the7-btn-m-font-family, var(--aet-font-family)) !important;
	font-size: var(--the7-btn-m-font-size, 14px);
	font-weight: var(--the7-btn-m-font-weight, 700);
	text-decoration: none;
}

.aet-event-detail__link:hover,
.aet-event-detail__link:focus-visible {
	background: var(--aet-accent-hover);
	color: #fff;
}

.aet-event-share {
	margin-top: 27px;
	padding-top: 22px;
	border-top: 1px solid var(--aet-border);
}

.aet-event-share__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.aet-event-share__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 7px 12px;
	background: #fff;
	border: 1px solid var(--aet-border);
	color: var(--aet-title) !important;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.aet-event-share__button:hover,
.aet-event-share__button:focus-visible {
	border-color: var(--aet-accent);
	color: var(--aet-accent) !important;
}

.aet-modal-open {
	overflow: hidden;
}

@media (max-width: 900px) {
	.aet-weekday__long { display: none; }
	.aet-weekday__short { display: inline; }
	.aet-day { min-height: 120px; padding: 7px; }
}

@media (max-width: 700px) {
	.aet-calendar__topbar { align-items: flex-start; flex-direction: column; }
	.aet-calendar__navigation { width: 100%; justify-content: space-between; }
	.aet-calendar__month-label { flex: 1; min-width: 0; }
	.aet-calendar__viewport { border: 0; background: transparent; overflow: visible; }
	.aet-calendar-grid { display: block; }
	.aet-weekday,
	.aet-day--outside,
	.aet-day--no-events { display: none; }
	.aet-day { min-height: 0; margin-bottom: 12px; padding: 14px; border: 1px solid var(--aet-border) !important; }
	.aet-day__heading { justify-content: space-between; margin-bottom: 10px; }
	.aet-day__mobile-label { display: inline; color: var(--aet-title); font-weight: 700; text-transform: capitalize; }
	.aet-day__number { display: none; }
	.aet-event-pill { padding: 10px 12px 10px 14px; font-size: 13px; }
	.aet-event-detail__meta { grid-template-columns: 1fr; }
	.aet-modal { padding: 10px; }
	.aet-modal__dialog { max-height: 92vh; }
	.aet-event-detail__image { height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
	.aet-calendar *,
	.aet-calendar *::before,
	.aet-calendar *::after { scroll-behavior: auto !important; transition: none !important; }
}
