body, html
{
    margin: 0;
    padding: 0;

    font-family: 'Open Sans', Arial, sans-serif;

    overflow: hidden;

    width: 100%;
    height: 100%;
}

.relative
{
    position: relative;
}

.clear-pixel
{
    display: block;
    width: 1px;
    height: 1px;
    clear: both;
}

/* Chat widget */

.clear-both
{
    clear: both;
}

.customer-chat ::selection
{
    color: #fff;

    background: #00cfff;
}

a:link
{
    outline: none;
}

img
{
    border: none;
}

.customer-chat .customer-chat-content-message-body a:link,
.customer-chat .customer-chat-content-message-body a:hover,
.customer-chat .customer-chat-content-message-body a:visited,
.customer-chat .customer-chat-content-message-body a:active
{
    color: #36A9E1;

    text-decoration: none;
}

.customer-chat-widget
{
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;

    font-size: 13px;

    overflow: hidden;
    -webkit-border-top-left-radius: 3px;
    -webkit-border-top-right-radius: 3px;
    -moz-border-top-left-radius: 3px;
    -moz-border-top-right-radius: 3px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

/* Default state (chat box) */

.customer-chat-widget #customer-chat-content-login-form
{
    display: none;
}

.customer-chat-widget #customer-chat-content-contact-form
{
    display: none;
}

.customer-chat-widget #customer-chat-content-loading
{
    display: none;
}

.customer-chat-widget #customer-chat-content-info
{
    display: none;
}

.customer-chat-widget:not(.chat-box) .content--chat,
.customer-chat-widget:not(.chat-box) .send,
.customer-chat-widget:not(.chat-box) .emoji
{
    display: none;
}

.chat-box .customer-chat-content-message-input
{
    position: absolute;
    left: 1px;
    bottom: 0;
    right: 1px;
}

.customer-chat-content-message-input-field
{
    height: 39px;
    width: 100%;
}

.chat-box .customer-chat-content-message-input-field
{
    height: 49px;
}

.logo-link
{
    margin-top: 10px;
    display: inline-block;
}

.end-talk-info,
.end-talk #customer-chat-action-end-chat,
.end-talk #customer-chat-action-end-chat-confirmation,
.end-talk .customer-chat-content-message-input > *
{
    display: none !important;
}

.end-talk .customer-chat-content-message-input .end-talk-info
{
    display: block !important;
}

.end-talk .customer-chat-content-message-input
{
    padding-top: 12px;
    height: 61px;
}

.end-talk-info
{
    text-align: center;
    color: #666;
}

.end-talk-info a
{
    margin-top: 10px;
}

/* Login form state */

.customer-chat-widget.login-form #customer-chat-content-login-form
{
    display: block;
}

.customer-chat-widget.login-form #customer-chat-content-chat-box
{
    display: none;
}

.login-form .customer-chat-content-row
{
    position: static;
    height: auto;
}

.login-form .departments
{
    display: none;
    height: 100%;
}

.login-form .customer-chat-content-button
{
    text-align: center;
}

/* Login form (department selection) */

.customer-chat-widget.login-form #customer-chat-content-login-form.departments-view .form
{
    display: none;
}

.login-form .departments-view .departments
{
    display: block;
}

/* Contact form state */

.customer-chat-widget.contact-form #customer-chat-content-contact-form
{
    display: block;
}

.customer-chat-widget.contact-form #customer-chat-content-chat-box
{
    display: none;
}

.contact-form .customer-chat-content-row
{
    position: static;
}

/* Loading state */

.customer-chat-widget.loading-screen #customer-chat-content-loading
{
    display: block;
}

.customer-chat-widget.loading-screen #customer-chat-content-chat-box
{
    display: none;
}

/* Info state */

.customer-chat-widget.info-screen #customer-chat-content-info
{
    display: block;
}

.customer-chat-widget.info-screen #customer-chat-content-chat-box
{
    display: none;
}

/* End of states */

.customer-chat-header
{
    position: relative;
    width: 100%;
    background: #36A9E1;

    height: 55px;
    line-height: 55px;

    color: #fff;

    margin: 0;
    padding: 0;

    cursor: pointer;
}

.customer-chat-header-title
{
    position: absolute;

    width: 100%;

    color: #fff;

    font-size: 16px;
    text-align: center;
}

.customer-chat-header img.header-avatar
{
    display: none;
    position: absolute;
    left: 22px;
    top: 20px;
}

.departments-view .customer-chat-header img.header-avatar
{
    display: none !important;
}

.customer-chat-visible.login-form .customer-chat-header img.header-avatar
{
    display: block;
}

.customer-chat-content
{
    border: 1px solid #ddd;
    border-top: none;
    border-bottom: none;

    height: 100%;
}

.customer-chat-header-button, .customer-chat-header-indicator
{
    position: relative;

    z-index: 1000;

    width: 55px;
    height: 55px;

    line-height: 55px;

    color: #fff;

    float: right;

    text-align: center;
}

#customer-chat-button-toggle .icon-chevron-down
{
    display: none;
}
#customer-chat-button-toggle .icon-chevron-up
{
    display: inline-block;
}

#customer-chat-button-settings
{
    display: none;
}

.customer-chat-visible.chat-box #customer-chat-button-settings
{
    display: inline-block;
}

.customer-chat-visible #customer-chat-button-toggle .icon-chevron-down
{
    display: inline-block;
}
.customer-chat-visible #customer-chat-button-toggle .icon-chevron-up
{
    display: none;
}

.customer-chat-header-menu, .customer-chat-emots-menu
{
    display: none;
    position: absolute;
    z-index: 9999;
    background: #fff;
    padding: 16px;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
    -webkit-border-bottom-left-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
    -moz-border-bottom-left-radius: 10px;
    -moz-border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom: 2px solid #ddd;
}

.customer-chat-header-menu
{
    width: 100%;
    height: auto;
    top: 100%;
    right: 0;
}

.customer-chat-emots-menu
{
    width: 336px;
    height: 60px;
}

.customer-chat-emots-menu
{
    top: auto;
    bottom: 94px;
    right: -1px;
    left: -1px;
    height: auto;
    width: auto;
    line-height: 18px;
    border-bottom: none;
    text-align: center;
    -webkit-border-bottom-left-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -webkit-border-top-left-radius: 10px;
    -webkit-border-top-right-radius: 10px;
    -moz-border-bottom-left-radius: 0;
    -moz-border-bottom-right-radius: 0;
    -moz-border-top-left-radius: 10px;
    -moz-border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-top: 2px solid #ddd;
}

.customer-chat-header-menu > a, .customer-chat-header-menu > .item
{
    display: block;
    position: static;
    clear: both;
    line-height: 1.5em;
    text-decoration: none;
    color: #000;
    clear: both;
    padding: 8px;
}

.customer-chat-header-menu a div,
.customer-chat-emots-menu a div,
#customer-chat-action-end-chat-confirmation div
{
    display: inline-block;

    margin-left: 20px;
}

.customer-chat-header-menu-triangle
{
    position: absolute;

    width: 0;
    height: 0;

    top: -20px;
    right: 72px;

    border: 10px solid transparent;
    border-bottom-color: #fff;

    pointer-events: none;
}

.customer-chat-emots-menu .customer-chat-header-menu-triangle
{
    display: none;

    top: 100%;

    right: 36px;

    border-bottom-color: transparent;
    border-top-color: #fff;
}

.customer-chat-toggle-emots.customer-chat-disabled,
.customer-chat-toggle-media.customer-chat-disabled,
.customer-chat-toggle-scroll.customer-chat-disabled,
.customer-chat-toggle-show.customer-chat-disabled,
.customer-chat-toggle-sound.customer-chat-disabled
{
    opacity: 0.35;
}

.customer-chat-toggle-emots.customer-chat-disabled div,
.customer-chat-toggle-media.customer-chat-disabled div,
.customer-chat-toggle-scroll.customer-chat-disabled div,
.customer-chat-toggle-show.customer-chat-disabled div,
.customer-chat-toggle-sound.customer-chat-disabled div
{
    text-decoration: line-through;
}

#customer-chat-action-end-chat-confirmation
{
    display: block;
    display: none;
}

.customer-chat-header-menu #customer-chat-action-end-chat-confirmation a
{
    display: inline-block;
    padding: 0 10px;
    top: -1px;
    margin-left: 5px;
    font-size: 11px;
    line-height: 17px;
    height: 17px;
    vertical-align: middle;
}

.customer-chat-header-menu #customer-chat-action-end-chat-confirmation a:active
{
    top: 0;
}

.customer-chat-header-button
{
    cursor: pointer;

    transition: background-color 200ms ease;
}

.customer-chat-emoticon
{
    margin: 6px;

    display: inline-block;

    text-decoration: none;

    overflow: hidden;
}

.customer-chat-emoticon img
{
    border: none;
    outline: none;
}

.customer-chat-header-button:hover
{
    background: #1e8fc6;

    outline: none;
}

.customer-chat-header-indicator
{
    float: left;
    position: relative;
}

.customer-chat-header-indicator i
{
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url(../img/redesign/icon-widget-chat.png);
    background-repeat: no-repeat;
    background-position: center;
}

.offline .customer-chat-header-indicator i
{
    background-image: url(../img/redesign/icon-widget-mail.png);
}

.customer-chat-content-messages
{
    position: absolute;
    width: 100%;
    height: auto;
    top: 55px;
    bottom: 93px;
}

.typing-indicator
{
    display: none;
    position: absolute;
    z-index: 1010;
    top: -40px;
    right: 20px;
    background: #fff;
    padding: 10px;
}

.customer-chat-content-message-input
{
    position: relative;

    padding: 20px;
    padding-top: 22px;

    background: #f9f9f9;

    height: 51px;

    border-top: 1px solid #eee;

    margin-top: -1px;
}

.customer-chat-content-message-input-field
{
    font-family: 'Open Sans', sans-serif;

    background: #fff;

    margin: 0;
    width: 100%;
    height: 39px;

    font-size: 13px;

    padding: 0 90px 0 16px;

    border: 1px solid #e0d7d8;
    outline: none;

    resize: none;
    overflow: hidden;

    -webkit-border-radius: 0px;
    -moz-border-radius: 0px;
    border-radius: 0px;

    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.input-frame
{
    background: #fff;

    border: 1px solid #eee;
    border-left: 2px solid #36A9E1;

    overflow: hidden;

    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;

    transition: box-shadow 200ms ease;
}

.customer-chat-content-message-input-field:focus
{
    box-shadow: 0 0 15px #e0e0e0 inset;
}

.customer-chat-content-message-emots-button
{
    position: absolute;

    right: 100px;
    top: 32px;

    line-height: 30px;
    text-align: center;
    font-weight: 600;

    color: #ccc;

    width: 30px;
    height: 30px;

    cursor: pointer;
}

.customer-chat-content-message,
.customer-chat-content-message-operator
{
    position: relative;
    word-wrap: break-word;
    word-break: break-word;
}

.customer-chat-content-message, .customer-chat-content-message-operator
{
    /*border-left: 4px solid #ddd;*/
    border-bottom: 1px solid #eee;

    padding: 16px;
}

.customer-chat-content-message-operator
{
    /*border-left: 4px solid #343F5F;*/
}

.customer-chat-content-message-system .customer-chat-content-message-column
{
    padding-top: 1px;
}

/* Short messages */

.short .customer-chat-content-message,
.short .customer-chat-content-message-operator
{
    border-top: 1px dashed #fff;
    margin-top: -1px;
    padding-top: 0;
    padding-bottom: 10px;
}

.short .customer-chat-content-message-author,
.short .customer-chat-content-message-avatar
{
    display: none;
}

.short .customer-chat-content-message-body
{
    margin-top: 0;
}

.customer-chat-admin .short .customer-chat-content-message-body
{
    clear: none;
}

/* Auto messages */

.customer-chat-content-message-auto
{
    display: none;
}

/* Inline message images */

.chat-inline-view
{
    display: inline-block;
    border: 1px solid #ddd;
    max-width: 100%;
    padding: 5px;
    margin-top: 10px;
    clear: both;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    cursor: pointer;
}

.chat-inline-view .image
{
    display: block;
    max-width: 100%;
    max-height: 600px;
}

.chat-inline-view.video
{
    width: 560px;
}

.chat-inline-view.video .iframe-wrapper
{
    position: relative;
    width: 100%;
    height: 0px;
    padding-bottom: 60%;
}

.chat-inline-view iframe
{
    display: block;
    position: absolute;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
}

.chat-inline-view .loading-anim
{
    display: none;
}

.chat-inline-view i
{
    display: none;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    vertical-align: middle;
}

.chat-inline-view-url
{
    display: inline;
    font-style: italic;
    margin-bottom: 5px;
}

.chat-inline-disabled .chat-inline-view-url
{
    font-style: normal;
    margin-bottom: 0;
}

.chat-inline-disabled .chat-inline-view
{
    display: none;
}

.loading .chat-inline-view
{
    padding: 0;
}

.loading .chat-inline-view .image
{
    display: none;
}

.loading .chat-inline-view.video
{
    width: auto;
}

.loading .chat-inline-view.video .iframe-wrapper
{
    display: none;
}

.loading .chat-inline-view .loading-anim
{
    display: block;
}

.manual-show .chat-inline-view
{
    margin-bottom: 10px;
    margin-right: 10px;
    width: 30px;
    height: 30px;
    border-style: dashed;
}

.manual-show .chat-inline-view:hover
{
    background: #f5f5f5;
    background: #D7F1FE;
    border-color: #36A9E1;
}

.manual-show .chat-inline-view .image
{
    display: none;
}

.manual-show .chat-inline-view iframe
{
    display: none;
}

.manual-show .chat-inline-view i
{
    display: block;
    color: #36A9E1;
}

.manual-show .chat-inline-view.video i
{
    display: block;
}

.manual-show .chat-inline-view.youtube i
{
    color: #FF5959;
}

.manual-show .chat-inline-view.vimeo i
{
    color: #4BF;
}

.manual-show .url-wrapper
{
    display: inline;
}

/* System avatars */

.customer-chat-content-message-system .customer-chat-content-message-avatar
{
    height: 20px;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    vertical-align: middle;
}

.avatar-info,
.avatar-invite
{
    color: #36A9E1;
}

.avatar-owner
{
    color: #86C953;
}

.avatar-leave,
.avatar-close
{
    color: #FF5959;
}

/* /System avatars */

.customer-chat-content-message-system .customer-chat-content-message-author
{
    display: none;
}

.customer-chat-content-message-system .customer-chat-content-message-body
{
    margin-top: 0;
    clear: none;
    font-style: italic;
    color: #999;
}

.customer-chat-content-messages .mCSB_scrollTools .mCSB_draggerContainer
{
    height: 100%;
    padding-bottom: 25px;
}

.customer-chat-content-message-column
{
    width: 100%;
    float: none;
    padding-left: 60px;
    padding-right: 20px;
    padding-top: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.customer-chat-content-message-avatar, .customer-chat-content-message-avatar-operator
{
    float: left;

    width: 40px;
    height: 40px;

    background: url(../img/redesign/avatar-no-name.png) no-repeat center;
    background-size: 100% 100%;
    background-size: cover;

    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    border-radius: 50%;
}

.customer-chat-content-message-avatar-operator
{
    background-image: url(../img/avatar-2.png);
}

#customer-chat-content-chat-box .customer-chat-content-message-avatar,
#customer-chat-content-chat-box .customer-chat-content-message-avatar-operator
{
    position: absolute;
}

.customer-chat-content-message-author
{
    font-size: 14px;
    font-weight: 600;
    color: #0879B1;

    float: left;

    cursor: default;
}

.customer-chat-content-message-time
{
    float: right;

    color: #ccc;
}

.customer-chat-content-message-body
{
    clear: both;

    margin-top: 40px;

    font-size: 12px;
    line-height: 1.75em;
}

.customer-chat-content-message-body .emoticon
{
    vertical-align: middle;
    height: 20px;
    margin-top: -4px;
}

.customer-chat-widget.contact-form #customer-chat-button-settings
{
    display: none;
}

.customer-chat-widget.loading-screen #customer-chat-button-settings
{
    display: none;
}

.customer-chat-widget.contact-form .customer-chat-content-message-input,
.customer-chat-widget.login-form .customer-chat-content-message-input
{
    background: #fff;

    border-top: none;

    padding-top: 1px;
    padding-bottom: 2px;
}

.customer-chat-widget.contact-form .customer-chat-content-message-input-field,
.customer-chat-widget.login-form .customer-chat-content-message-input-field
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
}

.customer-chat-widget.contact-form textarea.customer-chat-content-message-input-field
{
    height: 54px;
}

.customer-chat-content-message-input-field.customer-chat-input-error,
.customer-chat-content-message-input-field.customer-chat-input-error
{
    border-color: #f77;
}

.customer-chat-content-info
{
    padding: 20px;

    height: 80px;

    overflow: hidden;
}

.customer-chat-content-info.with-avatar
{
    padding-top: 60px;
}

.customer-chat-content-info p
{
    font-size: 18px;
    text-align: center;
    margin: -8px 0 24px 0;
}

.form .customer-chat-content-info
{
    height: auto;
    margin-bottom: 10px;
}

.customer-chat-content-row
{
    position: absolute;
    bottom: 36px;
    width: 100%;
    height: 36px;
    padding: 20px;
    text-align: center;
}

#customer-chat-content-contact-form .customer-chat-content-row
{
    height: auto;
}

input,
input[type="checkbox"],
textarea,
select,
.customer-chat-header-menu,
.customer-chat-content-row
{
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    margin: 0;
    color: #4d4d4d;
}

input
{
    height: 39px;
}

.customer-chat-content-button
{
    display: block;
    position: relative;
    font-size: 14px;
    line-height: 44px;
    color: #fff;
    -moz-background-clip: padding;
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    background-color: #35a1ed;
    font-weight: bold;
    padding: 0 32px;
    border: none;
    height: 44px;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    cursor: pointer;
}

.customer-chat-widget .customer-chat-content-button
{
    height: 38px;
    line-height: 38px;
    padding-top: 0;
    padding-bottom: 0;
}

.customer-chat-content-button.customer-chat-content-button-inline
{
    display: inline-block;
}

.customer-chat-content-button:hover
{
    background: #287AB3;
}

.customer-chat-content-button.danger
{
    background: #e70000;
}

.customer-chat-content-button.danger:hover
{
    background: #f00;
}

.customer-chat-content-button.warning
{
    background: #ed6e47;
}

.customer-chat-content-button.warning:hover
{
    background: #BB5334;
}

.customer-chat-content-button.button-disabled
{
    opacity: 0.5;
}

.customer-chat-content-loading-icon
{
    display: block;

    position: absolute;

    width: 35px;
    height: 35px;

    margin-left: -17px;

    left: 50%;
    top: 50%;
}

.customer-chat-talk-header-users
{
    height: 70px;
    padding: 16px 15px 2px 15px;
    overflow: hidden;
}

.customer-chat-talk-header.live
{
    height: auto;
    padding: 10px;
    text-align: center;
}

.customer-chat-talk-header.live span, .customer-chat-talk-header.live a
{
    display: inline-block;
    vertical-align: middle;
}

.customer-chat-talk-header.live a
{
    color: #0879B1;
    text-decoration: none;
    white-space: nowrap;
    height: 18px;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 490px;
}

.btn-canned-msg i
{
    margin-left: 5px;
}

.popover-content .customer-chat-talk-header-users
{
    height: auto;
    padding-bottom: 16px;
}

.customer-chat-talk-header-users .user-avatar
{
    float: left;
    padding-top: 6px;
    padding-right: 15px;
}

.customer-chat-talk-header-users .user-info
{
    float: left;
    padding-right: 50px;
}

.customer-chat-talk-header-users .user-info div
{
    padding-bottom: 5px;
    clear: both;
}

.customer-chat-talk-header-users .user-info div span
{
    display: block;
    float: left;
}

.customer-chat-talk-header-users .user-info div .name
{
    color: #36A9E1;
    width: 50px;
}

.customer-chat-talk-header-users .user-info div .value
{
    color: #bbb;
}

.popover-content .customer-chat-talk-header-users .user-info
{
    padding-right: 0;
}

#customer-chat-select-avatar
{
    height: 60px;
    text-align: center;
}

#customer-chat-select-avatar *
{
    vertical-align: middle;
}

#customer-chat-select-avatar .selected-avatar
{
    margin: 0 30px;
}

#customer-chat-select-avatar .customer-chat-content-message-avatar
{
    display: inline-block;
    float: none;
}

#customer-chat-select-avatar .prev-avatar, #customer-chat-select-avatar .next-avatar
{
    padding: 0 5px 3px 5px;
}

/* Fullscreen mode */

.fs #customer-chat-widget
{
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
}

.fs .customer-chat-content
{
    border: none;
}

.fs .chat-box .customer-chat-content-message-input
{
    left: 0;
    right: 0;
}

/* Departments selection */

.departments
{
    position: relative;
}

.departments .list .entries
{
    position: absolute;
    top: 0;
    bottom: 50px;
    left: 0;
    right: 0;
}

.departments .list .mCSB_container
{
    padding: 20px 26px 5px 20px;
}

.departments .list .mCSB_container.mCS_no_scrollbar
{
    padding: 20px;
}

.departments .list .mCSB_scrollTools .mCSB_draggerContainer
{
    height: 93%;
}

.departments .empty-content
{
    display: none;
}

.departments .entries a
{
    position: relative;
    display: block;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    text-align: left;
}

.departments .entries a.online:hover
{
    background: #f5f5f5;
    cursor: pointer;
}

.departments .entries a.offline
{
    cursor: default;
}

.departments .entry-item:before,
.departments .entry-item:after
{
    content: ' ';
    display: table;
    clear: both;
}

.departments .entry-item div
{
    display: block;
    padding-right: 30px;
}

.departments .entry-item i.fa
{
    display: block;
    position: absolute;
    top: 50%;
    right: 20px;
    font-size: 10px;
    margin-top: -5px;
    color: #86C953;
    text-align: left;
}

.departments .entry-item.active i.fa
{
    font-size: 16px;
    margin-top: -8px;
    margin-right: -3px;
    color: #86C953;
}

.departments .entry-item span
{
    display: block;
}

.departments .entry-item em
{
    font-size: 0.85em;
    display: block;
    font-style: normal;
    color: #666;
    margin-top: 10px;
}

.departments .offline div
{
    opacity: 0.5;
    filter: alpha(50);
}

.departments .offline i.fa
{
    color: #FF5959;
}

.select-department
{
    display: block;
    position: relative;
    border: 1px solid #eee;
    border-left: 2px solid #36A9E1;
    color: #36A9E1;
    text-align: center;
    font-style: italic;
    padding: 10px;
    height: 39px;
    vertical-align: middle;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    text-decoration: none;
    transition: background 200ms ease;
    outline: none;
    cursor: pointer;
}

.select-department:hover
{
    background: #f5f5f5;
}

.select-department i.fa
{
    margin-right: 5px;
}

.select-department.selected i.fa
{
    display: none;
}

.select-department i.fa.edit
{
    display: none;
}

.select-department.selected i.fa.edit
{
    display: inline-block;
}

.select-department.customer-chat-input-error
{
    border-color: #f77;
}

/* File upload */

.file-button input
{
    position: fixed;
    right: 200%;
    bottom: 200%;
    width: 0;
    height: 0;
    opacity: 0;
}

.file-button
{
    overflow: hidden;
    position: absolute;
    width: 30px;
    height: 30px;
    right: 50px;
    top: 33px;
    font-size: 18px;
    color: #36a9e1;
    cursor: pointer;
}

.file-button.disabled
{
    opacity: 0.5;
}

.file-button i
{
    display: block;
}

.file-drop-zone
{
    position: relative;
}

#customer-chat-widget .file-drop-zone.chat-box
{
    position: static;
}

.file-drop-zone-effect
{
    display: none;
    position: absolute;
    z-index: 1000;
    width: auto;
    left: 1px;
    right: 1px;
    height: 100%;
    background: #fff;
    pointer-events: none;
}

.file-drop-zone.active .file-drop-zone-effect
{
    display: block;
}

.file-drop-zone-effect i
{
    position: absolute;

    color: #36A9E1;
    font-size: 64px;

    left: 50%;
    top: 50%;

    margin: -32px 0 0 -32px;
}

.file-drop-zone.active .file-drop-zone-effect i
{
    animation: upload-anim 1.5s infinite;
}

@keyframes upload-anim
{
    from
    {
        transform: translateY(0);
        opacity: 0;
    }

    85%
    {
        transform: translateY(-32px);
        opacity: 1;
    }

    86%
    {
        opacity: 0;
    }

    to
    {
        opacity: 0;
    }
}

/* Inline message files */

.file-message
{
    display: inline-block;
    border: 1px solid #ddd;
    max-width: 100%;
    padding: 5px 10px;
    margin-top: 10px;
    clear: both;
    box-sizing: border-box;
    border-radius: 3px;
    cursor: default;
    width:300px;
}

.file-message ul
{
    display: block;
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.file-message li
{
    display: block;
    position: relative;
}

.file-message .file-name
{
    display: block;
    padding: 5px 75px 5px 24px;
    vertical-align: middle;
    overflow: hidden;
    width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.uploaded.file-message .file-name
{
    padding-right: 100px;
}

.file-message .file-icon
{
    position: absolute;
    left: 0;
    top: 6px;
    vertical-align: middle;
    font-size: 16px;
    color: #36A9E1;
}

.file-message .file-size
{
    position: absolute;
    right: 0;
    top: 5px;
    vertical-align: middle;
    color: #999;
}

.uploaded.file-message .file-size
{
    right: 25px;
}

.file-message .controls
{
    width: 100%;
    min-height: 21px;
    font-size: 18px;
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid #e9e9e9;
    position: relative;
}

.file-message.pending .controls,
.file-message.initial .controls
{
    height: 27px;
}

.file-message .controls > *
{
    width: 100%;
    vertical-align: middle;
}

.file-message .actions,
.chat-wrapper .file-message .actions
{
    text-align: right;
    padding: 0;
}

.operator.pending.file-message .actions
{
    min-width: 60px;
}

.file-message .loading-anim
{
    position: absolute;
    top: -5px;
    left: -7px;
}

.uploading.file-message .loading-anim,
.uploaded.file-message .loading-anim
{
    display: none;
}

.file-message .progress-col
{
    position: absolute;
    width: auto;
    left: 0;
    right: 27px;
}

.file-message.no-actions .progress-col
{
    right: 0;
}

.file-message .progress
{
    display: none;
    height: 3px;
    border: 1px solid #36A9E1;
    margin-top: 9px;
}

.uploading.file-message .progress
{
    display: block;
}

.file-message .progress-bar
{
    width: 0;
    height: 100%;
    background: #36A9E1;
}

.file-message .actions i
{
    cursor: pointer;
    margin-left: 10px;
    vertical-align: middle;
}

.file-message .download
{
    display: none;
    top: 5px;
    vertical-align: middle;
    font-size: 16px;
    position: absolute;
    right: 0;
    color: #36A9E1;
}

.file-message .abort,
.file-message .deny
{
    color: #FF5959;
    vertical-align: top;
}

.file-message .confirm
{
    color: #94D662;
    vertical-align: top;
}

.file-message .abort-info,
.file-message .error-info,
.file-message .denied-info
{
    text-align: right;
    font-size: 12px;
    line-height: 1.5em;
    color: #FF5959;
}

.file-message .uploaded-info
{
    display: none;
    text-align: right;
    color: #94D662;
    font-size: 16px;
}

.uploaded.file-message .download
{
    display: inline-block;
}

.aborted.file-message .progress-col,
.aborted.file-message .actions,
.denied.file-message .progress-col,
.denied.file-message .actions,
.error.file-message .progress-col,
.error.file-message .actions,
.uploaded.file-message .progress-col,
.uploaded.file-message .actions,
.uploaded.file-message .abort
{
    display: none;
}

.uploaded.file-message .uploaded-info
{
    display: block;
}

/* File type icons */

.file-icon.fa-file-text-o       { color: #36A9E1; }
.file-icon.fa-file-pdf-o        { color: #FF5959; }
.file-icon.fa-file-image-o      { color: #36A9E1; }
.file-icon.fa-file-audio-o      { color: #36A9E1; }
.file-icon.fa-file-video-o      { color: #36A9E1; }
.file-icon.fa-file-word-o       { color: #36A9E1; }
.file-icon.fa-file-excel-o      { color: #94D662; }
.file-icon.fa-file-powerpoint-o { color: #FF944D; }
.file-icon.fa-cube              { color: #E6BC09; }

/* Icons */

.ico
{
    background: url(../img/redesign/icons-sheet.png) no-repeat;
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    position: relative;
    top: -1px;
}

.ico.chat             { background-position: 0      0; }
.ico.history          { background-position: 0  -24px; }
.ico.lightbulb        { background-position: 0  -48px; }
.ico.analytics        { background-position: 0  -72px; }
.ico.settings         { background-position: 0  -96px; }
.ico.qr               { background-position: 0 -120px; }
.ico.marker           { background-position: 0 -144px; }
.ico.wrench.outline   { background-position: 0 -168px; }
.ico.person.outline   { background-position: 0 -192px; }
.ico.people.outline   { background-position: 0 -216px; }
.ico.pencil.outline   { background-position: 0 -240px; }
.ico.ban              { background-position: 0 -264px; }
.ico.settings.outline { background-position: 0 -288px; }
.ico.remove           { background-position: 0 -312px; }
.ico.arrow-right      { background-position: 0 -336px; }
.ico.date             { background-position: 0 -360px; }

.ico.smile        { background-position: -121px   0px; width: 30px; height: 30px; }
.ico.smile.small  { background-position: -125px -32px; width: 20px; height: 20px; }
.ico.upload       { background-position: -153px   0px; width: 30px; height: 30px; }
.ico.upload.small { background-position: -158px -32px; width: 20px; height: 20px; }

/* Icons color 2 */

.ico.dark.chat             { background-position: -24px      0; }
.ico.dark.history          { background-position: -24px  -24px; }
.ico.dark.lightbulb        { background-position: -24px  -48px; }
.ico.dark.analytics        { background-position: -24px  -72px; }
.ico.dark.settings         { background-position: -24px  -96px; }
.ico.dark.qr               { background-position: -24px -120px; }
.ico.dark.marker           { background-position: -24px -144px; }
.ico.dark.wrench.outline   { background-position: -24px -168px; }
.ico.dark.person.outline   { background-position: -24px -192px; }
.ico.dark.people.outline   { background-position: -24px -216px; }
.ico.dark.pencil.outline   { background-position: -24px -240px; }
.ico.dark.ban              { background-position: -24px -264px; }
.ico.dark.settings.outline { background-position: -24px -288px; }
.ico.dark.remove           { background-position: -24px -312px; }
.ico.dark.arrow-right      { background-position: -24px -336px; }
.ico.dark.date             { background-position: -24px -360px; }

/* Icons color 3 */

.ico.light.chat             { background-position: -48px      0; }
.ico.light.history          { background-position: -48px  -24px; }
.ico.light.lightbulb        { background-position: -48px  -48px; }
.ico.light.analytics        { background-position: -48px  -72px; }
.ico.light.settings         { background-position: -48px  -96px; }
.ico.light.qr               { background-position: -48px -120px; }
.ico.light.marker           { background-position: -48px -144px; }
.ico.light.wrench.outline   { background-position: -48px -168px; }
.ico.light.person.outline   { background-position: -48px -192px; }
.ico.light.people.outline   { background-position: -48px -216px; }
.ico.light.pencil.outline   { background-position: -48px -240px; }
.ico.light.ban              { background-position: -48px -264px; }
.ico.light.settings.outline { background-position: -48px -288px; }
.ico.light.remove           { background-position: -48px -312px; }
.ico.light.arrow-right      { background-position: -48px -336px; }
.ico.light.date             { background-position: -48px -360px; }

/* Icons color 4 */

.ico.white.chat             { background-position: -72px      0; }
.ico.white.history          { background-position: -72px  -24px; }
.ico.white.lightbulb        { background-position: -72px  -48px; }
.ico.white.analytics        { background-position: -72px  -72px; }
.ico.white.settings         { background-position: -72px  -96px; }
.ico.white.qr               { background-position: -72px -120px; }
.ico.white.marker           { background-position: -72px -144px; }
.ico.white.wrench.outline   { background-position: -72px -168px; }
.ico.white.person.outline   { background-position: -72px -192px; }
.ico.white.people.outline   { background-position: -72px -216px; }
.ico.white.pencil.outline   { background-position: -72px -240px; }
.ico.white.ban              { background-position: -72px -264px; }
.ico.white.settings.outline { background-position: -72px -288px; }
.ico.white.remove           { background-position: -72px -312px; }
.ico.white.arrow-right      { background-position: -72px -336px; }
.ico.white.date             { background-position: -72px -360px; }

/* Icons color 5 */

.ico.darker.chat             { background-position: -96px      0; }
.ico.darker.history          { background-position: -96px  -24px; }
.ico.darker.lightbulb        { background-position: -96px  -48px; }
.ico.darker.analytics        { background-position: -96px  -72px; }
.ico.darker.settings         { background-position: -96px  -96px; }
.ico.darker.qr               { background-position: -96px -120px; }
.ico.darker.marker           { background-position: -96px -144px; }
.ico.darker.wrench.outline   { background-position: -96px -168px; }
.ico.darker.person.outline   { background-position: -96px -192px; }
.ico.darker.people.outline   { background-position: -96px -216px; }
.ico.darker.pencil.outline   { background-position: -96px -240px; }
.ico.darker.ban              { background-position: -96px -264px; }
.ico.darker.settings.outline { background-position: -96px -288px; }
.ico.darker.remove           { background-position: -96px -312px; }
.ico.darker.arrow-right      { background-position: -96px -336px; }
.ico.darker.date             { background-position: -96px -360px; }

/* Additional chat headers */

/* Mascot */

#mascot-button
{
    display: inline-block;
    padding-bottom: 48px;
    width: auto;
    min-width: 170px;
    background: none;
    height: auto;
}

#mascot-button > .text
{
    position: relative;
    float: right;
    margin: 0;
    padding: 24px;
    min-width: 110px;
    height: 60px;
    font-size: 15px;
    line-height: 1em;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    box-sizing: border-box;
}

#mascot-button > .text > .arrow
{
    position: absolute;
    bottom: -11px;
    right: 50px;
}

#mascot-button.no-canvas canvas.arrow
{
    display: none;
}

#mascot-button:after
{
    content: '';
    display: block;
    position: absolute;
    right: 80px;
    bottom: -1px;
    background: url(../img/redesign/mascot-online.png) no-repeat;
    z-index: 99999;
    width: 57px;
    height: 65px;
}

#mascot-button.offline:after
{
    background: url(../img/redesign/mascot-offline.png) no-repeat;
    width: 87px;
    height: 58px;
    bottom: 5px;
}

/* Mini */

#mini-button
{
    display: inline-block;
    width: auto;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    height: 45px;
    line-height: 45px;
    /*margin-bottom: 10px;*/
}

#mini-button .customer-chat-header-title,
#mini-button .customer-chat-header-indicator
{
    position: relative;
    float: left;
}

#mini-button .customer-chat-header-indicator
{
    width: 40px;
    height: 45px;
    line-height: 45px;
}

#mini-button .customer-chat-header-indicator i
{
    background-size: 50%;
}

#mini-button .customer-chat-header-title
{
    width: auto;
    padding: 0 10px;
}

/* Widget previews */

body.-widget-previews
{
    overflow: auto;
    height: auto;
}

.preview-row
{
    overflow: hidden;
    min-width: 650px;
    font-size: 0;
}

.preview-row.-opened
{
    margin-top: 70px;
}

.preview-wrapper
{
    float: left;
    width: 280px;
    height: 438px;
    position: relative;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.preview-wrapper:after
{
    content: '';
    display: block;
    position: absolute;
    z-index: 99999;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

.preview-wrapper.-offline
{
    margin-left: 85px;
    clear: right;
    height: auto;
}

.preview-wrapper.-attention-grabber
{
    height: auto;
    text-align: right;
}

.preview-wrapper.-minimized
{
    height: auto;
}

.preview-wrapper.-minimized > .customer-chat-widget
{
    height: auto;
}

.preview-wrapper > .customer-chat-widget
{
    position: relative;
}

.preview-wrapper > .attention-grabber-frame
{
    border: none;
    outline: none;
}

.customer-chat-content-message-avatar.-sample,
.customer-chat-content-message-avatar-operator.-sample
{
    background-image: url(../img/redesign/avatar-sample.png);
}
