/**
 * The serials table on the customer's order page.
 *
 * Ported unchanged from the "License UI" snippet in Custom CSS & JS, which this
 * replaces. The table carries the "license-table" class these rules were written
 * against, so the look is the same as before.
 *
 * Note the .woocommerce-table rule is not about serials: it shadows WooCommerce's
 * own order details table on the same pages. It came with the snippet, and
 * dropping it would have changed that table's look when the snippet is deleted.
 */

.lmfwc-myaccount-license-key {
    direction: ltr !important;
    display: block !important;
}

.license-table td:first-child {
    white-space: normal !important;
    word-break: break-all;
    line-height: 1.7;
}

.woocommerce-table {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.license-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.license-table th,
.license-table td {
    padding: 12px 15px;
    border: 1px solid #f5f5f5;
    text-align: center;
    color: #333;
}

.license-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.license-table tbody tr:hover {
    background-color: #f5cda2;
    cursor: default;
}

.copy-license-btn {
    background-color: #218838;
    border: none;
    color: white;
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.copy-license-btn:hover {
    background-color: #28A745;
}

.license-table th:last-child,
.license-table td:last-child {
    width: 80px;
    white-space: nowrap;
    text-align: center;
}

.license-table .copy-license-btn {
    padding: 4px 8px;
    font-size: 12px;
    max-width: 70px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}
