/* Кнопка */
.support-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  display: grid;
  place-items: center;
  z-index: 9999;
  background: #111;
  color: #fff;
}

.support-panel {
  position: fixed;
  right: 18px;
  bottom: 86px;
  width: min(360px, calc(100vw - 36px));
  height: 520px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
  overflow: hidden;
  z-index: 9999;
  display: none;
  border: 1px solid rgba(0,0,0,.08);
}

.support-panel.open { display: flex; flex-direction: column; }

.support-header {
  padding: 12px 12px;
  background: #111;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.support-header .title { font-weight: 700; }
.support-header button {
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.support-messages {
  padding: 12px;
  overflow: auto;
  flex: 1;
  background: #f6f7f8;
}

.support-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 14px;
  margin: 8px 0;
  font-size: 14px;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
}

.support-bubble.user {
  margin-left: auto;
  background: #111;
  color: #fff;
  border-bottom-right-radius: 6px;
}

.support-bubble.support {
  margin-right: auto;
  background: #fff;
  color: #111;
  border: 1px solid rgba(0,0,0,.08);
  border-bottom-left-radius: 6px;
}

.support-footer {
  display: flex;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,.08);
}

.support-footer textarea {
  flex: 1;
  resize: none;
  height: 44px;
  max-height: 120px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.15);
  padding: 10px;
  outline: none;
}

.support-footer button {
  width: 44px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #111;
  color: #fff;
}
