.mp-chatbot {
  bottom: 22px;
  color: #1f2933;
  font-family: "Open Sans", Arial, sans-serif;
  position: fixed;
  right: 22px;
  z-index: 100000;
}

.mp-chatbot * {
  box-sizing: border-box;
}

.mp-chatbot__launcher {
  align-items: center;
  background: #478ac9;
  border: 0;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(20, 44, 72, 0.22);
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  gap: 10px;
  min-height: 54px;
  padding: 10px 18px 10px 12px;
}

.mp-chatbot__launcher-icon {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: #478ac9;
  display: inline-flex;
  font-size: 20px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.mp-chatbot__panel {
  background: #fff;
  border: 1px solid rgba(31, 41, 51, 0.12);
  border-radius: 8px;
  bottom: 74px;
  box-shadow: 0 20px 48px rgba(20, 44, 72, 0.25);
  display: none;
  max-height: min(680px, calc(100vh - 110px));
  overflow: hidden;
  position: absolute;
  right: 0;
  width: min(380px, calc(100vw - 32px));
}

.mp-chatbot.is-open .mp-chatbot__panel {
  display: flex;
  flex-direction: column;
}

.mp-chatbot__header {
  align-items: center;
  background: #1f2933;
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
}

.mp-chatbot__header strong,
.mp-chatbot__header span {
  display: block;
  line-height: 1.25;
}

.mp-chatbot__header span {
  color: #c9d8e8;
  font-size: 12px;
}

.mp-chatbot__close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

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

.mp-chatbot__message {
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
  max-width: 88%;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

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

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

.mp-chatbot__message ul,
.mp-chatbot__message ol {
  margin: 6px 0 8px;
  padding-left: 18px;
}

.mp-chatbot__message li {
  margin: 3px 0;
}

.mp-chatbot__message a {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.mp-chatbot__message code {
  background: rgba(31, 41, 51, 0.08);
  border-radius: 4px;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.92em;
  padding: 1px 4px;
}

.mp-chatbot__heading {
  display: block;
  margin-bottom: 6px;
}

.mp-chatbot__message--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid rgba(71, 138, 201, 0.2);
}

.mp-chatbot__message--user {
  align-self: flex-end;
  background: #478ac9;
  color: #fff;
}

.mp-chatbot__message--status {
  align-self: center;
  background: transparent;
  color: #66788a;
  font-size: 12px;
  padding: 2px;
}

.mp-chatbot__form {
  border-top: 1px solid rgba(31, 41, 51, 0.12);
  padding: 12px;
}

.mp-chatbot__label {
  height: 1px;
  left: -999px;
  overflow: hidden;
  position: absolute;
  width: 1px;
}

.mp-chatbot__form textarea {
  border: 1px solid #c8d4df;
  border-radius: 6px;
  color: #1f2933;
  font: inherit;
  min-height: 56px;
  padding: 10px;
  resize: vertical;
  width: 100%;
}

.mp-chatbot__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 10px;
}

.mp-chatbot__actions button {
  border: 1px solid #478ac9;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 12px;
}

.mp-chatbot__actions button[type="button"] {
  background: #fff;
  color: #478ac9;
}

.mp-chatbot__actions button[type="submit"] {
  background: #478ac9;
  color: #fff;
}

@media (max-width: 540px) {
  .mp-chatbot {
    bottom: 14px;
    right: 14px;
  }

  .mp-chatbot__launcher-text {
    display: none;
  }

  .mp-chatbot__launcher {
    min-height: 52px;
    padding: 9px;
  }

  .mp-chatbot__panel {
    bottom: 66px;
    max-height: calc(100vh - 90px);
  }
}
