/* Elmotion frontend styles */
.elmotion-front-wrap { max-width: 1080px; margin: 0 auto; }
.elmotion-front-wrap, .elmotion-front-wrap * { box-sizing: border-box; }
.elmotion-honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }
.elmotion-front-notice { border-radius: 12px; padding: 12px 14px; margin: 0 0 16px; }
.elmotion-front-notice.is-success { background: #dcfce7; color: #166534; }
.elmotion-front-notice.is-error { background: #fee2e2; color: #991b1b; }

.elmotion-list-wrap { display: flex; flex-direction: column; gap: 8px; }
.elmotion-event-row {
	display: grid; grid-template-columns: 66px 1fr 182px; gap: 10px;
	background: #fff; border-radius: 16px; border-left: 5px solid var(--elmotion-accent, #0ea5e9);
	padding: 8px 10px; box-shadow: 0 5px 14px rgba(15, 23, 42, 0.06); align-items: center;
}
.elmotion-date-box { width: 60px; text-align: center; border: 1px solid #e2e8f0; border-radius: 10px; padding: 6px 5px; }
.elmotion-date-box strong { display: block; font-size: 21px; line-height: 1; color: #0f172a; }
.elmotion-date-box span { color: #64748b; text-transform: uppercase; font-size: 10px; letter-spacing: .08em; }
.elmotion-main-info h3 { margin: 0 0 3px; font-size: 19px; line-height: 1.2; }
.elmotion-main-info p { margin: 0 0 5px; color: #475569; overflow-wrap: anywhere; font-size: 13px; line-height: 1.3; }
.elmotion-row-meta { display: flex; flex-wrap: wrap; gap: 6px; color: #1e293b; font-size: 13px; }
.elmotion-row-meta span { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 999px; padding: 2px 8px; line-height: 1.2; font-size: 12px; }

.elmotion-side-info { text-align: right; display: flex; flex-direction: column; gap: 5px; align-items: flex-end; }
.elmotion-side-meta { display: inline-flex; align-items: center; gap: 6px; }
.elmotion-side-info small { color: #64748b; font-size: 11px; line-height: 1.2; }
.elmotion-badge { border-radius: 999px; font-size: 10px; font-weight: 700; padding: 3px 7px; }
.elmotion-badge.is-open { background: #dcfce7; color: #166534; }
.elmotion-badge.is-full { background: #fee2e2; color: #991b1b; }
.elmotion-open-modal, .elmotion-booking-form button {
	background: #0f172a; color: #fff; border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer;
	transition: transform .15s ease, box-shadow .15s ease;
}
.elmotion-open-modal:hover, .elmotion-booking-form button:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(15, 23, 42, 0.22); }
.elmotion-open-modal[disabled] { opacity: .5; cursor: not-allowed; }

.elmotion-modal {
	display: none;
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 100dvh;
	max-height: none !important;
	margin: 0 !important;
	padding: max(16px, env(safe-area-inset-top, 0px)) 12px max(16px, env(safe-area-inset-bottom, 0px));
	z-index: 2147483647 !important;
	overflow-x: hidden;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transform: none !important;
	isolation: isolate;
}
body > .elmotion-modal.is-open,
.elmotion-modal.is-open {
	display: flex !important;
	align-items: center;
	justify-content: center;
}
.elmotion-modal-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	z-index: 0;
}
.elmotion-modal-dialog {
	position: relative;
	z-index: 1;
	flex-shrink: 0;
	width: min(680px, 100%);
	max-height: min(calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px), 900px);
	overflow: auto;
	margin: auto;
	background: #fff;
	border-radius: 16px;
	padding: 16px 16px 18px;
	box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
	overscroll-behavior: contain;
}
.elmotion-modal-open {
	overflow: hidden !important;
}
.elmotion-modal-close {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 3;
	border: 0;
	background: #fff;
	font-size: 22px;
	line-height: 1;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	cursor: pointer;
	color: #0f172a;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.elmotion-modal-dialog > h3 {
	margin: 0 44px 12px 0;
	padding-right: 4px;
}
.elmotion-modal-event-meta { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.elmotion-modal-event-meta p { margin: 0 0 5px; color: #334155; }

.elmotion-booking-form .elmotion-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.elmotion-booking-form input, .elmotion-booking-form textarea {
	width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 8px 10px;
}
.elmotion-consent { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0 12px; color: #334155; font-size: 14px; line-height: 1.4; }
.elmotion-consent input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; margin-top: 1px; }
.elmotion-consent a { color: #0f172a; text-decoration: underline; font-weight: 600; }

.elmotion-manage-wrap {
	background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 12px 30px rgba(15,23,42,.08);
	padding: 20px; margin-top: 20px;
}
.elmotion-manage-highlight { display: flex; flex-direction: column; gap: 4px; background: #f8fafc; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.elmotion-booking-form .is-danger { background: #b91c1c; }

/* Events list pagination ([elmotion_events]) */
.elmotion-events-pagination {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e2e8f0;
}
.elmotion-events-pagination__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px 8px;
	max-width: 100%;
}
.elmotion-events-pagination__pages {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	max-width: 100%;
}
.elmotion-events-pagination__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	color: #0f172a;
	background: #fff;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
	transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
	cursor: pointer;
	box-sizing: border-box;
}
a.elmotion-events-pagination__btn:hover {
	background: #f8fafc;
	border-color: #94a3b8;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
	color: #0f172a;
}
.elmotion-events-pagination__btn.is-current {
	background: #0f172a;
	color: #fff;
	border-color: #0f172a;
	cursor: default;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
}
.elmotion-events-pagination__btn.is-disabled {
	opacity: 0.45;
	cursor: not-allowed;
	pointer-events: none;
	background: #f1f5f9;
	color: #64748b;
}
.elmotion-events-pagination__nav {
	min-width: 0;
	flex: 0 1 auto;
}
.elmotion-events-pagination__ellipsis {
	padding: 0 4px;
	color: #94a3b8;
	font-weight: 700;
	user-select: none;
}

@media (max-width: 768px) {
	.elmotion-list-wrap { gap: 8px; }
	.elmotion-event-row { grid-template-columns: 62px 1fr; gap: 8px; padding: 8px 9px; }
	.elmotion-side-info { grid-column: span 2; align-items: flex-start; text-align: left; width: 100%; }
	.elmotion-side-meta { width: 100%; justify-content: space-between; }
	.elmotion-open-modal { min-height: 44px; width: 100%; font-size: 15px; padding: 8px 12px; }
	.elmotion-row-meta { gap: 4px; }
	.elmotion-row-meta span { font-size: 11px; padding: 2px 7px; }
	.elmotion-main-info h3 { font-size: 20px; }
	.elmotion-main-info p { font-size: 13px; margin-bottom: 4px; }
	.elmotion-date-box { width: 58px; padding: 6px 4px; }
	.elmotion-date-box strong { font-size: 21px; }
	.elmotion-modal {
		padding: max(12px, env(safe-area-inset-top, 0px)) 10px max(12px, env(safe-area-inset-bottom, 0px));
		align-items: center !important;
		justify-content: center !important;
	}
	.elmotion-modal-dialog {
		width: min(720px, calc(100vw - 20px));
		max-height: min(calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px), 900px);
		padding: 14px 14px 16px;
		margin: auto !important;
	}
	.elmotion-modal-close {
		font-size: 24px;
		right: 8px;
		top: 8px;
		width: 40px;
		height: 40px;
	}
	.elmotion-booking-form .elmotion-form-grid { grid-template-columns: 1fr; }
	.elmotion-booking-form input, .elmotion-booking-form textarea { font-size: 16px; min-height: 42px; }
	.elmotion-booking-form textarea { min-height: 100px; }
	.elmotion-booking-form button { width: 100%; min-height: 46px; font-size: 15px; font-weight: 600; }
	.elmotion-manage-wrap { padding: 16px; }
	.elmotion-manage-wrap .elmotion-row-between { flex-direction: column; align-items: stretch; gap: 10px; }
	.elmotion-manage-wrap .elmotion-row-between button { width: 100%; min-height: 46px; }
	.elmotion-events-pagination__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
	}
	.elmotion-events-pagination__inner > .elmotion-events-pagination__nav:first-child {
		order: 1;
		width: 100%;
	}
	.elmotion-events-pagination__pages {
		order: 2;
		justify-content: center;
		width: 100%;
		gap: 5px;
	}
	.elmotion-events-pagination__inner > .elmotion-events-pagination__nav:last-child {
		order: 3;
		width: 100%;
	}
	.elmotion-events-pagination__btn {
		min-height: 44px;
		padding: 0 12px;
		font-size: 14px;
	}
}

/* Calendar ([elmotion_events_calendar]) */
.elmotion-calendar-wrap {
	max-width: 1080px;
	overflow-x: hidden;
}
.elmotion-calendar {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
	padding: 16px;
}
.elmotion-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}
.elmotion-calendar-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.2;
	color: #0f172a;
	text-align: center;
	flex: 1;
}
.elmotion-calendar-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	padding: 0 14px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #0f172a;
	background: #f8fafc;
	border: 1px solid #cbd5e1;
	border-radius: 10px;
	transition: background .15s ease, border-color .15s ease;
}
.elmotion-calendar-nav:hover {
	background: #fff;
	border-color: #94a3b8;
	color: #0f172a;
}
.elmotion-calendar-nav__icon { display: none; }
.elmotion-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
	margin-bottom: 6px;
}
.elmotion-calendar-weekday {
	text-align: center;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.elmotion-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 6px;
	overflow: visible;
}
.elmotion-calendar-day {
	min-height: 92px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #f8fafc;
	overflow: visible;
}
.elmotion-calendar-day--outside {
	opacity: .45;
}
.elmotion-calendar-day--has-events {
	background-color: #f0f9ff;
	background-color: color-mix(in srgb, var(--elmotion-day-tint, #0ea5e9) 12%, #ffffff);
	border-color: color-mix(in srgb, var(--elmotion-day-tint, #0ea5e9) 45%, #e2e8f0);
	box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--elmotion-day-tint, #0ea5e9) 20%, transparent);
}
.elmotion-calendar-day-inner,
.elmotion-calendar-day-trigger {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	height: 100%;
	min-height: 92px;
	padding: 8px;
	border: 0;
	background: transparent;
	text-align: left;
	cursor: default;
	font: inherit;
	color: inherit;
}
.elmotion-calendar-day-trigger {
	cursor: pointer;
	transition: background .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.elmotion-calendar-day--has-events .elmotion-calendar-day-trigger:hover {
	box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--elmotion-day-tint, #0ea5e9) 55%, #0f172a);
}
.elmotion-calendar-day-number {
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
	position: relative;
	z-index: 1;
}
.elmotion-calendar-day--has-events .elmotion-calendar-day-number {
	text-shadow: 0 0 6px rgba(255, 255, 255, 0.9);
}
.elmotion-calendar-day-events {
	margin-top: auto;
	display: flex;
	width: 100%;
	min-height: 14px;
	flex-shrink: 0;
}
.elmotion-calendar-event-indicators {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 4px;
	width: 100%;
	min-height: 12px;
}
.elmotion-calendar-event-dot {
	display: inline-block;
	flex-shrink: 0;
	width: 11px;
	height: 11px;
	border-radius: 50%;
	background-color: #0ea5e9;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}
.elmotion-calendar-event-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	min-width: 22px;
	height: 16px;
	padding: 0 5px;
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
	color: #0f172a;
	background: #fff;
	border: 1px solid #94a3b8;
	border-radius: 6px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

/* Calendar modals — portaled to document.body */
.elmotion-calendar-day-modal[hidden],
.elmotion-modal.elmotion-modal--calendar[hidden] {
	display: none !important;
}
.elmotion-calendar-day-modal.is-open,
.elmotion-modal.elmotion-modal--calendar.is-open {
	display: block !important;
	position: static !important;
	width: auto !important;
	height: auto !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
	overflow: visible !important;
	z-index: auto !important;
}
.elmotion-calendar-day-modal__overlay,
.elmotion-modal.elmotion-modal--calendar .elmotion-modal__overlay {
	position: fixed !important;
	inset: 0 !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	z-index: 2147483647 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	min-height: 100dvh !important;
	max-height: none !important;
	margin: 0 !important;
	padding: max(16px, env(safe-area-inset-top, 0px)) 12px max(16px, env(safe-area-inset-bottom, 0px)) !important;
	background: rgba(15, 23, 42, 0.6) !important;
	overflow-x: hidden !important;
	overflow-y: auto !important;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	transform: none !important;
	isolation: isolate;
}
.elmotion-calendar-day-modal__dialog,
.elmotion-modal.elmotion-modal--calendar .elmotion-modal-dialog {
	position: relative !important;
	z-index: 1;
	flex-shrink: 0;
	width: min(720px, calc(100vw - 24px)) !important;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 32px);
	overflow-y: auto;
	margin: auto !important;
	background: #fff;
	border-radius: 16px;
	padding: 16px;
	box-shadow: 0 30px 90px rgba(15, 23, 42, 0.35);
	overscroll-behavior: contain;
}
.elmotion-calendar-day-modal__close {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 3;
	border: 0;
	background: #fff;
	font-size: 24px;
	line-height: 1;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	cursor: pointer;
	color: #0f172a;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}
.elmotion-calendar-day-modal__dialog > h3 {
	margin: 0 32px 14px 0;
	font-size: 20px;
	color: #0f172a;
}
.elmotion-calendar-day-modal__events { display: flex; flex-direction: column; gap: 12px; }
.elmotion-calendar-day-modal__event {
	display: grid;
	grid-template-columns: 6px 1fr;
	gap: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	padding: 12px;
	background: #f8fafc;
}
.elmotion-calendar-day-modal__event-accent {
	border-radius: 4px;
	background: var(--elmotion-accent, #0ea5e9);
	min-height: 100%;
	align-self: stretch;
}
.elmotion-calendar-day-modal__event-body h4 {
	margin: 0 0 6px;
	font-size: 18px;
}
.elmotion-calendar-day-modal__time {
	margin: 0 0 6px;
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
}
.elmotion-calendar-day-modal__desc {
	margin: 0 0 8px;
	color: #475569;
	font-size: 14px;
	line-height: 1.4;
}
.elmotion-calendar-day-modal__facts {
	margin: 0 0 12px;
	padding-left: 18px;
	color: #334155;
	font-size: 14px;
}
.elmotion-calendar-day-modal__facts li { margin-bottom: 4px; }

@media (min-width: 769px) {
	.elmotion-calendar-event-indicators {
		gap: 5px;
		min-height: 14px;
	}
	.elmotion-calendar-event-dot {
		width: 12px;
		height: 12px;
	}
	/* Pilulky na desktopu místo teček — lépe viditelné v širší buňce */
	.elmotion-calendar-day--has-events .elmotion-calendar-event-dot {
		width: 30px;
		height: 7px;
		border-radius: 999px;
	}
}

@media (max-width: 768px) {
	.elmotion-calendar-wrap {
		padding: 0 2px;
	}
	.elmotion-calendar {
		padding: 10px 6px;
		border-radius: 14px;
	}
	.elmotion-calendar-header {
		gap: 6px;
		margin-bottom: 10px;
	}
	.elmotion-calendar-title {
		font-size: 15px;
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}
	.elmotion-calendar-nav {
		flex-shrink: 0;
		min-width: 44px;
		min-height: 44px;
		padding: 0 10px;
		font-size: 12px;
	}
	.elmotion-calendar-nav__text { display: none; }
	.elmotion-calendar-nav__icon {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		font-size: 22px;
		line-height: 1;
	}
	.elmotion-calendar-weekdays {
		gap: 2px;
		margin-bottom: 4px;
	}
	.elmotion-calendar-weekday {
		font-size: 9px;
		letter-spacing: 0;
		padding: 0 1px;
	}
	.elmotion-calendar-grid {
		gap: 2px;
	}
	.elmotion-calendar-day {
		min-height: 0;
		aspect-ratio: 1;
		border-radius: 6px;
		overflow: visible;
	}
	.elmotion-calendar-day-inner,
	.elmotion-calendar-day-trigger {
		min-height: 0;
		height: 100%;
		padding: 3px 2px 4px;
		justify-content: flex-start;
		align-items: center;
	}
	.elmotion-calendar-day-number {
		font-size: 11px;
		width: 100%;
		text-align: center;
	}
	.elmotion-calendar-day-events {
		margin-top: auto;
		width: 100%;
		min-height: 12px;
	}
	.elmotion-calendar-event-indicators {
		gap: 3px;
		min-height: 10px;
	}
	.elmotion-calendar-event-dot {
		width: 10px;
		height: 10px;
	}
	.elmotion-calendar-day--has-events .elmotion-calendar-event-dot {
		width: 22px;
		height: 8px;
		border-radius: 999px;
	}
	.elmotion-calendar-event-more {
		font-size: 9px;
		min-width: 20px;
		height: 14px;
	}
	.elmotion-calendar-day-modal__overlay,
	.elmotion-modal.elmotion-modal--calendar .elmotion-modal__overlay {
		padding: max(12px, env(safe-area-inset-top, 0px)) 10px max(12px, env(safe-area-inset-bottom, 0px)) !important;
	}
	.elmotion-calendar-day-modal__dialog,
	.elmotion-modal.elmotion-modal--calendar .elmotion-modal-dialog {
		width: min(720px, calc(100vw - 20px)) !important;
		max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 24px);
		padding: 14px;
	}
	.elmotion-calendar-day-modal__event .elmotion-open-modal {
		width: 100%;
		min-height: 44px;
	}
}

@media (max-width: 480px) {
	.elmotion-front-wrap { padding: 0 2px; }
	.elmotion-list-wrap { gap: 5px; }
	.elmotion-event-row {
		grid-template-columns: 54px 1fr;
		grid-template-areas:
			"date main"
			"side side";
		gap: 6px 8px;
		padding: 7px 8px;
		border-radius: 12px;
	}
	.elmotion-date-box {
		grid-area: date;
		width: 54px;
		padding: 5px 3px;
		align-self: start;
	}
	.elmotion-date-box strong { font-size: 18px; }
	.elmotion-date-box span { font-size: 9px; }
	.elmotion-main-info { grid-area: main; min-width: 0; }
	.elmotion-main-info h3 { font-size: 19px; line-height: 1.2; margin-bottom: 2px; }
	.elmotion-main-info p {
		font-size: 11px;
		line-height: 1.3;
		margin-bottom: 3px;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.elmotion-side-info {
		grid-area: side;
		grid-column: span 2;
		align-items: stretch;
		text-align: left;
		gap: 5px;
	}
	.elmotion-side-meta { width: 100%; justify-content: space-between; }
	.elmotion-badge { font-size: 9px; padding: 2px 6px; }
	.elmotion-side-info small { font-size: 11px; line-height: 1.15; }
	.elmotion-row-meta {
		gap: 3px;
		margin-top: 1px;
	}
	.elmotion-row-meta span {
		font-size: 10px;
		padding: 1px 6px;
		max-width: 100%;
	}
	.elmotion-open-modal {
		min-height: 41px;
		font-size: 14px;
		padding: 7px 10px;
	}
	.elmotion-modal { padding: 8px; }
	.elmotion-modal-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 16px); border-radius: 14px; padding: 12px; }
	.elmotion-modal-event-meta { padding: 7px 8px; margin-bottom: 10px; }
	.elmotion-consent { font-size: 13px; }
}

/* Weekly lesson schedule [elmotion_events_schedule] — compact timetable grid */
.elmotion-schedule-wrap { max-width: 1280px; }
.elmotion-schedule {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
	padding: 14px 12px 16px;
}

/* Header: week range, nav, date banner, then full-width grid */
.elmotion-schedule-header {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-bottom: 6px;
}
.elmotion-schedule-current-date-card {
	display: block;
	width: 100%;
	max-width: 100%;
	flex: 0 0 auto;
	align-self: stretch;
	margin: 0 0 8px;
	padding: 10px 14px;
	border-radius: 10px;
	background: linear-gradient(145deg, #0f172a 0%, #1e3a5f 100%);
	color: #fff;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
	box-sizing: border-box;
}
.elmotion-schedule-current-date-card.is-today {
	box-shadow: 0 0 0 2px #38bdf8, 0 2px 10px rgba(14, 165, 233, 0.25);
}
.elmotion-schedule-current-date-card__text {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
	text-wrap: balance;
}
.elmotion-schedule-current-date-card__label {
	font-weight: 700;
	opacity: 0.95;
	white-space: nowrap;
}
.elmotion-schedule-current-date-card__label::after {
	content: " ";
}
.elmotion-schedule-week-range {
	margin: 0;
	font-size: clamp(15px, 2vw, 18px);
	font-weight: 700;
	color: #0f172a;
	line-height: 1.2;
}
.elmotion-schedule-week-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}
.elmotion-schedule-week-nav__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #0f172a;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
	transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.elmotion-schedule-week-nav__btn:hover {
	background: #f8fafc;
	border-color: #cbd5e1;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}
.elmotion-schedule-week-nav__btn--today.is-active {
	background: #0ea5e9;
	border-color: #0ea5e9;
	color: #fff;
}
.elmotion-schedule-empty { margin-top: 2px; }

/* True CSS Grid timetable — days = rows, times = columns */
.elmotion-schedule-grid-wrapper {
	width: 100%;
	max-width: 100%;
	flex: 1 1 auto;
	overflow: auto;
	max-height: min(78vh, 520px);
	-webkit-overflow-scrolling: touch;
	border-radius: 10px;
	border: 1px solid #e2e8f0;
	background: #f8fafc;
	width: 100%;
}

.elmotion-schedule-grid {
	--schedule-day-col: 72px;
	--schedule-slot-col: 40px;
	--schedule-header-h: 34px;
	--schedule-day-row-h: 64px;
	display: grid;
	grid-template-columns: var(--schedule-day-col) repeat(var(--slot-count, 32), var(--schedule-slot-col));
	grid-template-rows: var(--schedule-header-h) repeat(7, var(--schedule-day-row-h));
	width: max-content;
	min-width: 100%;
}

.elmotion-schedule-corner {
	grid-column: 1;
	grid-row: 1;
	position: sticky;
	top: 0;
	left: 0;
	z-index: 10;
	background: #f1f5f9;
	border-right: 1px solid #e2e8f0;
	border-bottom: 1px solid #e2e8f0;
}

.elmotion-schedule-time-header-cell {
	grid-row: 1;
	display: flex;
	align-items: center;
	padding: 0 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	color: #64748b;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	border-right: 1px solid #eef2f7;
	position: sticky;
	top: 0;
	z-index: 9;
}

.elmotion-schedule-day-label {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1px;
	padding: 0 6px;
	background: #e8f2fc;
	border-right: 1px solid #dbeafe;
	border-bottom: 1px solid #e2e8f0;
	position: sticky;
	left: 0;
	z-index: 8;
}
.elmotion-schedule-day-label.is-stripe-b { background: #f1f5f9; }
.elmotion-schedule-day-label.is-today {
	background: #dbeafe;
	box-shadow: inset 3px 0 0 #0ea5e9;
}
.elmotion-schedule-day-label__abbr {
	font-weight: 800;
	font-size: 12px;
	letter-spacing: 0.03em;
	color: #0f172a;
	line-height: 1.1;
}
.elmotion-schedule-day-label__date {
	font-size: 10px;
	color: #64748b;
	line-height: 1.15;
}

.elmotion-schedule-row-bg {
	position: relative;
	background: #fff;
	border-bottom: 1px solid #e2e8f0;
	z-index: 0;
}
.elmotion-schedule-row-bg.is-stripe-a { background: #fafcff; }
.elmotion-schedule-row-bg.is-stripe-b { background: #f8fafc; }
.elmotion-schedule-row-bg.is-today {
	background: #f0f7ff;
	box-shadow: inset 3px 0 0 #7dd3fc;
}
.elmotion-schedule-row-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(
		to right,
		transparent,
		transparent calc(var(--schedule-slot-col) - 1px),
		#eef2f7 calc(var(--schedule-slot-col) - 1px),
		#eef2f7 var(--schedule-slot-col)
	);
	pointer-events: none;
}

/* Lesson = direct grid child (grid-row + grid-column), NOT absolute */
.elmotion-schedule-lesson-block.is-open-slot {
	border-style: dashed;
	border-width: 0 0 0 3px;
	border-left-style: solid;
}
.elmotion-schedule-lesson-block__badge {
	font-size: 8px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	opacity: 0.92;
	line-height: 1.1;
}
.elmotion-schedule-lesson-block {
	margin: 1px 2px;
	padding: 4px 6px;
	border: 0;
	border-radius: 8px;
	color: #fff;
	text-align: left;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	gap: 1px;
	overflow: hidden;
	z-index: 5;
	align-self: stretch;
	justify-self: stretch;
	min-width: 0;
	min-height: 40px;
	box-sizing: border-box;
	background: linear-gradient(135deg, color-mix(in srgb, var(--lesson-color, #0ea5e9) 88%, #fff), var(--lesson-color, #0ea5e9));
	box-shadow: 0 2px 8px color-mix(in srgb, var(--lesson-color, #0ea5e9) 22%, transparent);
	border-left: 3px solid color-mix(in srgb, var(--lesson-color, #0ea5e9) 70%, #000);
	transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.elmotion-schedule-lesson-block:hover:not(:disabled) {
	transform: scale(1.01);
	z-index: 7;
	box-shadow: 0 4px 12px color-mix(in srgb, var(--lesson-color, #0ea5e9) 32%, transparent);
	filter: brightness(1.03);
}
.elmotion-schedule-lesson-block:focus-visible {
	outline: 2px solid #0f172a;
	outline-offset: 1px;
}
.elmotion-schedule-lesson-block.is-full,
.elmotion-schedule-lesson-block:disabled {
	opacity: 0.68;
	cursor: not-allowed;
	filter: grayscale(0.15);
}
.elmotion-schedule-lesson-block__time {
	font-size: 9px;
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
}
.elmotion-schedule-lesson-block__title {
	font-size: 11px;
	font-weight: 800;
	line-height: 1.15;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.elmotion-schedule-lesson-block__seats {
	font-size: 9px;
	font-weight: 600;
	margin-top: auto;
	opacity: 0.95;
	white-space: nowrap;
}

@media (max-width: 768px) {
	.elmotion-schedule {
		padding: 8px 6px 10px;
		border-radius: 12px;
	}
	.elmotion-schedule-header {
		gap: 3px;
		margin-bottom: 4px;
	}
	.elmotion-schedule-current-date-card {
		display: block;
		width: 100%;
		max-width: 100%;
		margin-bottom: 6px;
		padding: 10px 12px;
		border-radius: 8px;
	}
	.elmotion-schedule-current-date-card__text {
		font-size: 13px;
		line-height: 1.3;
		text-align: center;
	}
	.elmotion-schedule-current-date-card__label {
		display: inline;
		white-space: nowrap;
	}
	.elmotion-schedule-week-range { font-size: 14px; }
	.elmotion-schedule-week-nav { gap: 3px; }
	.elmotion-schedule-week-nav__btn {
		padding: 5px 7px;
		font-size: 10px;
		border-radius: 6px;
	}
	.elmotion-schedule-grid-wrapper {
		max-height: none;
		border-radius: 8px;
	}
	.elmotion-schedule-grid {
		--schedule-day-col: 54px;
		--schedule-slot-col: 22px;
		--schedule-header-h: 30px;
		--schedule-day-row-h: 54px;
	}
	.elmotion-schedule-time-header-cell {
		padding-left: 3px;
		font-size: 11px;
	}
	.elmotion-schedule-day-label { padding: 0 6px; }
	.elmotion-schedule-day-label__abbr { font-size: 11px; }
	.elmotion-schedule-day-label__date { font-size: 9px; }
	.elmotion-schedule-lesson-block {
		margin: 1px 1px;
		padding: 4px 5px;
		border-radius: 5px;
		min-height: 38px;
		gap: 0;
		box-shadow: 0 1px 4px color-mix(in srgb, var(--lesson-color, #0ea5e9) 16%, transparent);
	}
	.elmotion-schedule-lesson-block__time { font-size: 9px; }
	.elmotion-schedule-lesson-block__title {
		font-size: 11px;
		-webkit-line-clamp: 1;
	}
	.elmotion-schedule-lesson-block__seats { font-size: 9px; }
}

@media (max-width: 480px) {
	.elmotion-schedule-current-date-card {
		padding: 10px;
		margin-bottom: 6px;
	}
	.elmotion-schedule-current-date-card__text {
		font-size: 12px;
		line-height: 1.25;
	}
	.elmotion-schedule-week-nav__btn {
		flex: 1 1 auto;
		min-width: 0;
		padding: 4px 5px;
		font-size: 9px;
	}
	.elmotion-schedule-grid {
		--schedule-day-col: 52px;
		--schedule-slot-col: 21px;
		--schedule-header-h: 28px;
		--schedule-day-row-h: 52px;
	}
	.elmotion-schedule-day-label__abbr { font-size: 10px; }
	.elmotion-schedule-day-label__date { font-size: 8px; }
	.elmotion-schedule-lesson-block {
		min-height: 36px;
		padding: 4px;
	}
	.elmotion-schedule-lesson-block__time,
	.elmotion-schedule-lesson-block__title,
	.elmotion-schedule-lesson-block__seats {
		font-size: 10px;
		line-height: 1.1;
	}
	.elmotion-schedule-lesson-block__title { font-size: 11px; }
}

/* Booking modal — open slot option cards */
.elmotion-modal-options {
	margin-bottom: 12px;
}
.elmotion-modal-options__heading {
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 700;
	color: #0f172a;
}
.elmotion-option-cards {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.elmotion-option-card {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 2px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.elmotion-option-card input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.elmotion-option-card__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.elmotion-option-card__title {
	font-size: 14px;
	font-weight: 800;
	color: #0f172a;
}
.elmotion-option-card__price {
	font-size: 13px;
	font-weight: 700;
	color: #0369a1;
}
.elmotion-option-card__desc {
	font-size: 12px;
	color: #64748b;
	line-height: 1.35;
}
.elmotion-option-card__meta {
	font-size: 11px;
	color: #94a3b8;
}
.elmotion-option-card.is-selected,
.elmotion-option-card:has(input:checked) {
	border-color: #0ea5e9;
	background: #f0f9ff;
	box-shadow: 0 4px 14px rgba(14, 165, 233, 0.15);
}
@media (max-width: 480px) {
	.elmotion-option-card { padding: 12px; }
	.elmotion-option-card__title { font-size: 15px; }
}
