

/*****CUSTOM STYLES*****/


#thm-chat-bubble {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, #b8965a, #d4b483);
  box-shadow: 0 4px 24px rgba(184,150,90,0.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  border: none; outline: none;
}
#thm-chat-bubble:hover { transform: scale(1.08); box-shadow: 0 6px 32px rgba(184,150,90,0.6); }
#thm-chat-bubble svg { width: 28px; height: 28px; fill: #0f0f0f; }
#thm-chat-bubble .thm-notif {
  position: absolute; top: 4px; right: 4px; width: 14px; height: 14px;
  background: #e74c3c; border-radius: 50%; border: 2px solid #fff;
  animation: pulse-notif 2s infinite;
}
@keyframes pulse-notif { 0%,100%{transform:scale(1)} 50%{transform:scale(1.2)} }

#thm-chat-window {
  position: fixed; bottom: 100px; right: 28px; z-index: 9998;
  width: 370px; max-width: calc(100vw - 40px);
  background: #faf8f4; border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0,0,0,0.18);
  display: none; flex-direction: column; overflow: hidden;
  font-family: 'DM Sans', Arial, sans-serif;
  border: 1px solid rgba(184,150,90,0.2);
  max-height: 520px;
}
#thm-chat-window.open { display: flex; }

#thm-chat-header {
  background: #0f0f0f; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 2px solid #b8965a;
}
#thm-chat-header .thm-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg,#b8965a,#d4b483);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
#thm-chat-header .thm-info { flex: 1; }
#thm-chat-header .thm-info strong { color: #faf8f4; font-size: 14px; display: block; }
#thm-chat-header .thm-info span { color: #b8965a; font-size: 12px; }
#thm-chat-close {
  background: none; border: none; color: #888; cursor: pointer;
  font-size: 20px; line-height: 1; padding: 4px;
}
#thm-chat-close:hover { color: #faf8f4; }

#thm-chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 200px;
}
.thm-msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; }
.thm-msg.bot { background: #0f0f0f; color: #faf8f4; border-bottom-left-radius: 4px; align-self: flex-start; }
.thm-msg.user { background: #b8965a; color: #0f0f0f; border-bottom-right-radius: 4px; align-self: flex-end; font-weight: 500; }
.thm-msg.typing { background: #0f0f0f; color: #b8965a; font-style: italic; }

#thm-chat-api-row {
  padding: 10px 14px; background: #f0ece3;
  border-top: 1px solid rgba(184,150,90,0.15);
  display: flex; align-items: center; gap: 8px;
}
#thm-chat-api-row input {
  flex: 1; border: 1px solid #d4b483; border-radius: 8px;
  padding: 7px 10px; font-size: 12px; background: #fff;
  color: #0f0f0f; outline: none;
}
#thm-chat-api-row input:focus { border-color: #b8965a; }
#thm-chat-api-save {
  background: #b8965a; color: #0f0f0f; border: none;
  border-radius: 8px; padding: 7px 12px; font-size: 12px;
  font-weight: 700; cursor: pointer;
}
#thm-chat-api-row small { font-size: 10px; color: #888; display: block; margin-top: 2px; }

#thm-chat-input-row {
  padding: 12px 14px; display: flex; gap: 8px; align-items: flex-end;
  border-top: 1px solid rgba(184,150,90,0.15); background: #faf8f4;
}
#thm-chat-input {
  flex: 1; border: 1px solid #d4b483; border-radius: 10px;
  padding: 10px 13px; font-size: 13.5px; resize: none;
  font-family: inherit; outline: none; background: #fff;
  color: #0f0f0f; max-height: 100px;
}
#thm-chat-input:focus { border-color: #b8965a; }
#thm-chat-send {
  width: 40px; height: 40px; border-radius: 10px;
  background: #b8965a; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background .2s;
}
#thm-chat-send:hover { background: #d4b483; }
#thm-chat-send svg { width: 18px; height: 18px; fill: #0f0f0f; }
#thm-chat-send:disabled { background: #ccc; cursor: not-allowed; }

.thm-quick-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.thm-quick-btn {
  background: #1a1a1a; color: #b8965a; border: 1px solid #b8965a;
  border-radius: 20px; padding: 5px 12px; font-size: 12px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.thm-quick-btn:hover { background: #b8965a; color: #0f0f0f; }





