.ss-chatbot {
  bottom: 22px;
  box-sizing: border-box;
  color: #25323d;
  font-family: Arial, Helvetica, sans-serif;
  position: fixed;
  right: 22px;
  z-index: 9999;
}

.ss-chatbot *,
.ss-chatbot *:before,
.ss-chatbot *:after {
  box-sizing: border-box;
}

.ss-chatbot__launcher {
  align-items: center;
  background: #ad2b2d;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(36, 36, 36, 0.28);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 28px;
  font-weight: 700;
  height: 58px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 58px;
}

.ss-chatbot__launcher:focus,
.ss-chatbot__launcher:hover {
  background: #8f2426;
  outline: 3px solid rgba(173, 43, 45, 0.25);
}

.ss-chatbot__panel {
  background: #fff;
  border: 1px solid #d7dee4;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(22, 31, 39, 0.24);
  display: flex;
  flex-direction: column;
  height: 620px;
  margin-bottom: 14px;
  max-height: calc(100vh - 110px);
  overflow: hidden;
  width: 372px;
}

.ss-chatbot__panel[hidden] {
  display: none;
}

.ss-chatbot__header {
  align-items: center;
  background: #ad2b2d;
  color: #fff;
  display: flex;
  gap: 12px;
  min-height: 64px;
  padding: 12px 14px;
}

.ss-chatbot__title {
  flex: 1 1 auto;
  min-width: 0;
}

.ss-chatbot__title strong,
.ss-chatbot__title span {
  display: block;
}

.ss-chatbot__title strong {
  font-size: 16px;
  line-height: 20px;
}

.ss-chatbot__title span {
  color: #f7dedf;
  font-size: 12px;
  line-height: 16px;
}

.ss-chatbot__close {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 32px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 32px;
}

.ss-chatbot__close:focus,
.ss-chatbot__close:hover {
  background: rgba(255, 255, 255, 0.14);
  outline: 2px solid rgba(255, 255, 255, 0.35);
}

.ss-chatbot__messages {
  background: #f5f7f8;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.ss-chatbot__message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 20px;
  max-width: 88%;
  padding: 10px 12px;
  word-break: break-word;
}

.ss-chatbot__message p {
  margin: 0 0 8px;
}

.ss-chatbot__message p:last-child {
  margin-bottom: 0;
}

.ss-chatbot__message--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #dde4e9;
}

.ss-chatbot__message--user {
  align-self: flex-end;
  background: #1f5e4f;
  color: #fff;
}

.ss-chatbot__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ss-chatbot__source {
  background: #eef3f5;
  border: 1px solid #d7e0e5;
  border-radius: 4px;
  color: #25323d;
  display: inline-flex;
  font-size: 12px;
  line-height: 16px;
  padding: 5px 7px;
  text-decoration: none;
}

.ss-chatbot__source:focus,
.ss-chatbot__source:hover {
  background: #e2eaee;
  color: #25323d;
  text-decoration: none;
}

.ss-chatbot__suggestions {
  background: #fff;
  border-top: 1px solid #d7dee4;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
}

.ss-chatbot__suggestion {
  background: #fff;
  border: 1px solid #cbd6dc;
  border-radius: 4px;
  color: #25323d;
  cursor: pointer;
  font-size: 12px;
  line-height: 16px;
  padding: 7px 9px;
  text-align: left;
}

.ss-chatbot__suggestion:focus,
.ss-chatbot__suggestion:hover {
  background: #f0f5f7;
  border-color: #9db0ba;
}

.ss-chatbot__form {
  align-items: center;
  background: #fff;
  border-top: 1px solid #d7dee4;
  display: flex;
  gap: 8px;
  padding: 12px;
}

.ss-chatbot__input {
  border: 1px solid #c8d3da;
  border-radius: 4px;
  flex: 1 1 auto;
  font-size: 14px;
  height: 40px;
  min-width: 0;
  padding: 8px 10px;
}

.ss-chatbot__input:focus {
  border-color: #1f5e4f;
  outline: 2px solid rgba(31, 94, 79, 0.18);
}

.ss-chatbot__send {
  background: #1f5e4f;
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  height: 40px;
  padding: 0 14px;
}

.ss-chatbot__send:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ss-chatbot__send:focus,
.ss-chatbot__send:hover {
  background: #18483d;
  outline: 2px solid rgba(31, 94, 79, 0.2);
}

@media (max-width: 520px) {
  .ss-chatbot {
    bottom: 12px;
    left: 12px;
    right: 12px;
  }

  .ss-chatbot__launcher {
    margin-left: auto;
  }

  .ss-chatbot__panel {
    height: 590px;
    max-height: calc(100vh - 88px);
    width: 100%;
  }
}
