
/* DEFAULTS */
[id^="socialus"] { margin:0;padding:0;box-sizing:border-box;line-height:18px }
[id^="socialus"] * { margin:0;padding:0;box-sizing:border-box; }

/* WRAPPER */
#socialus-wrapper {
    display: block;
    position: fixed;
    bottom: 0;
    left:20px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 16px;
    z-index: 999999;
}

/* BUTTON */
#socialus-button {
    display: block;
    background-color: #009efa;
    font-weight: 600;
    color: #fff;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    padding: 10px 20px;
    text-align: center;
    cursor: pointer;
    transition: opacity 0.3s;
}

#socialus-button:hover { opacity: 0.9; }

/* FRAME */
#socialus-frame {
    display: none;
    overflow: hidden;
    width: 300px;
    background-color: #fff;
    color: #333;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.2);

    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

#socialus-header { padding: 10px 14px; color: #fff; font-weight: 600; text-align: center; background-color: #009efa; cursor: pointer; transition: opacity 0.3s; }
#socialus-minified { font-style: normal; font-weight: 400; float: right; }
#socialus-header:hover { opacity: .9; }
    
#socialus-middle { height:265px; overflow-y: auto; }

#socialus-middle::-webkit-scrollbar { width:4px;height:4px; }
#socialus-middle::-webkit-scrollbar-button { width:0px;height:0px; }
#socialus-middle::-webkit-scrollbar-thumb { background:#aaa;border:0px none #fff; }
#socialus-middle::-webkit-scrollbar-thumb:hover { background:#999; }
#socialus-middle::-webkit-scrollbar-track { background:#ddd;border:0px none #fff; }
#socialus-middle::-webkit-scrollbar-track:hover { background:#ddd; }
#socialus-middle::-webkit-scrollbar-track:active { background:#ddd; }
#socialus-middle::-webkit-scrollbar-corner { background:transparent; }

#socialus-form { padding:12px;padding-bottom:0;border-top: 1px solid #eee; }

#socialus-input {
    border: 1px solid #eee;
    outline: 0;
    width: 100%;
    padding: 8px;
    color: #444;
    border-radius: 8px;
    resize: none;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-size: 12px;
}

#socialus-input::placeholder { color: #aaa; }

#socialus-by { padding:4px;text-align:right;line-height: 16px; }
#socialus-by a { display: inline-block; color:#444; text-decoration: none; padding: 2px 4px; border-radius: 4px; font-size: 11px; opacity: .5; transition: all 0.2s; }

#socialus-by b { font-weight: 600; }
#socialus-by img { float: left; margin-right: 2px }
#socialus-by a:hover { color: #333; opacity: .8; }

#socialus-welcome { display: block; position: relative; padding:20px; text-align: center; }
#socialus-welcome:empty { display: none }

#socialus-guestinfo { display:none;position:relative;padding:10px 20px 10px 20px; }
#socialus-guestinfo label { display:block;line-height:30px; }
#socialus-guestinfo input { display:block;position:relative;padding:6px 12px;width:100%;border:1px solid #eee;border-radius:4px;outline:none }
#socialus-guestinfo input.socialus-required { border:1px solid red; }
#socialus-guestinfo-button { margin-top:10px;position:relative;padding:6px 12px;border:1px solid #fff;border-radius:4px;cursor:pointer;transition: all 0.2s; }
#socialus-guestinfo-button:hover { opacity: .8; }

#socialus-chat .chat { display:block;position:relative;padding:0 6px;margin-bottom:10px;}
#socialus-chat .chat .chat-avatar { margin-left:10px;display:block;float:left;width:32px;height:32px;margin:0;border-radius:20px;box-shadow:2px 2px 2px 0px rgba(0,0,0,0.1); }
#socialus-chat .chat .chat-content { display:block;margin-top:10px;margin-left:30px;margin-right:30px;overflow:hidden; }
#socialus-chat .chat .chat-content .chat-lines { text-align:left;position:relative;display:block;float:left;font-size:12px;padding:6px 10px;margin-left:16px;margin-bottom:4px;clear:both;color:#404E67;background-color:#EDEEF0;border-radius:4px; }
#socialus-chat .chat .chat-content .chat-lines:before { position:absolute;top:10px;left:-10px;width:0;height:0;content:'';border:5px solid transparent;border-right-color:#EDEEF0; }
#socialus-chat .chat .chat-content .chat-lines p { margin:0;padding:0;word-break:keep-all; }
#socialus-chat .chat .chat-content .chat-lines p:empty { display:none; }
#socialus-chat .chat .chat-content .chat-lines p .chat-line-image { max-width: 400px; height: auto; }
#socialus-chat .chat .chat-content .chat-lines p a.socialus-link { color:inherit;text-decoration:none; }
#socialus-chat .chat .chat-content .chat-lines p a.socialus-link:hover { border-bottom:1px dotted #333 }
#socialus-chat .chat .chat-content .chat-lines time { opacity:0;display:block;font-size:9px;color:#999;position:absolute;top:6px;left:100%;padding-left:8px;width:60px;line-height:10px;transition:all 0.2s; }
#socialus-chat .chat .chat-content .chat-lines:hover > time { opacity:1; }

#socialus-chat .chat-me .chat-avatar { float:right;margin:0; }
#socialus-chat .chat-me .chat-content .chat-lines { text-align:right;float:right;margin-left:0;margin-right:16px;color:#fff;background-color:#48B0F7; }
#socialus-chat .chat-me .chat-content .chat-lines:before { left:auto;right:-10px;border-left-color:#48B0F7;border-right-color:transparent; }
#socialus-chat .chat-me .chat-content .chat-lines time { left:unset;right:100%;padding-right:8px;padding-left:0; }

#socialus-chat .chat .chat-content .chat-lines .chat-attachment-image { margin:-6px -10px;margin-bottom:-10px }
#socialus-chat .chat .chat-content .chat-lines .chat-attachment-image a { display:block; }
#socialus-chat .chat .chat-content .chat-lines .chat-attachment-image img { background-color:#fff;min-width:80px;min-height:20px;max-width:160px;border-radius:4px; }

#socialus-chat .chat .chat-content .chat-lines .chat-attachment-video { margin:-6px -10px;margin-bottom:-10px;border-radius:4px;overflow:hidden; }
#socialus-chat .chat .chat-content .chat-lines .chat-attachment-video video { display:block;width:160px; }

#socialus-chat .chat .chat-content .chat-lines .chat-attachment-location { margin:-6px -10px;margin-bottom:-10px }
#socialus-chat .chat .chat-content .chat-lines .chat-attachment-location a { display: block; }
#socialus-chat .chat .chat-content .chat-lines .chat-attachment-location img { max-width:160px;border-radius: 4px; }

/* ANIMATE */

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }

    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}
