.chat-business-card-trigger { color: #157867; border: 1px solid #c5e2db; background: #f0faf6; }
.chat-business-card-trigger[hidden] { display: none !important; }
.dm-bubble.has-business-card { padding: 12px; background: #f5fbf9; border: 1px solid #cee5df; color: #193c36; }
.dm-row.mine .dm-bubble.has-business-card { background: #f0faf6; color: #193c36; }
.chat-business-card-label { display: block; margin: 0 0 9px; font-size: 12px; font-weight: 700; }
.chat-business-card-image { display: block; width: min(270px, 100%); padding: 0; border: 0; border-radius: 9px; background: #fff; cursor: zoom-in; overflow: hidden; }
.chat-business-card-image img { display: block; width: 100%; max-height: 260px; object-fit: contain; }
.chat-business-card-open { display: inline-flex; align-items: center; min-height: 36px; margin-top: 5px; padding: 6px 0; border: 0; background: transparent; color: #157867; font: inherit; font-size: 12px; font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.chat-business-card-dialog { width: min(700px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); margin: auto; padding: 24px; border: 1px solid #dce5e2; border-radius: 18px; background: #fff; color: #17273d; box-shadow: 0 24px 90px #07142c40; overflow: auto; overscroll-behavior: contain; font: inherit; }
.chat-business-card-dialog::backdrop { background: #09152d99; }
.chat-business-card-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.chat-business-card-dialog-head h2 { margin: 0; font-size: 21px; line-height: 1.5; }
.chat-business-card-dialog-close { flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid #dce5e2; border-radius: 9px; color: #5b6c80; background: #f7faf9; font: inherit; font-size: 24px; cursor: pointer; }
.chat-business-card-description { margin: 10px 0 16px; color: #5b6c80; font-size: 13px; line-height: 1.7; word-break: keep-all; }
.chat-business-card-preview { display: grid; place-items: center; min-height: 120px; padding: 14px; border: 1px solid #dce5e2; border-radius: 12px; background: #f5f8f7; }
.chat-business-card-preview img { display: block; max-width: 100%; max-height: 60vh; max-height: 60dvh; object-fit: contain; background: #fff; border-radius: 6px; }
.chat-business-card-pdf { display: grid; gap: 10px; justify-items: center; padding: 20px 8px; color: #45615b; font-size: 13px; text-align: center; }
.chat-business-card-pdf a, .chat-business-card-empty a { color: #157867; text-decoration: underline; text-underline-offset: 3px; }
.chat-business-card-empty { margin: 0; padding: 22px 8px; color: #5b6c80; font-size: 14px; line-height: 1.8; text-align: center; }
.chat-business-card-status { min-height: 20px; margin: 12px 0 0; color: #5b6c80; font-size: 13px; line-height: 1.6; }
.chat-business-card-status.is-error { color: #ac3944; }
.chat-business-card-dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.chat-business-card-dialog-actions button, .chat-business-card-dialog-actions a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #dce5e2; border-radius: 9px; color: #40566e; background: #fff; font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.chat-business-card-dialog-actions .chat-business-card-send { border-color: #168c77; color: #fff; background: #168c77; }
.chat-business-card-dialog button:disabled { opacity: .55; cursor: default; }
.chat-business-card-dialog [hidden] { display: none !important; }
.chat-business-card-dialog :focus-visible, .chat-business-card-trigger:focus-visible, .chat-business-card-image:focus-visible, .chat-business-card-open:focus-visible { outline: 3px solid #8ec9bf; outline-offset: 3px; }
@media (max-width: 640px) {
    .chat-business-card-dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 19px; border-radius: 16px; }
    .chat-business-card-dialog-head h2 { font-size: 19px; }
    .chat-business-card-dialog-actions button, .chat-business-card-dialog-actions a { flex: 1; padding: 10px 12px; }
    .chat-business-card-dialog-actions > [data-business-card-manage] { flex-basis: 100%; }
    .chat-business-card-image { width: min(230px, 100%); }
}
