:root {
  --mmcb-primary: #aab6ff;
  --mmcb-accent: #1d5fd1;
  --mmcb-text: #111111;
}

#mmcb-bubble {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--mmcb-accent), #111827);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
  border: 3px solid #fff;
  z-index: 999999;
  font-size: 28px;
}

#mmcb-panel {
  position: fixed;
  right: 22px;
  bottom: 98px;
  width: 390px;
  max-width: calc(100vw - 24px);
  height: 690px;
  max-height: calc(100vh - 130px);
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  border: 6px solid #111;
  z-index: 999998;
  display: none;
  flex-direction: column;
}

#mmcb-panel.mmcb-open {
  display: flex;
}

.mmcb-header {
  padding: 20px 22px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mmcb-header-title {
  color: var(--mmcb-accent);
  font-weight: 700;
  font-size: 18px;
}

#mmcb-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: #222;
}

.mmcb-body {
  padding: 6px 18px 12px;
  overflow-y: auto;
  flex: 1;
}

.mmcb-hero {
  text-align: center;
  padding: 14px 14px 22px;
}

.mmcb-logo-wrap {
  width: 92px;
  height: 92px;
  margin: 6px auto 14px;
  border-radius: 999px;
  overflow: hidden;
  border: 4px solid #5aa2ff;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mmcb-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mmcb-logo-fallback {
  color: #fff;
  font-weight: 700;
  font-size: 28px;
}

.mmcb-hero h3 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #111;
}

.mmcb-hero p {
  margin: 0;
  font-size: 18px;
  color: #1f3d72;
}

.mmcb-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border-top: 1px solid #ddd;
}

.mmcb-action-icon {
  width: 26px;
  flex: 0 0 26px;
  text-align: center;
  font-size: 20px;
}

.mmcb-action-btn,
.mmcb-chip {
  border: 0;
  cursor: pointer;
}

.mmcb-action-btn {
  width: 100%;
  background: var(--mmcb-primary);
  color: #111;
  border-radius: 999px;
  padding: 16px 24px;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}

.mmcb-chat-log {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mmcb-msg {
  max-width: 86%;
  padding: 12px 14px;
  border-radius: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
  font-size: 15px;
}

.mmcb-msg.bot {
  background: #f2f5fb;
  color: #111;
  align-self: flex-start;
}

.mmcb-msg.user {
  background: var(--mmcb-primary);
  color: #111;
  align-self: flex-end;
}

.mmcb-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mmcb-chip {
  border-radius: 999px;
  padding: 10px 14px;
  background: #eef3ff;
  font-weight: 600;
}

.mmcb-footer {
  padding: 12px 18px 18px;
}

.mmcb-input-wrap {
  border: 4px solid #111;
  border-radius: 28px;
  padding: 12px 14px;
  background: #fff;
  min-height: 104px;
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

#mmcb-user-input {
  width: 100%;
  min-height: 72px;
  border: 0;
  resize: none;
  outline: none;
  background: transparent;
  font-size: 16px;
}

#mmcb-send {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #efefef;
  cursor: pointer;
  font-size: 20px;
  color: #777;
}

.mmcb-bottom-menu {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 4px 0;
  font-size: 12px;
}

.mmcb-nav-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  color: #555;
}

@media (max-width: 640px) {
  #mmcb-panel {
    right: 10px;
    left: 10px;
    width: auto;
    bottom: 88px;
    height: 78vh;
  }

  #mmcb-bubble {
    right: 14px;
    bottom: 14px;
  }
}
