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

.scroller {
	overflow: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	scrollbar-color: var(--scrollbar-thumb-bg) var(--scrollbar-track-bg);
}

.scroller::-webkit-scrollbar {
	width: 16px;
	height: 16px;
}

.scroller:-webkit-scrollbar-corner {
	background-color: transparent;
}

.scroller::-webkit-scrollbar-thumb {
	background-color: var(--scrollbar-thumb-bg);
	min-height: 40px;
}

.scroller::-webkit-scrollbar-thumb:hover {
	background-color: var(--scrollbar-thumb-bg-hover);
}

.scrollerWithBottomGutter::-webkit-scrollbar-track {
	margin-bottom: 8px;
}

.scrollerTextarea {
	--scrollbar-track-bg: var(--form-surface-background);
}

.scrollerTextarea::-webkit-scrollbar-track {
	margin-top: 2px;
	margin-bottom: 2px;
}

.scroller::-webkit-scrollbar-thumb,
.scroller::-webkit-scrollbar-track {
	border: 4px solid transparent;
	background-clip: padding-box;
	border-radius: 8px;
}

.scroller::-webkit-scrollbar-track {
	background-color: var(--scrollbar-track-bg);
}
