#site-support-chat { position:fixed; right:24px; bottom:24px; z-index:1500; color-scheme:dark; color:#eef4fc; font:14px/1.5 Inter,'Segoe UI',sans-serif; }
#site-support-chat * { box-sizing:border-box; }
#site-support-chat [hidden] { display:none !important; }
#site-support-chat button { font:inherit; cursor:pointer; color:inherit; }
#site-support-chat button:disabled { cursor:wait; opacity:.6; }
#site-support-chat :is(button,a,[role="textbox"]):focus-visible { outline:2px solid #83d5f4; outline-offset:3px; }
#site-support-chat #chat-launcher { display:flex; align-items:center; gap:10px; padding:13px 18px; border:1px solid #3c657e; border-radius:30px; background:#172e43; box-shadow:0 6px 30px #0006; font-weight:650; }
#site-support-chat #chat-launcher > span { font-size:22px; line-height:1; color:#83d5f4; }
#site-support-chat #chat-unread { color:#f1cf84; font-size:11px; }
#site-support-chat #chat-popover { position:absolute; right:0; bottom:64px; display:flex; flex-direction:column; width:390px; max-width:calc(100vw - 32px); height:540px; max-height:calc(100dvh - 110px); border:1px solid #33465c; border-radius:18px; background:#101925; box-shadow:0 18px 80px #0009; }
#site-support-chat header { display:flex; align-items:center; gap:10px; padding:16px; border-bottom:1px solid #263246; }
#site-support-chat header img { border-radius:10px; }
#site-support-chat header div { flex:1; min-width:0; }
#site-support-chat h2 { margin:0; font-size:15px; }
#site-support-chat header p { margin:3px 0 0; font-size:12px; color:#bac5d6; }
#site-support-chat #chat-close { border:0; border-radius:8px; background:transparent; font-size:28px; width:36px; height:40px; }
#site-support-chat #chat-order-link { padding:10px 16px; color:#83d5f4; font-size:12px; overflow-wrap:anywhere; }
#site-support-chat #floating-chat-log { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; padding:16px; }
#site-support-chat .chat-message { width:fit-content; max-width:94%; margin:0 0 10px; padding:10px 12px; border:1px solid #2b3b50; border-radius:12px; background:#192638; overflow-wrap:anywhere; }
#site-support-chat .chat-message.client { margin-left:auto; background:#20364a; border-color:#36516a; }
#site-support-chat .chat-message.system { width:100%; max-width:100%; margin:0 0 12px; padding:10px 12px; border:1px solid #2b3849; border-radius:12px; background:#151f2d; color:#bac5d6; font-size:12px; font-weight:400; line-height:1.55; }
#site-support-chat .chat-message.system:last-child { margin-bottom:0; }
#site-support-chat .chat-message.system p { margin:0; }
#site-support-chat .chat-message > span { color:#83d5f4; font-size:11px; }
#site-support-chat .chat-message p { margin:3px 0 0; white-space:pre-wrap; }
#site-support-chat .chat-message a { color:#83d5f4; }
#site-support-chat .chat-message-image { display:block; max-width:100%; max-height:220px; margin-top:6px; border-radius:8px; }
#site-support-chat .chat-image-open { display:block; max-width:100%; padding:0; border:0; background:transparent; cursor:zoom-in; }
html.chat-image-viewer-open, body.chat-image-viewer-open { overflow:hidden; }
.chat-image-viewer { box-sizing:border-box; width:100%; height:100dvh; max-width:none; max-height:none; margin:0; padding:20px; overflow:hidden; border:0; background:#080b12f5; color:#fff; font:14px/1.5 'Segoe UI',sans-serif; }
.chat-image-viewer::backdrop { background:#000c; }
.chat-image-viewer[open] { display:grid; grid-template-rows:auto minmax(0,1fr); gap:12px; }
.chat-image-viewer-toolbar { display:flex; justify-content:flex-end; gap:12px; }
.chat-image-viewer button { min-height:44px; padding:8px 14px; border:1px solid #ffffff4d; border-radius:8px; background:#252b36; color:#fff; font:inherit; cursor:pointer; }
.chat-image-viewer-stage { display:flex; min-width:0; min-height:0; overflow:auto; overscroll-behavior:contain; }
.chat-image-viewer .chat-image-viewer-image { display:block; flex:none; width:auto; height:auto; max-width:100%; max-height:100%; margin:auto; object-fit:contain; cursor:zoom-in; }
.chat-image-viewer.is-zoomed .chat-image-viewer-image { max-width:none; max-height:none; cursor:zoom-out; }
#site-support-chat #chat-error { flex-shrink:0; margin:0 16px 12px; padding:10px 12px; border:1px solid #57404a; border-radius:12px; background:#2a202a; color:#f4cccc; font-size:12px; font-weight:400; line-height:1.5; }
#site-support-chat .chat-form { position:relative; display:grid; grid-template-columns:auto auto 1fr; gap:8px; padding:12px; border-top:1px solid #263246; }
#site-support-chat .chat-form > button { min-height:40px; padding:8px 12px; border:1px solid #33465c; border-radius:9px; background:#1c2d40; }
#site-support-chat .chat-form > [type="submit"] { justify-self:end; background:#28455b; }
#site-support-chat .chat-attach.has-file { color:#f1cf84; border-color:#f1cf84; }
#site-support-chat .chat-attachment-status { grid-column:1 / -1; margin:0; color:#f1cf84; font-size:12px; }
@media (max-width:600px) {
  #site-support-chat { right:16px; bottom:max(16px,env(safe-area-inset-bottom)); }
  #site-support-chat #chat-popover { width:calc(100vw - 32px); max-height:calc(100dvh - 100px - env(safe-area-inset-bottom)); }
}
