/* Frank Insurance floating FAQ assistant */
.fi-chatbot{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:1200;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:#0b2340;
}

.fi-chatbot *{ box-sizing:border-box; }

.fi-chat-launch{
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:12px 16px;
  background:#0b2340;
  color:#fff;
  font-weight:900;
  box-shadow:0 16px 34px rgba(0,0,0,.22);
  display:flex;
  align-items:center;
  gap:10px;
  transition:transform .16s ease, box-shadow .16s ease;
}

.fi-chat-launch:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 38px rgba(0,0,0,.26);
}

.fi-chat-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  background:#34A853;
  box-shadow:0 0 0 4px rgba(52,168,83,.18);
}

.fi-chat-panel{
  display:none;
  position:absolute;
  right:0;
  bottom:58px;
  width:min(380px, calc(100vw - 28px));
  max-height:min(680px, calc(100vh - 92px));
  background:#fff;
  border-radius:18px;
  box-shadow:0 22px 54px rgba(0,0,0,.28);
  overflow:hidden;
  border:1px solid rgba(11,35,64,.08);
}

.fi-chatbot.open .fi-chat-panel{ display:flex; flex-direction:column; }

.fi-chat-head{
  padding:14px;
  background:linear-gradient(135deg, #0b2340, #243b55);
  color:#fff;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
}

.fi-chat-title{
  margin:0;
  font-size:15px;
  font-weight:900;
  line-height:1.2;
}

.fi-chat-sub{
  margin:5px 0 0;
  font-size:12px;
  color:rgba(255,255,255,.78);
  line-height:1.35;
}

.fi-chat-close{
  border:1px solid rgba(255,255,255,.25);
  background:rgba(255,255,255,.10);
  color:#fff;
  border-radius:10px;
  width:32px;
  height:32px;
  cursor:pointer;
  font-weight:900;
}

.fi-chat-body{
  padding:12px;
  overflow:auto;
  min-height:250px;
  display:flex;
  flex-direction:column;
  gap:10px;
  background:#f7f9fd;
}

.fi-msg{
  max-width:88%;
  padding:10px 12px;
  border-radius:14px;
  font-size:13px;
  line-height:1.4;
  white-space:pre-wrap;
}

.fi-msg.bot{
  align-self:flex-start;
  background:#fff;
  border:1px solid #e7edf6;
  color:#0b2340;
}

.fi-msg.user{
  align-self:flex-end;
  background:#0b2340;
  color:#fff;
}

.fi-chat-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:10px 12px 0;
  background:#fff;
  border-top:1px solid #eef2f7;
}

.fi-chat-chip{
  border:1px solid #dfe6ef;
  background:#fff;
  color:#0b2340;
  border-radius:999px;
  padding:8px 10px;
  cursor:pointer;
  font-size:12px;
  font-weight:800;
}

.fi-chat-chip:hover{ background:#f1f5ff; }

.fi-chat-inputrow{
  padding:10px;
  display:flex;
  gap:8px;
  background:#fff;
  border-top:1px solid #eef2f7;
}

.fi-chat-input{
  flex:1;
  border:1px solid #dfe6ef;
  border-radius:12px;
  padding:11px 12px;
  font-size:13px;
  outline:none;
}

.fi-chat-input:focus{
  border-color:#0b2340;
  box-shadow:0 0 0 3px rgba(11,35,64,.12);
}

.fi-chat-send{
  border:none;
  background:#0b2340;
  color:#fff;
  border-radius:12px;
  padding:0 13px;
  cursor:pointer;
  font-weight:900;
}

.fi-chat-foot{
  padding:8px 12px 12px;
  background:#fff;
  color:#5a6b7b;
  font-size:11px;
  line-height:1.35;
}

.fi-chat-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.fi-chat-link{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  border:1px solid #dfe6ef;
  border-radius:999px;
  padding:7px 9px;
  color:#0b2340;
  background:#fff;
  font-size:12px;
  font-weight:900;
}

@media(max-width:520px){
  .fi-chatbot{
    right:12px;
    bottom:12px;
  }
  .fi-chat-panel{
    right:-4px;
    width:calc(100vw - 24px);
    bottom:58px;
  }
  .fi-chat-launch span.label{
    display:none;
  }
}


/* === Frank Insurance Orange + Blue Theme Override === */
.fi-chat-launch,
.fi-chat-send{
  background:linear-gradient(135deg, #0b2340, #225f93) !important;
}

.fi-chat-head{
  background:linear-gradient(135deg, #0b2340, #225f93 58%, #d78943 125%) !important;
}

.fi-chat-body{
  background:linear-gradient(135deg, #f5fbff, #fff7ec) !important;
}

.fi-msg.bot{
  background:rgba(255,255,255,.94) !important;
  border-color:rgba(11,35,64,.10) !important;
}

.fi-chat-chip,
.fi-chat-link{
  background:linear-gradient(135deg, rgba(234,246,255,.95), rgba(255,243,227,.95)) !important;
  border-color:rgba(11,35,64,.10) !important;
}
