:root {
  --mc-blue: #0b2a44;
  --mc-blue-dark: #071c2e;
  --mc-red: #e11b22;
  --mc-white: #ffffff;
}

/* Bubble */
#mc-chat-bubble {
  position: fixed;
  bottom: 22px;
  right: 22px;
  background: var(--mc-red);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  z-index: 9999;
}

#mc-chat-widget {
    display: none;
    flex-direction: column; /* Stacks header, messages, and input vertically */
    height: 400px; /* Adjust height as needed */
    width: 300px;
    position: fixed;
    bottom: 90px;
    right: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    overflow: hidden;
    z-index: 9999;
}

#mc-chat-messages {
    flex: 1; /* This makes the messages area take up all space EXCEPT what the input needs */
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#mc-chat-input {
    min-height: 60px; /* Ensures the input area always has enough room */
    background: white;
}
/* Header */
.mc-chat-header {
  background: linear-gradient(135deg, var(--mc-blue), var(--mc-blue-dark));
  color: white;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.mc-chat-header button {
  background: none;
  border: none;
  color: white;
  font-size: 22px;
  cursor: pointer;
}

/* Messages */
.mc-chat-messages {
  padding: 14px;
  height: 260px;
  overflow-y: auto;
  font-size: 14px;
}

.mc-bot {
  background: #f1f5f9;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.mc-user {
  background: #f5f5f5;
  color: #3c3737;
  padding: 10px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
  font-weight: 600;
  text-align: right;
}

/* Input Area */
.mc-chat-input {
  padding: 12px;
  border-top: 1px solid #eee;
}

.mc-chat-input button,
.mc-chat-input input {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  margin-bottom: 8px;
  cursor: pointer;
}

.mc-chat-input button {
  background: var(--mc-red);
  color: white;
  border: none;
  font-weight: 600;
}
