.woocommerce-button.pdfinvx-button {
    background: #7f54b3 !important;
    border-color: #7f54b3 !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 4px !important;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
    display: inline-block;
    transition: background 0.2s, border-color 0.2s;
}

.woocommerce-button.pdfinvx-button:hover {
    background: #6843a0 !important;
    border-color: #6843a0 !important;
}

.woocommerce-button.pdfinvx-button.disabled {
    background: #dcdcde !important;
    border-color: #dcdcde !important;
    color: #3c434a !important;
    cursor: not-allowed;
}

.woocommerce-button.pdfinvx-button .spinner {
    margin: -2px 5px 0 0;
    float: none;
}

/* Style the invoice button in the My Account orders table */
.woocommerce-button.view,
.woocommerce-button.pdfinvx_invoice {
    margin-right: 5px !important;
}

.woocommerce-button.pdfinvx_invoice:before {
    content: "\f15c"; /* Font Awesome file icon */
    font-family: 'FontAwesome';
    margin-right: 5px;
    display: inline-block;
}

/* Responsive adjustment for mobile */
@media (max-width: 768px) {
    .woocommerce-button.view,
    .woocommerce-button.pdfinvx_invoice {
        margin: 3px !important;
        padding: 8px 12px !important;
        text-align: center;
    }
    .woocommerce-button.pdfinvx-button {
        padding: 8px 16px !important;
        font-size: 13px;
    }
}