:root {
	--charCount-font-family: system-ui, sans-serif;
	--charCount-font-size: 8px;
	--charCount-color-bg: #fafafa;
	--charCount-color-text: #333;
	--charCount-color-border: #ccc;
	--charCount-color-progress-bg: #e6e6e6;
	--charCount-radius: 2px;
	--charCount-counter-font-size: 8px;
	--charCount-counter-font-weight: 600;
}

.charCount-output-container {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 8px;
	margin-top: 0;
	font-size: var(--charCount-counter-font-size);
	font-weight: var(--charCount-counter-font-weight);
	box-sizing: border-box;
}

.charCount-fieldContainer {
	display: flex;
	flex-direction: column;
}

.charCount-output-container.charCount-remaining-only {
	justify-content: flex-end;
}

.charCount-output-container.charCount-progress-only {
	justify-content: flex-start;
}

.charCount-output-container.charCount-both {
	justify-content: space-between;
}

.charCount-output-container .charCount-progress {
	flex: 1;
	height: 2px;
	background: rgba(80, 80, 150, 0.3);
	border-radius: var(--charCount-radius);
	overflow: hidden;
	position: relative;
}

.charCount-output-container .charCount-progress-bar {
	height: 100%;
	width: 0%;
	background: green;
	transition: width 0.2s ease, background 0.2s ease;
}

.charCount-output-container .charCount-counter {
	white-space: nowrap;
	padding-left: 8px;
	min-width: 2ch;
	text-align: right;
}