.addweb-chat-position-bottom_right { position: fixed; bottom: 20px; right: 20px; }
.addweb-chat-position-bottom_left { position: fixed; bottom: 20px; left: 20px; }
.addweb-chat-position-top_right { position: fixed; top: 20px; right: 20px; }
.addweb-chat-position-top_left { position: fixed; top: 20px; left: 20px; }
#addweb-ai-chat-container { width: 300px; z-index: 9999; }
#addweb-ai-chat-header { padding: 10px; color: #fff; cursor: pointer; }
#addweb-ai-chat-box { background: #f9f9f9; border: 1px solid #ccc; }
.addweb-chat-body { max-height: 450px; overflow-y: auto; padding: 10px; }
.addweb-chat-message { margin: 5px 0; }
.addweb-chat-message.bot { color: #000; }
.addweb-chat-message.user { text-align: right; color: #555; }
.addweb-chat-input { display: flex; padding: 15px !important; }
.addweb-chat-input input { flex: 1; padding: 5px !important; }
.addweb-chat-input button { padding: 5px 10px !important; border: none !important; color: white; cursor: pointer; }


/* new desing */
 /* Chat Icon Wrapper */
.add-web-ai-chat .msg-icon {
  position: fixed;
  bottom: 2%;
  right: 1% !important;
  z-index: 10000;
  filter: drop-shadow(0 0 15px #230063);
}

.add-web-ai-chat .msg-button {
  border: none !important;
  background-color: transparent !important;
  outline: none !important;
  cursor: pointer;
  position: relative !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
}

/* Chat Icon Images */
.add-web-ai-chat #chatIcon {
  transition: transform 0.5s ease-in-out;
}
/* .add-web-ai-chat .rotated {
  transform: rotate(-90deg);
} */

.add-web-ai-chat #msg-Vector {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 
    top 0.5s ease-in-out, 
    right 0.5s ease-in-out;
  /* display: none; */
}

.popup-chat-btn {
  display: none !important;
}

.add-web-ai-chat #close-Vector {
  position: absolute !important;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: 
    top 0.5s ease-in-out, 
    right 0.5s ease-in-out;
  display: none;
  z-index: 1111;
}

.popup-cross-btn {
  display: block !important;
}

/* Background Image Position */
.add-web-ai-chat .msg-chat-bg {
  position: relative;
}

/* Chat Board */
.add-web-ai-chat .chat-board {
  position: fixed;
  bottom: 95px;
  right: 30px;
  width: 100%;
  max-width: 354px;
  height: auto;
  /* background: white; */
  background: linear-gradient(180deg, #FFEADD 1.92%, #FFFFFF 50%);
  padding: 20px;
  border-radius: 10px 10px 10px 0;
  box-shadow: 0 4px 12px #a79eb6;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 9999;
  
  transform: translateY(100%);
  opacity: 0;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}

.add-web-ai-chat .chat-board.show {
  transform: translateY(0%);
  opacity: 1;
}

/* Chat Header */
.add-web-ai-chat .chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.add-web-ai-chat .user-icon-name
{
    display: flex;
    align-items: center;
    gap: 10px;
}
.add-web-ai-chat .chat-bot-icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  text-align: center;
  line-height: 75px;
  position: relative;
  align-items: start;
}
.add-web-ai-chat .user-icon
{
  position: absolute;
  top: 0px;
  left: 0px;
  border-radius: 50%;
}

.add-web-ai-chat .status-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #87db5c;
  position: absolute;
  top: 3px;
  right: 7px;
}

.add-web-ai-chat .chat-bot-heading {
  width: 170px;
} 

.add-web-ai-chat .chat-bot-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 26px;
  text-transform: capitalize;
  color: #000000;
  margin-bottom: 0px;
  margin-top: 0px;
}

.add-web-ai-chat .chat-bot-status {
  font-weight: 400;
  font-size: 12px;
  line-height: 19.2px;
  color: #5a5a5a;
  margin-top: 0px;
  margin-bottom: 0px;
}

