@charset "utf-8";
/* CSS Document */



  #chat-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00b67a;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transition: transform 0.2s;
    z-index: 1000;
  }
  #chat-launcher:hover { transform: scale(1.08); }

  #chat-window {
    position: fixed;
    bottom: 92px;
    right: 24px;
    width: 360px;
    height: 520px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  }
  #chat-window.open { display: flex; }

  #chat-header {
    background: #00b67a;
    color: white;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
  }
  #chat-header-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
  }
  #chat-header-text { flex: 1; text-align: left;}
  #chat-header-name { font-size: 14px; font-weight: 500; }
  #chat-header-status { font-size: 12px; opacity: 0.75; }
  #chat-close {
    background: none; border: none; color: white;
    cursor: pointer; font-size: 20px; opacity: 0.7; padding: 0 4px;
    line-height: 1;
  }
  #chat-close:hover { opacity: 1; }

  #chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f4f6f8;
  }

  .msg { max-width: 82%; display: flex; flex-direction: column; gap: 4px; }
  .msg.bot { align-self: flex-start; }
  .msg.user { align-self: flex-end; }

  .msg-bubble {
    padding: 10px 13px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
	  text-align: left;
  }
  .msg.bot .msg-bubble {
    background: #ffffff;
    border: 0.5px solid #e0e0e0;
    border-bottom-left-radius: 4px;
    color: #1a1a1a;
  }
  .msg.user .msg-bubble {
    background: #1a3a5c;
    color: white;
    border-bottom-right-radius: 4px;
  }

  .msg-time { font-size: 11px; color: #999; padding: 0 4px; }
  .msg.user .msg-time { text-align: right; }

  /* Typing indicator */
  #typing-indicator { display: none; align-self: flex-start; }
  #typing-indicator.visible { display: flex; }
  #typing-bubble {
    background: #ffffff;
    border: 0.5px solid #e0e0e0;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 12px 16px;
    display: flex;
    gap: 5px;
    align-items: center;
  }
  .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #aaa;
    animation: bounce 1.2s infinite;
  }
  .dot:nth-child(2) { animation-delay: 0.2s; }
  .dot:nth-child(3) { animation-delay: 0.4s; }
  @keyframes bounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
  }

  /* Error banner */
  #chat-error {
    display: none;
    padding: 7px 14px;
    background: #fff8e1;
    border-top: 1px solid #ffe082;
    font-size: 12px;
    color: #7a5c00;
    text-align: center;
    flex-shrink: 0;
    line-height: 1.4;
  }

  /* Lead captured confirmation */
  #lead-captured {
    display: none;
    padding: 20px 16px;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #00b67a;
    color: #ffffff;
    flex-shrink: 0;
  }
  #lead-captured .tick { font-size: 32px; line-height: 1; }
  #lead-captured h3 { font-size: 15px; font-weight: 600; color: #FFF; }
  #lead-captured p { font-size: 13px; opacity: 0.9; line-height: 1.5; color: #FFF; }

  /* Input area */
  #chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #ffffff;
    border-top: 0.5px solid #e0e0e0;
    flex-shrink: 0;
  }
  #chat-input {
    flex: 1;
    border: 0.5px solid #c8c8c8;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: #f9f9f9;
    color: #1a1a1a;
    resize: none;
  }
  #chat-input:focus { border-color: #1a3a5c; background: #fff; }
  #chat-input:disabled { opacity: 0.5; }

  #send-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #00b67a;
    border: none;
    color: white;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
  }
  #send-btn:hover:not(:disabled) { transform: scale(1.08); }
  #send-btn:disabled { opacity: 0.35; cursor: default; }