/* Minimal chat widget styles */
#kh-chat {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 320px;
  max-width: calc(100% - 40px);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(20,20,30,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--default-font, Arial, sans-serif);
  z-index: 1100;
}

#kh-chat.hidden { display: none; }

.kh-chat-header{
  background: var(--accent-color, #e3a127);
  color: var(--contrast-color, #121111);
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.kh-chat-title{font-weight:700}
.kh-chat-close{background:none;border:0;color:inherit;font-size:16px;cursor:pointer}

.kh-chat-messages{
  padding:12px;
  height:300px;
  overflow:auto;
  background: linear-gradient(180deg, #fbfbfb, #f5f7fa);
}
.kh-msg{margin:8px 0;display:flex}
.kh-msg.user{justify-content:flex-end}
.kh-msg .bubble{max-width:78%;padding:10px 12px;border-radius:14px;font-size:14px;line-height:1.3}
.kh-msg.user .bubble{background:var(--accent-color,#e3a127);color:var(--contrast-color,#121111);border-bottom-right-radius:6px}
.kh-msg.bot .bubble{background:#ffffff;color:#222;border:1px solid #eee;border-bottom-left-radius:6px}

.kh-chat-form{display:flex;padding:10px;border-top:1px solid #eee;background:#fff}
.kh-chat-input{flex:1;padding:10px 12px;border-radius:8px;border:1px solid #ddd;margin-right:8px}
.kh-chat-send{background:var(--accent-color,#e3a127);border:0;color:var(--contrast-color,#121111);padding:8px 12px;border-radius:8px;cursor:pointer}

.kh-whatsapp-button{
  position: fixed;
  right: 20px;
  bottom: 85px;
  z-index: 1101;
  width: 48px;
  height: 48px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 6px 18px rgba(20,20,30,0.15);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}
.kh-whatsapp-button:hover{
  background: #1EA753;
  transform: scale(1.08);
}

.kh-chat-toggle{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1101;
  background: var(--accent-color,#e3a127);
  color: var(--contrast-color,#121111);
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  box-shadow: 0 6px 18px rgba(20,20,30,0.15);
  cursor: pointer;
  font-weight:700;
}

@media (max-width:480px){
  #kh-chat{right:12px;left:12px;width:auto}
}
