/* Widget « Mois de réservation » (Perles de France). Réglages Elementor = variables CSS sur .eap-months. */

.eap-months {
	--eap-dot-size: 5px;
	--eap-dot-color: currentColor;
	--eap-dot-inactive-color: currentColor;
	--eap-months-row-gap: 0.5em;
	display: grid;
	grid-template-columns: repeat(var(--eap-months-cols, 12), minmax(0, 1fr));
	row-gap: 1em;
	column-gap: 0.25em;
	text-align: center;
}

@media (max-width: 479px) {
	.eap-months {
		--eap-months-cols: 6;
	}
}

.eap-months__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--eap-months-row-gap);
	min-width: 0;
}

.eap-months__dot {
	width: var(--eap-dot-size);
	height: var(--eap-dot-size);
	border-radius: 50%;
	background: var(--eap-dot-color);
	visibility: hidden;
}

.eap-months__item.is-active .eap-months__dot {
	visibility: visible;
}

.eap-months--show-inactive .eap-months__item:not(.is-active) .eap-months__dot {
	visibility: visible;
	background: var(--eap-dot-inactive-color);
	opacity: 0.3;
}

/* Un libellé de mois ne se coupe jamais (« Ma / i » sur la maquette). */
.eap-months__label {
	white-space: nowrap;
}
