#vcard-overlay {
    background-color: var(--color-vcard-overlay);
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    overflow-y: auto;
    z-index: 9751;
    -webkit-overflow-scrolling: touch;
}

/* The card brings its own full screen overlay. Injected into a j1 dialog that overlay is taken
   out of the flow, so the host dialog collapses to a zero width box whose border and shadow
   would stay visible through the translucent overlay. */
.j1-dialog:has(> #vcard-overlay) {
    background: none;
    border: none;
    box-shadow: none;
}

#vcard-frame {
    background-color: var(--color-custom-red);
    color: var(--color-popup-foreground);
    font-size: 1.0rem;
    margin: 0 auto;
    margin-top: 92px;
    max-width: 480px;
    overflow: hidden;
}

#vcard-content {
    background-color: #fff;
    border-radius: 12px;
    color: var(--color-popup-foreground);
    cursor: pointer;
    font-size: 1.2rem;
    margin: 24px;
    padding: 12px 12px;
    min-height: 100px;
    overflow: hidden;
}

.vcard-logo {
    margin: 24px 0;
    overflow: hidden;
    padding: 8px 0;
}

    .vcard-logo img {
        height: 40px;
        margin: 0 auto;
    }

.vcard-contact{
    display:flex;
    gap: 8px;
}

.vcard-contact-type {
    flex: none;
    color: var(--color-custom-red);
    font-family: 'font-bold';
    width: 2rem;
}

.vcard-contact-body {
    flex: 1;
}

.vcard-qr {
    cursor: pointer;
    max-width: 180px;
    margin: 0 auto;
}

    .vcard-qr img {
        width: 100%;
    }

@media screen and (max-width: 480px) {
    #vcard-frame {
        max-width: 100%;
        margin-top: 0;
        width: 100%;
    }
}