.mc-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 70;
  font-family: "Plus Jakarta Sans", sans-serif;
}

.mc-chat-toggle {
  display: inline-flex;
  min-height: 3.25rem;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border: 1px solid #16358f;
  border-radius: 0.55rem;
  background: #1e40af;
  box-shadow: 0 10px 24px rgba(19, 35, 61, 0.24);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-size: 0.87rem;
  font-weight: 800;
}

.mc-chat-toggle:hover { background: #16358f; }
.mc-chat-toggle i { font-size: 1.1rem; }

.mc-chat-panel {
  position: absolute;
  right: 0;
  bottom: 4.1rem;
  display: none;
  width: min(23rem, calc(100vw - 2.5rem));
  overflow: hidden;
  border: 1px solid #cbd9ec;
  border-radius: 0.6rem;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(19, 35, 61, 0.22);
}

.mc-chat.is-open .mc-chat-panel { display: block; animation: mc-chat-in 0.18s ease-out; }
.mc-chat.is-open .mc-chat-toggle { display: none; }

.mc-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem;
  background: #13233d;
  color: #ffffff;
}

.mc-chat-identity { display: flex; align-items: center; gap: 0.7rem; }
.mc-chat-identity strong, .mc-chat-identity small { display: block; }
.mc-chat-identity strong { font-size: 0.9rem; }
.mc-chat-identity small { margin-top: 0.15rem; color: #c3d0e5; font-size: 0.72rem; }
.mc-chat-avatar { display: flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center; border-radius: 0.45rem; background: #f97316; }
.mc-chat-close { display: flex; width: 2rem; height: 2rem; align-items: center; justify-content: center; border: 0; border-radius: 0.35rem; background: transparent; color: #ffffff; cursor: pointer; font-size: 1rem; }
.mc-chat-close:hover { background: rgba(255, 255, 255, 0.12); }

.mc-chat-messages { display: flex; max-height: 17rem; min-height: 12rem; flex-direction: column; gap: 0.7rem; overflow-y: auto; padding: 1rem; background: #f8fbff; }
.mc-chat-message { max-width: 88%; padding: 0.7rem 0.8rem; border-radius: 0.45rem; font-size: 0.82rem; line-height: 1.5; }
.mc-chat-message.is-bot { align-self: flex-start; border: 1px solid #d9e3f0; background: #ffffff; color: #334155; }
.mc-chat-message.is-user { align-self: flex-end; background: #1e40af; color: #ffffff; }

.mc-chat-prompts { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0.75rem 1rem; border-top: 1px solid #e6edf6; }
.mc-chat-prompts button { border: 1px solid #b9d3ff; border-radius: 999px; background: #edf4ff; color: #16358f; cursor: pointer; font: inherit; font-size: 0.72rem; font-weight: 700; padding: 0.4rem 0.6rem; }
.mc-chat-prompts button:hover { border-color: #1e40af; background: #dbeafe; }

.mc-chat-form { display: grid; grid-template-columns: 1fr 2.5rem; gap: 0.5rem; padding: 0.85rem 1rem 1rem; border-top: 1px solid #e6edf6; }
.mc-chat-form input { min-width: 0; height: 2.5rem; border: 1px solid #b9c8dc; border-radius: 0.4rem; padding: 0 0.75rem; color: #13233d; font: inherit; font-size: 0.82rem; outline: none; }
.mc-chat-form input:focus { border-color: #1e40af; box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.12); }
.mc-chat-form button { display: flex; align-items: center; justify-content: center; border: 0; border-radius: 0.4rem; background: #f97316; color: #ffffff; cursor: pointer; font-size: 0.85rem; }
.mc-chat-form button:hover { background: #ea580c; }
.mc-chat-form button:disabled { cursor: wait; opacity: 0.65; }

@keyframes mc-chat-in {
  from { opacity: 0; transform: translateY(0.5rem); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 639px) {
  .mc-chat { right: 0.85rem; bottom: 0.85rem; }
  .mc-chat-toggle-label { display: none; }
  .mc-chat-toggle { width: 3.25rem; justify-content: center; padding: 0; border-radius: 50%; }
  .mc-chat-panel { width: min(23rem, calc(100vw - 1.7rem)); bottom: 3.8rem; }
}