.dummy {
    position: absolute;
    z-index: -1000;
    height: 0px;
    width: 0px;
    overflow: hidden;
    visibility: hidden !important;
}

.chat-bot-btn {
    font-family: Arial, Helvetica, sans-serif;
    position: fixed;
    bottom: 20px;
    right: 70px; 
    color: white;
    padding-top: 0.8rem;
    padding-right: 1rem;
    padding-bottom: 0.8rem;
    padding-left: 1rem;
    font-size: 16px;
    border-radius: 50px;
    cursor: pointer;
    transition-behavior: normal;
    transition-duration: 0.2s;
    transition-timing-function: ease-in-out;
    transition-delay: 0s;
    transition-property: transform;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 10px;
    z-index: 1000;
    border: 0px;
}

.chat-bot-btn:hover {
    transform: scale(1.05);
    border: 0px;
}

.chat-container {
    font-family: Arial, Helvetica, sans-serif;
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    background-color: white;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(204, 204, 204);
    border-radius: 10px;
    overflow-x: hidden;
    overflow-y: hidden; 
    box-shadow: rgba(88, 88, 88, 0.1) 0px 4px 20px;
    z-index: 9999999;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center; 
    color: white;
    padding-top: 0.8rem;
    padding-right: 1rem;
    padding-bottom: 0.8rem;
    padding-left: 1rem;
    font-weight: bold;
    font-size: 1rem;
    z-index: 10;
}

.chat-header button {
    background-image: none;
    border-style: none;
    font-size: 1rem;
    cursor: pointer;
    transition-behavior: normal;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    transition-delay: 0s;
    transition-property: transform;
}

.chat-header button:hover {
    transform: scale(1.1);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    row-gap: 0.7rem;
    column-gap: 0.7rem;
    padding: 1rem;
    overflow-y: auto;
    flex-grow: 1;
    scroll-behavior: smooth;
}

.message {
    border-radius: 12px;
    overflow-wrap: break-word;
    position: relative;
    max-width: 90%;
    padding-top: 0.6rem;
    padding-right: 1rem;
    padding-bottom: 0.6rem;
    padding-left: 1rem;
    animation-duration: 0.3s;
    animation-timing-function: ease-in-out;
    animation-delay: 0s;
    animation-iteration-count: 1;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
    animation-name: fadeIn;
    animation-timeline: auto;
    animation-range-start: normal;
    animation-range-end: normal;
}

.user {
    align-self: flex-end;
    text-align: right; 
    color: white;
    border-bottom-right-radius: 1px;
}

.bot {
    align-self: flex-start;
    text-align: left;
    background-color: rgb(241, 241, 241);
    border-bottom-left-radius: 1px;
}

.options {
    display: flex;
    flex-direction: column;
    padding: 0px;
    overflow-x: auto;
    white-space-collapse: collapse;
    text-wrap-mode: nowrap;
    scroll-behavior: smooth;
    max-width: 100vw;
    cursor: grab;
    scrollbar-width: none;
}

.options::-webkit-scrollbar {
    display: none;
}

.option-btn {
    border: 1px;
    border-style: solid;
    border-radius: 12px;
    padding-top: 0.5rem;
    padding-right: 1rem;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
    display: inline-block;
    margin: 0.3rem;
    flex-shrink: 0;
    font-size: 1rem;
    cursor: pointer;
    text-align: center;
    text-wrap: auto;
    background-color: white;
}

.option-btn:hover {
    background-color: rgba(0, 123, 255, 0.1);
}


.message-content p {
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0.4rem;
    margin-left: 0px;
}

.timestamp {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-top: 0.2rem;
}

.user .timestamp {
    color: rgb(255, 255, 255);
}

.bot .timestamp {
    color: rgba(0, 0, 0, 0.6);
}

.loading-dots {
    display: flex;
    height: 1.2rem;
    min-width: 3rem;
    align-items: center;
}

.loading-dots span {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin-right: 4px;
    background-color: rgb(119, 119, 119);
    border-radius: 50%;
    animation-duration: 1.5s;
    animation-timing-function: ease;
    animation-delay: 0s;
    animation-iteration-count: infinite;
    animation-direction: normal;
    animation-fill-mode: none;
    animation-play-state: running;
    animation-name: dotPulse;
    animation-timeline: auto;
    animation-range-start: normal;
    animation-range-end: normal;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
    margin-right: 0px;
}

.chat-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    background-color: rgb(248, 248, 248);
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: rgb(234, 234, 234);
}

.chat-input input {
    flex-grow: 1;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(221, 221, 221);
    border-radius: 20px;
    padding-top: 0.8rem;
    padding-right: 1.2rem;
    padding-bottom: 0.8rem;
    padding-left: 1.2rem;
    font-size: 0.9rem;
    margin-right: 0.5rem;
    transition-behavior: normal;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    transition-delay: 0s;
    transition-property: border-color;
}

.chat-input button { 
    border-radius: 50%;
    color: white;
    border: none;
    width: 47px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition-behavior: normal;
    transition-duration: 0.2s;
    transition-timing-function: ease;
    transition-delay: 0s;
    transition-property: background;
}


.chat-input button svg {
    width: 18px;
    height: 18px;
}

#chatContainer {
    display: none;
}

@keyframes fadeIn {
     0% {
         opacity: 0;
         transform: translateY(10px);
     }

     100% {
         opacity: 1;
         transform: translateY(0px);
     }
 }

@keyframes dotPulse {

     0%,
     100% {
         transform: scale(1);
         opacity: 1;
     }

     50% {
         transform: scale(1.5);
         opacity: 0.7;
     }
 }

@media (max-width: 720px) {
    .chat-container {
        right: 0px;
        bottom: -1px;
        width: 100% !important;
        height: 90% !important;
    }
}