#chatbot {
    font-family: Red hat Display, sans-serif;
    font-weight: 400;
    line-height: 1.25em;
    letter-spacing: 0.025em;
    color: #333;
    background: #f7f7f7;
}

#chatbot .right-bottom {
    position: fixed;
    bottom: 0;
    right: 20px;
}

#chatbot .pic {
    width: 5rem;
    height: 5rem;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

#chatbot .contact {
    position: relative;
    margin-bottom: 1rem;
    padding-left: 6rem;
    height: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#chatbot .contact .pic {
    position: absolute;
    left: 0;
}
#chatbot .contact .maximize-bar {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#chatbot .contact .minimize-bar {
    color: white;
    text-align: center;
    font-size: 1.2em;
    font-weight: bold;
}
#chatbot .contact .name {
    font-weight: 500;
    margin-bottom: 0.125rem;
    font-size: 1.2em;
    color: white;
}
#chatbot .contact .message,
#chatbot .contact .seen {
    font-size: 1rem;
    color: white;
}
#chatbot .contact #minimize {
    position: absolute;
    right: 3rem;
    width: 2rem;
    cursor: pointer;
}
#chatbot .contact #close {
    position: absolute;
    right: 0;
    width: 2rem;
    cursor: pointer;
}
#chatbot .contact .badge {
    box-sizing: border-box;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    padding-top: 0.125rem;
    border-radius: 1rem;
    top: 0;
    left: 2.5rem;
    background: #333;
    color: white;
}

#chatbot .contacts {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(-6rem, -50%);
    width: 24rem;
    height: 32rem;
    padding: 1rem 2rem 1rem 1rem;
    box-sizing: border-box;
    border-radius: 1rem 0 0 1rem;
    cursor: pointer;
    background: white;
    box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 2rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
    transition: transform 500ms;
}
#chatbot .contacts h2 {
    margin: 0.5rem 0 1.5rem 5rem;
}
#chatbot .contacts .fa-bars {
    position: absolute;
    left: 2.25rem;
    color: #999;
    transition: color 200ms;
}
#chatbot .contacts .fa-bars:hover {
    color: #666;
}
#chatbot .contacts .contact:last-child {
    margin: 0;
}
#chatbot .contacts:hover {
    transform: translate(-23rem, -50%);
}

#chatbot .chat {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 40rem;
    height: 55rem;
    z-index: 2;
    box-sizing: border-box;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 8rem 0 rgba(0, 0, 0, 0.1), 0rem 2rem 4rem -3rem rgba(0, 0, 0, 0.5);
    background-color: #24368c;
    color: white;
    transition: all 1s 0s ease-in-out;
}
#chatbot .chat.minimize {
    height: 6rem;
    width: 28rem;
    transition: all 1s 0s ease-in-out;
    cursor: pointer;
}

#chatbot .chat .contact.bar {
    flex-basis: 3.5rem;
    flex-shrink: 0;
    margin: 1.5rem;
    box-sizing: border-box;
    text-align: left;
}
#chatbot .chat .messages {
    padding: 1rem;
    background: #daeeff;
    flex-shrink: 2;
    overflow-y: auto;
    box-shadow: inset 0 2rem 2rem -2rem rgba(0, 0, 0, 0.05), inset 0 -2rem 2rem -2rem rgba(0, 0, 0, 0.05);
    min-height: 41rem;
}
#chatbot .chat .messages .time {
    font-size: 0.8rem;
    background: #eee;
    padding: 0.25rem 1rem;
    border-radius: 2rem;
    color: #999;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    margin: 0 auto;
}
#chatbot .chat .messages .message {
    box-sizing: border-box;
    padding: 1.5rem;
    margin: 1rem;
    background: #fff;
    color: #333;
    line-height: 1.5em;
    text-align: left;
    font-size: 1.5rem;
    border-radius: 0 1.125rem 1.125rem 1.125rem;
    min-height: 2.25rem;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    max-width: 66%;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.075), 0rem 1rem 1rem -1rem rgba(0, 0, 0, 0.1);
}
#chatbot .chat .messages .message a {
    color: #172A87;
}
#chatbot .chat .messages .message.assistant {
    margin: 1rem auto 2rem 6rem;
}
#chatbot .chat .messages .message.user {
    margin: 1rem 1rem 2rem auto;
    border-radius: 1.125rem 0 1.125rem 1.125rem;
    background: #3a4a97;
    color: white;
}
#chatbot .chat .messages .message .typing {
    display: inline-block;
    width: 0.8rem;
    height: 0.8rem;
    margin-right: 0rem;
    box-sizing: border-box;
    background: #ccc;
    border-radius: 50%;
}
#chatbot .chat .messages .message .typing.typing-1 {
    -webkit-animation: typing 3s infinite;
    animation: typing 3s infinite;
}
#chatbot .chat .messages .message .typing.typing-2 {
    -webkit-animation: typing 3s 250ms infinite;
    animation: typing 3s 250ms infinite;
}
#chatbot .chat .messages .message .typing.typing-3 {
    -webkit-animation: typing 3s 500ms infinite;
    animation: typing 3s 500ms infinite;
}
#chatbot .chat .input {
    box-sizing: border-box;
    flex-basis: 7rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 0 0.5rem 0 1.5rem;
    background: #f2f9ff;
}
#chatbot .chat .input i {
    font-size: 1.5rem;
    margin-right: 1rem;
    color: #666;
    cursor: pointer;
    transition: color 200ms;
}
#chatbot .chat .input i:hover {
    color: #333;
}
#chatbot .chat .input input {
    background-color: white;
    margin-right: 1rem;
    border-radius: 1.125rem;
    flex-grow: 2;
    border: solid 1px lightgrey;
    font-family: Red hat Display, sans-serif;
    font-weight: 400;
    letter-spacing: 0.025em;
    padding: 1rem 1.5rem!important;
    color: #333;
    font-size: 1.3rem;
    position: relative;
}
#chatbot .chat .input input:disabled, .chat .input img:disabled {
    background-color: lightgray;
    opacity: 0.5;
}
#chatbot .chat .input #send {
    position: absolute;
    width: 2.5rem;
    right: 20px;
    cursor: pointer;
}

#chatbot .chat .input input::placeholder {
    color: darkgray;
}

@-webkit-keyframes typing {
    0%, 75%, 100% {
        transform: translate(0, 0.25rem) scale(0.9);
        opacity: 0.5;
    }
    25% {
        transform: translate(0, -0.25rem) scale(1);
        opacity: 1;
    }
}

@keyframes typing {
    0%, 75%, 100% {
        transform: translate(0, 0.25rem) scale(0.9);
        opacity: 0.5;
    }
    25% {
        transform: translate(0, -0.25rem) scale(1);
        opacity: 1;
    }
}
#chatbot .pic.icon {
    background-image: url("../img/common/icon.png");
}

#chatbot .pic.icon_chat {
    background-image: url("../img/common/icon_chat.png");
    float:left;
}
#chatbot .hide{
    display: none !important;
}

@media (max-width: 768px) {
    #chatbot .chat {
        width: 100%;
        transition: none;
    }
    #chatbot .chat.minimize {
        transition: none;
    }
    #chatbot .chat .messages .message {
        font-size: 2rem;
    }
    #chatbot .chat .input input {
        font-size: 16px;
    }
    #chatbot .right-bottom {
        right: 0;
    }
}