.mlm-chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9998;
  font-family: Inter, "DM Sans", Arial, sans-serif;
  --mlm-chatbot-color: #0f766e;
}

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

.mlm-chatbot__button {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--mlm-chatbot-color);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15, 118, 110, .34);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.mlm-chatbot__button svg {
  width: 27px;
  height: 27px;
}

.mlm-chatbot__panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: min(380px, calc(100vw - 28px));
  height: min(620px, calc(100vh - 112px));
  background: #fff;
  border: 1px solid rgba(15, 23, 42, .10);
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .22);
  overflow: hidden;
  display: none;
}

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

.mlm-chatbot__header {
  padding: 14px 16px;
  background: #10201d;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mlm-chatbot__title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
}

.mlm-chatbot__subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}

.mlm-chatbot__close {
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

.mlm-chatbot__messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  background: #f8fafc;
}

.mlm-chatbot__msg {
  max-width: 86%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  white-space: pre-line;
  font-size: 13px;
  line-height: 1.45;
}

.mlm-chatbot__msg--bot {
  background: #fff;
  color: #172330;
  border: 1px solid #e2e8f0;
  border-bottom-left-radius: 4px;
}

.mlm-chatbot__msg--user {
  margin-left: auto;
  background: var(--mlm-chatbot-color);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.mlm-chatbot__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.mlm-chatbot__chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.mlm-chatbot__chip:hover {
  border-color: var(--mlm-chatbot-color);
  color: var(--mlm-chatbot-color);
}

.mlm-chatbot__login {
  padding: 12px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  display: none;
  gap: 8px;
}

.mlm-chatbot.show-login .mlm-chatbot__login {
  display: grid;
}

.mlm-chatbot__input,
.mlm-chatbot__login input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  padding: 10px 11px;
  color: #0f172a;
  font-size: 13px;
  outline: none;
}

.mlm-chatbot__input:focus,
.mlm-chatbot__login input:focus {
  border-color: var(--mlm-chatbot-color);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .12);
}

.mlm-chatbot__login button,
.mlm-chatbot__send {
  border: 0;
  background: var(--mlm-chatbot-color);
  color: #fff;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.mlm-chatbot__composer {
  border-top: 1px solid #e2e8f0;
  padding: 12px;
  background: #fff;
  display: flex;
  gap: 8px;
}

.mlm-chatbot.awaiting-language .mlm-chatbot__composer,
.mlm-chatbot.awaiting-language .mlm-chatbot__login {
  display: none;
}

.mlm-chatbot__send {
  width: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
}

.mlm-chatbot__send svg {
  width: 18px;
  height: 18px;
}

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

  .mlm-chatbot__panel {
    right: -2px;
    bottom: 70px;
    height: min(580px, calc(100vh - 94px));
  }
}
