/**
 * Incremental styles for the "event" date picker (stages, apéro peinture…) —
 * modal/button/status-color chrome is shared with hx-slot-selector.css
 * (.hx-slot-modal, .hx-slot-open-button, .hx-cal-pill-open/-few/-full…),
 * enqueued alongside this file. Only the list-of-dates layout lives here.
 */

.hx-event-selector {
	margin: 16px 0;
	max-width: 420px;
}

.hx-event-selector-label {
	font-weight: 600;
	margin-bottom: 8px;
}

.hx-event-pick-hint {
	margin: 0 0 14px;
	font-size: 18px;
	font-weight: 700;
	color: #1f0d5c;
}

.hx-event-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 18px;
}

.hx-event-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	border: 1px solid rgba(31, 13, 92, 0.15);
	border-radius: 10px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
}

.hx-event-item:hover {
	border-color: rgba(31, 13, 92, 0.4);
}

.hx-event-item.is-selected {
	border-color: #1f0d5c;
	background: rgba(31, 13, 92, 0.05);
}

.hx-event-item.is-full {
	opacity: 0.5;
	cursor: not-allowed;
}

.hx-event-item input {
	margin: 0;
	flex: 0 0 auto;
}

.hx-event-item-status {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	flex: 0 0 auto;
}

.hx-event-item-text {
	flex: 1;
}

.hx-event-item-date {
	font-weight: 600;
	text-transform: capitalize;
}

.hx-event-item-meta {
	font-size: 12px;
	opacity: 0.7;
}

#hx-event-confirm {
	width: 100%;
}

/* Intertitre de mois (« Décembre 2026 ») au-dessus des dates du mois. */
.hx-event-month {
	margin: 18px 0 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: #1f0d5c;
	opacity: .7;
}
.hx-event-month:first-of-type { margin-top: 6px; }
.hx-event-item-date::first-letter { text-transform: uppercase; }

/* Popup : la liste des dates défile dans la popup, le bouton « Valider » reste toujours visible en bas. */
#hx-event-modal .hx-slot-modal-box {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 0;
}
#hx-event-modal .hx-event-list {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	margin: 0;
	padding: 32px 32px 16px;
}
#hx-event-modal #hx-event-confirm {
	flex: 0 0 auto;
	width: calc(100% - 64px);
	margin: 0 32px 24px;
	padding-top: 14px;
	padding-bottom: 14px;
	position: relative;
	margin-top: 8px;
}
#hx-event-modal .hx-event-list { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 48px), transparent); }
#hx-event-modal .hx-slot-modal-close { z-index: 2; }

/* Bureau : date, horaire et places restantes sur une seule ligne. */
@media (min-width: 601px) {
	.hx-event-item-text {
		display: flex;
		flex-wrap: wrap;
		align-items: baseline;
		gap: 2px 18px;
	}
	.hx-event-item-text br { display: none; }
	.hx-event-item-date { min-width: 130px; }
}

@media (max-width: 600px) {
	#hx-event-modal .hx-event-list { padding: 24px 16px 12px; }
	#hx-event-modal #hx-event-confirm { width: calc(100% - 32px); margin: 0 16px 16px; }
}
