/* [uchef_events] upcoming events list */

/* Filter calendar (calendar="true") */
.uchef-events-calendar {
	max-width: 460px;
	margin: 0 auto 24px;
}

.uchef-ec-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 8px;
}

.uchef-ec-label {
	font-weight: 700;
	font-size: 1.05em;
}

/* !important guards against themes that force white button text/background. */
.uchef-ec-nav {
	background: #fff !important;
	border: 1px solid #ccc !important;
	color: #333 !important;
	border-radius: 6px;
	box-shadow: none !important;
	cursor: pointer;
	font-size: 1.2em;
	font-weight: 700;
	line-height: 1;
	min-width: 38px;
	padding: 4px 12px;
}

.uchef-ec-nav:hover,
.uchef-ec-nav:focus {
	background: #f0f0f0 !important;
	color: #000 !important;
}

.uchef-ec-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}

.uchef-ec-cell {
	text-align: center;
	font-size: 0.9em;
}

.uchef-ec-weekday {
	font-weight: 700;
	color: #666;
	padding: 4px 0;
}

.uchef-ec-day {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	border-radius: 8px;
	background: #f3f3f5;
	color: #bbb;
}

.uchef-ec-empty {
	min-height: 42px;
	background: transparent;
}

.uchef-ec-available {
	background: #dff5e1;
	color: #1e7a2e;
	font-weight: 700;
	cursor: pointer;
}

.uchef-ec-available:hover,
.uchef-ec-available:focus {
	outline: 2px solid #1e7a2e;
	outline-offset: 1px;
}

.uchef-ec-selected {
	outline: 2px solid #111;
	outline-offset: 1px;
}

.uchef-ec-clear {
	margin-top: 10px;
	font-size: 0.9em;
}

.uchef-events {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 1em 0;
}

.uchef-event-card {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border: 1px solid #ececf0;
	border-radius: 14px;
	padding: 16px 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.uchef-event-date {
	flex: 0 0 auto;
	min-width: 68px;
	text-align: center;
	background: #f5f5f8;
	border-radius: 10px;
	padding: 10px 8px;
}

.uchef-event-day {
	display: block;
	font-size: 1.7em;
	font-weight: 700;
	line-height: 1;
	color: #222;
}

.uchef-event-month {
	display: block;
	margin-top: 2px;
	font-size: 0.72em;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #888;
}

.uchef-event-today {
	display: block;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #222;
}

.uchef-event-thumb {
	flex: 0 0 auto;
	display: block;
	width: 72px;
	height: 72px;
	border-radius: 10px;
	overflow: hidden;
}

.uchef-event-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 10px;
}

.uchef-event-body {
	flex: 1 1 auto;
	min-width: 0;
}

.uchef-event-title {
	margin: 0 0 4px;
	font-size: 1.15em;
	line-height: 1.3;
}

.uchef-event-title a {
	text-decoration: none;
	color: inherit;
}

.uchef-event-title a:hover {
	text-decoration: underline;
}

.uchef-event-meta {
	color: #555;
	font-size: 0.9em;
}

.uchef-event-price {
	font-weight: 700;
	color: #222;
}

.uchef-event-slots {
	display: block;
	margin-top: 4px;
	color: #666;
}

.uchef-event-slot {
	display: inline-block;
	margin-right: 12px;
	white-space: nowrap;
}

.uchef-event-action {
	flex: 0 0 auto;
}

.uchef-event-book {
	display: inline-block;
	white-space: nowrap;
}

.uchef-events-empty {
	color: #666;
	font-style: italic;
}

@media (max-width: 600px) {
	.uchef-event-card {
		flex-wrap: wrap;
	}

	.uchef-event-action {
		width: 100%;
	}

	.uchef-event-book {
		display: block;
		text-align: center;
	}
}
