/* Default styles for the copy icon */
.clth-copy-icon {
    display: none;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    cursor: pointer;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    transition: opacity 0.2s;
}

/* Show icon on hover for desktop */
h2:hover .clth-copy-icon,
h3:hover .clth-copy-icon,
h4:hover .clth-copy-icon,
h5:hover .clth-copy-icon,
h6:hover .clth-copy-icon {
    display: inline-block;
}

/* Ensure the icon aligns properly when shown */
.clth-copy-icon:hover {
    opacity: 1;
}

/* Mobile-specific styles when "Always Show Icon on Mobile" is enabled */
@media (max-width: 768px) {
    body.clth-show-icon-mobile .clth-copy-icon {
        display: inline-block !important;
    }
}
