.vs-chat { position: fixed; right: 16px; bottom: 16px; z-index: 900; }
.vs-chat-open { display: inline-flex; align-items: center; gap: 8px; background: var(--primary, #1d4ed8); color: #fff; border: 0; border-radius: 999px; padding: 12px 18px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.vs-chat-open i { font-size: 20px; }
.vs-chat-panel { position: absolute; right: 0; bottom: 60px; width: min(360px, calc(100vw - 32px)); height: min(460px, 70vh); display: flex; flex-direction: column; background: #fff; color: #111; border: 1px solid #e5e7eb; border-radius: 14px; box-shadow: 0 10px 36px rgba(0,0,0,.22); overflow: hidden; }
.vs-chat-panel[hidden] { display: none; }
.vs-chat-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--primary, #1d4ed8); color: #fff; }
.vs-chat-close { background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.vs-chat-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #f8fafc; }
.vs-msg { max-width: 85%; }
.vs-msg p { margin: 2px 0 0; padding: 9px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.vs-msg-customer { align-self: flex-end; text-align: right; }
.vs-msg-customer p { background: var(--primary, #1d4ed8); color: #fff; }
.vs-msg-bot p, .vs-msg-staff p { background: #fff; border: 1px solid #e5e7eb; }
.vs-who { font-size: 12px; color: #6b7280; }
.vs-note { font-size: 13px; color: #b42318; text-align: center; }
.vs-chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid #e5e7eb; }
.vs-chat-input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #d1d5db; border-radius: 10px; font: inherit; }
.vs-chat-send { background: var(--primary, #1d4ed8); color: #fff; border: 0; border-radius: 10px; padding: 0 16px; font: inherit; font-weight: 600; cursor: pointer; }
@media (max-width: 520px) {
  .vs-chat { left: 8px; right: 8px; bottom: 8px; }
  .vs-chat-open { width: 100%; justify-content: center; }
  .vs-chat-panel { left: 0; right: 0; width: auto; height: 70vh; }
}
