/* Floating live chat widget styles */
:root{
  --chat-bg: #ffffff;
  --chat-accent: #0b74de;
  --chat-text: #0b1720;
  --chat-muted: #6b7280;
}

.livechat-button {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 99999;
  background: var(--chat-accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 10px;
  width: 50px;
  height: 50px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(11,116,222,0.18);
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
}

.livechat-button .label{ display:none; }

.livechat-panel {
  position: fixed;
  right: 18px;
  bottom: 74px;
  width: 360px;
  max-width: calc(100% - 36px);
  height: 480px;
  max-height: 80vh;
  background: var(--chat-bg);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(11,116,222,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99998;
  border: 1px solid rgba(11,116,222,0.06);
}

.livechat-panel.hidden{ display:none; }

.livechat-header{
  padding: 12px 14px;
  background: linear-gradient(90deg, rgba(11,116,222,0.95), rgba(0,60,128,0.95));
  color: #fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
}

.livechat-title{ font-weight:700; font-size:14px }
.livechat-close{ background: transparent; border:0; color: rgba(255,255,255,0.95); font-size:16px; cursor:pointer }

.livechat-messages{
  padding: 12px;
  overflow:auto;
  flex:1;
  background: linear-gradient(180deg,#fbfdff,#f7fbff);
}

.msg{ max-width:80%; margin-bottom:10px; padding:10px 12px; border-radius:12px; font-size:13px }
.msg.user{ margin-left:auto; background: var(--chat-accent); color:#fff; border-bottom-right-radius:4px }
.msg.bot{ margin-right:auto; background:#fff; color:var(--chat-text); border:1px solid rgba(11,116,222,0.06) }

.livechat-input-row{
  padding: 8px !important;
  border-top: 1px solid rgba(11,116,222,0.04) !important;
  display: flex !important; 
  gap: 6px !important; 
  align-items: center !important;
  align-content: center !important;
  background: #fff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}
.livechat-input{ 
  flex: 1 1 auto !important; 
  padding: 10px 12px !important; 
  border-radius: 8px !important; 
  border: 1px solid rgba(11,116,222,0.1) !important; 
  font-size: 13px !important;
  min-height: 42px !important;
  height: auto !important;
  background: #f9fbff !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  appearance: none !important;
}
.livechat-input:focus {
  outline: none !important;
  border-color: var(--chat-accent) !important;
  background: #fff !important;
  box-shadow: 0 0 0 2px rgba(11,116,222,0.1) !important;
}
.livechat-send{ 
  background: var(--chat-accent) !important; 
  color: #fff !important; 
  border: 0 !important; 
  padding: 8px 10px !important; 
  border-radius: 8px !important; 
  cursor: pointer !important; 
  font-weight: 600 !important;
  font-size: 12px !important;
  min-height: 42px !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  flex-shrink: 0 !important;
  flex-grow: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  appearance: none !important;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .livechat-button { 
    right: 12px; 
    bottom: 12px; 
    padding: 8px 12px;
    font-size: 12px;
  }
  .livechat-button .label { 
    display: inline-block;
  }
  .livechat-panel { 
    right: 8px; 
    bottom: 60px; 
    width: calc(100% - 16px);
    max-width: 320px;
    height: 320px;
    max-height: 50vh;
  }
}

/* Accessibility focus */
.livechat-button:focus, .livechat-close:focus, .livechat-send:focus { outline: 3px solid rgba(11,116,222,0.12); outline-offset: 2px }

/* small scrollbar styling for messages area */
.livechat-messages::-webkit-scrollbar{ width:10px }
.livechat-messages::-webkit-scrollbar-thumb{ background: rgba(11,116,222,0.08); border-radius:8px }

/* end */
