/* Message action bar - appears on hover */

.container {
	position: absolute;
	top: -16px;
	right: 16px;
	display: none;
	align-items: center;
	padding: 2px;
	background-color: var(--background-primary);
	border: 1px solid var(--background-header-secondary);
	border-radius: 8px;
	z-index: 1;
}

/* Show on hover from parent message */
:global(.messageHoverable):hover > .container,
:global(.actionBarForceVisible) > .container {
	display: flex;
}

/* Mobile: never show the desktop hover action bar. Mobile users get
   the long-press bottom sheet (MobileMessageActionsSheet) instead —
   the hover bar would be both useless (no hover) and visually noisy
   when a tap accidentally triggers the :hover state on iOS. */
@media (max-width: 768px) {
	:global(.messageHoverable):hover > .container,
	:global(.actionBarForceVisible) > .container {
		display: none;
	}
}

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

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

.quickEmoji {
	width: 20px;
	height: 20px;
	display: block;
}

.divider {
	width: 1px;
	height: 20px;
	margin: 0 2px;
	background-color: var(--background-modifier-accent);
}

/* ── More dropdown menu ───────────────────────────────────────── */

.moreMenu {
	min-width: 188px;
	padding: 6px 8px;
	background-color: var(--background-floating, var(--background-primary));
	border-radius: 8px;
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.menuItem {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px 8px;
	border-radius: 4px;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--text-secondary);
	font-size: 0.875rem;
	font-weight: 500;
	font-family: inherit;
	text-align: left;
	transition: background-color 0.1s, color 0.1s;
}

.menuItem:hover {
	background-color: var(--brand-primary);
	color: #fff;
}

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

.menuItemDanger:hover {
	background-color: var(--status-danger);
	color: #fff;
}

.menuDivider {
	height: 1px;
	margin: 4px 8px;
	background-color: var(--background-modifier-accent);
}
