.feature-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07);
    margin-bottom: 24px;
    padding: 24px;
}

.feature-card fieldset {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 24px;
    padding: 18px;
}

.feature-card legend {
    color: #4f2a19;
    font-size: 18px;
    font-weight: 700;
    padding: 0 10px;
    width: auto;
}

.required-marker {
    color: #c00;
}

.kyc-status {
    border-radius: 4px;
    display: none;
    margin-bottom: 20px;
    padding: 12px 15px;
}

.kyc-status.is-visible {
    display: block;
}

.kyc-status.info {
    background: #eef5ff;
    color: #174f89;
}

.kyc-status.success {
    background: #eaf7ed;
    color: #246b32;
}

.kyc-status.error {
    background: #fdecec;
    color: #9c2020;
}

.document-card {
    border: 1px solid #e5e5e5;
    border-radius: 5px;
    height: 100%;
    padding: 15px;
}

.document-preview {
    align-items: center;
    background: #f7f7f7;
    border: 1px dashed #ccc;
    display: flex;
    height: 150px;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.document-preview img {
    display: none;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.document-preview img.has-image {
    display: block;
}

.tds-table-wrap {
    overflow-x: auto;
}

.tds-table {
    min-width: 690px;
}

.tds-table th {
    background: #4f2a19;
    color: #fff;
    text-align: center;
    white-space: nowrap;
}

.tds-table td {
    text-align: center;
    vertical-align: middle;
}

.tds-table input {
    min-width: 110px;
}

.tds-money {
    white-space: nowrap;
}

.tds-delete {
    background: #a92626;
    border: 0;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    padding: 7px 11px;
}

.tds-delete:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.tds-summary {
    width: 100%;
    max-width: none;
    margin: 0;
    table-layout: fixed;
}

.tds-summary td:first-child {
    width: 50%;
    font-weight: 700;
}

.tds-summary td:last-child {
    width: 50%;
    text-align: right;
}

.tds-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    margin: 18px 0 24px;
}

#addTdsRow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 148px;
    margin: 0;
}

@media (max-width: 767px) {
    .feature-card {
        padding: 15px;
    }

    .feature-card fieldset {
        padding: 12px;
    }

    .tds-actions {
        margin: 14px 0 20px;
    }

    #addTdsRow {
        width: 100%;
    }
}
