.m71-chatbot {
  --m71-primary: #3b6b3c;
  --m71-bubble: #ec008c;
  position: fixed;
  bottom: 22px;
  z-index: 2147483000;
  font-family: Arial, Helvetica, sans-serif;
  color: #172019;
}

.m71-chatbot--left { left: 22px; }
.m71-chatbot--right { right: 22px; }

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

.m71-chatbot__launcher {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--m71-bubble);
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
  cursor: pointer;
}

.m71-chatbot__panel {
  display: none;
  flex-direction: column;
  position: absolute;
  bottom: 72px;
  width: min(390px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid rgba(26, 42, 30, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.m71-chatbot--left .m71-chatbot__panel { left: 0; }
.m71-chatbot--right .m71-chatbot__panel { right: 0; }
.m71-chatbot.is-open .m71-chatbot__panel { display: flex; }

.m71-chatbot__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px;
  background: var(--m71-primary);
  color: #fff;
}

.m71-chatbot__header strong,
.m71-chatbot__header span {
  display: block;
}

.m71-chatbot__header span {
  margin-top: 4px;
  font-size: 12px;
  opacity: .84;
}

.m71-chatbot__close {
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.m71-chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background: #f5f7f5;
}

.m71-chatbot__message {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 0 12px;
}

.m71-chatbot__message > div:first-child {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 14px 14px 14px 4px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(20, 45, 27, .08);
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.48;
}

.m71-chatbot__message--user {
  align-items: flex-end;
}

.m71-chatbot__message--user > div:first-child {
  border-radius: 14px 14px 4px 14px;
  background: var(--m71-primary);
  color: #fff;
}

.m71-chatbot__message.is-pending {
  opacity: .65;
}

.m71-chatbot__sources {
  max-width: 88%;
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 12px;
}

.m71-chatbot__sources a {
  color: var(--m71-primary);
}

.m71-chatbot__feedback {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: #5d695f;
  font-size: 11px;
}

.m71-chatbot__feedback button,
.m71-chatbot__suggestions button {
  border: 1px solid rgba(59, 107, 60, .24);
  border-radius: 999px;
  background: #fff;
  color: var(--m71-primary);
  cursor: pointer;
}

.m71-chatbot__feedback button {
  padding: 3px 8px;
}

.m71-chatbot__suggestions {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 10px 14px 4px;
  background: #fff;
}

.m71-chatbot__suggestions button {
  flex: 0 0 auto;
  max-width: 250px;
  padding: 8px 11px;
  font-size: 12px;
}

.m71-chatbot__form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
}

.m71-chatbot__form textarea {
  flex: 1;
  min-height: 42px;
  max-height: 100px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #d8ded9;
  border-radius: 12px;
  font: inherit;
}

.m71-chatbot__form button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: var(--m71-primary);
  color: #fff;
  cursor: pointer;
}

.m71-chatbot footer {
  padding: 0 14px 11px;
  background: #fff;
  color: #6d746e;
  font-size: 10px;
  text-align: center;
}

.m71-chatbot footer a {
  color: inherit;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 520px) {
  .m71-chatbot {
    right: 14px;
    bottom: 14px;
    left: auto;
  }

  .m71-chatbot__panel {
    right: 0;
    left: auto;
    bottom: 68px;
    height: calc(100vh - 100px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .m71-chatbot * {
    scroll-behavior: auto !important;
  }
}

