#mc-chatbot-root {
  position: fixed;
  bottom: 80px;
  right: 20px;
  z-index: 2147483647;
  font-family: "SuisseIntl", "Helvetica Neue", Arial, sans-serif;
}

.mc-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, background 0.2s ease;
}

.mc-bubble svg {
  width: 26px;
  height: 26px;
  display: block;
}

.mc-bubble:hover {
  transform: scale(1.05);
  background: #222;
}

.mc-window {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 200px);
  background: #fff;
  border: 1px solid #000;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  flex-direction: column;
}

.mc-window.open { display: flex; }

.mc-header {
  background: #000;
  color: #fff;
  padding: 16px 18px;
  font-family: "EmpiricaHeadline", Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mc-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.mc-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fafafa;
}

.mc-msg {
  padding: 11px 14px;
  border-radius: 4px;
  max-width: 88%;
  line-height: 1.5;
  font-size: 14px;
  word-wrap: break-word;
}

.mc-bot {
  background: #fff;
  border: 1px solid #e5e5e5;
  color: #000;
  align-self: flex-start;
}

.mc-streaming {
  white-space: normal;
}

.mc-streaming p {
  margin: 0 0 10px;
}

.mc-streaming p:last-child {
  margin-bottom: 0;
}

.mc-streaming h3,
.mc-streaming h4,
.mc-streaming h5 {
  margin: 0 0 8px;
  font-family: "EmpiricaHeadline", Georgia, "Times New Roman", serif;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
}

.mc-streaming ul {
  margin: 0 0 10px;
  padding-left: 18px;
}

.mc-streaming li {
  margin: 0 0 5px;
}

.mc-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-width: 28px;
  min-height: 18px;
}

.mc-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  animation: mc-dot-pulse 1s infinite ease-in-out;
}

.mc-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.mc-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes mc-dot-pulse {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

.mc-user {
  background: #000;
  color: #fff;
  align-self: flex-end;
}

.mc-msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mc-disclaimer {
  align-self: flex-start;
  max-width: 88%;
  margin-top: -4px;
  padding: 0 4px;
  font-size: 11px;
  line-height: 1.4;
  font-style: italic;
  color: #767676;
}

.mc-cta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: stretch;
}

.mc-cta button {
  background: #fff;
  border: 1px solid #000;
  color: #000;
  padding: 10px 14px;
  border-radius: 4px;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.mc-cta button:hover {
  background: #000;
  color: #fff;
}

.mc-cta button:disabled {
  opacity: 0.55;
  cursor: wait;
  background: #fff;
  color: #000;
}

.mc-input {
  display: flex;
  border-top: 1px solid #e5e5e5;
  padding: 10px;
  gap: 8px;
  background: #fff;
}

.mc-input input {
  flex: 1;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  color: #000;
}

.mc-input input:focus {
  border-color: #000;
}

.mc-input button {
  background: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0 16px;
  cursor: pointer;
  font-size: 16px;
  font-family: inherit;
}

.mc-input button:hover { background: #222; }

.mc-input button:disabled,
.mc-input input:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 480px) {
  .mc-window {
    width: calc(100vw - 32px);
    height: min(520px, calc(100vh - 100px));
  }
}
