.chatbot-container {
    position: fixed;
    z-index: 2001;
    width: 450px;
    max-width: 90%;
    font-family: Arial, sans-serif;
    background-color: #dedede;
}

/* Popup Style */
.chatbot-popup {
    bottom: 60px;
    right: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
}

.chatbot-header {
    background-color: #2d3e50;
    color: #fff;
    padding: 10px;
    font-weight: bold;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom: 1px solid #ffffff;
    display: flex;
}

.chatbot-header img{
    width: 90px;
}

.chatbot-header .aichat-logo{
    width: 60px;
    margin:auto;
}

.chat-subtitle{
    margin: 0px;
    font-size: 11px;
    font-weight: normal;
}

.chatbot-messages {
    height: 250px;
    overflow-y: auto;
    padding: 10px;
    background-color: #f9f9f9;
}
.chatbot-messages-container {
    padding: 10px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #dedede;
    position: relative;
}

.chatbot-footer .footer-inner .chatbot-input {
    padding: 8px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 0px;
    line-height: 1;
    background-color: #ffffff;
}

.chatbot-send {
    padding: 8px 12px;
    background-color: #158aad;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    align-self: flex-end;
    float: right;
    clear: both;
    display: block;
    max-width:85%;
    margin-bottom: 10px;
}

.chatbot-send-btn {
    padding: 10px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    margin: 10px;
    width:calc(100% - 20px);
    font-size: 18px;
    margin-bottom: 0px;
}

.chatbot-send-btn svg{
    fill:#ffffff;
}

.chatbot-receive{
    margin-bottom: 10px;
    padding: 8px 12px;
    background-color: #E8E8E8;
    color: #333;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    align-self: start;
    align-self: flex-start;
    display: block;
    clear: both;
    float: left;
    max-width:85%;
}

.chat-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #0073aa;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index:2000;
}

.hidden {
    display: none;
}

#typing-indicator {
    font-style: italic;
    color: gray;
    position: absolute;
    bottom: 2px;
}

#typing-indicator img{
    width: 50px;
    border-radius: 20px;
    background: #e8e8e8;
    padding-bottom: 5px;
}

.dots::after {
    content: ".";
    animation: dots 1.5s steps(3, end) infinite;
}

@keyframes dots {
    0% { content: "."; }
    33% { content: ".."; }
    66% { content: "..."; }
}

.chatbot-fullpage{
    width: 100%;
    height:100%;
    max-width: 100%;
    top: 0;
    left: 0;
    margin-top:0px;
}

.chatbot-fullpage .chatbot-footer{
    position: relative;
    border-top: 1px solid #dedede;
    background-color: #dedede;
}

.chatbot-fullpage .chatbot-messages {
    height: 150px;
    border-radius: 15px;
}

.chatbot-fullpage .chatbot-messages-container{
    background:none;
    border:0;
}

.chatbot-fullpage #typing-indicator{
    position: relative;
    margin-top: -30px;
    background: none;
    width: auto;
    padding-left: 15px;
}

.chatbot-section{
    position: relative;
    width: 100%;
    max-width: 100%;
    border: 1px solid #dedede;
    border-radius: 10px 10px 0px 0px;
}
.chat-footer {
    text-align: center;
    padding-top: 0px;
    font-size: 12px;
    color: #888;
    border-radius: 0px 0px 8px 8px;
}

.chatbot-footer{
    display: flex;
    border:0px;
    padding: 8px 8px 0px 8px;
    background-color: #dedede;
}
.chatbot-inner .chat-footer{
    background-color: #dedede;
}
.chatbot-footer .footer-inner{
    display: flex;
    width: 100%;
    border-radius: 100px;
}
.down-icon {
    width: 25px;
    height: 25px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 10px;
}

.down-icon::before {
    content: "";
    width: 6px;
    height: 6px;
    border-left: 2px solid #2d3e50;
    border-bottom: 2px solid #2d3e50;
    transform: rotate(-45deg);
    display: inline-block;
}

.chatbot-fullpage .chatbot-header{
    background:none;
    border:0;
}

.chatbot-fullpage .chatbot-footer{
    background-color: #ffffff;
    padding: 0px;
    border-radius: 10px 30px 30px 10px;
}

.chatbot-fullpage .chat-footer{
    background: none;
}

.chatbot-send-btn {
    width: auto;
    height: 36px;
    margin:0px;
    border:0px;
    padding-top:8px;
    border-radius: 5px;
    margin-left: 5px;
    line-height: 1;
}
.chatbot-fullpage .chatbot-send-btn {
    background-color: #fccf30;
    width: auto;
    height: 36px;
    margin:0px;
    border:0px;
    padding-top:8px;
    border-radius: 50px;
}
.chatbot-input{
    margin: 0px;
    border-radius: 5px;
    border:0px;
    line-height: 1;
}
.chatbot-input:focus{
    border:0px;
    outline: none;
}
.chatbot-fullpage  .chatbot-inner{
    padding: 50px;
    padding-bottom: 0px;
}

.chatbot-fullpage .chatbot-messages-container{
    padding:0px;
    padding-bottom: 10px;
}

.chatbot-fullpage  .chatbot-header h1{
    color:#ffffff;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 60px;
    text-align: center;
    margin:0px;
}

.clear-chat-main{
    text-align: right;
}

.clear-chat-main a{
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}
.footer-inner .error{
    padding: 5px 10px;
    line-height: 1.2;
}

.chatbot-header .one-third{
    width: 33.333333%;
}

.chatbot-header .chatbot-logo{
    text-align: left;
}

.chatbot-header .ai-logo{
    text-align: center;
}

.chatbot-header .close-clear{
    text-align: right;
    position: relative;
}

.chatbot-header .close-clear .clear-chat{
    font-size: 11px;
    position: absolute;
    bottom: 0px;
    right: 0px; 
    color:#ffffff;
    text-decoration: none;
}

.loader-container{
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    background: #ffffffcc;
}

.loader {
    border: 4px solid #c9c9c9;
    border-radius: 50%;
    border-top: 4px solid #135e96;
    width: 36px;
    height: 36px;
    -webkit-animation: spin 2s linear infinite; /* Safari */
    animation: spin 2s linear infinite;
    display: inline-block;
    margin-left: 0px;
  }
  
  /* Safari */
  @-webkit-keyframes spin {
    0% { -webkit-transform: rotate(0deg); }
    100% { -webkit-transform: rotate(360deg); }
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

.loader{
    position: absolute;
    top: calc(50% - 18px);
    left: calc(50% - 18px);
  }

  .chat-icon img{
    border-radius: 100px;
    padding: 2px;
    max-width: 100%;
  }
  

/************RESPONSIVENESS*******************/
@media only screen and (max-width: 767px) {
    .chatbot-fullpage  .chatbot-header h1{
        font-size: 30px;
    }    
}