/* Duplicate Order Button Styles */
.wc-duplicate-order-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.wc-duplicate-order-button:hover {
    background-color: #005a87;
    color: white;
}

.wc-duplicate-order-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Notice Styles */
.wc-duplicate-order-notice {
    margin-bottom: 20px;
    padding: 15px;
    border-left: 4px solid;
    background: #fff;
    box-shadow: 0 1px 1px 0 rgba(0,0,0,.1);
}

.wc-duplicate-order-notice.woocommerce-message {
    border-left-color: #46b450;
    background-color: #f7fcf0;
}

.wc-duplicate-order-notice.woocommerce-error {
    border-left-color: #dc3232;
    background-color: #fef7f1;
}

.wc-duplicate-order-notice p {
    margin: 0.5em 0;
}

.wc-duplicate-order-notice p:first-child {
    margin-top: 0;
}

.wc-duplicate-order-notice p:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wc-duplicate-order-button {
        padding: 6px 12px;
        font-size: 12px;
        margin-bottom: 5px;
    }
    
    .woocommerce-orders-table .wc-duplicate-order-button {
        width: 100%;
        text-align: center;
    }
}

/* Loading state */
.wc-duplicate-order-button.loading {
    position: relative;
    color: transparent;
}

.wc-duplicate-order-button.loading:after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    animation: spin 1s ease infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Integration with existing WooCommerce styles */
.woocommerce-MyAccount-orders .wc-duplicate-order-button {
    margin-left: 5px;
}

.woocommerce table.shop_table .wc-duplicate-order-button {
    white-space: nowrap;
}