:root {
    --chat-toggle-size: 75px;
    --mobile-chat-margin: 27px;
}

.chat-initial-toggle {
    position: fixed;
    right: 5%;
    bottom: 7%;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #01613F;
    opacity: 85%;
    border-radius: 100%;
    height: var(--chat-toggle-size);
    width: var(--chat-toggle-size);
}

.chat-initial-toggle:hover {
    cursor: pointer;
}

.chat-unopened {
    display: none !important;
}

.chat-wrapper {
    position: fixed;
    right: 20px;
    bottom: 0;

    box-shadow: -9px -9px 25px -5px rgba(0, 0, 0, 0.1);
    background-color: white;
    height: 450px;
    width: 350px;

    border-radius: 18px;
    overflow: hidden;
    z-index: 99;

    display: flex;
    flex-direction: column;
}

.chat-header {
    background-color: var(--clr-dark-blue);
    color: white;
    padding: 15px 15px;
    display: flex;
    align-items: center;
}

.chat-header:hover {
    cursor: pointer;
}

.chat-header-image-container {
    overflow: hidden;
    width: 32px;
    height: 32px;
    border-radius: 100%;
    margin-right: 10px;
}

.chat-header-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-header-title {
    margin-bottom: 0;
    font-size: 17px;
}

.chat-main {
    overflow: scroll;
    padding: 15px 20px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.chat-message-suggestions {
    margin-left: auto;
    display: flex;
    flex-direction: column;
}

.chat-message {
    padding: 10px 15px;
    border-radius: 12px;
    margin: 10px 0;
}

.chat-message-suggestion {
    margin-inline-start: 40px;
    border: 1px solid var(--clr-default-blue);
    color: var(--clr-default-blue);
}

.chat-message-suggestion:hover {
    cursor: pointer;
}

.chat-message-bot {
    background-color: var(--clr-white-blue);
    margin-inline-end: 40px;
}

.chat-message-user {
    border: 1px solid lightslategray;
    margin-inline-start: 40px;
}

.chat-compose-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    margin-top: 5px;
}

.chat-compose-message {
    height: 40px;
    resize: none;
    font-size: 15px;
    border: none;
    color: lightslategray;
}

.chat-compose-btn {
    background: none;
    border: none;
}

.chat-compose-btn i {
    color: lightslategray;
}

.chat-minimised {
    height: auto;
    border-radius: 18px 18px 0 0;
}

/*Apply only when chat minimised is applied to entire div */
.chat-minimised .chat-main{
    display: none;
}

.chat-minimised .chat-compose{
    display: none;
}

@media (max-width: 991px) {
    /*Having the chat on full width and swiping down to hide it and up to show it (after opening from help button)
    may be best UX-wise for mobile*/
    .chat-wrapper {
        right: var(--mobile-chat-margin);
        width: calc(100% - var(--mobile-chat-margin));
        height: 55%;
    }
}