/* Selection Helper Button Styles */
#mfr-copy-selection {
    background: #2271b1;
    color: #fff;
    border: 1px solid #135e96;
    transition: all 0.2s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
    padding: 4px 12px;
    border-radius: 3px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 999999;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    text-shadow: none;
}

#mfr-copy-selection:hover {
    background: #135e96;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

#mfr-copy-selection:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

#mfr-copy-selection .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    line-height: 1;
    margin-right: 4px;
    transition: all 0.2s ease-in-out;
}

/* Button states */
#mfr-copy-selection.mfr-copying {
    background: #646970;
    border-color: #1d2327;
    cursor: wait;
}

#mfr-copy-selection.mfr-copying .dashicons-update {
    animation: mfrSpin 1s linear infinite;
}

#mfr-copy-selection.mfr-success {
    background: #00a32a;
    border-color: #008a20;
}

#mfr-copy-selection.mfr-error {
    background: #d63638;
    border-color: #b32d2e;
}

/* Animations */
@keyframes mfrButtonFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes mfrSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

#mfr-copy-selection {
    animation: mfrButtonFadeIn 0.15s ease-out forwards;
}

/* Responsive adjustments */
@media screen and (max-width: 782px) {
    #mfr-copy-selection {
        padding: 6px 14px;
        min-height: 36px;
        font-size: 14px;
    }
    
    #mfr-copy-selection .dashicons {
        font-size: 16px;
        width: 16px;
        height: 16px;
    }
}
