.tj-chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  font-family: 'Poppins', Arial, sans-serif;
}

.tj-chat-toggle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: #ca9457;
  color: #16213a;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.tj-chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 320px;
  max-height: 460px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tj-chat-panel-header {
  background: #16213a;
  color: #fff;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tj-chat-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.tj-chat-start { padding: 18px 16px; display: flex; flex-direction: column; gap: 4px; }
.tj-chat-start label { font-size: 12px; font-weight: 600; color: #444; margin-top: 8px; }
.tj-chat-start input {
  padding: 9px 12px;
  border: 1px solid #e2e4e9;
  border-radius: 6px;
  font-size: 14px;
}
.tj-chat-start-btn {
  margin-top: 14px;
  background: #ca9457;
  color: #16213a;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.tj-chat-thread { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.tj-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
}
.tj-chat-bubble {
  max-width: 78%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.4;
}
.tj-chat-bubble.admin { align-self: flex-start; background: #eceef2; color: #16213a; }
.tj-chat-bubble.user { align-self: flex-end; background: #ca9457; color: #16213a; }
.tj-chat-note { text-align: center; font-size: 12px; color: #9aa0ab; padding: 6px 0; }

.tj-chat-input-row {
  display: flex;
  border-top: 1px solid #e2e4e9;
  padding: 10px;
  gap: 8px;
}
.tj-chat-input-row input {
  flex: 1;
  border: 1px solid #e2e4e9;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 13.5px;
}
.tj-chat-input-row button {
  background: #ca9457;
  color: #16213a;
  border: none;
  width: 38px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tj-chat-input-row button:hover { background: #b98244; }

@media (max-width: 420px) {
  .tj-chat-panel { width: calc(100vw - 32px); }
}
