/* EBBIM Certificates — Minha Conta styles */

/* Certificates table */
.ebbimcert-certs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.ebbimcert-certs-table thead th {
    background: #f7f7f7;
    border-bottom: 2px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: #3c434a;
}

.ebbimcert-certs-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.ebbimcert-certs-table tbody tr:hover {
    background: #fafafa;
}

.ebbimcert-certs-table td {
    padding: 10px 12px;
    vertical-align: middle;
}

/* Action buttons */
.ebbimcert-dl-btn,
.ebbimcert-val-btn {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
    line-height: 1.4;
}

.ebbimcert-dl-btn {
    background: #135e96;
    color: #fff !important;
    border: 1px solid #0e4c78;
    margin-right: 6px;
}

.ebbimcert-dl-btn:hover {
    background: #0e4c78;
    color: #fff !important;
    text-decoration: none;
}

.ebbimcert-val-btn {
    background: #fff;
    color: #135e96 !important;
    border: 1px solid #c3c4c7;
}

.ebbimcert-val-btn:hover {
    background: #f0f6fc;
    color: #0e4c78 !important;
    border-color: #135e96;
    text-decoration: none;
}

/* Empty state */
.woocommerce-account .ebbimcert-certs-table tbody:empty::after {
    content: 'Nenhum certificado disponível.';
    display: table-cell;
    padding: 16px 12px;
    color: #646970;
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .ebbimcert-certs-table thead {
        display: none;
    }

    .ebbimcert-certs-table tbody tr {
        display: block;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        margin-bottom: 12px;
        padding: 8px;
    }

    .ebbimcert-certs-table td {
        display: block;
        padding: 4px 8px;
    }

    .ebbimcert-certs-table td::before {
        content: attr(data-title) ': ';
        font-weight: 600;
        color: #3c434a;
        margin-right: 4px;
    }
}
