.cs-events-widget {
	display: grid;
	grid-template-columns: 2.7fr 1fr;
	gap: 15px;
	align-items: start;
}

.cs-events-widget[data-layout="calendar"] {
	grid-template-columns: 1fr;
}

.cs-events-widget[data-layout="list"] {
	grid-template-columns: 1fr;
}

.cs-events-widget[data-list-position="stacked"] {
	grid-template-columns: 1fr;
}

/* ---- Toolbar ---- */
.cs-cal-toolbar {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: center;
	padding-top: 15px;
	padding-bottom: 8px;
}

.cs-cal-nav-group {
	display: flex !important;
	flex-wrap: nowrap;
	gap: 6px;
	flex: none;
}

.cs-cal-nav-btn {
	width: 32px !important;
	height: 32px !important;
	min-width: 32px !important;
	max-width: 32px !important;
	flex: none !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid #185FA5;
	border-radius: 6px;
	background: transparent;
	color: #185FA5;
	display: flex !important;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-sizing: border-box;
}

.cs-cal-nav-btn:hover {
	background: rgba(24, 95, 165, 0.08);
}

.cs-cal-today-btn {
	width: auto !important;
	height: 32px !important;
	flex: none !important;
	padding: 0 14px !important;
	margin: 0 !important;
	border: 1px solid #185FA5;
	border-radius: 6px;
	background: #f4f4f4;
	color: #185FA5;
	font-size: 13px;
	cursor: pointer;
	box-sizing: border-box;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center;
}

.cs-cal-today-btn:hover {
	background: rgba(24, 95, 165, 0.15);
}

.cs-cal-title {
	margin-left: auto;
	color: #3B6D11;
	font-weight: 600;
	font-size: 18px;
}

/* ---- Grid ---- */
.cs-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	border-top: 1px solid #e0e0e0;
	border-left: 1px solid #e0e0e0;
	border-right: 1px solid #e0e0e0;
}

.cs-weekday-cell {
	padding: 6px 4px;
	text-align: center;
	font-weight: 600;
	font-size: 12px;
	border-right: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.cs-day-cell {
	aspect-ratio: 1.4;
	padding: 4px;
	border-right: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
	background: #f7f7f7;
	overflow: hidden;
	box-sizing: border-box;
}

.cs-day-outside {
	color: #bbb;
}

.cs-day-outside .cs-day-number {
	color: #ccc;
}

.cs-day-today {
	background: rgba(24, 95, 165, 0.1);
}

.cs-day-number {
	font-size: 12px;
	line-height: 1;
	margin-bottom: 2px;
	text-align: right;
}

.cs-day-events {
	display: flex;
	flex-direction: column;
	gap: 2px;
	overflow: hidden;
}

.cs-event-chip {
	display: flex;
	align-items: center;
	gap: 3px;
	background: #185FA5;
	color: #fff;
	font-size: 11px;
	line-height: 1.3;
	padding: 1px 4px;
	border-radius: 3px;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
}

.cs-event-chip-title {
	overflow: hidden;
	text-overflow: ellipsis;
}

.cs-event-chip-dot {
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	flex-shrink: 0;
}

/* ---- CTA button ---- */
.cs-see-all-btn {
	display: inline-block;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.cs-upcoming-list-wrap {
	min-width: 0;
}

.cs-upcoming-item {
	border-bottom: 1px solid #eee;
	padding: 10px 0;
}

.cs-upcoming-title {
	font-weight: 600;
	text-decoration: none;
	display: block;
}

.cs-upcoming-meta {
	font-size: 13px;
	margin: 4px 0 0;
}

@media (max-width: 782px) {
	.cs-events-widget {
		grid-template-columns: 1fr;
	}
}
