.ch-template-picker{margin:6px 0 12px;border:1px solid var(--line);border-radius:12px;padding:10px 12px;font-size:13px}.ch-template-picker>summary{cursor:pointer;font-weight:600}.ch-template-picker .pf-reply-templates{margin-bottom:0}.ch-receipt{display:inline-flex;align-items:center;gap:3px;margin-left:7px;color:#7d8592;font-size:10px;font-weight:400;vertical-align:middle}.ch-receipt svg{width:14px;height:14px}.ch-receipt.is-read{color:#287db8}.ch-message-files{display:grid;gap:7px;margin-top:8px}.ch-file{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid #dce1e8;border-radius:12px;background:#ffffffb8;color:inherit;overflow-wrap:anywhere}.ch-file>span{min-width:0;flex:1;font-size:12px}.ch-file small{display:block;font-size:10px}.ch-file>svg{width:18px;height:18px;flex-shrink:0}.ch-file img{width:90px;height:80px;object-fit:cover;border-radius:8px}.ch-file.is-photo{flex-wrap:wrap}.ch-file.is-photo img{width:100%;height:auto;max-height:260px;object-fit:contain}.hk-chat .composer{position:fixed;z-index:60;display:grid;grid-template-columns:36px minmax(0,1fr) 38px;align-items:end;gap:4px;padding:7px;background:#fff;border:1px solid #e1e4eb;border-radius:23px;box-shadow:0 4px 24px #23334d14,0 1px 5px #23334d0b;margin:0;isolation:isolate}.hk-chat .composer textarea{border:0;outline:none;box-shadow:none!important;resize:none;background:transparent;border-radius:12px;padding:8px 5px;min-height:40px;max-height:120px;font-size:16px;line-height:24px}.hk-chat .composer>.btn[type=submit]{border-radius:50%;height:38px;min-height:38px;width:38px;padding:8px;align-self:end;margin-bottom:1px}.hk-chat .composer>.btn[type=submit] svg{width:20px;height:20px}.ch-attach{width:36px;height:38px;border:0;border-radius:50%;background:transparent;color:#5f6878;display:grid;place-items:center;padding:6px;margin-bottom:1px}.ch-attach svg{width:23px;height:23px}.ch-files{grid-column:1/-1;display:grid;gap:5px;max-height:150px;overflow:auto}.ch-files:empty{display:none}.ch-pending-file{display:flex;align-items:center;gap:6px;padding:5px 8px;background:#f4f5f8;border-radius:11px;font-size:12px;min-width:0}.ch-pending-file>span{flex:1;min-width:0;overflow-wrap:anywhere}.ch-pending-file small{display:block;font-size:10px}.ch-pending-file .btn{padding:4px;min-height:30px;font-size:11px}.hk-chat #thread-messages{height:40dvh;max-height:none;min-height:70px;padding:12px 2px;overscroll-behavior:contain;scrollbar-width:thin}.hk-chat .panel{margin-bottom:0}.hk-chat .panel>small{display:none}.hk-chat .bubble{flex-shrink:0;max-width:88%}.hk-chat .bubble>small{display:flex;align-items:center;justify-content:flex-end;gap:3px;flex-wrap:wrap}.hk-chat .content{max-width:900px}.hk-chat #chat-form[hidden]{display:none}@media(max-width:620px){body.hk-chat{overflow:hidden}.hk-chat .content{padding-top:12px}.hk-chat .panel{padding:12px;border:0;background:transparent;box-shadow:none}.hk-chat .heading{margin-bottom:10px}.hk-chat .heading h1{font-size:20px}.hk-chat .mobile-back{margin-bottom:8px}.hk-chat.hk-keyboard aside{visibility:hidden;pointer-events:none}.hk-chat.hk-keyboard .top{display:none}.hk-chat .bubble{max-width:90%}.hk-chat .bubble .ch-receipt{font-size:9px}}
.hk-chat .ch-message{display:flex;flex-direction:column;align-items:flex-start;align-self:flex-start;max-width:90%;flex-shrink:0;gap:3px}.hk-chat .ch-message.is-mine{align-items:flex-end;align-self:flex-end}.hk-chat .ch-message>.bubble{max-width:100%;margin:0}.hk-chat .ch-message-meta{display:flex;align-items:center;flex-wrap:wrap;gap:4px;padding:0 5px 2px;background:none;border:0;box-shadow:none;color:#89909d;font-size:10px;line-height:1.5}.hk-chat .ch-message.is-mine>.ch-message-meta{justify-content:flex-end}.hk-chat .ch-message-meta .ch-receipt{margin-left:3px}
body.hk-chat.hk-chat-readonly{overflow:auto}.ch-unsent-files{margin-top:16px;display:grid;gap:8px;max-height:260px;overflow:auto}

.ch-photo-viewer{position:fixed;inset:0;margin:auto;width:100%;height:100dvh;max-width:100%;max-height:100dvh;padding:0;border:0;background:#111820;color:#fff;overflow:hidden;box-sizing:border-box}.ch-photo-viewer::backdrop{background:#111820e6}.ch-photo-viewer[open]{display:flex;flex-direction:column}.ch-photo-viewer header{display:flex;align-items:center;gap:6px;flex-shrink:0;padding:calc(10px + env(safe-area-inset-top)) 12px 10px;background:#1b242d}.ch-photo-viewer header>span{flex:1;min-width:0;font-size:13px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.ch-photo-viewer header button,.ch-photo-viewer header a{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:12px;background:transparent;color:inherit;flex-shrink:0;cursor:pointer}.ch-photo-viewer header svg{width:21px;height:21px}.ch-photo-viewer header :focus-visible{outline:2px solid #fff;outline-offset:-3px}.ch-photo-viewer header :disabled{opacity:.4}.ch-photo-stage{flex:1;min-height:0;overflow:auto;display:flex;align-items:center;justify-content:center;padding:12px 12px calc(12px + env(safe-area-inset-bottom))}.ch-photo-stage img{max-width:100%;max-height:100%;object-fit:contain}.ch-photo-stage img[hidden]{display:none}.ch-photo-viewer.is-zoomed .ch-photo-stage{display:block}.ch-photo-viewer.is-zoomed .ch-photo-stage img{display:block;width:200%;max-width:none;max-height:none}.ch-photo-error{padding:16px;text-align:center}.ch-photo-error[hidden]{display:none}.ch-photo-error button{min-height:44px;padding:8px 16px;border:1px solid #89909d;border-radius:12px;color:inherit;background:transparent}

.ch-contacts{display:flex;align-items:center;flex-wrap:wrap;gap:6px 12px;margin:8px 0 12px}.ch-contacts .btn{padding:8px 12px;font-size:.85rem;min-height:40px}.ch-contacts small{display:block;flex-basis:100%;font-size:.75rem;color:var(--muted,#6b7280);line-height:1.4}.ch-contact-dialog{border:0;border-radius:20px;padding:24px;width:min(420px,calc(100% - 32px));box-sizing:border-box;box-shadow:0 18px 70px #1b203333}.ch-contact-dialog::backdrop{background:#17203366}.ch-contact-dialog .actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.ch-contact-dialog h3{margin-top:0}.ch-contact-dialog p{line-height:1.5}

.ch-contact-dialog #cc-error:empty{display:none}.ch-contact-dialog .btn{min-height:44px}

.cc-reply-option{display:flex;align-items:center;gap:10px;margin:12px 0;font-size:.85rem;cursor:pointer}.cc-reply-option input{width:20px;height:20px;flex-shrink:0;accent-color:#c51c60}.cc-reply-option small{display:block;color:var(--muted,#6b7280);margin-top:3px}

/* Contact sharing in chat */
.cc-offer{display:flex;justify-content:center;margin:14px 0 4px}
.cc-offer-btn.btn{display:inline-flex;align-items:center;gap:8px;min-height:40px;padding:8px 16px;border:0;border-radius:999px;background:#fff;color:#bd2559;font-weight:600;font-size:.9rem;box-shadow:0 1px 3px #1720331a}
.cc-offer-btn svg{width:18px;height:18px}
.bubble.cc-has-card{white-space:pre-wrap}
.cc-card{display:flex;align-items:center;gap:10px;margin:2px 0;min-width:220px;white-space:normal}
.cc-card-icon{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border-radius:50%;background:#fde8f0;color:#bd2559}
.cc-card-icon svg{width:19px;height:19px}
.cc-card-text{display:grid;gap:2px;flex:1;min-width:0}
.cc-card-text .cc-card-label{display:block;text-align:left;font-size:.78rem;color:#6b7080;line-height:1.3}
.cc-card-text strong{font-size:1.02rem;letter-spacing:.2px}
.cc-card-call{flex-shrink:0;padding:8px 14px;border-radius:999px;background:#242834;color:#fff!important;font-weight:600;font-size:.88rem;text-decoration:none}
.cc-safe{display:flex;gap:8px;align-items:flex-start;max-width:340px;margin:8px auto 12px;padding:8px 12px;border-radius:14px;background:#ffffffb3;color:#5b6070;font-size:.8rem;line-height:1.4}
.cc-safe svg{width:16px;height:16px;flex-shrink:0;margin-top:1px;color:#2f9e66}
.cc-card{text-align:left}
.cc-card{flex-wrap:wrap;min-width:230px}
.cc-card-text strong{white-space:nowrap}
.cc-card-call{flex-basis:100%;text-align:center;margin-top:6px;padding:10px 14px}

/* Chat wallpaper and sides */
#ch-wall{display:none}
body.hk-chat #ch-wall{display:block;position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;color:#4b4f63;opacity:.075}
body.hk-chat #main{position:relative;z-index:1}
body.hk-chat #root,body.hk-chat #root>.layout,body.hk-chat #main{background:transparent!important}
body.hk-chat .bubble.ch-from-pro{background:#242834!important;color:#fff!important;border-color:transparent!important}
body.hk-chat .bubble.ch-from-client{background:#bd2559!important;color:#fff!important;border-color:transparent!important}
body.hk-chat .bubble.ch-from-pro a:not(.cc-card-call),body.hk-chat .bubble.ch-from-client a:not(.cc-card-call){color:#fff;text-decoration:underline}
.bubble.ch-from-pro .cc-card-label,.bubble.ch-from-client .cc-card-label{color:#ffffffc7}
.bubble.ch-from-pro .cc-card-icon,.bubble.ch-from-client .cc-card-icon{background:#ffffff26;color:#fff}
.bubble.ch-from-pro .cc-card-call,.bubble.ch-from-client .cc-card-call{background:#fff;color:#242834!important}
body.hk-chat .top{position:relative;z-index:2}
