/**
 * DLFP – Places restantes par créneau
 * Styles neutres, à harmoniser avec le thème au poste 3.
 */

.dlfp-hidden-field {
	display: none !important;
}

.dlfp-slots {
	display: none;
	margin: 1.25rem 0;
}

.dlfp-slots.is-visible {
	display: block;
}

.dlfp-slots__title {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.dlfp-slots__list {
	display: grid;
	gap: 0.5rem;
	grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}

.dlfp-slots__message {
	margin: 0;
	opacity: 0.7;
}

.dlfp-slot {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	padding: 0.7rem 0.9rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
	font: inherit;
	text-align: left;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.dlfp-slot:hover:not(:disabled),
.dlfp-slot:focus-visible {
	background: rgba(0, 0, 0, 0.04);
}

.dlfp-slot.is-selected {
	border-width: 2px;
	background: rgba(0, 0, 0, 0.06);
}

.dlfp-slot:disabled {
	cursor: not-allowed;
	opacity: 0.45;
}

.dlfp-slot__hours {
	font-weight: 600;
}

.dlfp-slot__places {
	font-size: 0.85em;
	opacity: 0.8;
}

.dlfp-slot__places.is-low {
	opacity: 1;
	font-weight: 600;
}

@media (prefers-color-scheme: dark) {
	.dlfp-slot:hover:not(:disabled),
	.dlfp-slot:focus-visible {
		background: rgba(255, 255, 255, 0.08);
	}

	.dlfp-slot.is-selected {
		background: rgba(255, 255, 255, 0.12);
	}
}
