.wp-block-code.gccb-code-block {
	position: relative;
}

.gccb-copy-button {
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 2;
	padding: 6px 11px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 6px;
	background: #252525;
	color: #fff;
	font: inherit;
	font-size: 12px;
	line-height: 1.4;
	cursor: pointer;
	transition: background-color 0.2s ease, opacity 0.2s ease;
}

.gccb-copy-button:hover,
.gccb-copy-button:focus-visible {
	background: #444;
	color: #fff;
}

.gccb-copy-button:disabled {
    cursor: pointer;
	opacity: 0.75;
}

.gccb-copy-button.gccb-copy-success {
	background: #167847;
	color: #fff;
}

.gccb-copy-button.gccb-copy-error {
	background: #a12626;
	color: #fff;
}

/* Leave room for the button without changing the code's text. */
.wp-block-code.gccb-code-block {
	padding-top: 44px;
}
