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

.actionBarContainer {
	position: absolute;
	top: -16px;
	right: 0;
	z-index: var(--z-index-elevated-1);
	padding: 0 14px 0 32px;
}

.actionBar {
	display: grid;
	position: relative;
	box-sizing: border-box;
	align-items: center;
	justify-content: flex-start;
	grid-auto-flow: column;
	padding: 2px;
	background-color: var(--background-primary);
	border: 1px solid var(--background-header-secondary);
	border-radius: 8px;
	user-select: none;
	-webkit-user-select: none;
}

.button {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	padding: 4px;
	height: 30px;
	min-width: 30px;
	border-radius: 6px;
	color: var(--text-tertiary);
	cursor: pointer;
}

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

.button.danger {
	color: var(--status-danger);
}

.actionBarIcon {
	width: 20px;
	height: 20px;
	display: block;
	object-fit: contain;
}

.tooltipContent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
}

.tooltipHint {
	color: var(--text-primary-muted);
	font-size: 0.75rem;
}

.emojiImage {
	height: 1.25rem;
	width: 1.25rem;
}

span.emojiImage {
	font-size: 1.25rem;
	line-height: 1;
	font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
}
