.copy-block-button { position: absolute; top: 6px; right: 6px; font-size: 12px; padding: 2px 6px; cursor: pointer; background: #f7f7f9; /* code block bg */ border: 1px solid #e1e1e8; /* code block border */ border-radius: 3px; color: #dc322f !important; /* fallback if no span */ box-shadow: 0 1px 1px rgba(0,0,0,0.04); } /* Separate rule for the span inside the button */ .copy-block-button span { color: #dc322f !important; }