.mgCopy span {
    display: inline-block;
    background-image: url(../svg/copy.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    width: 30px;
    height: 20px;
    vertical-align: top;
    cursor: pointer;
}

.mgCopy span:hover { position: relative; }

/* INFO: content: attr(data-after); -> https://stackoverflow.com/questions/74933542/change-pseudo-element-after-text-content-using-javascript */
.mgCopy span:hover:after {
    content: attr(data-copy);
    position: absolute;
    top: -30px;
    border: 1px solid #CCC;
    background-color: #FFF;
    padding: 2px 10px;
    font-size: 12px;
    line-height: 16px;
    color: #999;
    font-weight: normal;
    transition: top .5s ease, opacity .5s ease;
}

.mgCopy span.copied:after {
    content: attr(data-copied);
    top: -60px;
    opacity: 0;
}
