#chat-form input[type='text'] {
    width: 295px;
    max-width: 99%;
}

.chat-widget-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    font-size: 0.8em;
     z-index: 999999999;
    background: #539bff;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    height: 30px;
    padding-top: 4px;
    padding-right: 8px;
    width: 331px;
    /* margin-bottom: 3px; */
    color: #fff;
}


.chat-widget-toolbar a:hover {
    opacity: 1.0;
}

.chat-widget-normal, .chat-widget-minimized, .chat-widget-maximized {
    position: fixed;
    bottom: 0;
    right: 30px;
    padding: 2px;
    border: 0px solid #888;
}

.chat-widget-normal, .chat-widget-maximized {
    background: white;
    box-shadow: 3px 0 5px 0 rgba(173,173,173, 0.8);
}

.chat-widget-minimized {
    width: 331px;
    height: 41px;
    background: #539bff;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border: 0;
    padding: 5px;
    padding-top: 10px;
    padding-left: 12px;
}

.chat-widget-minimized a {
    text-decoration: none;
    color: #fff;
    font-size: 14px;
    /* padding-left: 3px; */
    z-index: 99999999999;
    position: relative;
    /* padding-top: 5px; */
}

.chat-widget-minimized a .fa {
    color: #fff;
    opacity: 100%;
    padding-right: 0;
    width: auto;
    padding: 10px;
}

.chat-widget-minimized a:hover {
    color: #fff;
}

.chat-widget-normal {
    width: 331px;
    height: 321px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    padding-left: 10px;
}

.chat-widget-maximized {
    width: 800px;
    height: 450px;
}

.chat-widget-mentioned {
    -webkit-animation: backgroundBlink 1s linear infinite;
    -moz-animation: backgroundBlink 1s linear infinite;
    animation: backgroundBlink 1s linear infinite;
}

#chat-form input.chat-input-mentioned {
    -webkit-animation: borderBlink 1s linear infinite;
    -moz-animation: borderBlink 1s linear infinite;
    animation: borderBlink 1s linear infinite;
}

#chat-widget-messages-container {
    min-height: 274px;
    position: relative;
}

.chat-widget-maximized #chat-widget-messages-container {
    min-height: 420px;
}

.chat-messages {
    -ms-overflow-style: none;
    overflow-y: scroll;
    position: absolute;
    width: 99%;
    bottom: 0;
    left: 0;
}

.chat-widget-normal .chat-messages {
    max-height: 246px;
}

.chat-widget-maximized .chat-messages {
    max-height: 415px;
}

.chat-widget-maximized #chat-form input[type='text'] {
    width: 795px;
}

.chat-message {
    margin-bottom: 5px;
}

.chat-message.unread {
    -moz-animation: fadeIt 5s ease-in-out;
    -webkit-animation: fadeIt 5s ease-in-out;
    animation: fadeIt 5s ease-in-out;
}

.chat-message-body {
    font-size: 0.9em;
}

.chat-message-info {
    color: #aaa;
    font-size: 0.7em;
    font-weight: 300;
    margin-left: 30px;
    clear: both;
}

@keyframes fadeIt {
    0%   { background-color: #FFFFFF; }
    50%  { background-color: #ffeb8e; }
    100% { background-color: #FFF8DC; }
}

@keyframes backgroundBlink {
    0% { background-color: #efefef; }
    50% { background-color: #ffeb8e; }
    100% { background-color: #FFF8DC; }
}

@keyframes borderBlink {
    0% { border-color: #ccc; }
    50% { border-color: #000; }
}


@media (max-device-width: 667px){
.chat-widget-normal, .chat-widget-maximized {
    width: 98%;
    /* height: 300px; */
}

    .chat-widget-normal, .chat-widget-minimized, .chat-widget-maximized {
        right: 1%;
        border-left: 1px solid #539bff;
        border-right: 1px solid #539bff;
        z-index: 99999999;
    }


    .chat-widget-maximized #chat-widget-messages-container {
        min-height: 270px;
    }


    .chat-widget-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    text-align: right;
    font-size: 0.8em;
    z-index: 999;
    background: #539bff;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    height: 30px;
    padding-top: 4px;
    padding-right: 8px;
    width: 100%;
    /* margin-bottom: 3px; */
    color: #fff;
}


.chat-widget-minimized {
    width: 98%;
    height: 41px;
    background: #539bff;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    border: 0;
    padding: 5px;
    padding-top: 10px;
    padding-left: 12px;
}

    .chat-widget-maximized .chat-messages {
        max-height: 265px;
    }

#chat-form input[type='text'] {
    width: 311px;
    max-width: 99%;
    height: 33px;
    margin-top: 5px;
    margin-bottom: 6px;
}


#chat-form input[type='text'] {
    width: 98%;
    max-width: 98%;
    height: 33px;
    margin-top: 5px;
    margin-bottom: 6px;
}
}

@media (max-device-width: 667px) and (orientation: landscape) {
    .chat-widget-normal, .chat-widget-maximized {
        width: 500px;
        height: 250px;
    }

    .chat-widget-normal #chat-widget-messages-container,
    .chat-widget-maximized #chat-widget-messages-container {
        min-height: 215px;
    }

    .chat-widget-normal .chat-messages,
    .chat-widget-maximized .chat-messages {
        max-height: 200px;
    }

    #chat-form input[type='text'] {
        width: 480px;
    }
}


#chat-form input[type='text'] {
    width: 311px;
    max-width: 99%;
    height: 33px;
    margin-top: 5px;
    margin-bottom: 6px;
}


.chat-widget-normal  a .fa {
    color: #fff;
    padding-right: 0;
    width: auto;
}

.fa-window-maximize{
   display: none;
}

.chat-widget-toolbar a {
    opacity: 0.7;
    margin-left: 6px;
    /* width: 30px; */
    font-size: 16px ;
    margin-top: -1px;
}

.fa-window-minimize {
    font-size: 12px !important; 
    margin-bottom: 2px;
}
