.mm-chat-launcher,
.mm-chat-panel,
.mm-chat-panel * {
  box-sizing: border-box;
}

.mm-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(25, 69, 110, 0.18);
  border-radius: 999px;
  color: #fff;
  background: #19456e;
  box-shadow: 0 18px 42px rgba(25, 69, 110, 0.24);
  font: 700 14px/1 "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
}

.mm-chat-launcher svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.mm-chat-panel {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 81;
  width: min(390px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 120px));
  display: none;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  border: 1px solid #c9d6e3;
  border-radius: 8px;
  color: #19456e;
  background: #fff;
  box-shadow: 0 24px 70px rgba(25, 69, 110, 0.2);
  font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mm-chat-panel.is-open {
  display: grid;
}

.mm-chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid #e4ecf4;
  background: #fafcff;
}

.mm-chat-title {
  margin: 0;
  color: #19456e;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.mm-chat-subtitle {
  margin: 3px 0 0;
  color: #506578;
  font-size: 12px;
  line-height: 1.35;
}

.mm-chat-close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #c9d6e3;
  border-radius: 999px;
  color: #19456e;
  background: #fff;
  cursor: pointer;
}

.mm-chat-close svg {
  width: 16px;
  height: 16px;
}

.mm-chat-log {
  overflow: auto;
  padding: 18px 16px;
  background: linear-gradient(180deg, #fff 0%, #fafcff 100%);
}

.mm-chat-message {
  width: fit-content;
  max-width: 88%;
  margin: 0 0 11px;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.45;
}

.mm-chat-message.bot {
  color: #19456e;
  background: #eef6fd;
  border: 1px solid #d8e8f6;
}

.mm-chat-message.user {
  margin-left: auto;
  color: #fff;
  background: #19456e;
}

.mm-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 3px 0 15px;
}

.mm-chat-option {
  min-height: 34px;
  padding: 8px 11px;
  border: 1px solid #c9d6e3;
  border-radius: 999px;
  color: #19456e;
  background: #fff;
  font: 700 12px/1.2 "IBM Plex Sans", system-ui, sans-serif;
  cursor: pointer;
}

.mm-chat-option:hover,
.mm-chat-option:focus {
  border-color: #55b1fd;
}

.mm-chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid #e4ecf4;
  background: #fff;
}

.mm-chat-input {
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #c9d6e3;
  border-radius: 8px;
  color: #19456e;
  background: #fff;
  font: 400 14px/1.3 "IBM Plex Sans", system-ui, sans-serif;
}

.mm-chat-input:focus {
  outline: 2px solid rgba(85, 177, 253, 0.35);
  border-color: #55b1fd;
}

.mm-chat-send {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #19456e;
  border-radius: 8px;
  color: #fff;
  background: #19456e;
  cursor: pointer;
}

.mm-chat-send svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 560px) {
  .mm-chat-launcher {
    right: 14px;
    bottom: 14px;
  }

  .mm-chat-panel {
    right: 14px;
    bottom: 76px;
    height: min(620px, calc(100vh - 94px));
  }
}
