/* =========================================
   VRITTI SOLUTIONS CHATBOT
========================================= */

.vs-chatbot-wrapper{

  position:fixed;

  right:20px;
  bottom:20px;

  z-index:999999;

  font-family:'Inter',sans-serif;

}

/* =========================================
   FLOATING BUTTON
========================================= */

.vs-chat-toggle{

  width:58px;
  height:58px;

  border:none;

  border-radius:16px;

  cursor:pointer;

  background:#2563eb;

  color:#ffffff;

  display:flex;
  align-items:center;
  justify-content:center;

  position:relative;

  transition:.2s ease;

  box-shadow:
    0 10px 30px rgba(37,99,235,.22);

}

/* SIMPLE HOVER */

.vs-chat-toggle:hover{

  background:#1d4ed8;

}

/* CHAT ICON */

.vs-chat-icon{

  width:24px;
  height:24px;

  display:flex;

  align-items:center;
  justify-content:center;

  font-size:22px;

  line-height:1;

  flex-shrink:0;

}

/* =========================================
   CHAT WINDOW
========================================= */

.vs-chat-container{

  width:350px;
  height:590px;

  background:#ffffff;

  border-radius:24px;

  overflow:hidden;

  display:none;

  flex-direction:column;

  margin-bottom:14px;

  border:
    1px solid #e5e7eb;

  box-shadow:
    0 25px 70px rgba(0,0,0,.12);

  animation:vsOpen .22s ease;

}

@keyframes vsOpen{

  from{

    opacity:0;

    transform:
      translateY(16px)
      scale(.98);

  }

  to{

    opacity:1;

    transform:
      translateY(0)
      scale(1);

  }

}

/* =========================================
   HEADER
========================================= */

.vs-chat-header{

  padding:16px 18px;

  background:
  linear-gradient(
    135deg,
    #0f172a 0%,
    #2563eb 100%
  );

  color:#ffffff;

  display:flex;

  align-items:center;

  justify-content:space-between;

}

.vs-header-content{

  display:flex;

  align-items:center;

  gap:12px;

}

/* AVATAR */

.vs-avatar{

  width:44px;
  height:44px;

  border-radius:14px;

  overflow:hidden;

  background:#ffffff;

  flex-shrink:0;

}

.vs-avatar img{

  width:100%;
  height:100%;

  object-fit:cover;

}

/* TEXT */

.vs-chat-header h3{

  margin:0;

  font-size:17px;

  font-weight:800;

  line-height:1.2;

}

.vs-chat-header p{

  margin:2px 0 0;

  font-size:11px;

  opacity:.88;

}

/* CLOSE */

#vsChatClose{

  width:34px;
  height:34px;

  border:none;

  border-radius:10px;

  background:
    rgba(255,255,255,.12);

  color:#ffffff;

  cursor:pointer;

  transition:.25s ease;

}

#vsChatClose:hover{

  transform:rotate(90deg);

  background:
    rgba(255,255,255,.22);

}

/* =========================================
   BODY
========================================= */

.vs-chat-body{

  flex:1;

  overflow-y:auto;

  padding:15px;

  background:#f8fafc;

  scroll-behavior:smooth;

}

.vs-chat-body::-webkit-scrollbar{

  width:4px;

}

.vs-chat-body::-webkit-scrollbar-thumb{

  background:#d1d5db;

  border-radius:20px;

}

/* =========================================
   CHAT BUBBLES
========================================= */

.vs-bot-message,
.vs-user-message{

  max-width:84%;

  padding:12px 14px;

  margin-bottom:10px;

  border-radius:16px;

  font-size:13px;

  line-height:1.5;

  animation:vsMsg .18s ease;

}

@keyframes vsMsg{

  from{

    opacity:0;

    transform:translateY(6px);

  }

  to{

    opacity:1;

    transform:translateY(0);

  }

}

/* BOT */

.vs-bot-message{

  background:#ffffff;

  color:#0f172a;

  border:
    1px solid #e5e7eb;

  border-bottom-left-radius:5px;

}

/* USER */

.vs-user-message{

  margin-left:auto;

  color:#ffffff;

  background:
  linear-gradient(
    135deg,
    #2563eb 0%,
    #06b6d4 100%
  );

  border-bottom-right-radius:5px;

}

/* =========================================
   OPTIONS GRID
========================================= */

.vs-chat-options{

  padding:14px;

  display:grid;

  grid-template-columns:1fr 1fr;

  gap:10px;

  background:#ffffff;

  border-top:
    1px solid #e5e7eb;

}

/* BUTTON */

.vs-option-btn{

  width:100%;

  height:62px;

  border:none;

  border-radius:14px;

  background:#eff6ff;

  color:#2563eb;

  font-size:12px;

  font-weight:700;

  text-align:center;

  line-height:1.4;

  cursor:pointer;

  transition:.2s ease;

  padding:10px;

}

.vs-option-btn:hover{

  background:#2563eb;

  color:#ffffff;

}

/* =========================================
   CONTACT STRIP
========================================= */

.vs-contact-strip{

  display:grid;

  grid-template-columns:1fr 1fr 1fr;

  gap:8px;

  padding:12px;

  background:#ffffff;

  border-top:
    1px solid #e5e7eb;

}

.vs-contact-strip a{

  text-decoration:none;

  background:#f8fafc;

  color:#0f172a;

  font-size:11px;

  font-weight:700;

  text-align:center;

  padding:10px 6px;

  border-radius:12px;

  transition:.2s ease;

}

.vs-contact-strip a:hover{

  background:#2563eb;

  color:#ffffff;

}

/* =========================================
   TYPING
========================================= */

.vs-typing{

  width:max-content;

  display:flex;

  align-items:center;

  gap:4px;

  padding:12px 14px;

  background:#ffffff;

  border-radius:16px;

  margin-bottom:10px;

}

.vs-typing span{

  width:6px;
  height:6px;

  border-radius:50%;

  background:#2563eb;

  animation:vsTyping 1.2s infinite;

}

.vs-typing span:nth-child(2){

  animation-delay:.2s;

}

.vs-typing span:nth-child(3){

  animation-delay:.4s;

}

@keyframes vsTyping{

  0%,80%,100%{

    opacity:.3;

    transform:scale(.8);

  }

  40%{

    opacity:1;

    transform:scale(1);

  }

}

/* =========================================
   MOBILE
========================================= */

@media(max-width:768px){

  .vs-chatbot-wrapper{

    right:12px;
    bottom:12px;

  }

  .vs-chat-container{

    width:calc(100vw - 24px);

    height:74vh;

    border-radius:22px;

  }

  .vs-chat-toggle{

    width:54px;
    height:54px;

    border-radius:14px;

  }

  .vs-chat-icon{

    font-size:20px;

  }

  .vs-chat-options{

    grid-template-columns:1fr;

  }

  .vs-option-btn{

    height:56px;

    font-size:12px;

  }

}