body {
    font-family: Arial, sans-serif;
}

.chat-widget {
    position: fixed;
    bottom: 6.5rem;
    right: 2rem;
    width: 90%;
    height: 100%;
    max-width: 30vw;
    max-height: 80vh;
    border-radius: 0.625rem;
    /* 10px */
    box-shadow: 0 0 0.525rem rgba(0, 0, 0, 0.2);
    overflow: hidden;
    flex-direction: column;
    background-color: white;
    opacity: 0;
    /* transform: translateX(100%); */
    visibility: hidden;
    /* transition: opacity 0.1s ease, transform 0.1s ease; */
    transition: opacity 0.2s ease, visibility 0s 0.3s;
    display: flex;
    z-index: 1001;
}

.chat-widget.open {
    transition: opacity 0.2s ease, visibility 0s 0s;
    visibility: visible;
    opacity: 1;
    display: flex;
    /* transform: translateX(0); */
}

.chat-header {
    background-color: #ffffff;
    color: #0078ff;
    padding: 0.5rem;
    display: inline;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1.125rem;
    z-index: 2;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, .1);
}

.chat-header img {
    height: 8vh;
    width: 11vh;
}

.chat-header span {
    vertical-align: super;
}

.chat-body {
    flex: 1;
    padding: 1.25rem;
    /* 20px */
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    background-color: #f0f0f0;
}

.chat-footer {
    display: flex;
    padding: 0.625rem;
    /* 10px */
    border-top: 1px solid #ccc;
    background-color: white;
    border: none;
    /* box-shadow: -1px -1px 1rem rgba(0, 0, 0, .1); */
}

.chat-footer textarea {
    flex: 1;
    padding: 0.625rem;
    /* 10px */
    border: none;
    outline: none;
    height: 1.25rem;
    /* 20px */
    overflow: hidden;
    resize: none;
    border-radius: 1rem;
}

.chat-footer button {
    padding: 0.625rem 0.9375rem;
    /* 10px 15px */
    background-color: transparent;
    color: #0078ff;
    border: none;
    cursor: pointer;
}

.message {
    font-size: 0.9rem;
    margin: 0px 0px 0.9375rem 0px;
    /* 0px 0px 15px 0px */
    padding: 0.625rem;
    /* 10px */
    border-radius: 1rem;
    /* 20px */
    max-width: 80%;
    word-wrap: break-word;
    /* transform: translateY(1.25rem); 20px */
    box-shadow: 0 2px 3px rgba(0, 0, 0, .1);
}

.message.user {
    align-self: flex-end;
    background-color: #0078ff;
    color: white;
}

.message.bot {
    align-self: flex-start;
    background-color: #e0e0e0;
    color: black;
}

.message.blurred {
    filter: blur(0);
    opacity: 0.6;
}

.error-label {
    border: none;
    background: none !important;
    color: red !important;
    padding: 0px 0px 0px 0px;
    font-size: 0.75rem;
    /* 12px */
    margin: -0.3125rem 0px 0.3125rem 0px;
    /* -5px 0px 5px 0px */
}

.quick-question {
    text-decoration: none;
    color: #0061cf;
}

#chatButton {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.75rem;
    /* 60px */
    height: 3.75rem;
    /* 60px */
    background-color: #0078ff;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0;
    /* 24px */
    box-shadow: 0 0 0.625rem rgba(0, 0, 0, 0.1);
    /* 10px */
    z-index: 1000;
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#chatButton.show {
    opacity: 1;
    transform: scale(1);
}

.open-icon {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
}

.open-icon.show {
    opacity: 1;
    display: flex;
    transform: scale(1);
}

.close-icon {
    opacity: 0;
    transform: scale(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
    position: absolute;
}

.close-icon.show {
    opacity: 1;
    display: flex;
    transform: scale(1);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-indicator {
    display: flex;
    align-items: center;
    font-size: 1.125rem;
    /* 18px */
    font-weight: bold;
}

.dot {
    width: 0.5rem;
    /* 8px */
    height: 0.5rem;
    /* 8px */
    margin: 0px 0.125rem;
    /* 0px 2px */
    background-color: black;
    border-radius: 50%;
    animation: blink 1.5s infinite ease-in-out;
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

.suggestive-prompts {
    padding: 1.25rem 1.25rem 0px 1.25rem;
    /* 20px 20px 0px 20px */
}

a.suggestive-prompt {
    border: none;
    border-radius: 1.25rem;
    /* 20px */
    background: #b7f5b7;
    margin: 0.3125rem;
    /* 5px */
    padding: 0.5rem;
    /* 8px */
    font-size: 0.9375rem;
    /* 15px */
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

/* Mobile */
@media (max-width: 767px)  {
    .chat-header {
        padding: 0.4rem;
    }

    .chat-header img {
        height: 6vh;
        width: 14vw;
    }

    .chat-widget {
        max-width: 86vw;
        height: 80%;
        max-height: 80vh;
        bottom: 6rem;
        right: 7%;
    }

    .chat-footer {
        padding: 0;
    }

    .chat-footer textarea {
        flex: 1;
        padding: 1.5rem 1.5rem;
        /* margin: 0.5rem; */
        border: none;
        max-height: 3rem;
        /* margin-right: 0.625rem; */
        /* margin-left: 0.625rem; */
        outline: none;
        height: 1rem;
        font-size: 0.9rem;
        overflow: hidden;
        resize: none;
        border-radius: 1rem;
    }

    .chat-footer button {
        padding: 0.625rem 1rem;
        cursor: pointer;
        font-size: 1.5rem;
    }

    #chatButton {
        bottom: 3%;
        right: 6%;
    
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
    .chat-header {
        padding: 0.3em;
    }

    .chat-header img {
        height: 7vh;
        width: 12vw;
    }

    .chat-widget {
        max-width: 70vw;
        height: 80%;
        max-height: 75vh;
        bottom: 6rem;
        right: 3%;
    }

    .chat-footer textarea {
        padding: 0.625rem;
        /* 10px */
        font-size: 1rem;
    }

    .chat-footer button {
        padding: 0.625rem 0.9375rem;
        /* 10px 15px */
        font-size: 1rem;
    }

    #chatButton {
        bottom: 2%;
        right: 3%;
    }
}

::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Desktop */
@media (min-width: 1200px) {}