/* The customer support chat in the SocialFollowers design. Loaded by support/_widget.php; the old theme never sees it. */
html body .spw.lb-chat { right: 18px; bottom: 18px; font: 14px/1.5 Roboto, system-ui, sans-serif; color: #14233F; }
.spw.lb-chat .spw-bub { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 25px; background: linear-gradient(135deg, #2E7BFF 0%, #0A3FB0 100%); box-shadow: 0 12px 28px rgba(11,42,91,.35); transition: transform .15s; }
.spw.lb-chat .spw-bub:hover { transform: translateY(-2px); }
.spw.lb-chat .spw-dot { background: #FFB547; }
.spw.lb-chat .spw-panel { bottom: 74px; width: 380px; height: 600px; max-height: calc(100vh - 120px); border: 1px solid #DCE4F2; border-radius: 18px; box-shadow: 0 24px 60px rgba(11,42,91,.28); }
.spw.lb-chat .spw-h { gap: 12px; padding: 16px; background: linear-gradient(135deg, #0B2A5B 0%, #1456C8 100%); }
.spw.lb-chat .spw-av { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: #fff; color: #1456C8; font-size: 18px; }
.spw.lb-chat .spw-name { flex: 1; min-width: 0; }
.spw.lb-chat .spw-t { font: 700 16px/1.3 Poppins, Roboto, sans-serif; color: #fff; }
.spw.lb-chat .spw-s { display: flex; align-items: center; gap: 6px; color: #DCE7FF; opacity: 1; }
.spw.lb-chat .spw-s:not(:empty)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FFB547; }
.spw.lb-chat .spw-x { width: 32px; height: 32px; padding: 0; border-radius: 8px; }
.spw.lb-chat .spw-x:hover { background: rgba(255,255,255,.16); }
.spw.lb-chat .spw-body { padding: 16px; background: #F2F6FD; }
.spw.lb-chat .spw-m-l { color: #55627A; }
.spw.lb-chat .spw-m-b { padding: 10px 13px; border-color: #DCE4F2; border-radius: 4px 14px 14px 14px; }
.spw.lb-chat .spw-m.me .spw-m-b { background: #1456C8; border-color: #1456C8; border-radius: 14px 4px 14px 14px; color: #fff; }
.spw.lb-chat .spw-m.staff .spw-m-b { background: #E9F4EE; border-color: #cfe3d8; }
.spw.lb-chat .spw-m.sys .spw-m-b { background: none; border: 0; }
.spw.lb-chat .spw-card { border-color: #D5E1F5; border-radius: 12px; }
.spw.lb-chat .spw-quick { gap: 8px; padding: 12px 14px 0; }
.spw.lb-chat .spw-quick button { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border: 1px solid #D5E1F5; border-radius: 999px; background: #fff; color: #0B2A5B; font: 600 12.5px Roboto, sans-serif; }
.spw.lb-chat .spw-quick button i { color: #1456C8; pointer-events: none; }
.spw.lb-chat .spw-quick button:hover { border-color: #1456C8; background: #F2F6FD; }
.spw.lb-chat .spw-c { align-items: flex-end; gap: 8px; padding: 12px 14px 8px; border-top: 0; }
.spw.lb-chat .spw-c textarea { height: 44px; padding: 11px 14px; border: 1px solid #D5E1F5; border-radius: 14px; background: #fff; font-size: 16px; line-height: 20px; }
.spw.lb-chat .spw-c textarea:focus { outline: 2px solid #1456C8; outline-offset: -1px; }
.spw.lb-chat .spw-c .spw-send { flex: none; width: 44px; height: 44px; padding: 0; border-radius: 14px; background: #1456C8; font-size: 16px; }
.spw.lb-chat .spw-c .spw-send:hover { background: #0B2A5B; }
.spw.lb-chat .spw-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0 14px 8px; padding: 8px; border-radius: 12px; background: #E9F4EE; color: #1F6B4A; font-weight: 700; font-size: 13px; text-decoration: none; }
.spw.lb-chat .spw-wa i { font-size: 17px; }
.spw.lb-chat .spw-foot { text-align: center; color: #55627A; }
.spw.lb-chat button:focus-visible, .spw.lb-chat .spw-wa:focus-visible { outline: 3px solid #FFB547; outline-offset: 2px; }
/* one floating button: the chat holds the WhatsApp link */
body.lb:has(.spw .spw-wa) a.lb-wa-float { display: none !important; }
/* phones: sit above the bottom bar, and take the whole screen when open */
@media (max-width: 700px) {
  html body .spw.lb-chat { right: 14px; bottom: 78px; }
  html body .spw.lb-chat .spw-bub { width: 54px; height: 54px; }
  html body .spw.lb-chat.open { top: 0; right: 0; bottom: 0; left: 0; z-index: 2147483000; }
  .spw.lb-chat.open .spw-bub { display: none; }
  .spw.lb-chat .spw-panel { position: fixed; top: 0; right: 0; bottom: 0; left: 0; width: auto; height: auto; max-height: none; border: 0; border-radius: 0; }
}
@media print { .spw.lb-chat { display: none; } }
