/* Floating chat icon */
#chat-icon {
  position: fixed;
  bottom: 50px;
  right: 10px;               /* bottom-left corner */
  background-color: rgba(36, 34, 76, 0.7);
  color: var(--bg5);
  border-radius: 50%;
  width: 37px;
  height: 37px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 9997;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  transform: none !important;
  scale: 1 !important;
  border-bottom: none !important;
  padding: 0 !important;
}

#chat-icon:hover {
  transform: scale(1.08);
  background-color: var(--accent);
}

/* Popup window (initially hidden) */
.chat-popup {
  position: fixed;
  bottom: 130px;            
  right: 10px;
  width: 280px;
  height: 460px;
  background: var(--brand);
  border-radius: 12px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.25);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9995;
  font-family: calibri, sans-serif;

  /* start invisible for animation */
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

/* When popup is visible (added dynamically via JS) */
.chat-popup input,
.chat-popup button {
  all: unset;
  display: inline-block;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  padding: 0.1rem;
  border-radius: 6px;
}
.chat-popup.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

/* Header bar */
.chat-header {
  background-color: var(--brand);
  color: #fff;
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: transparent;
  border: none;
  color: #f1f2f2;
  font-size: 22px;
  cursor: pointer;
}


/* Messages area */
.chat-box {
  flex: 1;
  padding: 12px;
  padding-bottom: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f7f7f7;
}


/* Message bubbles */
.message {
  padding: 8px 10px;
  border-radius: 10px;
  max-width: 80%;
  line-height: 1.35;
  font-size: 14px;
}
.message.bot {
  background: var(--accent);
  align-self: flex-start;
}
.message.user {
  background: var(--list);
  color: #fff;
  align-self: flex-end;
}

/* Input area */
.chat-input {
  display: flex;
  gap: 8px;
  border-top: 1px solid #e6e6e6;
  padding: 10px;
  background: #fff;
}
.chat-input input {
  flex: 1;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  outline: none;
}
.chat-input button {
  background: var(--brand);
  color: #f1f2f2;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease;
}
.chat-input button:hover {
  background: var(--accent);
}
.chat-content {
  flex: 1; 
}
.chat-content { 
  flex: 1; /* 👈 key line */ 
  display: flex; flex-direction: column; 
  min-height: 0; /* lets .chat-box scroll properly */ 
}

/*Chatbox Consent*/

.chat-input0 {
    background-color: var(--bg4);
    
} 

.chat-input0 p{
    margin:5px;
    color:var(--brand);
    font-size:11px;
}
.chat-input0 a {
    color: var(--list);
    text-decoration: underline;
}

.chat-input0 a:hover {
    
    color: var(--accent);
	text-decoration: underline;
	
}

