/* =========================================================================== */
/* main box container */
/* =========================================================================== */
.s-chat-box * {
    box-sizing: border-box;
    font-family: arial;
}
.s-chat-box {
    position: fixed;
    bottom: 5px;
    right: 20px;
    z-index: 99999;
    background-color: #edeff1;
    width: 300px;
    -webkit-transform: translateY(103%);
    transform: translateY(103%);
    -webkit-transition: transform .3s;
    transition: transform .3s;
    -webkit-box-shadow: 3px 7px 20px -4px rgba(0, 0, 0, 0.35);
    box-shadow: 3px 7px 20px -4px rgba(0, 0, 0, 0.35);
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.s-chat-box.opened {
    -webkit-transform: translateY(0);
    transform: translateY(0);
}

.s-chat-box-admin-is-online .s-chat-presence-indicator,
.s-chat-box-admin-is-offline .s-chat-presence-indicator {
    display: inline-block;
    vertical-align: middle;
    width: 10px;
    height: 10px;
    border-radius: 100%;
    margin-right: 3px;
}
.s-chat-box-admin-is-offline .s-chat-presence-indicator {
    background-color: #ffffff;
}
.s-chat-box-admin-is-online .s-chat-presence-indicator {
    background-color: #2D4575;
}

/* =========================================================================== */
/* box header */
/* =========================================================================== */
.s-chat-box-header {
    width: 100%;
    height: 55px;
    line-height: 55px;
    background-color: #AB2A34;
    border: 1px solid #000;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.s-chat-box-header:before {
    position: absolute;
    right: 12px;
    color: #fff;
    font-size: 20px;
    content: "✖";
}
.s-chat-box-header .s-chat-header-title {
    padding-left: 12px;
}

/* =========================================================================== */
/* box messages container */
/* =========================================================================== */
.s-chat-messages {
    background-color: #edeff1;
    font-size: 13px;
    padding: 10px;
    height: 300px;
    border: 1px solid #cdcdcd;
    border-bottom: 0;
    overflow-y: auto;
}
.s-chat-messages:after,
.s-chat-messages:before {
    display: table;
    content: " ";
}
.s-chat-messages:after {
    clear: both;
}
.s-chat-message-item {
    background-color: transparent;
    width: 100%;
    margin-top: 3px;
    margin-bottom: 3px;
    word-wrap: break-word;
}
.s-chat-message-item:after,
.s-chat-message-item:before {
    display: table;
    content: " ";
}
.s-chat-message-item:after {
    clear: both;
}
.s-chat-message-item-avatar {
    float: left;
    margin-right: 5px;
    width: 23px;
    height: 23px;
    line-height: 23px;
    text-align: center;
    /*you can place your icon here (as a background) or font icon in content*/
    background-color: #AB2A34;
}
.s-chat-message-item-avatar:after {
    content: "H";
    color: #fff;
    font-weight: bold;
}
.s-chat-message-item .message {
    border-radius: 15px;
    padding: 5px 8px 4px;
    max-width: 80%;
    width: auto;
    background-color: #fff;
    color: #424242;
}
.s-chat-message-item .message {
    float: left;
}
.s-chat-message-item-client .message {
    float: right;
}

/* =========================================================================== */
/* main submit input text */
/* =========================================================================== */
.s-chat-submit-input {
    width: 100%;
    border: 1px solid #cdcdcd;
    border-top: 0;
    padding: 10px;
    outline: none;
    resize: none;
    font-size: 13px;
    margin: 0;
    display: block;
}
/* ios input zoom bug */
.s-chat-submit-input-ios {
    font-size: 16px;
}
/* =========================================================================== */
/* sChat 'opener' icon trigger */
/* =========================================================================== */
/*you can provide your own icon or font icon for chat box open trigger element*/
.s-chat-box-opener {
    font-family: arial;
    width: 100px;
    height:100px;
    line-height: 50px;
    text-align: center;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99999;
    border-radius: 100%;
    cursor: pointer;
    -webkit-box-shadow: 3px 7px 20px -4px rgba(0, 0, 0, 0.75);
    box-shadow: 3px 7px 20px -4px rgba(0, 0, 0, 0.75);
    background-color: #AB2A34;
    background-size: 80px;
    background-repeat: no-repeat;
    background-position: 50%;
    /*you can provide your own box opener icon*/
    background-image: url('../img/live-chat.png');
}
.s-chat-box-opener.hidden {
    display: none;
}

/* =========================================================================== */
/* box powered by statement */
/* =========================================================================== */
.s-chat-powered-by {
    color: #cdcdcd;
    font-size: 10px;
    text-align: right;
    border-left: 1px solid #cdcdcd;
    border-right: 1px solid #cdcdcd;
    padding: 0 5px;
}
.s-chat-powered-by a {
    color: #cdcdcd;
}