/* The imported desktop and phone cards have inline heights and a 10px line height. */
.classified-component a.child-container[href^="/goods/"] .info-box .abs {
    display: block !important;
    height: auto !important;
    min-height: 3.2em;
    line-height: 1.6 !important;
    white-space: normal !important;
    overflow: visible !important;
    overflow-wrap: anywhere;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

#goods-detail-container .goods-detail-p .goods-detail-abstract {
    background: transparent;
    padding-inline: 0;
}

.modal.cnip-team-profile { z-index: 2147483001; }
.cnip-team-profile.in ~ .modal-backdrop { z-index: 2147483000; }

.cnip-team-profile .modal-dialog {
    display: flex;
    align-items: center;
    width: calc(100% - 32px);
    max-width: 760px;
    min-height: calc(100% - 48px);
    margin: 24px auto;
    pointer-events: none;
}

.cnip-team-profile .modal-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow: hidden;
    background: #fff;
    color: #333;
    text-align: left;
    pointer-events: auto;
}

.cnip-profile-header {
    flex: none;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    border-bottom: 1px solid #e8e8e8;
}

.cnip-profile-photo {
    width: 64px;
    height: 80px;
    object-fit: cover;
    object-position: center 22%;
    flex: none;
}

.cnip-profile-person { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cnip-profile-person h2 { margin: 0; color: #222; font-size: 24px; line-height: 1.35; }
.cnip-profile-person p { margin: 4px 0 0; color: #666; font-size: 15px; line-height: 1.6; }
.cnip-profile-person p:empty { display: none; }

.cnip-profile-close {
    align-self: flex-start;
    flex: none;
    min-width: 48px;
    min-height: 44px;
    padding: 4px 8px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: #176ba0;
    font-size: 15px;
    cursor: pointer;
}
.cnip-profile-close:hover, .cnip-profile-close:focus { background: #eef5fa; }

.cnip-profile-bio {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 20px 24px 24px;
    font-size: 16px;
    line-height: 1.8;
    overflow-wrap: anywhere;
    -webkit-overflow-scrolling: touch;
}
.cnip-profile-bio img { max-width: 100%; height: auto; }

@media (max-width: 600px) {
    .cnip-team-profile .modal-dialog {
        width: calc(100% - 20px);
        min-height: calc(100% - 24px);
        margin: 12px auto;
    }
    .cnip-team-profile .modal-content {
        max-height: calc(100vh - 24px);
        max-height: calc(100dvh - 24px);
    }
    .cnip-profile-header { gap: 10px; padding: 12px; }
    .cnip-profile-photo { width: 48px; height: 60px; }
    .cnip-profile-person h2 { font-size: 20px; }
    .cnip-profile-bio { padding: 14px 16px 18px; }
}
