.help {
  position: fixed;
  right: 16px;
  bottom: 15px;
  z-index: 30;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #078fd0;
  box-shadow: 0 3px 12px #0002;
  font: 700 24px Arial, sans-serif;
  cursor: pointer;
}
.support-chat {
  position: fixed;
  right: 16px;
  bottom: 82px;
  z-index: 29;
  width: 320px;
  height: min(480px, calc(100dvh - 105px));
  min-height: 300px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 32px #17253633;
  color: #41464b;
  font-family: Arial, sans-serif;
}
.support-chat.open { display: flex; }
.support-chat.expanded {
  width: min(520px, calc(100vw - 32px));
  height: min(680px, calc(100dvh - 105px));
}
.support-chat-header {
  min-height: 69px;
  padding: 0 16px 0 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  background: #078fd0;
}
.support-chat-header div { flex: 1; }
.support-chat-header strong { display: block; font-size: 15px; }
.support-chat-header small { display: block; margin-top: 4px; font-size: 11px; opacity: .88; }
.support-chat-header button {
  padding: 2px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.support-chat-messages {
  flex: 1;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  overflow-y: auto;
}
.support-empty {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #9aa0a6;
  font-size: 12px;
  text-align: center;
}
.support-bubble {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.support-bubble.support { align-self: flex-end; border-bottom-right-radius: 5px; color: #fff; background: #078fd0; }
.support-bubble.visitor { align-self: flex-start; border-bottom-left-radius: 5px; color: #39414a; background: #f0f1f5; }
.support-chat-form {
  min-height: 65px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #edf0f3;
}
.support-chat-form input {
  min-width: 0;
  height: 43px;
  flex: 1;
  padding: 0 14px;
  border: 0;
  border-radius: 24px;
  outline: 0;
  background: #f2f3f7;
  color: #3d4650;
  font: 13px Arial, sans-serif;
}
.support-chat-form input::placeholder { color: #9aa8bc; }
.support-chat-form button {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #078fd0;
  font-size: 20px;
  cursor: pointer;
}
.support-chat-form button:disabled { opacity: .6; cursor: wait; }
@media (max-width: 520px) {
  .help { right: 14px; bottom: 14px; width: 48px; height: 48px; font-size: 22px; }
  .support-chat { right: 12px; bottom: 72px; width: min(320px, calc(100vw - 24px)); height: min(480px, calc(100dvh - 92px)); }
  .support-chat.expanded { width: calc(100vw - 24px); height: calc(100dvh - 92px); }
}
