/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.button {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: none;
	background: transparent;
	color: var(--text-secondary);
	cursor: pointer;
	transition:
		color 150ms ease,
		background-color 150ms ease;
	outline: none;
	border-radius: var(--radius-sm, 4px);
	font-size: 12px;
	font-weight: 600;
	font-family: var(--font-mono, monospace);
	font-variant-numeric: tabular-nums;
	width: 44px;
	height: 24px;
	flex-shrink: 0;
}

.button:hover {
	color: var(--text-primary);
	background-color: var(--background-modifier-hover);
}

.button:active {
	background-color: var(--background-modifier-selected);
}

.small {
	font-size: 11px;
	width: 38px;
	height: 22px;
}

.medium {
	font-size: 12px;
	width: 44px;
	height: 24px;
}

.large {
	font-size: 14px;
	width: 52px;
	height: 28px;
}

.active {
	color: var(--brand-primary);
}

.label {
	display: block;
	white-space: nowrap;
	line-height: 1;
	padding-inline: 2px;
}

.button[data-rate-length='5'] .label {
	font-size: 0.8em;
}
