/* Independent launcher extension: never changes the widget's panel or layout styles. */
.wit-live-chat > .wit-chat-bot-links {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  width: 48px;
  max-width: calc(100vw - 24px);
  z-index: 1;
}
.wit-live-chat[data-position="left"] > .wit-chat-bot-links { left: 0; right: auto; }
.wit-chat-bot-links { display: flex; flex-direction: column; width: max-content; gap: 6px; font: 700 13px/1.2 system-ui, sans-serif; }
.wit-chat-bot-links[hidden], .wit-live-chat[data-open="true"] > .wit-chat-bot-links { display: none; }
.wit-chat-bot-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 11px;
  box-sizing: border-box;
  border: 1px solid var(--wit-chat-line, #a5afbd);
  border-radius: 14px;
  background: var(--wit-chat-surface, #fff);
  color: var(--wit-chat-text, #172538);
  text-decoration: none;
  box-shadow: 0 3px 12px #0002;
}
.wit-chat-bot-links a:hover { text-decoration: underline; }
.wit-chat-bot-links a:focus-visible { outline: 3px solid #2178ba; outline-offset: 2px; }
.wit-chat-bot-links svg { width: 22px; height: 22px; flex: 0 0 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.wit-live-chat > .wit-chat-bot-links a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-height: 48px;
  flex: 0 0 48px;
  padding: 0;
  border: 1px solid #ffffff80;
  border-radius: 50%;
  color: #fff;
  overflow: hidden;
  background-size: 240% 240%;
  box-shadow: 0 3px 12px #10284b35;
}
.wit-live-chat > .wit-chat-bot-links [data-channel="telegram"] { background-image: linear-gradient(125deg, #087fb5, #1698d0, #086293, #087fb5); }
.wit-live-chat > .wit-chat-bot-links [data-channel="max"] { background-image: linear-gradient(125deg, #471aff, #9500ff, #6e1aff, #471aff); }
.wit-live-chat > .wit-chat-bot-links svg { display: block; flex: 0 0 auto; width: 48px; height: 48px; fill: currentColor; stroke: none; }
.wit-live-chat > .wit-chat-bot-links [data-channel="max"] svg { width: 28px; height: 28px; }
.wit-live-chat > .wit-chat-bot-links[data-animated="true"] a { animation: wit-bot-gradient-flow 7s ease-in-out infinite; }
.wit-live-chat > .wit-chat-bot-links[data-animated="true"] [data-channel="max"] { animation-delay: -3.5s; }
.wit-live-chat[data-open="false"]:has(> .wit-chat-bot-links[data-animated="true"]:not([hidden])) > .wit-live-chat__launcher {
  background-image: linear-gradient(var(--wit-chat-launcher), var(--wit-chat-launcher)), linear-gradient(115deg, var(--wit-chat-accent), #fff, var(--wit-chat-accent));
  background-size: 100% 100%, 250% 100%;
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
  animation: wit-launcher-gradient-flow 7s ease-in-out infinite;
}
.wit-live-chat[data-open="false"]:has(> .wit-chat-bot-links[data-animated="true"]:not([hidden])) > .wit-live-chat__launcher:is(:hover, :focus-visible) {
  background-image: linear-gradient(var(--wit-chat-launcher-hover), var(--wit-chat-launcher-hover)), linear-gradient(115deg, var(--wit-chat-accent), #fff, var(--wit-chat-accent));
}
@keyframes wit-launcher-gradient-flow { 0%, 100% { background-position: 0 0, 0% 50%; } 50% { background-position: 0 0, 100% 50%; } }
@keyframes wit-bot-gradient-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@media (prefers-reduced-motion: reduce) {
  .wit-live-chat > .wit-chat-bot-links[data-animated="true"] a { animation: none; }
  .wit-live-chat[data-open="false"]:has(> .wit-chat-bot-links[data-animated="true"]:not([hidden])) > .wit-live-chat__launcher { animation: none; background-image: none; }
}
@media (max-height: 360px) { .wit-live-chat > .wit-chat-bot-links { display: none; }
  .wit-live-chat[data-open="false"]:has(> .wit-chat-bot-links[data-animated="true"]:not([hidden])) > .wit-live-chat__launcher { animation: none; background-image: none; }
}
.wit-bot-fallback { margin: 0; padding: 24px; background: #fff; color: #172538; font: 16px/1.5 system-ui, sans-serif; }
.wit-bot-fallback main { max-width: 640px; margin: auto; overflow-wrap: anywhere; }
@media (prefers-color-scheme: dark) {
  .wit-bot-fallback { background: #172538; color: #f8fafc; }
  .wit-bot-fallback a { color: #95d5ff; }
  .wit-bot-fallback .wit-chat-bot-links a { background: #22334a; color: #f8fafc; }
}
