/* BOC F demo — khung chat nhỏ góc phải (kiểu Messenger) + hộp hiện số điện thoại */
.cdock { position: fixed; right: 24px; bottom: 0; z-index: 85; display: flex; flex-direction: row-reverse; align-items: flex-end; gap: 12px; pointer-events: none; }
.cw { pointer-events: auto; width: 330px; height: 460px; display: flex; flex-direction: column; background: #fff; border-radius: 12px 12px 0 0; box-shadow: 0 12px 28px rgba(16, 24, 32, .2), 0 2px 4px rgba(16, 24, 32, .08); overflow: hidden; animation: cwIn .2s ease-out; }
@keyframes cwIn { from { transform: translateY(16px); opacity: 0; } }
.cw.min { height: 52px; }
.cw.min .cw-item, .cw.min .cw-msgs, .cw.min .cw-quick, .cw.min .cw-in { display: none; }
.cw.min .cw-h { cursor: pointer; }
.cw-h { display: flex; align-items: center; gap: 8px; height: 52px; flex: none; padding: 0 6px 0 10px; border-bottom: 1px solid var(--line); }
.cw-h .av { position: relative; width: 34px; height: 34px; font-size: 12px; background: var(--brand); }
.cw-h .av .on { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: #31A24C; border: 2px solid #fff; }
.cw-who { flex: 1; min-width: 0; }
.cw-who b { display: flex; align-items: center; gap: 4px; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-who b .ic { color: var(--brand); flex: none; }
.cw-who small { display: block; font-size: 12px; color: var(--muted); }
.cw-b { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--brand); cursor: pointer; }
.cw-b:hover { background: var(--soft); }
.cw-b .ic { width: 18px; height: 18px; }
.cw-item { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #FAFBFC; flex: none; }
.cw-item img { width: 44px; height: 36px; border-radius: 6px; object-fit: cover; flex: none; }
.cw-item span { min-width: 0; }
.cw-item b { display: block; font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cw-item i { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--price); }
.cw-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.cw-hi { margin: auto 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.cw-m { max-width: 78%; align-self: flex-start; padding: 8px 12px; border-radius: 18px; background: #EEF1F5; font-size: 14px; line-height: 1.4; word-wrap: break-word; }
.cw-m.me { align-self: flex-end; background: var(--brand); color: #fff; }
.cw-m small { display: block; font-size: 10.5px; opacity: .6; margin-top: 2px; }
.cw-m.typing { display: flex; gap: 4px; padding: 12px 14px; }
.cw-m.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9AA3AB; animation: cwDot 1s infinite; }
.cw-m.typing i:nth-child(2) { animation-delay: .15s; }
.cw-m.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cwDot { 50% { transform: translateY(-4px); opacity: .5; } }
.cw-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; flex: none; }
.cw-quick button { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand); font-size: 12.5px; font-weight: 500; }
.cw-quick button:hover { background: var(--brand-50); }
.cw-in { display: flex; align-items: center; gap: 4px; padding: 6px 8px 10px; flex: none; }
.cw-in input:not([type=file]) { flex: 1; height: 36px !important; border: 0 !important; border-radius: 999px !important; background: #EEF1F5 !important; padding: 0 14px !important; font-size: 14px !important; box-shadow: none !important; }

/* Hộp hiện số điện thoại */
.call-dlg { width: min(400px, calc(100% - 32px)); }
.call-dlg .modal-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 30px 24px 24px; }
.call-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.call-x:hover { background: var(--soft); }
.av.big { width: 64px; height: 64px; font-size: 22px; margin-bottom: 8px; }
.call-name { display: flex; align-items: center; gap: 4px; font-size: 17px; }
.call-name .ic { color: var(--brand); }
.call-num { margin: 14px 0 6px; font: 700 30px/1.2 var(--f-head); letter-spacing: .02em; color: var(--brand-d); }
.call-tip { font-size: 13px; margin: 0 0 16px; max-width: 32ch; }
.call-acts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.call-acts .btn-green { grid-column: 1 / -1; height: 48px; font-size: 16px; }

@media (max-width: 860px) {
  .cdock { right: 0; left: 0; }
  .cw { position: fixed; inset: 0; width: auto; height: auto; border-radius: 0; z-index: 160; }
  .cw.min { inset: auto 12px 74px auto; width: 230px; height: 52px; border-radius: 26px; }
  .cw.min .cw-h { border: 0; }
  .cw.min .cw-b:not([data-cw="close"]) { display: none; }
  body.cw-lock { overflow: hidden; }
  body.cw-lock .demo-nav { display: none; }
}
