:root {
    --grey: #f5f5f5;
    --blue: #3d88f9;
    --black: #1a1a1a;
}

.chat-open .chat-window {
        display: flex;
    }


.chat-button {
    position: fixed;
    bottom: 2%;
    right: 2px;
    z-index: 998;
    background-color: transparent;
    color: white;
    width: 6%;
    padding: 10px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    border: 2px solid #1d4b98;
}
.chat-button img {
    width: 100%;
    height:auto;
    aspect-ratio: auto 100/100;
}

    
.chat-button:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    transform: scale(0.8);
}


.chat-window {

    /** {*/
    /*    font-family: "Raleway", sans-serif;*/
    /*}*/

    display: none;
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    z-index: 999;
    bottom: 60px;
    right: 20px;
    height: 600px;
    width: 360px;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1;
}
.chat-window .close {
        border: none;
        padding: 8px 13px;
        background-color: #000;
        color: white;
        /* border-radius: 20px 20px 0 0; */
        cursor: pointer;
        float: right;
        position: absolute;
        right: 0;
    }

.chat-window .chat {
        flex: 1;
        padding: 0 8px;
        max-height: 480px;
        overflow-y: auto; /* Use auto instead of scroll */
        scrollbar-width: thin; /* For Firefox */
        scrollbar-color: var(--grey) transparent;
        overflow-y: scroll;
        height: 64vh;
        padding: 10px;
        width: 100%
    }

    /* For Webkit browsers */
.chat::-webkit-scrollbar {
    width: 6px;
}

.chat::-webkit-scrollbar-thumb {
    background-color: var(--grey);
    border-radius: 10px;
}

       .model  p {
            border-radius: 20px;
            width: 80%;
            /* margin: 8px 0; */
            font-size: 11px;
            padding: 16px;
            color: #000;
        }

        .model p {
                background-color: var(--grey);
            }

        div.user {
            display: flex;
            justify-content: flex-end;
}
    div.user p {
        background-color: #0a58ca;
        color: white;
        padding: 10px;
        border-radius: 8px;
        font-size: 11px;
        margin-bottom: 0;
    }
    
.chat .model ul, .chat .user ul,
.chat .model ol, .chat .user ol {
  padding-left: 1.25em;
  margin: 0.4em 0;
}
.chat .model li, .chat .user li {
  margin-bottom: 0.45em;
  /*line-height: 1.4;*/
  font-size: 14px;
}

.loading p {
  font-style: italic;
  color: #888;
}

.loading::after {
  content: " ";
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid #ccc;
  border-top: 2px solid #333;
  border-radius: 50%;
  margin-left: 6px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.error p {
        font-size: 14px;
        text-align: center;
        color: red;
    }

    .input-area {
        height: 120px;
        display: flex;
        position: relative;
        justify-content: center;
        align-items: center;
        padding: 0 8px;
        border-top: 1px solid lightgray;
}
.input-area input {
            height: 40px;
            flex: 1;
            border: none;
            background-color: var(--grey);
            border-radius: 20px;
            padding-left: 20px;
            font-size: 11px;
            margin-top: 2rem;
        }
.fa-question:before{
    color: #fff;
}
.model-answer ul li{
    font-size: 11px;
}
.model-answer p{
    font-size: 11px;
}
.model-answer p{
    font-size: 11px;
    background-color: #0a58ca !important;
    color: #fff !important;
    margin-bottom: 0;
}
.predefined-question{
    margin-top: 20px;
}
.chat .user, .chat .model{
    margin-top: 20px;
}
#send-btn {
            height: 40px;
            width: 40px;
            border-radius: 100%;
            border: none;
            margin-left: 12px;
            background-color: #0a58ca;
            color: white;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            margin-top: 2rem;
}
 button img {
    width: 18px;
}

 button img:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}


.faq{
    position: absolute;
    top:8%;
    left:4%;
    background-color: #0a58ca;
    border-radius: 50%;
    padding: 5px 9px;
    cursor: pointer;
}
.loader {
    width: 40px;
    opacity: 0.4;
    aspect-ratio: 4;
    background: radial-gradient(circle closest-side,#000 90%,#0000) 0/calc(100%/3) 100% space;
    clip-path: inset(0 100% 0 0);
    animation: l1 1.5s steps(4) infinite;
  }
  @keyframes l1 {to{clip-path: inset(0 -34% 0 0)}}

  .chat-window {
    display: none; /* Hide chat window initially */
    position: fixed;
    bottom: 10px;
    right: 20px;
    width: 300px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 84vh;
    z-index: 9999;
}
.faq path{
    fill: #fff;
}
#send-btn {
    margin-top: 2rem;
}
.model-answer ul li{
    color: #fff;
    font-size: 11px !important;
}
.predefined-question p{
    font-size: 11px;
}
@media only screen and (min-width: 2001px) and (max-width: 2399px) {
     .chat-button{
        width: 4.1%;
    }
    .chat-window{
        height: 85vh;
        width: 450px
    }
    .chat-window p {
        font-size: 22px;
        }
     .input-area input {
         font-size: 22px;
        }
        .chat-window .chat{
            height: 82vh;
            max-height: 600px;
        }
    }


@media only screen and (min-width: 1601px) and (max-width: 2000px) {
.chat-button{
    width: 5%;
}
.chat-window .chat{
    max-height: 400px;
}
.chat-button img {
    width: 85px;
}

.chat-window{
    height: 81vh;
    width: 450px
}
.chat-window p {
    font-size: 22px;
}

.input-area input {
     font-size: 22px;
}
.input-area{
    height: 150px;
}
.faq{
    padding: 8px 13px;
}
.fa-question:before{
    font-size: 22px;
}
.chat-window .chat{
    max-height: 670px;
}
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
  .chat-window {
    height: 44vh;
  }
  .chat-window .chat{
      max-height: 670px;
  }
}

@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1366px) 
  and (orientation: landscape) {
    
  .chat-window {
    height: 82vh; /* Adjust as needed for iPad Pro landscape */
  }
  }

@media only screen and (min-width: 1023px) and (max-width: 1199px) {
    .chat-button{
        width: 7.2%;
        z-index: 20;
    }
    .chat-window{
        bottom: 12px;
        height: 50vh;
    }
}
@media only screen and (min-width: 820px) and (max-width: 1023px) {
    .chat-button{
        width: 9%;
        z-index: 20;
    }
    .chat-window{
        bottom: 12px;
        height: 50vh;
    }
}

@media only screen and (min-width: 768px) and (max-width: 819px) {
.chat-window{
    bottom: 12px;
    height: 59vh;
    right: 0;
}
.chat-window .chat {
    height: 37vh;
}
.chat-button{
    z-index:20;
    width: 13%;
}
}

@media only screen and (max-width: 767px) {
/*.chat-button{*/
/*    width: 16%;*/
/*}*/
.chat-window{
    /*bottom: 151px;*/
    height: 62vh;
    bottom: 0;
    right: 0;
}
.chat-window .chat {
    height: 45vh;
}
.chat-button{
    z-index:1;
    width: 20%;
}
}

@media (min-width: 320px) and (max-width: 767px) {
.chat-button{
    z-index: 20;
    width: 20%;
}
}