/**
 * Events Calendar Widget Styles
 *
 * CSS custom properties (set on .ecom-events-calendar-widget by Elementor selectors):
 *   --ecom-accent        — accent bar / today dot color
 *   --ecom-event-bg      — event pill / day-card background
 *   --ecom-today-dot     — today indicator dot color
 *   --ecom-active-tab    — active Day/Week/Month tab underline
 */

.ecom-events-calendar-widget {
	--fc-border-color: #e9eaeb;
	--fc-page-bg-color: #fafafa;
	--fc-neutral-bg-color: #fafafa;
	--fc-today-bg-color: transparent;
	--fc-event-bg-color: transparent;
	--fc-event-border-color: transparent;
	--fc-event-text-color: inherit;
	--_ecom-border: #e9eaeb;
	--_ecom-muted: #5c5f62;
	--_ecom-text: #181d27;
	--_ecom-subtle-bg: #f5f5f5;

	font-family: inherit;
	color: var(--_ecom-text);
}

/* ═══════════════════════════════════════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-ec-topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 12px 4px;
	margin-bottom: 12px;
}

.ecom-ec-period-tabs { display: flex; gap: 24px; }
.ecom-ec-period-tab {
	background: none;
	border: 0;
	padding: 6px 2px;
	font-size: 18px;
	font-weight: 500;
	color: var(--_ecom-muted);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: color .15s, border-color .15s;
}
.ecom-ec-period-tab:hover { color: var(--_ecom-text); }
.ecom-ec-period-tab.is-active {
	color: var(--_ecom-text);
	border-bottom-color: var(--ecom-active-tab, #2563eb);
}

.ecom-ec-filters {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.ecom-ec-search-wrap { position: relative; display: flex; align-items: center; }
.ecom-ec-search-ico {
	position: absolute;
	left: 16px;
	pointer-events: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #667085;
}
.ecom-ec-search-ico svg,
.ecom-ec-search-ico i { width: 18px; height: 18px; }
.ecom-ec-search {
	border: 1px solid #d5d7da;
	border-radius: 9999px;
	padding: 10px 20px 10px 44px;
	font-size: 14px;
	min-width: 240px;
	background: #fff;
	color: #414651;
	outline: none;
	box-shadow: 0px 1px 0.5px 0.05px rgba(24, 24, 27, 0.04);
	transition: border-color .15s, box-shadow .15s;
}
.ecom-ec-search:focus {
	border-color: var(--ecom-accent, #2563eb);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--ecom-accent, #2563eb) 12%, transparent);
}

.ecom-el-dropdown-wrap { position: relative; }
.ecom-el-dropdown-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	border: 1px solid #d5d7da;
	border-radius: 9999px;
	background: #fff;
	font-size: 14px;
	color: #414651;
	cursor: pointer;
	touch-action: manipulation;
	box-shadow: 0px 1px 0.5px 0.05px rgba(24, 24, 27, 0.04);
	transition: border-color .15s, box-shadow .15s;
	white-space: nowrap;
}
.ecom-el-dropdown-btn:hover { border-color: #bbbfc7; box-shadow: 0 1px 3px rgba(24, 24, 27, 0.08); }
.ecom-el-dropdown-btn .ecom-chevron { width: 20px; height: 20px; flex-shrink: 0; color: #667085; transition: transform .15s; }
.ecom-el-dropdown-btn[aria-expanded="true"] .ecom-chevron { transform: rotate(180deg); }

.ecom-el-dropdown-list {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 200px;
	max-height: 320px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	background: #fff;
	border: 1px solid var(--_ecom-border);
	border-radius: 10px;
	box-shadow: 0 10px 32px rgba(15, 23, 42, .08);
	list-style: none;
	margin: 0;
	padding: 6px;
	display: none;
	z-index: 20;
}
.ecom-el-dropdown-list.is-open { display: block; }
.ecom-el-dropdown-item {
	padding: 10px 12px;
	border-radius: 6px;
	font-size: 14px;
	cursor: pointer;
	color: var(--_ecom-text);
}
.ecom-el-dropdown-item:hover { background: var(--_ecom-subtle-bg); }
.ecom-el-dropdown-item.is-selected {
	background: var(--ecom-event-bg, #eef2ff);
	color: var(--ecom-accent, #6366f1);
	font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════
   CARD CONTAINER
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-ec-card {
	background: #fff;
	border-radius: 16px;
	border: 0.6px solid rgba(0, 0, 0, 0.18);
	box-shadow: 0 4px 2px rgba(0, 0, 0, 0.04);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ─── Card Header ─────────────────────────────────────────────────────── */

