/* ----- Chatbot css ----- */
#chatbot {
    height: 530px;
    width: 370px;
    max-width: 95%;
    max-height: 95%;
    position: fixed;
    z-index: 10001;
    bottom: 12px;
    right: 12px;
    display: none;
    animation: .5s upBot;
    -webkit-animation: .5s upBot;
    -moz-animation: .5s upBot;
    -o-animation: .5s upBot;
    -ms-animation: .5s upBot;
}

#close-chatbot,
#hide-chatbot {
    position: absolute;
    width: 20px;
    height: 20px;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    border-radius: 100%;
    cursor: pointer;
    z-index: 1;
}

#chatbot-tab{
    animation: .2s ;
    -webkit-animation: .2s upBotButton;
    -moz-animation: .2s upBotButton;
    -o-animation: .2s upBotButton;
    -ms-animation: .2s upBotButton;
}

#hide-chatbot{
    top: 0;
    right: -10px;
    color: #fff;
    border-width: 1px;
    line-height: 19px;
}

#chatbot-tab{
    bottom: 0;
    right: 77px;
    position: fixed;
    width: 70px;
    height: 25px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

#close-chatbot {
    top: 4px;
    right: 4px;
    border: thin solid #c55e5e;
    color: #c55e5e;
    background: #ffffff;
    line-height: 16px;
}

#chatbot iframe {
    height: 100%;
    width: 100%;
    border: solid;
    border-width: thin;
    float: left;
    position: relative;
}

#chatbot-button {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 10000;
}

#chatbot-button.hidden{
    animation: .5s ;
    -webkit-animation: .5s lowerBotButton;
    -moz-animation: .5s lowerBotButton;
    -o-animation: .5s lowerBotButton;
    -ms-animation: .5s lowerBotButton;
}

#chatbot-button.displayed{
    animation: .5s ;
    -webkit-animation: .5s upBotButton;
    -moz-animation: .5s upBotButton;
    -o-animation: .5s upBotButton;
    -ms-animation: .5s upBotButton;
}

#chatbot-alert,
#chatbot-avatar,
#chatbot-button {
    display: none;
}

#chatbot-avatar.visible,
#chatbot-button.visible {
    display: block;
}

#chatbot-avatar {
    width: 55px;
    height: 55px;
    overflow: hidden;
    border-radius: 55px;
    border-width: 3px;
    border-style: solid;
    animation: .5s zoomIn;
    -webkit-animation: .5s zoomIn;
    -moz-animation: .5s zoomIn;
    -o-animation: .5s zoomIn;
    -ms-animation: .5s zoomIn;
    box-shadow: 1px 1px 3px -1px #a1a1a1;
    cursor: pointer;
}

#chatbot-avatar:hover {
    box-shadow: 1px 1px 8px -1px #afafaf;
}

#chatbot-button img {
    width: 100%;
}

#chatbot-alert {
    z-index: -1;
    animation: 1s zsiqcntanim;
    -webkit-animation: 1s zsiqcntanim;
    -moz-animation: 1s zsiqcntanim;
    -o-animation: 1s zsiqcntanim;
    -ms-animation: 1s zsiqcntanim;
    transform-origin: 100% 100%;
    -webkit-transform-origin: 100% 100%;
    -moz-transform-origin: 100% 100%;
    -o-transform-origin: 100% 100%;
    -ms-transform-origin: 100% 100%;
    transform: scaleX(1);
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -o-transform: scaleX(1);
    -ms-transform: scaleX(1);
    position: absolute;
    left: -215px;
    overflow: visible;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 200px;
    box-shadow: 1px 1px 10px -1px #aaa;
    border-radius: 5px;
    padding: 10px 15px;
    height: 60px;
    color: #333;
    line-height: 20px;
    background-color: #fff;
    flex-direction: column;
    justify-content: center;
    min-width: 200px;
    border: thin solid #bfbfbf;
    cursor: pointer;
}

#chatbot-alert::after {
    display: inline-block;
    content: '';
    position: absolute;
    background-color: #fff;
    height: 10px;
    width: 10px;
    transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    -webkit-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    top: 0;
    bottom: 0;
    margin: auto;
    right: -5px;
    border-radius: 0 3px 0 0;
    box-shadow: 1px -1px 4px 0 #eee;
}

#chatbot-alert.visible {
    display: flex;
    display: -ms-flexbox;
}

#chatbot-alert:hover {
    box-shadow: 1px 1px 10px -1px #8f8f8f;
    border-color: #bfbfbf;
}

#chatbot-alert p {
    margin-bottom: 2px;
    font-size: 12px;
}

@keyframes zsiqcntanim {

    0%,
    60% {
        margin-left: 20px;
        opacity: 0;
    }

    100% {
        margin-left: 0;
        opacity: 1;
    }
}

@keyframes upBot {
    0% {
        bottom: -542px;
        opacity: 0;
    }

    100% {
        bottom: 12px;
        opacity: 1;
    }
}

@keyframes lowerBotButton {
    0% {
        bottom: 12px;
    }

    100% {
        bottom: -50px;
    }
}

@keyframes upBotButton {
    0% {
        bottom: -50px;
    }

    100% {
        bottom: 12px;
    }
}

@keyframes hideBot {
    0% {
        bottom: 12px;
        opacity: 1;
    }

    100% {
        bottom: -542px;
        opacity: 0;
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(.4);
    }

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

.text-color-inherit {
    color: inherit;
}

.post-text {
    height: 100px;
    word-break: break-word;
    overflow: hidden;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-text {
    width: 100%;
    position: absolute;
    left: 0;
    bottom: 0;
}

.text-justified {
    text-align: justify;
}

.h5-text{
    margin: 16px 0 8px 0;
    padding: 0;
    font-size: 19px;
    font-weight: 600;
}

@media (max-width: 767px) {
    #chatbot {
        bottom: 2.5%;
        right: 2.5%;
    }
}
