#lgd-vchat-launcher {
position: fixed;
right: max(20px, env(safe-area-inset-right));
bottom: max(20px, env(safe-area-inset-bottom));
width: 60px;
height: 60px;
border-radius: 50%;
background: #000;
color: #fff;
border: none;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
z-index: 2147483000;
transition: transform .15s ease;
}
#lgd-vchat-launcher:hover { transform: scale(1.06); }
#lgd-vchat-launcher svg { width: 26px; height: 26px; }
#lgd-vchat-launcher .lgd-vchat-badge {
position: absolute;
top: -2px;
right: -2px;
min-width: 20px;
height: 20px;
border-radius: 10px;
background: #ff4d4f;
color: #fff;
font: 600 11px/20px -apple-system, sans-serif;
text-align: center;
padding: 0 5px;
box-shadow: 0 0 0 2px #000;
}
#lgd-vchat-panel {
position: fixed;
right: max(20px, env(safe-area-inset-right));
bottom: calc(92px + env(safe-area-inset-bottom));
width: 370px;
max-width: calc(100vw - 32px);
height: 560px;
max-height: calc(100vh - 120px);
max-height: calc(100dvh - 120px);
background: #fff;
border-radius: 16px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
overflow: hidden;
display: flex;
flex-direction: column;
z-index: 2147483000;
font: 15px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
color: #1a1a1a;
box-sizing: border-box;
}
#lgd-vchat-panel.lgd-vchat-hidden { display: none; }
#lgd-vchat-launcher.lgd-vchat-hidden { display: none; }
.lgd-vchat-header {
background: #000;
color: #fff;
padding: 16px 16px;
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}
.lgd-vchat-avatar {
width: 40px;
height: 40px;
border-radius: 50%;
background: #fff;
color: #000;
display: flex;
align-items: center;
justify-content: center;
font-weight: 700;
font-size: 15px;
flex-shrink: 0;
overflow: hidden;
border: 1px solid rgba(255, 255, 255, 0.5);
}
.lgd-vchat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lgd-vchat-header-text { flex: 1; min-width: 0; }
.lgd-vchat-header-title {
font-weight: 700;
font-size: 17px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.lgd-vchat-header-sub {
font-size: 12.5px;
opacity: .8;
margin-top: 2px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.lgd-vchat-header-btn {
background: none;
border: none;
color: #fff;
cursor: pointer;
opacity: .85;
padding: 4px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.lgd-vchat-header-btn:hover { opacity: 1; }
.lgd-vchat-header-btn svg { width: 18px; height: 18px; }
.lgd-vchat-body {
flex: 1;
overflow-y: auto;
padding: 16px;
display: flex;
flex-direction: column;
gap: 10px;
background: #fff;
}
.lgd-vchat-bubble { max-width: 82%; }
.lgd-vchat-bubble.team { align-self: flex-start; }
.lgd-vchat-bubble.visitor { align-self: flex-end; }
.lgd-vchat-bubble-text {
padding: 12px 16px;
border-radius: 18px;
font-size: 15px;
white-space: pre-wrap;
word-break: break-word;
}
.lgd-vchat-bubble.team .lgd-vchat-bubble-text { background: #f1f1f1; color: #1a1a1a; border-bottom-left-radius: 4px; }
.lgd-vchat-bubble.visitor .lgd-vchat-bubble-text { background: #000; color: #fff; border-bottom-right-radius: 4px; }
.lgd-vchat-bubble-time { font-size: 11px; color: #8a8a8a; margin-top: 4px; text-align: right; }
.lgd-vchat-typing-dots { display: flex; align-items: center; gap: 4px; padding: 2px 0; }
.lgd-vchat-typing-dots span {
width: 6px;
height: 6px;
border-radius: 50%;
background: #9a9a9a;
animation: lgd-vchat-typing-bounce 1.2s infinite ease-in-out;
}
.lgd-vchat-typing-dots span:nth-child(2) { animation-delay: .15s; }
.lgd-vchat-typing-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes lgd-vchat-typing-bounce {
0%, 60%, 100% { transform: translateY(0); opacity: .5; }
30% { transform: translateY(-4px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
.lgd-vchat-typing-dots span { animation: none; opacity: .8; }
}
.lgd-vchat-attachment-image {
display: block;
border-radius: 14px;
overflow: hidden;
margin-top: 6px;
max-width: 220px;
line-height: 0;
}
.lgd-vchat-attachment-image img { width: 100%; height: auto; display: block; }
.lgd-vchat-attachment-file {
display: flex;
align-items: center;
gap: 8px;
margin-top: 6px;
padding: 10px 14px;
border-radius: 14px;
background: #f1f1f1;
color: #1a1a1a;
text-decoration: none;
font-size: 13.5px;
max-width: 220px;
}
.lgd-vchat-bubble.visitor .lgd-vchat-attachment-file { background: #000; color: #fff; }
.lgd-vchat-attachment-file svg { width: 18px; height: 18px; flex-shrink: 0; }
.lgd-vchat-attachment-file span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lgd-vchat-email-box {
background: #f4f4f4;
border-radius: 14px;
padding: 14px 16px;
font-size: 14px;
color: #333;
align-self: stretch;
}
.lgd-vchat-email-row {
display: flex;
align-items: center;
gap: 8px;
margin-top: 10px;
background: #fff;
border: 1px solid #e2e2e2;
border-radius: 24px;
padding: 6px 6px 6px 14px;
}
.lgd-vchat-email-row input {
flex: 1;
border: none !important;
outline: none !important;
font: inherit !important;
font-size: 16px !important;
background: transparent !important;
background-color: transparent !important;
color: #1a1a1a !important;
-webkit-appearance: none;
appearance: none;
box-shadow: none !important;
min-width: 0;
}
.lgd-vchat-email-row button {
width: 34px;
height: 34px;
border-radius: 50%;
border: none;
background: #f0f0f0;
color: #1a1a1a;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
}
.lgd-vchat-email-row button:hover { background: #e4e4e4; }
.lgd-vchat-email-row svg { width: 16px; height: 16px; }
.lgd-vchat-reply-time {
text-align: center;
font-size: 12px;
color: #7a8699;
padding: 6px 16px 0;
flex-shrink: 0;
}
.lgd-vchat-composer {
flex-shrink: 0;
padding: 12px 16px 6px;
}
.lgd-vchat-composer-row {
display: flex;
align-items: center;
gap: 8px;
border: 1px solid #e2e2e2;
border-radius: 26px;
padding: 8px 8px 8px 16px;
background: #fff;
}
.lgd-vchat-composer-row input {
flex: 1;
border: none !important;
outline: none !important;
font: inherit !important;
font-size: 16px !important;
background: transparent !important;
background-color: transparent !important;
color: #1a1a1a !important;
-webkit-appearance: none;
appearance: none;
box-shadow: none !important;
min-width: 0;
}
.lgd-vchat-composer-btn {
width: 34px;
height: 34px;
border-radius: 50%;
border: none;
background: transparent;
color: #4a4a4a;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
flex-shrink: 0;
}
.lgd-vchat-composer-btn:hover { background: #f2f2f2; }
.lgd-vchat-composer-btn svg { width: 19px; height: 19px; }
.lgd-vchat-footer {
text-align: center;
font-size: 11px;
color: #9a9a9a;
padding: 4px 16px 14px;
flex-shrink: 0;
}
.lgd-vchat-hp {
position: absolute !important;
left: -9999px !important;
top: -9999px !important;
width: 1px !important;
height: 1px !important;
opacity: 0 !important;
pointer-events: none;
}
@media (max-width: 640px) {
#lgd-vchat-panel {
right: 0;
bottom: 0;
width: 100vw;
max-width: 100vw;
height: 100vh;
height: 100dvh;
max-height: 100vh;
max-height: 100dvh;
border-radius: 0;
padding-bottom: env(safe-area-inset-bottom);
}
#lgd-vchat-launcher {
right: max(16px, env(safe-area-inset-right));
bottom: max(16px, env(safe-area-inset-bottom));
}
.lgd-vchat-header-btn.lgd-vchat-expand-btn { display: none; }
}
@media (min-width: 641px) {
#lgd-vchat-panel.lgd-vchat-expanded {
width: 460px;
max-width: calc(100vw - 32px);
height: 720px;
max-height: calc(100vh - 92px - 20px);
max-height: calc(100dvh - 92px - 20px);
}
}
#lgd-vchat-launcher:focus-visible,
.lgd-vchat-header-btn:focus-visible,
.lgd-vchat-composer-btn:focus-visible,
#lgd-vchat-panel button:focus-visible,
#lgd-vchat-panel a:focus-visible,
#lgd-vchat-panel input:focus-visible {
outline: 2px solid #0a84ff;
outline-offset: 2px;
}