.ecom-ec-card-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 18px;
	border-bottom: 1px solid var(--_ecom-border);
	margin-bottom: 0;
}

.ecom-ec-card-header-left {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ecom-ec-current-label {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.556;
	color: var(--_ecom-text);
	letter-spacing: 0;
}

.ecom-ec-count-label {
	margin: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.43;
	color: var(--_ecom-muted);
}

.ecom-ec-nav { display: flex; gap: 12px; align-items: center; }
.ecom-ec-nav-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid #d5d7da;
	background: #fff;
	color: var(--_ecom-text);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background .15s, border-color .15s;
	overflow: hidden;
}
.ecom-ec-nav-btn svg { display: block; width: 24px; height: 24px; }
.ecom-ec-nav-btn:hover { background: var(--_ecom-subtle-bg); border-color: #adb0b6; }

/* ─── Calendar body area ─────────────────────────────────────────────── */

.ecom-ec-calendar-area {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 1;
	min-height: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   WEEKDAY HEADER BAR (Month + Week — custom dayHeaderContent)
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-ec-weekday-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--_ecom-subtle-bg, #f5f5f5);
	border-radius: 12px;
	padding: 8px 40px;
	flex-shrink: 0;
}

.ecom-ec-weekday-cell {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--_ecom-text);
	font-weight: normal;
	padding: 0;
}

.ecom-ec-weekday-num {
	font-size: 16px;
	font-weight: 500;
	color: #000;
	letter-spacing: -0.01em;
	line-height: 1.375;
}

.ecom-ec-weekday-name {
	font-size: 14px;
	font-weight: 500;
	color: var(--_ecom-muted);
	letter-spacing: -0.01em;
	line-height: 1.43;
}

.ecom-ec-weekday-today-dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ecom-today-dot, var(--ecom-accent, #6f47eb));
	display: inline-block;
	flex-shrink: 0;
}

/* ─── FullCalendar column header overrides (Month + Week views) ──────── */
.ecom-events-calendar-widget .fc-col-header-cell {
	background: transparent;
	border: 0;
	padding: 0;
	text-align: left;
}
.ecom-events-calendar-widget .fc-col-header-cell-cushion {
	padding: 0 !important;
	color: inherit;
	text-decoration: none;
}
.ecom-events-calendar-widget .fc-scrollgrid {
	border-radius: 12px;
	overflow: hidden;
}
.ecom-events-calendar-widget .fc-scrollgrid th {
	border-bottom: 1px solid var(--_ecom-border);
}

