#glc-chatbot-root {
  position: fixed;
  z-index: 999999;
  bottom: 20px;
  right: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.glc-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--glc-color, #2563eb);
  color: #fff;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: transform 0.15s ease;
}
.glc-bubble:hover { transform: scale(1.06); }

.glc-window {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  max-width: 90vw;
  height: 460px;
  max-height: 75vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.glc-window.glc-open { display: flex; }

.glc-header {
  background: var(--glc-color, #2563eb);
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.glc-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
}

.glc-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f7f8fa;
}

.glc-msg {
  max-width: 85%;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.glc-msg.glc-user {
  align-self: flex-end;
  background: var(--glc-color, #2563eb);
  color: #fff;
  border-bottom-right-radius: 3px;
}
.glc-msg.glc-bot {
  align-self: flex-start;
  background: #fff;
  color: #1f2430;
  border: 1px solid #e4e7ec;
  border-bottom-left-radius: 3px;
}
.glc-msg.glc-typing {
  align-self: flex-start;
  background: #fff;
  border: 1px solid #e4e7ec;
  color: #98a2b3;
  font-style: italic;
}

.glc-input-row {
  display: flex;
  border-top: 1px solid #e4e7ec;
  padding: 10px;
  gap: 8px;
  flex-shrink: 0;
  background: #fff;
}
.glc-input-row textarea {
  flex: 1;
  resize: none;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
  font-family: inherit;
  max-height: 80px;
}
.glc-input-row button {
  background: var(--glc-color, #2563eb);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.glc-input-row button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.glc-error {
  color: #b42318;
  font-size: 13px;
  padding: 4px 14px 10px;
  background: #f7f8fa;
}
