/* ============================================================ */
/* CHATBOT BUTTON HIDDEN — v6                                    */
/* The chatbot code still loads and runs, but the floating       */
/* launcher button is hidden from users so they can't open the   */
/* chat panel. To re-enable the chat button: delete this entire  */
/* commented block (between the BEGIN and END markers below).    */
/* ============================================================ */
/* === BEGIN v6 button-hide === */
.ch-chat-bubble,
.ch-chat-panel,
.ch-launcher,
.ch-launcher-bubble,
.ch-launcher-close { display: none !important; visibility: hidden !important; pointer-events: none !important; }
/* === END v6 button-hide === */

/* ClaimHub Legal – Chat Widget v3 (LiveChat-inspired mobile) */

/* ===== Launcher FAB ===== */
.ch-chat-bubble{position:fixed;right:18px;bottom:18px;z-index:99998;}
.ch-chat-btn{appearance:none;border:0;background:transparent;color:inherit;cursor:pointer;padding:0;margin:0;box-shadow:none;text-align:left;-webkit-tap-highlight-color:transparent;}
.ch-launcher{display:flex;align-items:flex-end;gap:10px;}
.ch-launcher-bubble{position:relative;max-width:230px;background:#fff;border:1px solid rgba(12,29,58,.18);border-radius:16px;padding:12px 38px 12px 14px;font-weight:500;font-size:18px;line-height:1.25;color:#0b1220;box-shadow:0 12px 28px rgba(0,0,0,.12);}
.ch-launcher-bubble:after{content:"";position:absolute;right:18px;bottom:-7px;width:14px;height:14px;background:#fff;border-left:1px solid rgba(12,29,58,.18);border-bottom:1px solid rgba(12,29,58,.18);transform:rotate(45deg);border-bottom-left-radius:3px;}
.ch-launcher-avatar{position:relative;width:56px;height:56px;flex:0 0 56px;}
.ch-launcher-avatar-img{width:56px;height:56px;border-radius:999px;object-fit:cover;display:block;border:2px solid #fff;box-shadow:0 12px 28px rgba(0,0,0,.16);}
.ch-launcher-online{position:absolute;right:4px;bottom:4px;width:12px;height:12px;border-radius:999px;background:#22c55e;border:2px solid #fff;box-shadow:0 6px 14px rgba(0,0,0,.18);}
.ch-launcher-close{position:absolute;top:4px;right:6px;width:24px;height:24px;border:none;background:transparent;color:#9ca3af;font-size:18px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;border-radius:50%;padding:0;z-index:1;-webkit-tap-highlight-color:transparent;}
.ch-launcher-close:hover{background:rgba(12,29,58,.06);color:#2b3a55;}
.ch-launcher--compact .ch-launcher-bubble{display:none;}
.ch-launcher--compact .ch-launcher-close{display:none;}
@media(max-width:600px){.ch-launcher-bubble{display:none;}.ch-launcher-close{display:none;}.ch-launcher{gap:0;}}

/* ===== Desktop Panel ===== */
.ch-chat-panel{
  position:fixed;right:18px;bottom:76px;
  width:min(420px,calc(100vw - 36px));
  max-height:min(70vh,680px);
  background:#fff;border-radius:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  z-index:99999;overflow:hidden;
  display:none;flex-direction:column;
  border:1px solid rgba(0,0,0,.06);
}
.ch-chat-panel.open{display:flex;}

/* ===== Header ===== */
.ch-chat-header{
  background:linear-gradient(135deg,#0c1d3a,#142a55);
  color:#fff;padding:14px;
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
  flex:0 0 auto;
}
.ch-chat-header-left{display:flex;gap:10px;align-items:flex-start;}
.ch-avatar{width:32px;height:32px;border-radius:999px;object-fit:cover;border:2px solid rgba(255,255,255,.55);flex:0 0 32px;}
.ch-chat-title{font-weight:900;font-size:14px;letter-spacing:.2px;}
.ch-chat-sub{font-size:12px;opacity:.9;max-width:290px;line-height:1.25;margin-top:2px;}
.ch-chat-close{
  appearance:none;background:rgba(255,255,255,.14);
  border:1px solid rgba(255,255,255,.22);color:#fff;
  border-radius:10px;width:34px;height:34px;
  cursor:pointer;font-weight:900;flex:0 0 34px;
  display:flex;align-items:center;justify-content:center;font-size:18px;
  -webkit-tap-highlight-color:transparent;
}
.ch-chat-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px;}
.ch-chat-action{font-size:12px;font-weight:800;border-radius:999px;padding:8px 10px;border:1px solid rgba(255,255,255,.24);background:rgba(255,255,255,.10);color:#fff;text-decoration:none;}
.ch-chat-action.primary{background:rgba(255,255,255,.18);}

/* ===== Message body ===== */
.ch-chat-body{
  padding:16px 14px 10px;overflow-y:auto;
  background:#f6f8fc;flex:1 1 0%;min-height:0;
  -webkit-overflow-scrolling:touch;overscroll-behavior:contain;
}
.ch-msg{display:flex;margin:10px 0;}
.ch-msg.user{justify-content:flex-end;}
.ch-msg.bot{gap:8px;align-items:flex-end;}
.ch-msg.bot .ch-avatar{width:24px;height:24px;border:1px solid rgba(0,0,0,.08);flex:0 0 24px;}
.ch-bubble{max-width:85%;border-radius:14px;padding:10px 12px;font-size:14px;line-height:1.4;white-space:pre-wrap;word-break:break-word;}
.ch-msg.user .ch-bubble{background:#ff6a2a;color:#fff;border-bottom-right-radius:6px;}
.ch-msg.bot .ch-bubble{background:#fff;color:#0b1220;border:1px solid rgba(0,0,0,.06);border-bottom-left-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.04);}
.ch-meta{font-size:11px;color:#5b677a;margin-top:6px;}
.ch-sources{margin-top:8px;border-top:1px dashed rgba(0,0,0,.12);padding-top:8px;}
.ch-sources a{color:#142a55;text-decoration:none;font-weight:800;font-size:11px;}

/* ===== Footer / input ===== */
.ch-chat-footer{
  padding:10px 12px;background:#fff;
  border-top:1px solid rgba(0,0,0,.06);flex:0 0 auto;
}
.ch-disclaimer{font-size:11px;color:#5b677a;line-height:1.3;margin-bottom:8px;}
.ch-input-row{display:flex;gap:8px;align-items:center;}
.ch-input{
  flex:1;border:1px solid rgba(0,0,0,.14);border-radius:12px;
  padding:11px 12px;font-size:16px;outline:none;
  background:#fff;-webkit-appearance:none;appearance:none;
  font-family:inherit;
}
.ch-input:focus{border-color:#142a55;box-shadow:0 0 0 3px rgba(20,42,85,.10);}
.ch-send{
  border:0;border-radius:12px;background:#142a55;color:#fff;
  font-weight:900;padding:11px 16px;cursor:pointer;
  font-size:14px;flex:0 0 auto;white-space:nowrap;
  -webkit-tap-highlight-color:transparent;font-family:inherit;
}
.ch-send:disabled{opacity:.55;cursor:not-allowed;}

/* ===== Typing indicator (3 bouncing dots) ===== */
.ch-typing{
  display:inline-flex;align-items:center;gap:4px;
  padding:12px 18px !important;min-height:0;
  background:#fff !important;
}
.ch-typing span{
  width:8px;height:8px;border-radius:50%;
  background:#9ca3af;
  animation:ch-bounce 1.4s ease-in-out infinite both;
}
.ch-typing span:nth-child(2){animation-delay:0.16s;}
.ch-typing span:nth-child(3){animation-delay:0.32s;}
@keyframes ch-bounce{
  0%,60%,100%{transform:translateY(0);opacity:.4;}
  30%{transform:translateY(-6px);opacity:1;}
}
/* Variable-speed typing — slower/faster bounce for realism */
.ch-typing-slow span{animation-duration:1.8s;}
.ch-typing-fast span{animation-duration:1.0s;}

/* ===== Seen indicator ===== */
.ch-seen-row{justify-content:flex-start;padding-left:48px;}
.ch-seen-label{
  font-size:11px;color:#b0b7c3;
  animation:ch-seen-fade .4s ease;
}
@keyframes ch-seen-fade{from{opacity:0}to{opacity:1}}

/* ===== Message Timestamps (hover/tap to reveal) ===== */
.ch-timestamp{
  font-size:10px;color:transparent;
  text-align:right;margin-top:2px;padding-right:4px;
  transition:color .2s ease;
  user-select:none;-webkit-user-select:none;
  pointer-events:none;
}
.ch-msg.bot .ch-timestamp{text-align:left;padding-left:48px;}
.ch-msg:hover .ch-timestamp,.ch-msg:active .ch-timestamp{color:#b0b7c3;}
@media(max-width:600px){.ch-msg:active .ch-timestamp{color:#b0b7c3;}}

/* ===== Quick Reply Buttons ===== */
.ch-quick-replies{
  display:flex;flex-wrap:wrap;gap:8px;
  padding:8px 0 4px 44px;
}
.ch-quick-btn{
  background:#fff;color:#142a55;
  border:1.5px solid #142a55;border-radius:20px;
  padding:7px 16px;font-size:13px;font-weight:600;
  cursor:pointer;transition:all .2s ease;
  font-family:inherit;white-space:nowrap;
  -webkit-tap-highlight-color:transparent;
}
.ch-quick-btn:hover,.ch-quick-btn:active{
  background:#142a55;color:#fff;
}

/* ===== Callback Slot Buttons ===== */
.ch-callback-btn{
  background:#f0fdf4;color:#166534;
  border-color:#22c55e;
}
.ch-callback-btn:hover,.ch-callback-btn:active{
  background:#22c55e;color:#fff;border-color:#22c55e;
}

/* ===== Autocomplete Suggestions ===== */
.ch-autocomplete{
  background:#fff;border-top:1px solid #e5e7eb;
  max-height:120px;overflow-y:auto;
}
.ch-ac-item{
  padding:9px 14px;font-size:13px;color:#374151;
  cursor:pointer;border-bottom:1px solid #f3f4f6;
  transition:background .15s;
}
.ch-ac-item:hover,.ch-ac-item:active{
  background:#eef2ff;color:#142a55;
}
.ch-ac-item:last-child{ border-bottom:none; }

/* ===== Widget Loading Skeleton ===== */
.ch-chat-bubble{opacity:0;animation:ch-skeleton-in .3s ease .1s forwards;}
@keyframes ch-skeleton-in{to{opacity:1;}}

/* ===== Link & Call Buttons in Chat ===== */
.ch-link-btn{display:inline-block;margin:8px 4px 2px 0;padding:8px 16px;background:linear-gradient(135deg,#ed5700,#ff8a3d);color:#fff;border-radius:20px;text-decoration:none;font-size:13px;font-weight:600;transition:opacity .2s, transform .2s;box-shadow:0 2px 8px rgba(237,87,0,0.2);}
.ch-link-btn:hover{opacity:0.85;transform:translateY(-1px);}
.ch-link-call{background:linear-gradient(135deg,#22c55e,#16a34a);box-shadow:0 2px 8px rgba(34,197,94,0.2);}

/* Rating system */
.ch-rating-pill{display:flex;align-items:center;justify-content:center;gap:8px;margin:12px auto 8px;padding:10px 20px;background:linear-gradient(135deg,#ed5700,#ff8a3d);color:#fff;border-radius:24px;font-size:13px;font-weight:600;cursor:pointer;transition:transform .2s,opacity .2s;box-shadow:0 3px 12px rgba(237,87,0,0.25);max-width:280px;animation:ch-fade-in 0.5s ease;}
.ch-rating-pill:hover{transform:translateY(-1px);opacity:0.9;}
.ch-rating-arrow{font-size:16px;}
.ch-rating-wrap{margin:12px 8px;padding:16px;background:rgba(255,255,255,0.04);border-radius:16px;border:1px solid rgba(255,255,255,0.08);text-align:center;animation:ch-fade-in 0.4s ease;}
.ch-rating-title{font-size:14px;font-weight:600;color:#e5e7eb;margin-bottom:12px;}
.ch-rating-faces{display:flex;justify-content:center;gap:8px;}
.ch-face{font-size:32px;background:none;border:2px solid transparent;border-radius:50%;width:48px;height:48px;cursor:pointer;transition:transform .2s,border-color .2s,background .2s;display:flex;align-items:center;justify-content:center;padding:0;}
.ch-face:hover{transform:scale(1.2);border-color:rgba(237,87,0,0.4);background:rgba(237,87,0,0.08);}
.ch-face:active{transform:scale(0.95);}
.ch-rating-thanks{font-size:14px;color:#9ca3af;padding:8px 0;animation:ch-fade-in 0.3s ease;}
.ch-rating-wrap{transition:opacity 0.5s ease;}
@keyframes ch-fade-in{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:translateY(0);}}