/* ═══════════════════════════════════════════════════════════════════════
   EVENT PILL — used in Month + Week views
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-ec-event {
	display: flex;
	align-items: center;
	gap: 8px;
	height: 22px;
	background: transparent;
	border-radius: 0;
	font-size: 12px;
	color: var(--_ecom-text);
	text-decoration: none;
	overflow: hidden;
	width: 100%;
}
.ecom-ec-event:hover { background: transparent; text-decoration: none; }

.ecom-ec-event-bar {
	width: 4px;
	height: 22px;
	flex-shrink: 0;
	background: var(--ecom-accent, #20a7f3);
}

.ecom-ec-event-title {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	color: var(--_ecom-muted);
}

.ecom-ec-event-chev {
	flex-shrink: 0;
	width: 7px;
	height: 11px;
	color: var(--_ecom-muted);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ecom-ec-event-chev svg { display: block; width: 7px; height: 11px; }

/* ═══════════════════════════════════════════════════════════════════════
   WEEK VIEW — dayGridWeek (scrollable per-column layout)
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-scrollgrid,
.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-scrollgrid-section-body > td {
	border: 0;
}

/* Week view: each day column cell */
.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-body {
	width: 100% !important;
}
.ecom-events-calendar-widget .fc-dayGridWeek-view table {
	width: 100% !important;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day {
	background: #fafafa;
	border: 1px solid #e9eaeb;
	vertical-align: top;
}
.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day:first-child {
	border-radius: 16px 0 0 16px;
}
.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day:last-child {
	border-radius: 0 16px 16px 0;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day-frame {
	padding: 16px 8px;
	min-height: 400px;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day-top {
	display: none;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day-events {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin-top: 0;
	flex: 1;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-event-harness {
	margin-bottom: 0;
	overflow: hidden;
	min-width: 0;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-event-main {
	overflow: hidden;
	min-width: 0;
	width: 100%;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day-bottom {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	margin-top: 4px;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-more-link,
.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-more-link {
	display: block;
	width: 100%;
	font-size: 11px;
	color: var(--_ecom-muted);
	padding: 4px 0;
	text-decoration: none;
	text-align: center;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-more-link:hover,
.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-more-link:hover {
	color: var(--ecom-accent, #2563eb);
}

/* ═══════════════════════════════════════════════════════════════════════
   MONTH VIEW — dayGridMonth
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-events-calendar-widget .fc-dayGridMonth-view .fc-daygrid-day-frame {
	padding: 8px;
	min-height: 100px;
	overflow: hidden;
}

.ecom-events-calendar-widget .fc-daygrid-day-top {
	flex-direction: row;
	justify-content: flex-start;
}

.ecom-ec-daycell-num {
	font-size: 14px;
	font-weight: 600;
	color: var(--_ecom-text);
	margin-bottom: 6px;
}

.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day-number { display: none; }
.ecom-events-calendar-widget .fc-day-today { background: transparent !important; }

.ecom-events-calendar-widget .fc-dayGridMonth-view .fc-daygrid-event-harness { margin-bottom: 4px; }
.ecom-events-calendar-widget .fc-daygrid-event { border: 0; background: transparent; padding: 0; margin: 0; }
.ecom-events-calendar-widget .fc-event { background: transparent; border: 0; padding: 0; }
.ecom-events-calendar-widget .fc-event:focus,
.ecom-events-calendar-widget .fc-event:hover { box-shadow: none; }

.ecom-events-calendar-widget .fc-daygrid-day-bottom {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}

.ecom-events-calendar-widget .fc-daygrid-more-link,
.ecom-events-calendar-widget .fc-more-link {
	display: block;
	width: 100%;
	text-align: center;
	font-size: 12px;
	color: var(--_ecom-muted);
	padding: 4px;
	text-decoration: none;
	margin-top: 2px;
}

.ecom-events-calendar-widget .fc-daygrid-more-link:hover,
.ecom-events-calendar-widget .fc-more-link:hover {
	color: #2563eb;
}

/* Prevent events from overflowing day cell height */
.ecom-events-calendar-widget .fc-dayGridMonth-view .fc-daygrid-day-events {
	overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════════════
   DAY VIEW — listDay (restyled as card list)
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-events-calendar-widget .fc-listDay-view,
.ecom-events-calendar-widget .fc-list {
	border: 0;
}
.ecom-events-calendar-widget .fc-list-day,
.ecom-events-calendar-widget .fc-list-day-cushion,
.ecom-events-calendar-widget .fc-list-day-side-text,
.ecom-events-calendar-widget .fc-list-day-text {
	display: none !important;
}
.ecom-events-calendar-widget .fc-list-table {
	border-collapse: separate;
	border-spacing: 0 10px;
	width: 100%;
}
.ecom-events-calendar-widget .fc-list-event {
	background: transparent !important;
	border: 0;
}
.ecom-events-calendar-widget .fc-list-event:hover td { background: transparent !important; }
.ecom-events-calendar-widget .fc-list-event > td { border: 0; padding: 0; }
.ecom-events-calendar-widget .fc-list-event-time,
.ecom-events-calendar-widget .fc-list-event-graphic { display: none !important; }
.ecom-events-calendar-widget .fc-list-event-title { padding: 0; }

/* Day view card */
.ecom-ec-day-card {
	display: block;
	padding: 18px 20px;
	background: var(--ecom-event-bg, #eef2ff);
	border-radius: 10px;
	text-decoration: none;
	color: var(--_ecom-text);
	transition: background .15s;
	border-left: 4px solid var(--ecom-accent, #20a7f3);
}
.ecom-ec-day-card:hover { background: color-mix(in srgb, var(--ecom-event-bg, #eef2ff) 80%, #c7d2fe); text-decoration: none; }

.ecom-ec-day-title {
	font-size: 15px;
	font-weight: 600;
	margin: 0 0 8px;
	color: var(--_ecom-text);
}

.ecom-ec-day-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	font-size: 13px;
	color: var(--_ecom-muted);
}
.ecom-ec-day-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ecom-ec-day-meta-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	color: var(--_ecom-muted);
	flex-shrink: 0;
}
.ecom-ec-day-meta-icon svg,
.ecom-ec-day-meta-icon i { font-size: 14px; width: 14px; height: 14px; }

.ecom-events-calendar-widget .fc-list-empty {
	background: transparent;
	padding: 48px 20px;
	text-align: center;
	color: var(--_ecom-muted);
	font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   LOADING STATE
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-events-calendar-widget.is-loading .ecom-ec-calendar-mount {
	opacity: .55;
	pointer-events: none;
	transition: opacity .15s;
}

/* ═══════════════════════════════════════════════════════════════════════
   MODAL ("+N more")
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-ec-modal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
.ecom-ec-modal.is-open { display: flex; }
body.ecom-ec-modal-open { overflow: hidden; }

.ecom-ec-modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .5); }

.ecom-ec-modal-panel {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: var(--ecom-modal-width, min(92vw, 520px));
	max-height: var(--ecom-modal-max-height, 80vh);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 24px 64px rgba(15, 23, 42, .25);
}

.ecom-ec-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 24px;
	border-bottom: 1px solid var(--_ecom-border);
}

.ecom-ec-modal-title { margin: 0; font-size: 16px; font-weight: 600; }

.ecom-ec-modal-close {
	background: none;
	border: 0;
	line-height: 1;
	color: var(--_ecom-muted);
	cursor: pointer;
	padding: 4px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ecom-modal-close-size, 32px);
	height: var(--ecom-modal-close-size, 32px);
	font-size: var(--ecom-modal-close-font-size, 24px);
	border-radius: 6px;
	transition: color .15s, background .15s;
}
.ecom-ec-modal-close:hover { color: var(--_ecom-text); background: var(--_ecom-subtle-bg); }
.ecom-ec-modal-close svg { display: block; width: 1em; height: 1em; }

.ecom-ec-modal-list { list-style: none; margin: 0; padding: 12px 16px; overflow-y: auto; }
.ecom-ec-modal-item { margin-bottom: 6px; }

.ecom-ec-modal-link {
	display: flex;
	align-items: stretch;
	gap: 10px;
	padding: 10px 12px;
	background: var(--ecom-event-bg, #eef2ff);
	border-radius: 8px;
	text-decoration: none;
	color: var(--_ecom-text);
	transition: background .15s;
}
.ecom-ec-modal-link:hover { background: color-mix(in srgb, var(--ecom-event-bg, #eef2ff) 80%, #c7d2fe); }
.ecom-ec-modal-link .ecom-ec-event-bar { width: 4px; }

.ecom-ec-modal-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ecom-ec-modal-event-title {
	font-size: 14px;
	font-weight: 500;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.ecom-ec-modal-event-meta { font-size: 12px; color: var(--_ecom-muted); }
.ecom-ec-modal-empty {
	list-style: none;
	padding: 32px 8px;
	text-align: center;
	color: var(--_ecom-muted);
	font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
	.ecom-events-calendar-widget,
	.ecom-ec-card,
	.ecom-ec-calendar-area {
		max-width: 100%;
		min-width: 0;
	}

	.ecom-ec-topbar { gap: 12px; }
	.ecom-ec-period-tabs { gap: 16px; }
	.ecom-ec-period-tab { font-size: 16px; }
	.ecom-ec-search { min-width: 180px; }
	.ecom-ec-weekday-bar { padding: 8px 12px; }
	.ecom-ec-weekday-num { font-size: 13px; }
	.ecom-ec-weekday-name { font-size: 11px; }
	.ecom-ec-event { font-size: 11px; }
	.ecom-ec-event-chev { display: none; }
	.ecom-ec-card { padding: 12px; }
	.ecom-events-calendar-widget .fc-dayGridMonth-view .fc-daygrid-day-frame { min-height: 80px; }
	.ecom-events-calendar-widget .fc-dayGridWeek-view .fc-daygrid-day-frame { padding: 8px 4px; min-height: 200px; }
	.ecom-ec-weekday-bar { display: none; }
}

/* ─── Current-label row (label + calendar toggle) ────────────────────── */

.ecom-ec-current-label-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ecom-ec-month-cal-toggle {
	display: none; /* shown only on mobile month view via media query */
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: var(--_ecom-text, #181d27);
	width: 20px;
	height: 20px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	transition: color .15s;
}
.ecom-ec-month-cal-toggle svg { display: block; width: 20px; height: 20px; }
.ecom-ec-month-cal-toggle:hover { color: var(--ecom-accent, #6f47eb); }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE MONTH VIEW — Figma calendar-toggle + day event list
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-ec-month-mobile-list { display: none; }

@media (max-width: 768px) {

	/* Show the calendar toggle icon */
	.ecom-events-calendar-widget.is-month-view .ecom-ec-month-cal-toggle {
		display: inline-flex;
	}

	/* Hide FC month grid and weekday bar by default */
	.ecom-events-calendar-widget.is-month-view .ecom-ec-weekday-bar { display: none !important; }
	.ecom-events-calendar-widget.is-month-view .ecom-ec-calendar-mount { display: none; }

	/* Show day event list; hide it when calendar is open */
	.ecom-events-calendar-widget.is-month-view .ecom-ec-month-mobile-list { display: block; }
	.ecom-events-calendar-widget.is-month-view.is-cal-open .ecom-ec-month-mobile-list { display: none; }

	/* Day section card */
	.ecom-ec-month-mobile-day {
		background: var(--_ecom-subtle-bg, #fafafa);
		border: 1px solid var(--_ecom-border, #e9eaeb);
		border-radius: 8px;
		padding: 16px 8px;
		display: flex;
		flex-direction: column;
		gap: 18px;
	}

	.ecom-ec-month-mobile-day-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
	}

	.ecom-ec-month-mobile-day-left {
		display: flex;
		align-items: center;
		gap: 4px;
	}

	.ecom-ec-month-mobile-day-num {
		font-size: 18px;
		font-weight: 500;
		line-height: 28px;
		color: #000;
		width: 30px;
	}

	.ecom-ec-month-mobile-day-dot {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: var(--ecom-accent, #6f47eb);
		flex-shrink: 0;
	}

	.ecom-ec-month-mobile-day-count {
		font-size: 12px;
		font-weight: 400;
		line-height: 18px;
		color: var(--_ecom-muted, #5c5f62);
		background: #ededed;
		border-radius: 36px;
		padding: 2px 6px;
		white-space: nowrap;
	}
}

/* ═══════════════════════════════════════════════════════════════════════
   DATE PICKER (Figma — Material Design 3 style)
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-dp { display: none; }

.ecom-dp.is-open {
	display: flex;
	position: fixed;
	inset: 0;
	z-index: 10001;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

body.ecom-dp-open { overflow: hidden; }

.ecom-dp-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.32);
}

.ecom-dp-panel {
	position: relative;
	background: #fff;
	border-radius: 28px;
	box-shadow: 0 0 32px rgba(0, 0, 0, 0.12);
	overflow: hidden;
	width: 100%;
	max-width: 360px;
	display: flex;
	flex-direction: column;
}

/* ── Header ─────────────────────────────────────────────────────────── */

.ecom-dp-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	padding: 16px 24px 12px;
	border-bottom: 1px solid #cac4d0;
}

.ecom-dp-header-left {
	display: flex;
	flex-direction: column;
	gap: 36px;
	flex: 1;
	min-width: 0;
}

.ecom-dp-label {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #49454f;
	line-height: 20px;
	letter-spacing: 0.1px;
}

.ecom-dp-selected-date {
	margin: 0;
	font-size: 32px;
	font-weight: 400;
	color: #1d1b20;
	line-height: 40px;
}

/* ── Nav row ─────────────────────────────────────────────────────────── */

.ecom-dp-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 4px 12px 4px 16px;
}

.ecom-dp-month-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 10px 4px 10px 8px;
	border-radius: 100px;
	font-size: 14px;
	font-weight: 500;
	color: #49454f;
	letter-spacing: 0.1px;
	transition: background .15s;
}
.ecom-dp-month-btn:hover { background: rgba(0, 0, 0, 0.05); }

.ecom-dp-chevron {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: #49454f;
	transition: transform .15s;
}

.ecom-dp-nav-controls { display: flex; align-items: center; }

.ecom-dp-prev,
.ecom-dp-next {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	color: #49454f;
	transition: background .15s;
}
.ecom-dp-prev:hover,
.ecom-dp-next:hover { background: rgba(0, 0, 0, 0.05); }
.ecom-dp-prev svg,
.ecom-dp-next svg { display: block; width: 24px; height: 24px; }

/* ── Calendar grid ───────────────────────────────────────────────────── */

.ecom-dp-grid {
	padding: 0 12px;
	display: flex;
	flex-direction: column;
}

.ecom-dp-row {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ecom-dp-tile {
	flex: 1 0 0;
	height: 44px;
	min-height: 44px;
	min-width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 100px;
	font-size: 16px;
	color: #181d27;
	letter-spacing: 0.5px;
	line-height: 24px;
	user-select: none;
	box-sizing: border-box;
}

.ecom-dp-dayname { color: #181d27; }

.ecom-dp-day {
	cursor: pointer;
	transition: background .12s;
}
.ecom-dp-day:hover { background: rgba(0, 0, 0, 0.06); }

.ecom-dp-day.is-today {
	box-shadow: inset 0 0 0 1px var(--ecom-accent, #3273f6);
}

.ecom-dp-day.is-selected {
	background: var(--ecom-accent, #3273f6);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.1px;
	line-height: 20px;
}
.ecom-dp-day.is-selected:hover { background: var(--ecom-accent, #3273f6); }
.ecom-dp-day.is-selected.is-today { box-shadow: none; }

.ecom-dp-empty {
	pointer-events: none;
	visibility: hidden;
}

/* ── Actions ─────────────────────────────────────────────────────────── */

.ecom-dp-actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	padding: 8px 12px 12px;
}

.ecom-dp-cancel,
.ecom-dp-ok {
	background: none;
	border: 0;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: var(--ecom-accent, #3273f6);
	letter-spacing: 0.1px;
	line-height: 20px;
	padding: 10px 12px;
	border-radius: 100px;
	transition: background .15s;
	font-family: inherit;
}
.ecom-dp-cancel:hover,
.ecom-dp-ok:hover { background: rgba(50, 115, 246, 0.08); }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE WEEK VIEW — Figma day-picker + single-day event list
   ═══════════════════════════════════════════════════════════════════════ */

.ecom-ec-week-mobile-day { display: none; }

@media (max-width: 768px) {

	/* ── Day picker bar ────────────────────────────────────────────────── */

	.ecom-events-calendar-widget.is-week-view .ecom-ec-calendar-area {
		min-width: 0;
		max-width: 100%;
	}

	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-bar {
		display: flex !important;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
		padding: 0 4px;
		gap: 0;
		align-items: stretch;
		justify-content: stretch;
		overflow: hidden;
		flex-shrink: 0;
	}

	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-cell {
		flex: 1 1 0;
		min-width: 0;
		max-width: none;
		box-sizing: border-box;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		padding: 9px 0;
		cursor: pointer;
		border-bottom: 2px solid transparent;
		gap: 2px;
		transition: border-color .15s;
		overflow: hidden;
	}

	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-cell.is-active {
		border-bottom-color: var(--ecom-active-tab, var(--ecom-accent, #6f47eb));
	}

	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-num,
	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-name {
		display: block;
		width: 100%;
		max-width: 100%;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		text-align: center;
	}

	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-num {
		font-size: 14px;
		font-weight: 500;
		line-height: 20px;
		color: #000;
	}

	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-name {
		font-size: 12px;
		font-weight: 400;
		line-height: 18px;
		color: var(--_ecom-muted, #5c5f62);
	}

	.ecom-events-calendar-widget.is-week-view .ecom-ec-weekday-today-dot { display: none; }

	/* ── Hide FC week grid on mobile ──────────────────────────────────── */

	.ecom-events-calendar-widget.is-week-view .ecom-ec-calendar-mount { display: none; }

	/* ── Mobile day event list ─────────────────────────────────────────── */

	.ecom-events-calendar-widget.is-week-view .ecom-ec-week-mobile-day {
		display: block;
		background: #fff;
		border: 1px solid var(--_ecom-border, #e9eaeb);
		border-radius: 8px;
		padding: 16px 8px;
	}

	.ecom-ec-week-mobile-events {
		display: flex;
		flex-direction: column;
		gap: 14px;
	}

	.ecom-ec-week-mobile-event {
		display: flex;
		align-items: center;
		gap: 10px;
		min-height: 22px;
		text-decoration: none;
		color: inherit;
		width: 100%;
	}

	.ecom-ec-week-mobile-event-name {
		display: flex;
		flex: 1;
		align-items: center;
		gap: 8px;
		min-width: 0;
	}

	.ecom-ec-week-mobile-event-bar {
		width: 4px;
		height: 22px;
		flex-shrink: 0;
		background: var(--ecom-accent, #20a7f3);
	}

	.ecom-ec-week-mobile-event-title {
		flex: 1;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
		font-size: 12px;
		font-weight: 400;
		line-height: 18px;
		color: var(--_ecom-muted, #5c5f62);
	}

	.ecom-ec-week-mobile-event-chev {
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 7px;
		height: 11px;
		color: var(--_ecom-muted, #5c5f62);
	}

	.ecom-ec-week-mobile-event-chev svg { display: block; width: 7px; height: 11px; }

	.ecom-ec-week-mobile-empty {
		padding: 24px 16px;
		text-align: center;
		font-size: 13px;
		color: var(--_ecom-muted, #5c5f62);
	}
}



.ecom-ec-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

.ecom-ec-nav-btn svg {
    width: 24px;
    height: 24px;
    min-width: 24px;
}

/* ═══════════════════════════════════════════════════════════════════════
   EMPTY STATE (Day list view)
   ═══════════════════════════════════════════════════════════════════════ */

/* Hide FullCalendar's built-in empty text — we show our own. */
.ecom-events-calendar-widget .fc-list-empty { display: none; }

/* Template is hidden by default via inline style="display:none";
   the is-list-empty class (toggled by JS) reveals it and hides the calendar area. */
.ecom-events-calendar-widget.is-list-empty .ecom-ec-empty-state-tpl {
	display: flex !important;
}
.ecom-events-calendar-widget.is-list-empty .ecom-ec-calendar-area {
	display: none;
}

.ecom-events-calendar-widget .ecom-el-empty-state {
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 64px 24px;
	gap: 32px;
}

.ecom-events-calendar-widget .ecom-el-empty-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
}

.ecom-events-calendar-widget .ecom-el-empty-icon {
	width: 40px;
	height: 40px;
	color: #181d27;
	flex-shrink: 0;
}

.ecom-events-calendar-widget .ecom-el-empty-icon svg {
	width: 40px;
	height: 40px;
	display: block;
}

.ecom-events-calendar-widget .ecom-el-empty-icon i {
	display: block;
	font-size: 40px;
}

.ecom-events-calendar-widget .ecom-el-empty-text {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: center;
}

.ecom-events-calendar-widget .ecom-el-empty-title {
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.5;
	color: #181d27;
	margin: 0;
}

.ecom-events-calendar-widget .ecom-el-empty-subtitle {
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #414651;
	margin: 0;
	max-width: 360px;
}

.ecom-events-calendar-widget .ecom-el-empty-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.ecom-events-calendar-widget .ecom-el-empty-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	border-radius: 9999px;
	font-size: 1rem;
	font-weight: 500;
	line-height: 1.5;
	text-decoration: none;
	cursor: pointer;
	border: none;
	white-space: nowrap;
	font-family: inherit;
	transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.ecom-events-calendar-widget .ecom-el-empty-btn--primary {
	background-color: #487de5;
	color: #ffffff;
}

.ecom-events-calendar-widget .ecom-el-empty-btn--primary:hover {
	box-shadow: 0 4px 14px rgba(72, 125, 229, 0.38);
}