/*
 * 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/>.
 */

.container {
	width: 260px;
	border-radius: 0.375rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-primary);
	padding: 1rem;
}

.pickerContainer {
	margin-bottom: 0;
}

.pickerContainerWithMargin {
	margin-bottom: 0.5rem;
}

.pickerWrapper {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	overflow: visible;
	padding: 0.25rem;
}

.colorArea {
	width: 100%;
	height: 160px;
	border-radius: 0.25rem;
	flex-shrink: 0;
}

.colorSlider {
	width: 100%;
}

.sliderTrack {
	width: 100%;
	height: 16px;
	border-radius: 0.25rem;
}

.colorThumb {
	width: 18px;
	height: 18px;
	border: 2px solid white;
	border-radius: 50%;
	box-shadow:
		0 0 0 1px rgba(0, 0, 0, 0.3),
		inset 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.colorThumb[data-focus-visible] {
	width: 20px;
	height: 20px;
}

.colorThumb[data-dragging] {
	width: 20px;
	height: 20px;
}

.resetButton {
	background: transparent;
	border: none;
	padding: 0;
	margin-top: 0.5rem;
	color: var(--text-primary);
	font-size: 0.875rem;
	font-weight: 400;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
	transition:
		opacity 0.2s ease,
		text-decoration 0.15s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	text-align: center;
	gap: 0.25rem;
	min-height: 24px;
}

.resetButton:disabled {
	cursor: default;
	opacity: 0.6;
}

.resetButtonText {
	text-decoration: none;
}

.resetButton:not(:disabled):hover .resetButtonText,
.resetButton:not(:disabled):focus-visible .resetButtonText {
	text-decoration: underline;
}
