/* FACEBOOK-STYLE AME CHAT WIDGET */
.chat-nav-link{
  background:rgba(34,197,94,.13)!important;
  border:1px solid rgba(34,197,94,.35);
  color:#dcfce7!important;
}

.fb-chat-widget{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:9999;
  font-family:Arial,Helvetica,sans-serif;
}

.fb-chat-button{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 18px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.35);
  background:linear-gradient(135deg,#38bdf8,#818cf8);
  color:#06111f;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 20px 60px rgba(56,189,248,.34);
}

.fb-chat-button small{
  display:block;
  font-size:11px;
  opacity:.85;
  line-height:1;
}

.fb-chat-button strong{
  display:block;
  line-height:1.05;
}

.chat-pulse{
  width:13px;
  height:13px;
  border-radius:50%;
  background:#22c55e;
  box-shadow:0 0 0 0 rgba(34,197,94,.7);
  animation:chatPulse 1.5s infinite;
}

@keyframes chatPulse{
  0%{box-shadow:0 0 0 0 rgba(34,197,94,.7)}
  70%{box-shadow:0 0 0 12px rgba(34,197,94,0)}
  100%{box-shadow:0 0 0 0 rgba(34,197,94,0)}
}

.fb-chat-box{
  position:absolute;
  right:0;
  bottom:72px;
  width:370px;
  height:510px;
  display:none;
  flex-direction:column;
  border-radius:24px;
  overflow:hidden;
  background:#07111f;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 28px 90px rgba(0,0,0,.48);
  color:#eef6ff;
}

.fb-chat-box.open{
  display:flex;
}

.fb-chat-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:14px 16px;
  background:linear-gradient(135deg,rgba(56,189,248,.24),rgba(129,140,248,.18));
  border-bottom:1px solid rgba(255,255,255,.12);
}

.fb-chat-head strong{
  display:block;
  color:#fff;
}

.fb-chat-head small{
  display:block;
  color:#cbd5e1;
  font-size:12px;
  max-width:210px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.fb-chat-actions{
  display:flex;
  align-items:center;
  gap:8px;
}

.fb-chat-actions a,
.fb-chat-actions button{
  border:0;
  text-decoration:none;
  background:rgba(255,255,255,.12);
  color:#fff;
  border-radius:10px;
  padding:7px 9px;
  font-weight:900;
  cursor:pointer;
}

.fb-chat-actions button{
  font-size:18px;
  line-height:1;
}

.fb-chat-messages{
  flex:1;
  overflow:auto;
  padding:14px;
  background:
    radial-gradient(circle at top right,rgba(56,189,248,.08),transparent 34%),
    #07111f;
}

.fb-chat-loading,
.fb-chat-empty,
.fb-chat-error{
  color:#9fb2c8;
  text-align:center;
  padding:22px;
}

.fb-chat-error{
  color:#fecaca;
}

.fb-chat-empty a{
  color:#7dd3fc;
  font-weight:900;
}

.fb-msg{
  margin:10px 0;
  padding:11px 12px;
  border-radius:16px;
  background:rgba(255,255,255,.075);
  border:1px solid rgba(255,255,255,.10);
}

.fb-msg.fb-admin{
  background:rgba(56,189,248,.13);
  border-color:rgba(56,189,248,.30);
}

.fb-name{
  font-weight:950;
  color:#fff;
  font-size:13px;
  margin-bottom:5px;
}

.fb-name span{
  color:#9fb2c8;
  font-size:11px;
  font-weight:700;
  margin-left:6px;
}

.fb-text{
  color:#dbeafe;
  font-size:14px;
  line-height:1.45;
  overflow-wrap:anywhere;
}

.fb-chat-form{
  display:grid;
  grid-template-columns:1fr 72px;
  gap:9px;
  padding:12px;
  background:rgba(2,6,23,.94);
  border-top:1px solid rgba(255,255,255,.12);
}

.fb-chat-form textarea{
  height:48px;
  min-height:48px;
  max-height:100px;
  resize:none;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);
  color:#fff;
  padding:11px 12px;
  outline:none;
}

.fb-chat-form textarea:focus{
  border-color:rgba(56,189,248,.7);
}

.fb-chat-form button{
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg,#38bdf8,#818cf8);
  color:#06111f;
  font-weight:950;
  cursor:pointer;
}

@media(max-width:700px){
  .fb-chat-widget{
    left:12px;
    right:12px;
    bottom:12px;
  }

  .fb-chat-button{
    width:100%;
    justify-content:center;
  }

  .fb-chat-box{
    left:0;
    right:0;
    width:100%;
    height:70vh;
    bottom:68px;
  }
}
