/* Reserve the footer before JS runs, so hover and async messages never change its height. */
:is(.ppa-chat-bubble, .ppa-inbox-bubble, .apa-bubble, .hub-msg__body) {
	position: relative;
}
:is(.ppa-chat-bubble, .ppa-inbox-bubble, .apa-bubble, .hub-msg__body)::after {
	content: "";
	display: block;
	height: 28px;
	flex: 0 0 28px;
}
body .ppa-message-actions {
	position: absolute;
	inset-inline-start: 10px;
	bottom: 4px;
	display: flex;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 20px);
	height: 28px;
	color: inherit;
	opacity: 0;
	transition: opacity 120ms ease;
}
body .ppa-message-actions[hidden] { display: none; }
:is(.ppa-chat-bubble, .ppa-inbox-bubble, .apa-bubble, .hub-msg__body):is(:hover, :focus-within) > .ppa-message-actions,
body .ppa-message-actions.has-copy-result { opacity: 1; }
body .ppa-message-actions button.ppa-message-copy {
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 28px;
	box-sizing: border-box;
	width: 28px;
	min-width: 28px;
	height: 28px;
	min-height: 28px;
	margin: 0;
	padding: 5px;
	border: 1px solid transparent;
	border-radius: 7px;
	background: transparent;
	color: inherit;
	box-shadow: none;
	font: inherit;
	line-height: 1;
	cursor: pointer;
}
body .ppa-message-actions button.ppa-message-copy:hover { background: rgba(127, 127, 127, .15); }
body .ppa-message-actions button.ppa-message-copy:focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
body .ppa-message-actions button.ppa-message-copy:disabled { cursor: wait; opacity: .5; }
body .ppa-message-actions .ppa-message-copy svg { display: block; width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; }
body .ppa-message-copy-status { font-size: 11px; line-height: 1.4; color: inherit; }
.is-editing > .ppa-message-actions { visibility: hidden; }
@media (hover: none), (pointer: coarse) {
	body .ppa-message-actions { opacity: 1; height: 36px; }
	body .ppa-message-actions button.ppa-message-copy { width: 36px; height: 36px; min-height: 36px; flex-basis: 36px; }
	:is(.ppa-chat-bubble, .ppa-inbox-bubble, .apa-bubble, .hub-msg__body)::after { height: 36px; flex-basis: 36px; }
}
@media (prefers-reduced-motion: reduce) { body .ppa-message-actions { transition: none; } }
