﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.chatbot-toggler {
    position: fixed;
    bottom: 30px;
    right: 35px;
    outline: none;
    border: none;
    height: 50px;
    width: 50px;
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--lightActionLink);
    transition: all 0.2s ease;
    z-index: 9999;
}

body.show-chatbot .chatbot-toggler {
    transform: rotate(90deg);
}

.chatbot-toggler span {
    color: #fff;
    position: absolute;
}

    .chatbot-toggler span:last-child,
    body.show-chatbot .chatbot-toggler span:first-child {
        opacity: 0;
    }

body.show-chatbot .chatbot-toggler span:last-child {
    opacity: 1;
}

.chatbot {
    position: fixed;
    right: 35px;
    bottom: 90px;
    width: 420px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.5);
    transform-origin: bottom right;
    box-shadow: 0 0 128px 0 rgba(0,0,0,0.1), 0 32px 64px -48px rgba(0,0,0,0.5);
    transition: all 0.1s ease;
    z-index: 9999;
}

body.show-chatbot .chatbot {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.chatbot header {
    padding: 16px 0;
    position: relative;
    text-align: center;
    color: #fff;
    background: var(--lightActionLink);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot .chatbox {
    overflow-y: auto;
    max-height: 550px;
    padding: 30px 20px 100px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar {
    width: 6px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-track {
    background: #fff;
    border-radius: 25px;
}

.chatbot :where(.chatbox, textarea)::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 25px;
}

.chatbox {
    display:flex;
    flex-direction:column-reverse;

}

.chatbox .chat {
    display: flex;
    list-style: none;
    margin: 10px 0;
}

.chatbox .outgoing {
    margin: 20px 0;
    justify-content: flex-end;
}

.chatbox .incoming span {
    width: 32px;
    height: 32px;
    color: #fff;
    cursor: default;
    text-align: center;
    line-height: 32px;
    align-self: flex-end;
    background: var(--lightActionLink);
    border-radius: 4px;
    margin: 0 10px 7px 0;
}

.chatbox .chat message {
    padding: 12px 16px;
    border-radius: 10px 10px 0 10px;
    max-width: 75%;
    color: #fff;
    font-size: 0.95rem;
    background: var(--lightActionLink);
}

.chatbox .incoming message {
    border-radius: 10px 10px 10px 0;
}

.chatbox .chat p.error {
    color: #721c24;
    background: #f8d7da;
}

.chatbox .incoming message {
    color: #000;
    background: #f2f2f2;
}

.chatbot .chat-input {
    display: flex;
    gap: 5px;
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #fff;
    padding: 3px 20px;
    border-top: 1px solid #ddd;
}

.chat-input textarea {
    height: 55px;
    width: 100%;
    border: none;
    outline: none;
    resize: none;
    max-height: 180px;
    padding: 15px 15px 15px 0;
    font-size: 0.95rem;
}

.cLogo {
    height: 48px !important;
    width: 48px !important;
}

.chat-input span {
    align-self: flex-end;
    color: var(--lightActionLink);
    cursor: pointer;
    height: 55px;
    display: flex;
    align-items: center;
    visibility: hidden;
    font-size: 1.35rem;
}

.chat-input textarea:valid ~ span {
    visibility: visible;
}

@media (max-width: 490px) {
    .chatbot-toggler {
        right: 20px;
        bottom: 20px;
    }

    .chatbot {
        right: 0;
        bottom: 0;
        height: 100%;
        border-radius: 0;
        width: 100%;
    }

        .chatbot .chatbox {
            height: 90%;
            padding: 25px 15px 100px;
        }

        .chatbot .chat-input {
            padding: 5px 15px;
        }
}

button {
    color: white;
    font-size: 20px;
}

.chatbox .card {
    margin: 5px;
    padding: 10px;
    border-radius: 10px;
    justify-content: center;
    background-color: #E8F5E9;
    cursor: pointer;
}

#form-btn {
    margin-top: 100px;
}

.chatLogo {
    height: 48px !important;
    width: 48px !important;
}

ol {
    margin-top: 10px;
    margin-bottom: 20px !important;
}

    ol li {
        margin-bottom: 5px;
    }

/* Tweak to change the look and feel */
:root {
    --dropdown-highlight: dodgerblue;
    --dropdown-width: 150px;
    --dropdown-background: white;
    --dropdown-color: black;
}

/* Dropdown styles */
.dropdown {
    position: relative;
    padding: 0;
    margin-right: 1em;
    border: none;
}

    .dropdown summary {
        list-style: none;
        list-style-type: none;
    }

    .dropdown > summary::-webkit-details-marker {
        display: none;
    }

    .dropdown summary:focus {
        outline: none;
    }

    .dropdown summary:focus {
        outline: none;
    }

    .dropdown ul {
        position: absolute;
        margin: 10px 0 0 0;
        padding: 20px 0;
        width: var(--dropdown-width);
        left: 50%;
        margin-left: calc((var(--dropdown-width) * -0.9));
        box-sizing: border-box;
        z-index: 2;
        background: var(--dropdown-background);
        border-radius: 6px;
        list-style: none;
    }

        .dropdown ul li {
            padding: 0;
            margin: 0;
        }

            .dropdown ul li a:link, .dropdown ul li a:visited {
                display: inline-block;
                padding: 10px 0.8rem;
                width: 100%;
                box-sizing: border-box;
                color: var(--dropdown-color);
                text-decoration: none;
            }

            .dropdown ul li a:hover {
                background-color: var(--dropdown-highlight);
                color: var(--dropdown-background);
            }

        /* Dropdown triangle */
        .dropdown ul::before {
            content: ' ';
            position: absolute;
            width: 0;
            height: 0;
            top: -10px;
            left: 50%;
            margin-left: 40px;
            border-style: solid;
            border-width: 0 10px 10px 10px;
            border-color: transparent transparent var(--dropdown-background) transparent;
        }

    /* Close the dropdown with outside clicks */
    .dropdown > summary::before {
        display: none;
    }

    .dropdown[open] > summary::before {
        content: ' ';
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        bottom: 0;
        z-index: 1;
    }

.container {
    display: flex;
    align-items: center;
}

.disabled {
    pointer-events: none;
}

.chatbox .incoming .like-dislike {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
}

.chatbox .incoming .like-dislike i {
    cursor: pointer;
    margin-left: 5px;
}

.chatbox .incoming message p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.chatbox .outgoing message p {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.likeDislikeDefault {
    color: lightgray;
}

.liked {
    color: var(--lightActionLink);
}

.disliked {
    color: #800000;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.suggestion-area {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.k-checkbox {
    border-color: #800000;
}

.checkbox-container label {
    margin-left: 0.5rem;
}

