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

.chat-widget-toolbar {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.8em;
    z-index: 999;
}

.chat-widget-toolbar a {
    opacity: 0.3;
    margin-left: 10px;
}

.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: 1px 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: 300px;
    height: 18px;
    background: #efefef;
}

.chat-widget-minimized a {
    text-decoration: none;
    color: #333;
}

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

.chat-widget-normal {
    width: 300px;
    height: 300px;
}

.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: 270px;
    position: relative;
}

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

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

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

.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-minimized, .chat-widget-maximized {
        right: 5px;
    }

    .chat-widget-normal, .chat-widget-maximized {
        width: 300px;
        height: 300px;
    }

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

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

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

@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;
    }
}
