/*
 * VCard styles — responsive width (not fixed 500px)
 */

.vcardContent {
    background-color: var(--background-color-main);
    width: min(500px, calc(100vw - 24px)) !important;
    max-width: 100%;
}

.vcardHeader {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 1%, rgba(0, 0, 0, 0.38) 100%);
    background-size: cover;
    background-position: center;
    height: 84px !important;
}

.vcardHeader .displayName {
    padding-top: 10px;
    font-size: 24px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcardHeader .title {
    font-size: 16px;
    color: white;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vcardHeader .imageWrapper {
    margin: 8px;
    margin-right: 16px;
    padding: 2px;
}

.vcardBody {
    padding: 6px;
    border-top: 1px solid var(--background3);
    max-height: 40vh;
    overflow: auto;
}

.vcardFooter {
    border-top: 1px solid var(--background3);
    background-color: var(--background-color-page);
    min-height: 55px;
    line-height: 40px;
    padding-left: 6px;
    padding-right: 6px;
}

.vcardPopover {
    max-width: min(700px, calc(100vw - 16px));
    background-color: var(--background-color-page);
    padding: 0 !important;
}

.vcardPopover .popover-body {
    padding: 0 !important;
}

.vcard-fields .vcard-field {
    padding: 4px 2px;
}

.vcard-fields .vcard-field-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color-soft, #7a7a7a);
}

.vcard-fields .vcard-field-value {
    font-size: 14px;
    word-wrap: break-word;
}

.vcard-empty {
    color: var(--text-color-soft, #7a7a7a);
    font-size: 13px;
    padding: 4px 2px;
}

@media (max-width: 576px) {
    .vcardHeader .displayName {
        font-size: 18px;
    }

    .vcardHeader .title {
        font-size: 14px;
    }
}
