.support-chat[hidden], .support-chat [hidden] { display: none !important; }
.support-chat { position: fixed; right: 22px; bottom: 22px; z-index: 119000; font-family: inherit; color: #1b2a42; }
.support-chat-launcher { border: 0; border-radius: 999px; padding: 13px 18px; display: flex; align-items: center; gap: 9px; color: #fff; background: linear-gradient(135deg,#ef9e36,#d87322); box-shadow: 0 12px 30px #80451852; font-family: inherit; font-size: 14px; font-weight: 700; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform .2s, box-shadow .2s; }
.support-chat-launcher:active { cursor: grabbing; }
.support-chat-drop-target[hidden] { display: none !important; }
.support-chat-drop-target { position: fixed; left: 50%; width: 68px; height: 68px; display: grid; place-items: center; transform: translateX(-50%); border: 2px solid #eec99d; border-radius: 50%; background: #fff4e5; color: #ae621c; box-shadow: 0 12px 32px #80451838; font: 700 35px/1 Arial,sans-serif; pointer-events: none; z-index: 119001; transition: background .15s, border-color .15s, transform .15s; }
.support-chat-drop-target.is-target { background: #ffe8e4; border-color: #e86a58; color: #ca4138; transform: translateX(-50%) scale(1.1); }
.support-chat-launcher:hover { transform: translateY(-2px); box-shadow: 0 16px 34px #80451866; }
.support-chat-launcher .support-chat-count { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: #ffbe59; color: #17263f; display: grid; place-items: center; font-size: 11px; }
.support-chat-panel { width: min(390px, calc(100vw - 24px)); height: min(580px, calc(100dvh - 38px)); display: flex; flex-direction: column; border: 1px solid #d9e3f2; border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 22px 60px #14264740; }
.support-chat-head { display: flex; align-items: center; gap: 11px; padding: 15px 17px; background: linear-gradient(135deg,#c56821,#f0a341); color: #fff; }
.support-chat-avatar { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: #ffffff36; font-size: 20px; }
.support-chat-head-copy { flex: 1; min-width: 0; display: grid; gap: 2px; }
.support-chat-head-copy strong { font-size: 15px; }
.support-chat-head-copy small { color: #eaf3ff; font-size: 11px; }
.support-chat-head button { width: 29px; height: 29px; padding: 0; border: 0; border-radius: 8px; color: #fff; background: #ffffff21; cursor: pointer; font-size: 18px; }
.support-chat-head button:hover { background: #ffffff40; }
.support-chat-history { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; background: #f6f8fc; }
.support-chat-welcome { align-self: flex-start; max-width: 90%; padding: 12px 14px; border-radius: 15px 15px 15px 5px; background: #fff; border: 1px solid #e5ebf4; box-shadow: 0 2px 7px #13294f0c; font-size: 13px; line-height: 1.5; }
.support-chat-welcome strong { display: block; margin-bottom: 5px; color: #bb641e; }
.support-chat-message { max-width: 86%; padding: 10px 13px; border-radius: 15px 15px 15px 5px; background: #fff; border: 1px solid #e5ebf4; overflow-wrap: anywhere; }
.support-chat-message.is-own { align-self: flex-end; border: 0; border-radius: 15px 15px 5px 15px; background: #fff0de; }
.support-chat-message p { margin: 0; white-space: pre-wrap; font-size: 13px; line-height: 1.5; }
.support-chat-message small { display: block; margin-top: 5px; font-size: 10px; color: #71819b; text-align: right; }
.support-chat-older { align-self: center; border: 0; background: transparent; color: #bb641e; font-size: 12px; font-weight: 700; cursor: pointer; }
.support-chat-error { min-height: 18px; padding: 0 15px; color: #b74237; font-size: 11px; }
.support-chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 11px; border-top: 1px solid #e4eaf3; background: #fff; }
.support-chat-compose textarea { flex: 1; min-width: 0; max-height: 95px; min-height: 40px; resize: vertical; padding: 10px 12px; border: 1px solid #d8e1ee; border-radius: 12px; background: #f8fafe; color: #1b2a42; font-family: inherit; font-size: 13px; line-height: 1.4; }
.support-chat-compose textarea:focus { outline: 2px solid #f5bf82; border-color: #d87929; }
.support-chat-compose button { min-height: 40px; padding: 0 13px; border: 0; border-radius: 11px; color: #fff; background: #d87929; font-family: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.support-chat-compose button:disabled { opacity: .6; cursor: wait; }
.dark-mode .support-chat-panel { background: #17243a; border-color: #31435e; color: #e6edf7; }
.dark-mode .support-chat-history { background: #101c2e; }
.dark-mode .support-chat-welcome, .dark-mode .support-chat-message:not(.is-own) { background: #1e3049; border-color: #344963; color: #e6edf7; }
.dark-mode .support-chat-message.is-own { background: #81501e; color: #fff; }
.dark-mode .support-chat-compose { background: #17243a; border-color: #31435e; }
.dark-mode .support-chat-compose textarea { background: #1e3049; border-color: #344963; color: #fff; }
@media (max-width: 600px) { .support-chat { right: 12px; bottom: 12px; } .support-chat-panel { height: min(610px, calc(100dvh - 24px)); } }