.add-web-ai-chat .chat-btn-close {
  cursor: pointer;
  /* display: flex; */
 
}
.add-web-ai-chat  .end-chat-icon{
margin-right: 5px;
}

/*default scrren style*/
.add-web-ai-chat .default-screen {
  max-width: 320px;
  width: 100%;
  min-height: 306px;
  margin: 0 auto;     
  padding: 10px;        
  box-sizing: border-box;
  text-align: center;    
  border-radius: 10px;  
}

.add-web-ai-chat .default-title
{
  font-weight: 700;
  font-style: Bold;
  font-size: 18px;
  line-height: 23.4px;
  letter-spacing: 0%;
  text-transform: capitalize;
  color: #000000;
  margin-bottom: 20px !important;
}
.default-text {
  background-color: #F3F3FF;
  border-radius: 10px;
  display: inline-block !important;
  margin-bottom: 10px;
}

.default-text .default-font {
  font-weight: 600;
  font-size: 14px;
  line-height: 18.2px;
  padding: 10px;            
  letter-spacing: 0%;
  background: linear-gradient(90deg, #000000 0%, #6B1DFD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text; 
  color: transparent;
  margin: 0; 
  cursor: pointer;
  margin-bottom: 0 !important;
}

/* Chat Body */

.chat-body.addweb-chat-body {
  display: none; /* hide chat initially */
}

.chat-body.addweb-chat-body.active {
  display: block !important; /* show chat when active */
}

.add-web-ai-chat .chat-body {
  height: 400px; 
  position: relative; 
  display: none;
}

.add-web-ai-chat .bot-chat
{
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

/* .add-web-ai-chat .msg-heading {
  gap: 5px;
} */

/* .add-web-ai-chat .msg-title {
  font-weight: 400;
  font-size: 14px;
  line-height: 22.4px;
  color: #5a5a5a;
  margin-top: 0;
  margin-bottom: 0 !important;
} */

.add-web-ai-chat .bot-msg {
    max-width: 191px;
    border-width: 0.5px;
    opacity: 1;
    gap: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-top: 5px;
    padding-right: 10px;
    padding-bottom: 5px;
    padding-left: 10px;
    background: #FFFFFF;
    border: 0.5px solid #6B1DFD;  /*add this data to database*/
    font-weight: 400;
    font-size: 14px;
    line-height: 22.4px;
    letter-spacing: 0%;
    color: #000000;
}

/* User Chat */
.add-web-ai-chat .user-chat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.add-web-ai-chat .user-msg {
  background-color: #4E04D9 !important; /*add this data to database*/
  max-width: 240px;
  border-radius: 10px 10px 0px 10px;
  padding: 5px 10px;
  font-weight: 400;
  font-size: 14px;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: right;
}

/* Message Input Box */
.add-web-ai-chat .msg-box {
  height: 60px;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #000000;
  border-radius: 10px;
  box-shadow: 0px 0px 10px 0px #00000033;
  border: 1px solid;
  margin-bottom: 10px;
}

.add-web-ai-chat .msg-box input {
  border: none !important;
  outline: none !important;
  width: 100% !important;
  font-size: 14px !important;
  background-color: inherit;
  color: #FFF7F1;
}

.add-web-ai-chat .msg-box input::placeholder {
  font-weight: 400;
  font-size: 14px;
  color: white !important;
}

.add-web-ai-chat .send-msg-icon {
  cursor: pointer;
}

/*popup style*/

.add-web-ai-chat .popup
{
  max-width: 280px;
  width: 100%;
  height: auto;
  background: #EFFFE0;
  box-shadow: 0px 10px 20px 0px #6019E633;
  border-radius: 20px;
  padding: 15px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.add-web-ai-chat .email-title
{
  font-weight: 400;
  font-size: 18px;
  line-height: 40px;
  letter-spacing: 0%;
  vertical-align: middle;
  color: #000000;
}
.add-web-ai-chat .required-icon
{
  margin-bottom: 5px;
}
.add-web-ai-chat .popup-input
{
width: 85%;
padding: 16px 20px;
border-radius: 60px !important;
background: #FFFFFF;
border: 1px solid #C7C7C7 !important;
font-weight: 400;
font-size: 16px;
line-height: 20px;
letter-spacing: 0%;
vertical-align: middle;
margin-bottom: 15px;
background: #FFFFFF !important;

}
.add-web-ai-chat .popup-end-btn
{
  text-align: center;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.add-web-ai-chat .popup-btn-end
{
  max-width: 134px;
  padding: 16px 28px;
  border-radius: 58px;
  border: 0.84px solid #000000;
  background: #ABF85E;
  font-weight: 600;
  font-size: 16px;
  line-height: 20.8px;
  letter-spacing: 0%;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.add-web-ai-chat .cancel-btn
{
  max-width: 134px;
  display: block;
  font-weight: 600;
  font-size: 16px;
  line-height: 20.2px;
  letter-spacing: 0%;
  color: #000000;
  border-radius: 58.4px;
  border-width: 0.84px;
  opacity: 1;
  padding-top: 16px;
  padding-right: 28px;
  padding-bottom: 16px;
  padding-left: 28px;
  border: 0.84px solid #000000;

}

/* Loader — centered spinner with smooth fade */
.add-web-ai-chat .addweb-chat-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 2px 16px rgba(107, 29, 253, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    pointer-events: none;
}
.add-web-ai-chat .addweb-chat-loading.is-loading {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0s linear 0s;
}
.add-web-ai-chat .addweb-chat-loading::after {
    content: '';
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 3px solid rgba(107, 29, 253, 0.15);
    border-top-color: #6b1dfd;
    animation: addweb-spin 0.75s linear infinite;
}
@keyframes addweb-spin {
    to { transform: rotate(360deg); }
}

.add-web-ai-chat .msg-heading img {
  border-radius: 50% !important;
  width: 30px;
  height: 30px;
}
.addweb-dnone{
  display:none !important
}

@keyframes addweb-fade-in {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.addweb-fade-show {
    animation: addweb-fade-in 1.0s ease-out forwards;
}
/* new typing animation added */
.add-web-ai-chat .typing-dots-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 231px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.add-web-ai-chat .typing-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    /* background-color: var(--bot-bg, #f1f1f1) ; */
    color: #333;
    border-radius: 12px;
    max-width: fit-content;
    animation: fadeIn 0.3s ease-in-out;
}

.add-web-ai-chat .typing-dots span {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #6B1DFD;
    border-radius: 50%;
    animation: addweb-bounce 1.4s infinite ease-in-out both;
}

.add-web-ai-chat .typing-dots span:nth-child(1) { animation-delay: 0s; }
.add-web-ai-chat .typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.add-web-ai-chat .typing-dots span:nth-child(3) { animation-delay: 0.4s; }

.add-web-ai-chat .typing-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
    margin-left: 6px;
    font-style: italic;
}

@keyframes addweb-bounce {
    0%, 80%, 100% {
        transform: scale(0.2);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.popup-validation-msg {
    color: red;
    font-size: 13px;
    margin-top: 5px;
    transition: opacity 0.3s ease;
}
.disclaimer-text {
    font-size: 12px;
    color: #666;
    background-color: white;
    text-align: center;
}
.add-web-ai-chat .disclaimer-text {
    font-size: 10px;
    color: #666;
    padding: 5px; 
}

.add-web-ai-chat .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid #333;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    display: inline-block;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/*DISPLAY NONE STYLE*/
.add-web-ai-chat .msg-title
{
  display: none !important;
}
.bot-msg .typing-label {
    display: none !important;
}

/* History message enter animation */
@keyframes addweb-msg-enter {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.add-web-ai-chat .addweb-msg-enter {
    animation: addweb-msg-enter 0.3s ease-out forwards;
}

/* Action bar (Minimize / Close buttons) */
.add-web-ai-chat .addweb-action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 6px 0 2px;
}

.add-web-ai-chat .addweb-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    line-height: 1;
    padding: 0;
    transition: opacity 0.2s ease;
}

.add-web-ai-chat .addweb-action-btn:hover {
    opacity: 0.75;
}