/* ---------- Widget: upcoming events list ---------- */
.sce-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.sce-widget-item {
	padding: 6px 0;
	border-bottom: 1px solid #e2e2e2;
}
.sce-widget-item:last-child {
	border-bottom: none;
}
.sce-widget-date {
	display: block;
	font-size: 0.85em;
	color: #666;
}
.sce-widget-empty {
	color: #666;
}

/* ---------- Shortcode: detailed list view ---------- */
.sce-list-item {
	margin-bottom: 1.75em;
	padding-bottom: 1.5em;
	border-bottom: 1px solid #e2e2e2;
}
.sce-list-item:last-child {
	border-bottom: none;
}
.sce-list-title {
	margin: 0 0 0.2em;
}
.sce-list-date {
	color: #666;
	font-size: 0.9em;
	margin-bottom: 0.5em;
}
.sce-empty {
	color: #666;
}

/* ---------- Shortcode: calendar view ---------- */
.sce-calendar-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.75em;
}
.sce-calendar-month {
	font-weight: 600;
	font-size: 1.15em;
}
.sce-print-only {
	display: none;
}
.sce-calendar-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}
.sce-calendar-table th,
.sce-calendar-table td {
	border: 1px solid #ccc;
	vertical-align: top;
	padding: 4px;
}
.sce-calendar-table th {
	background: #f2f2f2;
	text-align: center;
	padding: 6px 4px;
}
.sce-day-cell {
	height: 90px;
	overflow: hidden;
}
.sce-empty-cell {
	background: #fafafa;
}
.sce-day-number {
	font-weight: 600;
	font-size: 0.85em;
	margin-bottom: 2px;
}
.sce-today {
	background: #fff8e1;
}
.sce-day-events {
	list-style: none;
	margin: 0;
	padding: 0;
	font-size: 0.8em;
}
.sce-day-events li {
	margin-bottom: 2px;
	line-height: 1.2;
}
.sce-day-events a {
	text-decoration: none;
}
.sce-day-events a:hover {
	text-decoration: underline;
}

/* ---------- Modal / lightbox ---------- */
.sce-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 100000;
	padding: 20px;
}
.sce-modal-overlay[hidden] {
	display: none;
}
.sce-modal-box {
	background: #fff;
	max-width: 560px;
	width: 100%;
	max-height: 80vh;
	overflow-y: auto;
	padding: 28px 24px 24px;
	border-radius: 4px;
	position: relative;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}
.sce-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	background: none;
	border: none;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #555;
}
.sce-modal-close:hover {
	color: #000;
}
.sce-modal-title {
	margin: 0 0 4px;
	padding-right: 20px;
}
.sce-modal-date {
	color: #666;
	margin-bottom: 14px;
	font-size: 0.9em;
}

/* ---------- Print styles: calendar should print cleanly ---------- */
@media print {
	.sce-no-print {
		display: none !important;
	}
	.sce-print-only {
		display: block !important;
	}
	.sce-day-cell {
		height: auto;
		min-height: 70px;
	}
	body * {
		visibility: hidden;
	}
	.sce-calendar-view,
	.sce-calendar-view * {
		visibility: visible;
	}
	.sce-calendar-view {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}
}
