/* SANATA Toolkit — events-calendar module (C-EVENTS-CSS).
   Essential Addons Event Calendar (FullCalendar) in SANATA red, Google-Calendar clean.
   No yellow, no purple. Prefix body:not(#sanata-ev) = id-level specificity: beats the widget's own
   Elementor style settings (some carry !important, e.g. list row colours #000) and the kit's white links. */

body:not(#sanata-ev) .eael-event-calendar-wrapper,
body:not(#sanata-ev) #eaelecModal {
	--sev-red: #C8312E;
	--sev-red-dark: #A82724;
	--sev-tint: #FBF1F0;
	--sev-text: #333;
	--sev-head: #1F1A24;
	--sev-grey: #6F6A75;
	--sev-line: #E6E3E9;
	--sev-line-soft: #ECE8EF;
	--sev-thumb: #D9D4DE;
	--sev-font: "DM Sans", sans-serif;
}

/* ---------- Base ---------- */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc {
	--fc-border-color: var(--sev-line-soft);
	--fc-page-bg-color: #fff;
	--fc-neutral-bg-color: #fff;
	--fc-today-bg-color: var(--sev-tint);
	--fc-event-bg-color: var(--sev-red);
	--fc-event-border-color: var(--sev-red);
	--fc-event-text-color: #fff;
	--fc-now-indicator-color: var(--sev-red);
	--fc-list-event-hover-bg-color: var(--sev-tint);
	--fc-button-bg-color: #fff;
	--fc-button-border-color: var(--sev-red);
	--fc-button-text-color: var(--sev-red);
	--fc-button-hover-bg-color: var(--sev-tint);
	--fc-button-hover-border-color: var(--sev-red);
	--fc-button-active-bg-color: var(--sev-red);
	--fc-button-active-border-color: var(--sev-red);
	color: var(--sev-text);
	font-family: var(--sev-font) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc *:not(.fc-icon):not(i) {
	font-family: var(--sev-font) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-icon {
	font-family: fcicons !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc a {
	color: inherit;
	text-decoration: none !important;
}

/* ---------- Toolbar ---------- */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-header-toolbar {
	gap: 12px;
	margin-bottom: 18px !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-toolbar-chunk {
	display: flex;
	align-items: center;
	gap: 8px;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc h2.fc-toolbar-title,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-toolbar-title {
	margin: 0 !important;
	color: var(--sev-head) !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	letter-spacing: -0.01em;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button-group {
	gap: 6px;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button-group > .fc-button {
	margin: 0 !important;
	border-radius: 999px !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	padding: 7px 16px !important;
	border: 1px solid var(--sev-red) !important;
	border-radius: 999px !important;
	background: #fff !important;
	color: var(--sev-red) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: capitalize !important;
	box-shadow: none !important;
	opacity: 1 !important;
	transition: background .15s ease, color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button:hover {
	background: var(--sev-tint) !important;
	color: var(--sev-red) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button:focus-visible {
	outline: 2px solid var(--sev-red) !important;
	outline-offset: 2px;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button.fc-button-active,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button-primary:not(:disabled).fc-button-active {
	background: var(--sev-red) !important;
	border-color: var(--sev-red) !important;
	color: #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button.fc-button-active:hover {
	background: var(--sev-red-dark) !important;
	border-color: var(--sev-red-dark) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button:disabled {
	background: var(--sev-tint) !important;
	border-color: #F0C9C7 !important;
	color: var(--sev-red) !important;
	cursor: default;
}
/* Prev / next: round icon buttons */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-prev-button,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-next-button {
	width: 38px;
	padding: 0 !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button .fc-icon {
	font-size: 18px;
	color: inherit !important;
}
/* EA prints Font Awesome icons in view buttons; they add noise next to the label. */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button > i,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button > svg {
	display: none !important;
}

/* ---------- Grid ---------- */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-scrollgrid,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-view.fc-listMonth-view,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-view.fc-listWeek-view {
	border: 1px solid var(--sev-line) !important;
	border-radius: 12px !important;
	overflow: hidden;
	background: #fff !important;
	box-shadow: none !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-view.fc-listMonth-view .fc-list,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-view.fc-listWeek-view .fc-list {
	border: 0 !important;
	border-radius: 0 !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc th,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-view table thead:first-child tr:first-child td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc hr.fc-divider {
	border-color: var(--sev-line-soft) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-scrollgrid-section-header > td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-col-header-cell {
	background: #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-col-header-cell {
	padding: 10px 0 8px !important;
	text-align: center;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-col-header-cell-cushion {
	display: inline-block;
	padding: 0 !important;
	color: var(--sev-grey) !important;
	font-size: 12px !important;
	font-weight: 600 !important;
	letter-spacing: .06em;
	text-transform: uppercase;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion {
	color: var(--sev-red) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-day,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-col,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-day-other {
	background: #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-day-top {
	display: flex !important;
	justify-content: center;
	padding-top: 6px;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-day-number {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	min-width: 28px;
	height: 28px;
	padding: 0 6px !important;
	border-radius: 999px;
	color: var(--sev-text) !important;
	font-size: 13px !important;
	font-weight: 500;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-day-other .fc-daygrid-day-number {
	color: #B5B0BA !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-day-number:hover {
	background: var(--sev-tint);
}
/* Today: Month = red circle on the number; Week/Day = tinted column */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-day.fc-day-today {
	background: #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-day-today .fc-daygrid-day-top a {
	width: 28px;
	padding: 0 !important;
	background: var(--sev-red) !important;
	color: #fff !important;
	font-weight: 600;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-col.fc-day-today,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timeGridWeek-view .fc-col-header-cell.fc-day-today,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timeGridDay-view .fc-col-header-cell.fc-day-today {
	background: var(--sev-tint) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-slot,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-slot-lane,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-slots tr,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-slots td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-axis,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-body tr,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-divider {
	background: transparent !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-body,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-view-harness,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-scrollgrid-section-sticky > *,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-cell-shaded {
	background: #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-scrollgrid-section-body > td {
	background: transparent !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-slot-minor {
	border-top-style: dotted !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-axis-cushion {
	text-transform: none;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-event-harness-inset .fc-timegrid-event {
	box-shadow: 0 0 0 1.5px #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-slot-label-cushion,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-axis-cushion {
	color: var(--sev-grey) !important;
	font-size: 12px !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-now-indicator-line {
	border-color: var(--sev-red) !important;
}

/* ---------- Events ---------- */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-event,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-event,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-h-event,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-v-event,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-block-event,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-dot-event {
	margin: 1px 4px 2px !important;
	padding: 2px 6px !important;
	border: 0 !important;
	border-radius: 6px !important;
	background: var(--sev-red) !important;
	color: #fff !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	cursor: pointer;
	transition: background .15s ease;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-event {
	margin: 0 2px !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-event:hover,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-event:hover {
	background: var(--sev-red-dark) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-event *,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-timegrid-event * {
	color: #fff !important;
	background: transparent !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-event-dot {
	border-color: #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-event-time {
	font-weight: 600 !important;
	margin-right: 3px;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-more-link {
	margin: 2px 6px;
	color: var(--sev-red) !important;
	font-size: 12px !important;
	font-weight: 600;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-popover {
	border: 1px solid var(--sev-line) !important;
	border-radius: 12px !important;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, .12) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-popover-header {
	padding: 8px 12px !important;
	background: #fff !important;
	color: var(--sev-head) !important;
	font-weight: 600;
}

/* ---------- List view ---------- */
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-table td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-table th {
	border-color: var(--sev-line-soft) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-day > th,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-day-cushion,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list .fc-list-table .fc-list-day .fc-list-day-cushion {
	padding: 10px 16px !important;
	background: #FAF8F6 !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-day-text {
	color: var(--sev-head) !important;
	font-size: 14px !important;
	font-weight: 600 !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-day-side-text {
	color: var(--sev-grey) !important;
	font-size: 13px !important;
	font-weight: 500 !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event:nth-child(odd) td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event:nth-child(even) td,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event:nth-child(even) {
	padding: 14px 16px !important;
	background: #fff !important;
	color: var(--sev-text) !important;
	cursor: pointer;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event:hover td {
	background: var(--sev-tint) !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event .fc-list-event-time {
	color: var(--sev-grey) !important;
	font-size: 13px !important;
	white-space: nowrap;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event .fc-list-event-title,
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event .fc-list-event-title a {
	color: var(--sev-text) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event-dot {
	border: 5px solid var(--sev-red) !important;
	border-radius: 50%;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-empty {
	padding: 40px 20px !important;
	background: #fff !important;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-empty-cushion {
	color: var(--sev-grey) !important;
	font-size: 15px;
}

/* ---------- Scrollbars (same feel as the therapist bio scroll) ---------- */
/* Chrome ignores ::-webkit-scrollbar (and draws arrow buttons) once scrollbar-width is set,
   so the standard properties go to browsers without ::-webkit-scrollbar (Firefox) only. */
@supports not selector(::-webkit-scrollbar) {
	body:not(#sanata-ev) .eael-event-calendar-wrapper,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-scroller,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-scroller-liquid-absolute,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-list,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-view-harness,
	body:not(#sanata-ev) #eaelecModal .eaelec-modal-content,
	body:not(#sanata-ev) #eaelecModal .eaelec-modal-body {
		scrollbar-width: thin;
		scrollbar-color: var(--sev-thumb) transparent;
	}
}
/* Undo Web's widget CSS (scrollbar-width: thin !important) for WebKit, so the styles below apply. */
@supports selector(::-webkit-scrollbar) {
	body:not(#sanata-ev) .eael-event-calendar-wrapper,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-scroller,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-scroller-liquid-absolute,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-list,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc-view-harness {
		scrollbar-width: auto !important;
		scrollbar-color: auto !important;
	}
}
body:not(#sanata-ev) .eael-event-calendar-wrapper ::-webkit-scrollbar,
body:not(#sanata-ev) #eaelecModal ::-webkit-scrollbar {
	width: 6px;
	height: 6px;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper ::-webkit-scrollbar-track,
body:not(#sanata-ev) #eaelecModal ::-webkit-scrollbar-track {
	background: transparent;
}
body:not(#sanata-ev) .eael-event-calendar-wrapper ::-webkit-scrollbar-thumb,
body:not(#sanata-ev) #eaelecModal ::-webkit-scrollbar-thumb {
	border-radius: 999px;
	background: var(--sev-thumb);
}
body:not(#sanata-ev) .eael-event-calendar-wrapper ::-webkit-scrollbar-button,
body:not(#sanata-ev) #eaelecModal ::-webkit-scrollbar-button {
	display: none;
	width: 0;
	height: 0;
}

/* ---------- Popup (#eaelecModal) ---------- */
body:not(#sanata-ev) #eaelecModal.eaelec-modal {
	background: rgba(31, 26, 36, 0.45) !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-content {
	position: relative !important;
	width: calc(100% - 32px);
	max-width: 520px;
	max-height: calc(100vh - 64px);
	overflow: auto;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: 0 18px 50px rgba(31, 26, 36, 0.18) !important;
	color: var(--sev-text) !important;
	font-family: var(--sev-font) !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-header {
	padding: 28px 64px 20px 28px !important;
	border: 0 !important;
	border-left: 0 !important;
	background: #fff !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-header:has(+ .eaelec-modal-body:empty) {
	padding-bottom: 28px !important;
}
body:not(#sanata-ev) #eaelecModal h2.eael-ec-modal-title {
	margin: 0 0 12px !important;
	padding: 0 !important;
	color: var(--sev-red) !important;
	font-family: var(--sev-font) !important;
	font-size: 22px !important;
	font-weight: 600 !important;
	line-height: 1.25 !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-event-popup-date,
body:not(#sanata-ev) #eaelecModal .eaelec-event-popup-location {
	color: var(--sev-grey) !important;
	font-family: var(--sev-font) !important;
	font-size: 14px !important;
	font-weight: 500;
	line-height: 1.6;
}
body:not(#sanata-ev) #eaelecModal .eaelec-event-popup-location:not([style*="none"]) {
	display: block !important;
	margin-top: 4px;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-header i:not(.fa-times),
body:not(#sanata-ev) #eaelecModal .eaelec-event-popup-date i,
body:not(#sanata-ev) #eaelecModal .eaelec-event-popup-location i {
	margin-right: 6px;
	color: var(--sev-red) !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body {
	padding: 0 28px 26px !important;
	border: 0 !important;
	background: #fff !important;
	color: var(--sev-text) !important;
	font-family: var(--sev-font) !important;
	font-size: 15px !important;
	line-height: 1.65 !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body * {
	color: var(--sev-text) !important;
	font-family: var(--sev-font) !important;
}
/* EA lays text and image side by side in a fixed 300px box (inline height): stack them, image first. */
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body:not(:empty) {
	display: flex !important;
	flex-direction: column;
	gap: 16px;
	height: auto !important;
	max-height: none !important;
	overflow: visible !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body-content {
	width: auto !important;
	white-space: pre-line;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body-content:empty {
	display: none !important;
}
body:not(#sanata-ev) #eaelecModal img.eaelec-modal-body-img {
	order: -1;
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	max-height: 260px;
	margin: 0 !important;
	border-radius: 12px;
	object-fit: cover;
	background: #FAF8F6;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body a {
	color: var(--sev-red) !important;
	text-decoration: underline !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body p:last-child {
	margin-bottom: 0;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-body:empty {
	display: none !important;
}
/* Clicks stay in the popup: no link out to the single page. */
body:not(#sanata-ev) #eaelecModal .eaelec-modal-footer,
body:not(#sanata-ev) #eaelecModal .eaelec-event-details-link,
body:not(#sanata-ev) #eaelecModal .sanata-ev-hide {
	display: none !important;
}
/* Venue + buttons added by assets/js/ea-calendar.js */
body:not(#sanata-ev) #eaelecModal .sanata-ev-venue {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	color: var(--sev-grey) !important;
	font-family: var(--sev-font) !important;
	font-size: 14px;
	font-weight: 500;
}
body:not(#sanata-ev) #eaelecModal .sanata-ev-venue::before {
	content: "";
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	background: var(--sev-red);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.2 7-12a7 7 0 0 0-14 0c0 5.8 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
body:not(#sanata-ev) #eaelecModal .sanata-ev-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 18px 28px 26px;
	border-top: 1px solid var(--sev-line-soft);
}
body:not(#sanata-ev) #eaelecModal a.sanata-ev-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 1px solid var(--sev-red);
	border-radius: 999px;
	background: var(--sev-red);
	color: #fff !important;
	font-family: var(--sev-font) !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	line-height: 1.2;
	text-decoration: none !important;
	transition: background .15s ease;
}
body:not(#sanata-ev) #eaelecModal a.sanata-ev-btn:hover {
	background: var(--sev-red-dark);
	border-color: var(--sev-red-dark);
	color: #fff !important;
}
body:not(#sanata-ev) #eaelecModal a.sanata-ev-btn--ghost {
	background: #fff;
	color: var(--sev-red) !important;
}
body:not(#sanata-ev) #eaelecModal a.sanata-ev-btn--ghost:hover {
	background: var(--sev-tint);
	border-color: var(--sev-red);
	color: var(--sev-red) !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-close {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	left: auto !important;
	z-index: 5;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 36px !important;
	height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 1px solid var(--sev-line) !important;
	border-radius: 50% !important;
	background: #fff !important;
	box-shadow: none !important;
	cursor: pointer;
	transition: background .15s ease;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-close > span {
	position: static !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-close:hover {
	background: var(--sev-tint) !important;
}
body:not(#sanata-ev) #eaelecModal .eaelec-modal-close i {
	color: var(--sev-text) !important;
	font-size: 15px !important;
}

/* ---------- Tablet / phone ---------- */
@media (max-width: 1024px) {
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button {
		min-height: 44px;
	}
	/* Month chips: title only, up to two lines (time cut titles to a few letters at 768). */
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-event {
		align-items: flex-start;
		white-space: normal !important;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-event .fc-event-time {
		display: none !important;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-daygrid-event .fc-event-title {
		display: -webkit-box !important;
		overflow: hidden;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 2;
		line-clamp: 2;
		white-space: normal !important;
		text-overflow: clip !important;
		overflow-wrap: anywhere;
		line-height: 1.3 !important;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-prev-button,
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-next-button {
		width: 44px;
	}
}
@media (max-width: 767px) {
	body:not(#sanata-ev) .eael-event-calendar-wrapper {
		max-width: 100%;
		overflow-x: hidden;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-header-toolbar {
		flex-wrap: wrap;
		justify-content: center;
		row-gap: 10px;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-toolbar-chunk {
		flex-wrap: wrap;
		justify-content: center;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-toolbar-chunk:has(.fc-toolbar-title) {
		order: -1;
		flex: 1 1 100%;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-toolbar-title {
		font-size: 20px !important;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-button {
		padding: 7px 14px !important;
		font-size: 13px !important;
	}
	body:not(#sanata-ev) .eael-event-calendar-wrapper .fc .fc-list-event td {
		padding: 12px 12px !important;
	}
	body:not(#sanata-ev) #eaelecModal .eaelec-modal-header {
		padding: 24px 58px 16px 20px !important;
	}
	body:not(#sanata-ev) #eaelecModal .eaelec-modal-body {
		padding: 0 20px 22px !important;
	}
	body:not(#sanata-ev) #eaelecModal h2.eael-ec-modal-title {
		font-size: 20px !important;
	}
	/* Phone popup: at most ~85% of the screen, text scrolls inside, the two buttons stay pinned at the bottom. */
	body:not(#sanata-ev) #eaelecModal .eaelec-modal-content {
		max-height: 85vh;
		max-height: 85dvh;
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}
	body:not(#sanata-ev) #eaelecModal img.eaelec-modal-body-img {
		max-height: 180px;
	}
	body:not(#sanata-ev) #eaelecModal .sanata-ev-actions {
		position: sticky;
		bottom: 0;
		z-index: 4;
		padding: 14px 20px 18px;
		background: #fff;
		box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.9);
	}
	body:not(#sanata-ev) #eaelecModal a.sanata-ev-btn {
		flex: 1 1 100%;
	}
}
