/* My Account: compact actions with a clear primary reorder button. */
.woocommerce-orders-table__cell-order-actions {
    white-space: nowrap;
}

body #page-container .woocommerce-orders-table__cell-order-actions .button.view,
body #page-container .woocommerce-orders-table__cell-order-actions .button.order-again {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 78px;
    min-height: 36px;
    margin: 3px 6px 3px 0;
    padding: 8px 16px !important;
    border: 1px solid #00a77b !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35 !important;
    letter-spacing: 0.2px;
    text-align: center;
    text-decoration: none;
    box-shadow: none;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

body #page-container .woocommerce-orders-table__cell-order-actions .button.view {
    color: #008b68 !important;
    background: #fff !important;
}

body #page-container .woocommerce-orders-table__cell-order-actions .button.order-again {
    min-width: 116px;
    color: #fff !important;
    background: linear-gradient(90deg, #4fc0b2 10%, #00b17b 100%) !important;
}

body #page-container .woocommerce-orders-table__cell-order-actions .button.view:hover,
body #page-container .woocommerce-orders-table__cell-order-actions .button.view:focus-visible {
    color: #fff !important;
    background: #00a77b !important;
}

body #page-container .woocommerce-orders-table__cell-order-actions .button.order-again:hover,
body #page-container .woocommerce-orders-table__cell-order-actions .button.order-again:focus-visible {
    border-color: #008f67 !important;
    background: linear-gradient(90deg, #3bafa1 10%, #009f70 100%) !important;
}

body #page-container .woocommerce-orders-table__cell-order-actions .button.view:hover,
body #page-container .woocommerce-orders-table__cell-order-actions .button.order-again:hover {
    box-shadow: 0 5px 12px rgba(0, 167, 123, 0.2);
    transform: translateY(-1px);
}

body #page-container .woocommerce-orders-table__cell-order-actions .button.view::after,
body #page-container .woocommerce-orders-table__cell-order-actions .button.order-again::after {
    content: none !important;
}

@media (max-width: 768px) {
    .woocommerce-orders-table__cell-order-actions {
        white-space: normal;
    }

    body #page-container .woocommerce-orders-table__cell-order-actions .button.view,
    body #page-container .woocommerce-orders-table__cell-order-actions .button.order-again {
        margin-right: 0;
        margin-left: 6px;
    }
}
