/**
 * CCJA Jauge Form - styles frontend & preview Elementor.
 */

.ccja-gauge-list {
	--ccja-gauge-color: #2c8a3a;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
}

.ccja-gauge-option {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	padding: 0.25rem 0;
	cursor: pointer;
	margin: 0;
}

.ccja-gauge-input {
	flex: 0 0 auto;
	margin: 0;
	accent-color: var(--ccja-gauge-color);
}

.ccja-gauge-label {
	flex: 1 1 auto;
	min-width: 6rem;
	color: inherit;
}

.ccja-gauge-bar {
	flex: 1 1 8rem;
	min-width: 6rem;
	height: 8px;
	border-radius: 999px;
	background-color: rgba(0, 0, 0, 0.08);
	overflow: hidden;
	position: relative;
}

.ccja-gauge-fill {
	display: block;
	height: 100%;
	width: 0;
	background-color: var(--ccja-gauge-color);
	transition: width 0.4s ease;
}

.ccja-gauge-count {
	flex: 0 0 auto;
	font-variant-numeric: tabular-nums;
	font-size: 0.95em;
	color: rgba(0, 0, 0, 0.7);
	white-space: nowrap;
}

.ccja-gauge-count .ccja-gauge-sep {
	margin: 0 0.15em;
	opacity: 0.5;
}

.ccja-gauge-waitlist {
	flex: 0 0 auto;
	font-size: 0.85em;
	font-style: italic;
	color: rgba(0, 0, 0, 0.55);
	white-space: nowrap;
}

.ccja-gauge-warning {
	flex: 1 0 100%;
	font-size: 0.85em;
	color: inherit;
	margin-top: 0.15rem;
}
