:root {
    --grey: #f5f5f5;
    --blue: #3d88f9;
    --black: #1a1a1a;
}

.chat-open .chat-window {
        display: flex;
    }


.chat-button {
    position: fixed;
    bottom: 13px;
    right: 20px;
    z-index: 998;
    background-color: #000;
    color: white;
    width: 6%;
    padding: 10px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
}
.chat-button img {
    width: 100%;
    height:auto;
    aspect-ratio: 100/100;
}
    
.chat-button:hover {
    box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
}


.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: 16px;
            padding: 16px;
            color: #000;
        }

        .model p {
                background-color: var(--grey);
            }

        div.user {
            display: flex;
            justify-content: flex-end;
}
    div.user p {
        background-color: var(--blue);
        color: white;
    }

.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: 16px;
            margin-top: 2rem;
        }

#send-btn {
            height: 40px;
            width: 40px;
            border-radius: 100%;
            border: none;
            margin-left: 12px;
            background-color: var(--blue);
            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: #3d88f9;
    border-radius: 50%;
    padding: 4px 10px;
    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;
}
@media only screen and (min-width: 2001px) and (max-width: 2399px) {
     .chat-button{
        height: 140px;
        width: 140px;
    }
    .chat-button img {
            width: 85px;
        }
    .chat-window{
        height: 62vh;
        width: 450px
    }
    .chat-window p {
        font-size: 22px;
        }
     .input-area input {
         font-size: 22px;
        }
    }


@media only screen and (min-width: 1601px) and (max-width: 2000px) {
    /*.chat-button{*/
    /*    height: 120px;*/
    /*    width: 120px;*/
    /*}*/
    .chat-button{
        width: 5%;
    }

.chat-button img {
        width: 85px;
    }

.chat-window{
    height: 75vh;
    width: 450px
}
.chat-window p {
    font-size: 22px;
    }

.input-area input {
     font-size: 22px;
    }
}

@media screen and (max-width: 1024px) and (orientation: portrait) {
  .chat-window {
    height: 44vh;
  }
}

@media only screen 
  and (min-device-width: 1024px) 
  and (max-device-width: 1366px) 
  and (orientation: landscape) {
    
  .chat-window {
    height: 84vh; /* Adjust as needed for iPad Pro landscape */
  }
  }

@media only screen and (min-width: 821px) and (max-width: 1199px) {
    .chat-button{
        width: 8%;
    }
}

@media only screen and (min-width: 768px) and (max-width: 820px) {
.chat-window{
    bottom: 12px;
    height: 50vh;
}
.chat-window .chat {
    height: 65vh;
}
.chat-button{
    z-index:1;
    width: 13%;
}
}

@media only screen and (max-width: 767px) {
/*.chat-button{*/
/*    width: 16%;*/
/*}*/
.chat-window{
    /*bottom: 151px;*/
    height: 62vh;
}
.chat-window .chat {
    height: 45vh;
}
.chat-button{
    z-index:1;
    width: 20%;
}
}

@media (min-width: 320px) and (max-width: 767px) {
.chat-button{
    z-index:1;
    width: 20%;
}
}