/* Koodilohkon kopiointipainike — presentation for inc/code-copy.php.
   Ported from astra-child (functions-code-copy.php inline <style>); hardcoded
   brand hexes replaced with --kc-* tokens. The copy button is a call-to-action,
   so it uses the theme's canonical CTA pair (--kc-cta / --kc-cta-hover); the
   copied confirmation uses the turkoosi status token. */
pre.wp-block-code { position: relative; }

.kutri-code-copy {
	position: absolute;
	top: 8px;
	right: 8px;
	background: var(--kc-cta);
	color: var(--kc-valkoinen);
	border: none;
	padding: 4px 12px;
	font-size: 13px;
	border-radius: 4px;
	cursor: pointer;
	opacity: 0;
	transition: opacity .2s;
	font-family: var(--kc-font);
	line-height: 1.4;
}

pre.wp-block-code:hover .kutri-code-copy,
.kutri-code-copy:focus { opacity: 1; }

.kutri-code-copy:hover { background: var(--kc-cta-hover); }

.kutri-code-copy--done {
	background: var(--kc-turkoosi);
	opacity: 1;
}
