/**
 * Copy button: a GB button with the class btn-copy copies its data-copy
 * value to the clipboard (js/blocks/btn-copy.js), such as an account number
 * without spaces. It looks like any button of its palette (add a button
 * class such as btn-alternate-color as usual); this file only hides it
 * without JS, when it could not copy, and marks the moment it did.
 *
 * globalClass: btn-copy   (on a GB button)
 *
 * Structure:
 *   a.gb-button.btn-copy[href="#<the value's anchor>"]
 *     [data-copy="FI2112345600000785"]      the value, as it should be pasted
 *     [data-copied="Tilinumero kopioitu"]   shown in the button for 2.5 s
 *     [data-aa-copy="kopioi-tilinumero"]    optional: the copy as an Applari
 *                                           Analytics custom event, also when
 *                                           the value is copied by hand
 * The value must also be in the text next to the button: without JS the
 * button is hidden.
 *
 * Front end only (not an editor style), so the editor shows the button.
 */

html:not(.js) .gb-button.btn-copy {
    display: none;
}

.gb-button.btn-copy.is-copied {
    cursor: default;
}
