.smps-chat-launch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: #5b36e8;
  color: #fff;
  font: 700 13px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  box-shadow: 0 14px 34px rgba(55, 35, 150, .28);
  cursor: pointer;
}
.smps-chat-launch:hover { background: #4b2bd1; }
.smps-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 82px;
  z-index: 81;
  width: min(390px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 110px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  color: #18181b;
  border: 1px solid #e4e4e7;
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(12, 22, 45, .25);
}
.smps-chat-panel[hidden] { display: none; }
.smps-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: #15102b;
  color: #fff;
}
.smps-chat-head div { display: grid; gap: 2px; }
.smps-chat-head strong { font: 700 15px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.smps-chat-head small { color: #c9c0f5; font: 400 11px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
.smps-chat-close { border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 4px; }
.smps-chat-messages { display: flex; flex-direction: column; gap: 10px; overflow-y: auto; padding: 16px; background: #faf9ff; flex: 1 1 auto; min-height: 150px; }
.smps-chat-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font: 400 13px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.smps-chat-msg--bot { align-self: flex-start; background: #fff; border: 1px solid #e7e3f7; border-bottom-left-radius: 5px; }
.smps-chat-msg--user { align-self: flex-end; background: #5b36e8; color: #fff; border-bottom-right-radius: 5px; }
.smps-chat-msg--error { align-self: flex-start; background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.smps-chat-quick { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 16px 10px; background: #faf9ff; }
.smps-chat-quick button { border: 1px solid #ded8f3; background: #fff; color: #4b2bd1; border-radius: 999px; padding: 1px 10px; font: 600 10.5px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; cursor: pointer; }
.smps-chat-quick button:hover { background: #f0ecff; }
.smps-chat-form { display: grid; grid-template-columns: minmax(0,1fr) 40px; gap: 8px; padding: 12px 14px 8px; border-top: 1px solid #eeeafb; background: #fff; }
.smps-chat-form input { min-width: 0; height: 40px; border: 1px solid #dedbea; border-radius: 10px; padding: 0 12px; font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; color: #18181b; outline: none; }
.smps-chat-form input:focus { border-color: #5b36e8; box-shadow: 0 0 0 3px rgba(91,54,232,.12); }
.smps-chat-form button { height: 40px; border: 0; border-radius: 10px; background: #5b36e8; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.smps-chat-form button:disabled { opacity: .55; cursor: wait; }
.smps-chat-note { margin: 0; padding: 0 16px 12px; color: #8b8799; font: 400 10px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; background: #fff; }
.smps-chat-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
@media (max-width: 520px) {
  .smps-chat-launch { right: 14px; bottom: 14px; min-height: 44px; padding: 0 14px; }
  .smps-chat-panel { right: 10px; bottom: 68px; width: calc(100vw - 20px); max-height: calc(100vh - 88px); }
}

.smps-chat-support { color: #5b36e8; font-weight: 600; }
.smps-chat-quick-support {
  display: inline-flex;
  align-items: center;
  border: 1px solid #ded8f3;
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b2bd1;
  background: #fff;
  font: 600 10.5px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.smps-chat-feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -4px 0 2px 2px;
  color: #8b8799;
  font: 500 10px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.smps-chat-feedback button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
  padding: 2px;
}
.smps-chat-feedback button:disabled { opacity: .45; cursor: default; }
.smps-chat-head-actions { display: flex; align-items: center; gap: 4px; }
.smps-chat-lang {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 5px;
  padding: 3px 6px;
  font: 700 10px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.smps-chat-lang:hover { background: rgba(255,255,255,.12); }
.smps-chat-reset {
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: 5px;
  padding: 2px 6px;
  font: 600 14px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  cursor: pointer;
}
.smps-chat-reset:hover { background: rgba(255,255,255,.12); }
.smps-chat-head .smps-chat-head-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.smps-chat-launch span {
  display: inline !important;
  white-space: nowrap;
}
