.payment-success-wrapper, .payment-failure-wrapper, .payment-success-wrapper-additional,
.coapplicant-payment-failure {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #FEA327;
    background: #fff;
}

.coapplicant-payment-failure,
.payment-failure-wrapper {
    border-color: #e05c3a;
}

.payment-failure-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(224, 92, 58, 0.07) 0%, rgba(224, 92, 58, 0.02) 100%);
    border-bottom: 1px solid rgba(224, 92, 58, 0.15);
}

.payment-failure-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-failure-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1C1C1C;
    margin: 0 0 4px 0;
}

.payment-failure-subtitle {
    font-size: 0.875rem;
    color: #6E6E6E;
    margin: 0;
    line-height: 1.4;
}

.payment-success-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(254, 163, 39, 0.08) 0%, rgba(254, 163, 39, 0.03) 100%);
    border-bottom: 1px solid rgba(254, 163, 39, 0.15);
}

.payment-success-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.payment-success-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1C1C1C;
    margin: 0 0 4px 0;
}

.payment-success-subtitle {
    font-size: 0.875rem;
    color: #6E6E6E;
    margin: 0;
    line-height: 1.4;
}

.payment-success-body {
    padding: 20px 24px;
}

.payment-success-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.payment-success-detail:last-child {
    border-bottom: none;
}

.payment-success-label {
    font-size: 0.875rem;
    color: #6E6E6E;
    font-weight: 500;
}

.payment-success-value {
    font-size: 0.875rem;
    color: #1C1C1C;
    font-weight: 600;
}

.payment-success-footer {
    padding: 14px 24px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}

.payment-success-receipt-btn {
    color: #FEA327;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.2s;
}

.payment-success-receipt-btn:hover {
    color: #FEA327;
    opacity: 0.8;
}

.payment-success-receipt-btn img {
    width: 16px;
    height: 16px;
}

/* Legacy download-btn (kept for other usages) */
.download-btn {
    color: #FEA327;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    gap: 10px;
    align-items: center;
    cursor: pointer;
}

.download-btn:hover {
    color: #FEA327;
}

.card-right {
    width: 100%;
    padding: 24px;
}

.payment-detail {
    display: flex;
    margin-bottom: 8px;
}

.detail-label {
    flex: 1;
    color: #1C1C1C;
    font-weight: 500;
}

.detail-value {
    flex: 2;
    color: #3C3C3C;
}

.detail-separator {
    margin: 0 0.5rem;
    color: #3C3C3C;
}

.have-question {
    color: #6E6E6E;
}

.contact-support {
    color: #FEA327;
}

.readonly-style {
    background-color: #e9ecef;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 1;
    color: var(--bs-secondary-color);
}

.lotly-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.lotly-orange-bg {
    background-color: #f3a328;
}

.lotly-orange-text {
    color: #f3a328;
}

.co-applicant-item {
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.co-applicant-item:hover {
    border-color: #f3a328;
    box-shadow: 0 2px 4px rgba(255, 140, 66, 0.1);
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.status-unpaid {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.status-paid {
    background-color: #d1edff;
    color: #0c5460;
    border: 1px solid #b8daff;
}

.total-section {
    background: #fff8ee;
    border: 1px solid #f3a227;
    border-radius: 8px;
    color: #7a4d00;
}

.btn-lotly {
    background-color: #f3a328;
    border-color: #f3a328;
    color: white;
    border-radius: 6px;
    font-weight: 500;
}

.btn-lotly:hover {
    background-color: #f3a227;
    border-color: #f3a227;
    color: white;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Co-signer tenant info card */
.cosigner-tenant-card {
    background: #fff8ee;
    border: 1px solid #f3a227;
    border-radius: 10px;
    padding: 18px 20px 10px;
    margin-bottom: 1.25rem;
}

.cosigner-tenant-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 4px;
}

.cosigner-tenant-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: #f3a227;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    margin-top: 2px;
}

.cosigner-tenant-card .form-control:focus {
    border-color: #f3a227;
    box-shadow: 0 0 0 0.2rem rgba(243,162,39,0.2);
}

/* --------- */

.coapplicant-paid-warning {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fff8ee;
    border: 1px solid #f3a227;
    border-left: 4px solid #f3a227;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 4px;
    font-size: 0.875rem;
    color: #7a4d00;
    line-height: 1.45;
}

/* ── Property info card (top of Terms step) — single compact line ── */
.property-info-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: rgba(254, 163, 39, 0.06);
    border: 1px solid rgba(254, 163, 39, 0.2);
    border-left: 3px solid #f3a227;
    border-radius: 6px;
    padding: 10px 16px;
    overflow: hidden;
}

.property-info-icon-wrap {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #f3a227;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.78rem;
}

.property-info-content {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.property-info-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #f3a227;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    flex-shrink: 0;
}

.property-info-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: #1C1C1C;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.property-info-unit {
    font-weight: 500;
    color: #555;
}

.property-info-sep {
    color: #ccc;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.property-info-address {
    font-size: 0.8rem;
    color: #6E6E6E;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 1;
    min-width: 0;
}

.property-info-address i {
    color: #f3a227;
    font-size: 0.72rem;
    flex-shrink: 0;
}