.tpa-signing-body {
    margin: 0;
    background: #f5f7f8;
    color: #1d2327;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tpa-signing-shell {
    width: min(920px, calc(100% - 32px));
    margin: 32px auto;
}

.tpa-signing-header,
.tpa-review-note,
.tpa-document,
.tpa-signing-form,
.tpa-message {
    background: #fff;
    border: 1px solid #d8dee4;
    padding: 24px;
    margin-bottom: 18px;
}

.tpa-eyebrow {
    margin: 0 0 8px;
    color: #386641;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0;
}

.tpa-signing-logo {
    display: block;
    max-width: 220px;
    max-height: 90px;
    width: auto;
    height: auto;
    margin-bottom: 16px;
}

.tpa-document {
    line-height: 1.6;
}

/*
 * Agreement templates use tables for side-by-side party and signature blocks.
 * Give those cells an explicit visual boundary so adjacent organization details
 * cannot read as a single name or address when a template omits table styling.
 */
.tpa-document table {
    width: 100%;
    margin: 24px 0;
    border: 1px solid #c7d0d9;
    border-collapse: collapse;
    table-layout: fixed;
}

.tpa-document th,
.tpa-document td {
    padding: 14px 16px;
    border: 1px solid #c7d0d9;
    text-align: left;
    vertical-align: top;
    overflow-wrap: anywhere;
}

.tpa-document th {
    background: #f0f4f2;
    font-weight: 700;
}

.tpa-document th > :first-child,
.tpa-document td > :first-child {
    margin-top: 0;
}

.tpa-document th > :last-child,
.tpa-document td > :last-child {
    margin-bottom: 0;
}

.tpa-signing-form input {
    width: 100%;
    max-width: 520px;
    padding: 10px;
    border: 1px solid #9da7b1;
}

.tpa-field-instructions {
    display: inline-block;
    margin: 4px 0 8px;
    color: #50575e;
    font-size: 14px;
    font-weight: 400;
}

.tpa-signing-statement {
    max-width: 680px;
    font-weight: 600;
}

.tpa-button {
    display: inline-block;
    border: 0;
    background: #1f6f50;
    color: #fff;
    padding: 11px 16px;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}

.tpa-button.secondary {
    background: #38536b;
}

@media (max-width: 640px) {
    .tpa-document table,
    .tpa-document tbody,
    .tpa-document tr,
    .tpa-document th,
    .tpa-document td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .tpa-document table {
        border-bottom: 0;
        table-layout: auto;
    }

    .tpa-document tr {
        border: 0;
    }

    .tpa-document th,
    .tpa-document td {
        border-width: 0 0 1px;
    }
}
