/* Styles used by chat/tab-inner.js - moved out of inline styles */
.tab-inner-floating-replace-button {
	white-space: nowrap;
	position: fixed;
	background: rgba(30, 30, 35, 0.7) !important;
	box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px !important;
	color: white;
	height: 30px;
	padding-left: 7px;
	padding-right: 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	cursor: pointer;
	z-index: 2147483647;
	font-size: 13px;
	font-weight: 300;
	user-select: none;
	-webkit-user-select: none;
	border: 1px solid rgba(255, 255, 255, 0.15) !important;
	-ms-user-select: none;
}

/* Applied to parent elements that host copy/replace buttons so we can position them without inline styles */
.tab-inner-relative {
	position: relative !important;
}

/* Style for the copy button inside code blocks */
.message button.copy-button, .message button.replace-button, .message button.apply-button, .message button.run-terminal-button, .message button.canvas-button, .message button.open-image-button {
	position: absolute;
	bottom: 7px;
	right: 9px;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 16px;
	padding: 6px;
	transition: color 0.3s ease;
	border-radius: 6px;
	background: rgb(255 255 255 / 70%);
	width: auto;
}

.message button.copy-button:hover,
.message button.replace-button:hover,
.message button.apply-button:hover,
.message button.run-terminal-button:hover,
.message button.canvas-button:hover,
.message button.open-image-button:hover {
	background: rgba(255, 255, 255, 0.9);
}

.message button.replace-button {
	right: 47px;
}

.message button.apply-button {
	right: 85px;
}

.message button.apply-button.apply-button-stop {
	animation: tab-inner-apply-stop-emoji-pulse 1.1s ease-in-out infinite;
}

.message button.apply-button.apply-button-stop:hover {
	background: rgba(255, 255, 255, 0.9);
}

.message button.run-terminal-button {
	right: 85px;
}

.message button.canvas-button {
	right: 85px;
}

.message button.open-image-button {
	right: 85px;
}

@keyframes tab-inner-apply-stop-emoji-pulse {
	0% {
		opacity: 1;
	}

	50% {
		opacity: 0.45;
	}

	100% {
		opacity: 1;
	}
}
