html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
}

body,
h1,
h2,
h3,
h4,
h5,
div,
span,
p,
a,
li,
input,
button,
select,
textarea,
td {
    font-family: "Helvetica Neue", Helvetica, Arial, "微軟正黑體", "微软雅黑", "メイリオ", sans-serif;
}

/* .content {
    background-color: #ccc;
    height: 2000px;
} */

.fa,
.far,
.fas {
    margin-right: 5px;
}

#chat-container {
    text-align: center;
    height: auto;
}

#chat-container label {
    vertical-align: top;
}
#chat-container label a {
    vertical-align: top;
    color: #1FCABA;
}

#chat-container label a:hover {
    color: #1a9b8f;
}
#chat-container input[type="radio"] + label,#chat-container  input[type="checkbox"] + label {
    padding-left: 25px;
}
#chat-container input[type="radio"] + label::before, #chat-container input[type="checkbox"] + label::before {
    margin-top: 3px;
}
#chat-container input[type="checkbox"]:checked + label::before {
    content: '\ebb1';
}
.chat-logo {
    margin-bottom: 10px;
    margin-top: -10px;
}

#minified-box {
    position: fixed;
    bottom: 0px;
    right: 10px;
    cursor: pointer;
}
#minified-box img {
    max-width: 200px;
}
#minified-box .badge {
    background-color: #dc3545;
    font-size: 16px;
    right: 35px;
    bottom: 76px;
    position: absolute;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}

#maximize-box {
    text-align: center;
    /* background-image: linear-gradient(90deg, #2af598 0%, #008ee3 100%); */
    background: #f8f8f8;
    font-size: 16px;
    line-height: 1.6;
    color: #fff;
    -webkit-border-radius: 7px 7px 0 0;
    border-radius: 7px 7px 0 0;
    width: 350px;
    height: auto;
    position: fixed;
    bottom: 0px;
    right: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    -webkit-box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    display: none;
    animation: .25s ease!important;
}

#maximize-box .header {
    cursor: pointer;
    margin-top: 7px;
    font-weight: 600;
}

#maximize-box .chatbrand {
    /* background: url(../img/brand.jpg); */
    background: #00A99D;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 7px 7px 0px 0px;
    -webkit-border-radius: 7px 7px 0 0;
    padding: 15px 0 10px 0;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
    position: relative;
    float: left;
    width: 100%;
}

.form-wrapper {
    background: #f8f8f8;
    color: #000;
    border-radius: 0;
    padding: 0px 10px 30px 10px;
    float: left;
    margin: 10px 0;
    width: 100%;
}

#chat-container h3 {
    margin: 15px 0px;
    font-weight: 600;
}

.chatbrand .brand-text a {
    color: white;
}

.chat-close-button {
    display: block;
    font-size: 18px;
    width: 50px;
    height: 50px;
    line-height: 40px;
    position: absolute;
    color: #fff;
    right: 0;
    top: 0;
    text-align: center;
    cursor: pointer;
}

.chat-close-button.black {
    color: #2a54a2;
    font-size: 22px;
}

.chat-close-button.black:hover {
    color: black;
}

.chat-tool-button {
    display: block;
    font-size: 24px;
    width: 50px;
    height: 50px;
    line-height: 35px;
    position: absolute;
    color: #fff;
    left: 0;
    top: 0;
    text-align: center;
    cursor: pointer;
}

.alert {
    padding: 5px 35px 5px 10px;
    margin-bottom: 10px;
    text-align: left;
}

.alert a,
.alert .alert-link {
    font-weight: normal;
    opacity: 1 !important;
    -webkit-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}

.chatbrand .chat-tool-button .btn {
    color: #FFF;
    font-size: 22px;
}

.chatbrand ul.dropdown-menu li a {
    color: #000;
}

.msg-wrapper {
    bottom: 0;
    position: relative;
    display: none;
}

.msg-form {
    height: auto;
    background: white;
}
.chat_msg {
    position: relative;
}

.msg {
    overflow-y: auto;
    background: #FFF;
    padding: 10px;
    height: 350px;
    width: 350px;
    overflow-y: auto;
    padding: 10px;
}

.chat-panel {
    flex: 0 0 125px;
    border-top: 1px solid #e8e8e8;
    color: black;
}

.chat-panel textarea {
    display: block;
    width: 100%;
    outline: 0;
    border: 0;
    padding: 5px 10px;
    resize: none;
}

.chat-tool {
    padding: 5px;
    margin-bottom: 5px;
    float: right;
    width: 100%;
}

.media .media-object {
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

.chat-tool-btn a {
    margin: 0 0 0 10px;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    text-align: left;
    float: left;
    font-size: 22px;
    padding: 5px;
    color: #c5c5c5;
}

.chat-tool-btn a:hover {
    color: #16b7c4;
}

.team-info img {
    width: 72px;
    height: 72px;
    border-radius: 100%;
    -webkit-border-radius: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    border: 2px solid white;
}

.team-info h2 {
    font-size: 16px;
    margin: 10px 0 2px 0;
    font-weight: 600;
}

.team-info p {
    font-size: 14px;
    margin: 0;
}

.team-info a {
    text-decoration: none;
}
.team-info small i {
    color: white;
    font-size: 10px;
    vertical-align: top;
    margin: 2px;
}
.team-info.left {
    width:140px;
    float: left;
}
.ad {
    padding: 0;
    float: left;
}
.ad img {
    width:200px;
    height:100px;
}

@media (max-width: 480px) {
    .ad {
        padding: 5px 0 5px 5px;
    }
    .team-info.left {
        width: 40%;
    }
    .team-info h2 {
        font-size: 14px;
    }
}
@media (max-width: 370px) {
    .ad {
        padding: 0px 0 0px 5px;
    }
    .team-info.left {
        width: 32%;
    }
}

@media (min-width: 375px) and (max-width: 480px) { 
    .msg {
        height: calc(87vh - 266px);
        max-height: calc(87vh - 266px);
        min-height: calc(87vh - 266px);
        width: 100%;
        position: relative;
    
    }
    #maximize-box {
        width: 100%;
        height: calc(100% - 90px);
        bottom: 70px;
        right: 0;
    }
}
@media (min-width: 321px) and (max-width: 374px) { 
    .chat-logo {
        margin-bottom: 5px;
    }
    #chat-container h3 {
        font-size: 18px;
        margin: 8px 0px;
    }
    #chat-container h4 {
        font-size: 16px;
    }
    #maximize-box * {
        font-size: 98%;    
    }
    .team-info img {
        height: 60px;
        width: 60px;
    }
    .form-wrapper {
        padding: 0px 0px 10px 0px;
    }
    .msg {
        height: calc(87vh - 266px);
        max-height: calc(87vh - 266px);
        min-height: calc(87vh - 266px);
        width: 100%;
        position: relative;
    }
    #maximize-box {
        width: 100%;
        height: calc(100%-90px);
        bottom: 70px;
        right: 0;
    }
    .chat-tool-btn a {
        margin: 0 0 0 10px;
        font-size: 20px;
        padding: 0 5px;
}
    .mobile {
        height: 50px;
        width: 50px;
        bottom: 10px;
    }
    
}
@media (min-width: 280px) and (max-width: 320px) { 
    .msg {
        height: 208px;
        max-height: 208px;
        min-height: 208px;
        width: 100%;
        position: relative;
    
    }
    #maximize-box {
        width: 100%;
        height: calc(100%-90px);
        bottom: 60px;
        right: 0;
    }
    #chat-container h3,#chat-container h4 {
        margin: 5px 0px;
    }
    .form-wrapper {
        padding: 0px 5px 10px 5px;
}
    
}

@media screen and (min-width: 481px) { 
.mobile {
    display: none;
}
}
@media screen and (max-width: 480px) { 
    .mobile {
        z-index: 9999;
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        box-shadow: rgba(0, 0, 0, 0.06) 0px 1px 6px 0px, rgba(0, 0, 0, 0.16) 0px 2px 32px 0px;
        border-radius: 50%;
        background: rgb(238, 125, 28);
        animation: 250ms ease 0s 1 normal none running animation-bhegco;
        transition: opacity 0.3s ease 0s;
    }
    .mobile i {
        display: flex;
        -webkit-box-align: center;
        align-items: center;
        -webkit-box-pack: center;
        justify-content: center;
        position: absolute;
        line-height: 1.9;
        margin: 0;
        color: white;
        font-size: 30px;
        top: 0px;
        bottom: 0px;
        width: 100%;
    }
    .mobile .close-btn i {
        opacity: 0;
        transform: rotate(0deg) scale(0);
        transition: transform 0.16s linear 0s, opacity 0.08s linear 0s;
    }
    .mobile .open-btn i {
        opacity: 1;
        transform: rotate(0deg) scale(1);
        transition: transform 0.16s linear 0s, opacity 0.08s linear 0s;
    }
    .mobile.active .close-btn i {
        opacity: 1;
        transform: rotate(0deg) scale(1);
        transition: transform 0.16s linear 0s, opacity 0.08s linear 0s;
        
    }
    .mobile.active .open-btn i {
        opacity: 0;
        transform: rotate(0deg) scale(0);
        transition: transform 0.16s linear 0s, opacity 0.08s linear 0s;
    }
    #maximize-box {
        bottom: 90px;
    }
}

/* SYSTEM */

.chat_minified-box {
    color: black;
    font-size: small;
    text-align: left;
    margin-bottom: 5px;
}

.chat_content {
    background-color: #dee8ed;
    border: 0px;
    max-width: 500px;
    word-wrap: break-word;
    padding: 7px 18px;
    font-size: 15px;
    border-radius: 25px;
    color: black;
    text-align: left;
    margin: 0 0 5px 0;
    display: flex;
    justify-content: flex-start;
    -ms-word-break: break-all;
    word-break: break-all;
}

.media-body small {
    color: darkgray;
    text-align: left;
    float: left;
    clear: both;
    font-size: 12px;
}

.chat_title {
    color: black;
    font-size: 16px;
    text-align: left;
    margin-bottom: 10px;
}

.times {
    text-align: center;
    padding: 2px 10px;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    background-color: #c5c5c5;
    color: white;
    font-size: 12px;
}


/* USER */

.media img {
    max-width: inherit !important;
}

.media-body.right .chat_minified-box {
    color: black;
    font-size: small;
    text-align: right;
}

.media-body.right > .chat_title {
    text-align: right;
}

.media-body.right > .chat_content {
    margin: 0 0 5px 0;
    text-align: right;
    display: flex;
    justify-content: flex-end;
    background-color: #c6e8e5;
    float: right;
    clear: both;
}

.media-body.right small {
    color: darkgray;
    text-align: right;
    float: right;
    clear: both;
}
.msg .media-body {
    padding-top: 5px;
}

/* Product */

.media.product {
    background-color: #e8e8e8;
    border-radius: 10px;
    -webkit-border-radius: 10px;
    padding: 5px 10px;
    margin-bottom: 10px;
}

.media.product .media-object {
    box-shadow: none;
    -webkit-box-shadow: none;
}

.media.product .chat_title {
    font-size: 14px;
    margin-top: 0;
    line-height: 1.2;
}

.media.product .media-body a {
    font-size: 14px;
    background-color: #ff9d00;
    border-radius: 20px;
    -webkit-border-radius: 20px;
    color: white;
    padding: 2px 10px;
    text-decoration: none;
}

.media.product .media-body a:hover {
    background-color: darkorange;
}

.system-info {
    margin-top: 20px;
    color: black;
    text-align: center;
}

.system-info p {
    margin-bottom: 5px;
}

@media screen and (max-width: 768px) {
/*     #minified-box,
    #maximize-box {
        right: 10px;
    } */
    .chat_title {
        margin: 5px 0;
        font-size: 14px;
    }
    .chat_content {
        max-width: 200px;
        word-wrap: break-word;
        padding: 5px 15px;
        font-size: 14px;
    }
    .chat-panel textarea {
        font-size: 14px;
    }
}


/* System Backend */

#frame .chat-logo {
    margin: 0 auto;
}

#frame .msg {
    height: 610px;
    width: auto;
}

#frame {
    min-width: 360px;
    max-width: 1200px;
    height: 92vh;
    min-height: 300px;
    max-height: 720px;
    background: #FFF;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    -webkit-box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    font-size: 16px;
}

@media screen and (max-width: 360px) {
    #frame {
        width: 100%;
        height: 100vh;
    }
}
@media (min-width: 1107px) and (max-width: 1223px) {
    #frame #sidepanel {
        min-width: auto;
    }
}

@media screen and (max-width: 1106px) {
    #frame .msg {
        height: 378px;
    }
}

#frame #sidepanel {
    float: left;
    min-width: 280px;
    /* max-width: 340px; */
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #008ee3 20%, #2af598 100%);
    -moz-background: linear-gradient(90deg, #008ee3 20%, #2af598 100%);
    -webkit-background: linear-gradient(90deg, #008ee3 20%, #2af598 100%);
    color: #f5f5f5;
    overflow: hidden;
    position: relative;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
    -webkit-box-shadow: 0 -2px 10px rgba(0, 0, 0, .25);
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel {
        width: 58px;
        min-width: 58px;
    }
}

#frame #sidepanel #profile {
    width: 80%;
    margin: 15px auto;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile {
        width: 100%;
        margin: 0 auto;
        padding: 5px 0 0 0;
        background: #6684ba;
    }
}

#frame #sidepanel #profile.expanded .wrap {
    height: 210px;
    line-height: initial;
}

#frame #sidepanel #profile.expanded .wrap p {
    margin-top: 20px;
    font-weight: 600;
}

/* #frame #sidepanel #profile.expanded .wrap i.expand-button {
    -moz-transform: scaleY(-1);
    -o-transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    transform: scaleY(-1);
    filter: FlipH;
    -ms-filter: "FlipH";
} */

#frame #sidepanel #profile .wrap {
    height: 60px;
    line-height: 60px;
    overflow: hidden;
    -moz-transition: 0.3s height ease;
    -o-transition: 0.3s height ease;
    -webkit-transition: 0.3s height ease;
    transition: 0.3s height ease;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap {
        height: 55px;
    }
}

#frame #sidepanel #profile .wrap img {
    width: 60px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid #e74c3c;
    height: auto;
    float: left;
    cursor: pointer;
    -moz-transition: 0.3s border ease;
    -o-transition: 0.3s border ease;
    -webkit-transition: 0.3s border ease;
    transition: 0.3s border ease;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap img {
        width: 50px;
        margin-left: 4px;
    }
}

#frame #sidepanel #profile .wrap img.online {
    border: 2px solid #72ff59;
}

#frame #sidepanel #profile .wrap img.away {
    border: 2px solid #f1c40f;
}

#frame #sidepanel #profile .wrap img.busy {
    border: 2px solid #e74c3c;
}

#frame #sidepanel #profile .wrap img.offline {
    border: 2px solid #95a5a6;
}

#frame #sidepanel #profile .wrap p {
    float: left;
    margin-left: 15px;
    font-weight: 600;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap p {
        display: none;
    }
}

#frame #sidepanel #profile .wrap i.expand-button {
    margin-top: 20px;
    margin-left: 10px;
    font-size: 1em;
    cursor: pointer;
    color: #dee8ed;
    text-shadow: 0 0px 5px rgba(0, 0, 0, .2);
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap i.expand-button {
        display: none;
    }
}

#frame #sidepanel #profile .wrap #status-options {
    color: black;
    position: absolute;
    opacity: 0;
    visibility: hidden;
    width: 150px;
    margin: 70px 0 0 0;
    border-radius: 6px;
    z-index: 99;
    line-height: initial;
    background: #dee8ed;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
    box-shadow: 0 0px 10px rgba(0, 0, 0, .25);
    -webkit-box-shadow: 0 0px 10px rgba(0, 0, 0, .25);
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap #status-options {
        width: 58px;
        margin-top: 57px;
    }
}

#frame #sidepanel #profile .wrap #status-options.active {
    opacity: 1;
    visibility: visible;
    margin: 75px 0 0 0;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap #status-options.active {
        margin-top: 62px;
    }
}

#frame #sidepanel #profile .wrap #status-options:before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 8px solid #dee8ed;
    margin: -8px 0 0 24px;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap #status-options:before {
        margin-left: 23px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul {
    overflow: hidden;
    border-radius: 6px;
}

#frame #sidepanel #profile .wrap #status-options ul li {
    padding: 15px 0 30px 18px;
    display: block;
    cursor: pointer;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap #status-options ul li {
        padding: 15px 0 35px 22px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li:hover {
    background: #496886;
    color: white;
}

#frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 5px 0 0 0;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle {
        width: 14px;
        height: 14px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: -3px 0 0 -3px;
    background: transparent;
    border-radius: 50%;
    z-index: 0;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap #status-options ul li span.status-circle:before {
        height: 18px;
        width: 18px;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li p {
    padding-left: 12px;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #profile .wrap #status-options ul li p {
        display: none;
    }
}

#frame #sidepanel #profile .wrap #status-options ul li#status-online span.status-circle {
    background: #2ecc71;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-online.active span.status-circle:before {
    border: 2px solid #2ecc71;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-away span.status-circle {
    background: #f1c40f;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-away.active span.status-circle:before {
    border: 2px solid #f1c40f;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-busy span.status-circle {
    background: #e74c3c;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-busy.active span.status-circle:before {
    border: 2px solid #e74c3c;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-offline span.status-circle {
    background: #95a5a6;
}

#frame #sidepanel #profile .wrap #status-options ul li#status-offline.active span.status-circle:before {
    border: 2px solid #95a5a6;
}

#frame #sidepanel #profile .wrap #expanded {
    padding: 40px 0 0 0;
    display: block;
    line-height: initial !important;
}

#frame #sidepanel #profile .wrap #expanded label {
    float: left;
    clear: both;
    margin: 0 8px 5px 0;
    padding: 5px 0;
}

#frame #sidepanel #profile .wrap #expanded input {
    border: none;
    margin-bottom: 6px;
    background: #6684ba;
    border-radius: 3px;
    color: #f5f5f5;
    padding: 7px;
    width: calc(100% - 43px);
}

#frame #sidepanel #profile .wrap #expanded input:focus {
    outline: none;
    background: #dee8ed;
}

#frame #sidepanel #search {
    border-top: 0px solid #6684ba;
    border-bottom: 0px solid #6684ba;
    border-right: 0;
    font-weight: 300;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #search {
        display: none;
    }
}

#frame #sidepanel #search label {
    position: absolute;
    margin: 10px 0 0 20px;
}

#frame #sidepanel #search input {
    padding: 10px 0 10px 46px;
    width: calc(100% - 0px);
    border: none;
    background: #6684ba;
    color: #f5f5f5;
    margin-bottom: 0;
    border-radius: 0;
    font-family: "Helvetica Neue", Helvetica, Arial, "微軟正黑體", "微软雅黑", "メイリオ", sans-serif;
}
#frame #sidepanel #search button {
    border-radius: 0;
}

#frame #sidepanel #search input:focus {
    outline: none;
    background: #214383;
}

#frame #sidepanel #search input::-webkit-input-placeholder {
    color: #f5f5f5;
}

#frame #sidepanel #search input::-moz-placeholder {
    color: #f5f5f5;
}

#frame #sidepanel #search input:-ms-input-placeholder {
    color: #f5f5f5;
}

#frame #sidepanel #search input:-moz-placeholder {
    color: #f5f5f5;
}

#frame #sidepanel #contacts {
    /* height: calc(100% - 177px); */
    height: calc(100%);
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #2b54a2;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #contacts {
        height: calc(100% - 60px);
        overflow-y: scroll;
        overflow-x: hidden;
    }
    #frame #sidepanel #contacts::-webkit-scrollbar {
        display: none;
    }
}

#frame #sidepanel #contacts.expanded {
    height: calc(100% - 279px);
}

#frame #sidepanel #contacts::-webkit-scrollbar {
    width: 8px;
    background: #2a54a2;
}

#frame #sidepanel #contacts::-webkit-scrollbar-thumb {
    background-color: #18356d;
}

#frame #sidepanel #contacts ul li.contact {
    position: relative;
    padding: 10px 0 15px 0;
    font-size: 0.9em;
    cursor: pointer;
}

#frame #sidepanel #contacts ul li.contact.new {
    background: #0334e3;
}
#frame #sidepanel #contacts ul li.contact.new p.preview {
    font-weight: 600;
    font-style: italic;
}
#frame #sidepanel #contacts ul li.contact.new p.preview:before {
    content: "\f0e0";
    font-family: "Font Awesome 5 Free";
    margin-right: 5px;
}
#frame #sidepanel #contacts ul li.contact.lock p.preview:before {
    content: "\f023";
    font-family: 'Font Awesome\ 5 Free';
    font-weight: 900;
    margin-right: 5px;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #contacts ul li.contact {
        padding: 6px 0 46px 8px;
    }
}
#frame #sidepanel #contacts ul li.contact.new p.preview {
    font-weight: 600;
    font-style: italic;
}

#frame #sidepanel #contacts ul li.contact.new:hover {
    background: #0224a0;
}
#frame #sidepanel #contacts ul li.contact:hover {
    background: #6684ba;
}

#frame #sidepanel #contacts ul li.contact.active {
    background: #6684ba;
    border-right: 5px solid #dee8ed;
}

#frame #sidepanel #contacts ul li.contact.active span.contact-status {
    border: 2px solid #6684ba !important;
}

#frame #sidepanel #contacts ul li.contact .wrap {
    width: 88%;
    margin: 0 auto;
    position: relative;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #contacts ul li.contact .wrap {
        width: 100%;
    }
}

#frame #sidepanel #contacts ul li.contact .wrap span {
    position: absolute;
    left: 0;
    margin: -2px 0 0 -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #2a54a2;
    background: #95a5a6;
}

#frame #sidepanel #contacts ul li.contact .wrap span.online {
    background: #2ecc71;
}

#frame #sidepanel #contacts ul li.contact .wrap span.away {
    background: #f1c40f;
}

#frame #sidepanel #contacts ul li.contact .wrap span.busy {
    background: #e74c3c;
}

#frame #sidepanel #contacts ul li.contact .wrap img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin-right: 10px;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #contacts ul li.contact .wrap img {
        margin-right: 0px;
    }
}

#frame #sidepanel #contacts ul li.contact .wrap .meta {
    padding: 0;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #contacts ul li.contact .wrap .meta {
        display: none;
    }
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .name {
    font-weight: 600;
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .name small {
    color: lightgray;
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .preview {
    margin: 5px 0 0 0;
    padding: 0 0 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -moz-transition: 1s all ease;
    -o-transition: 1s all ease;
    -webkit-transition: 1s all ease;
    transition: 1s all ease;
}

#frame #sidepanel #contacts ul li.contact .wrap .meta .preview span {
    position: initial;
    border-radius: initial;
    background: none;
    border: none;
    padding: 0 2px 0 0;
    margin: 0 0 0 1px;
    opacity: .5;
}

#frame #sidepanel #bottom-bar {
    position: absolute;
    width: 100%;
    bottom: 0;
}

#frame #sidepanel #bottom-bar button {
    float: left;
    border: none;
    width: 50%;
    padding: 14px 0;
    background: #16b7c4;
    color: #f5f5f5;
    cursor: pointer;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #bottom-bar button {
        float: none;
        width: 100%;
        padding: 15px 0;
    }
}

#frame #sidepanel #bottom-bar button:focus {
    outline: none;
}

#frame #sidepanel #bottom-bar button:nth-child(1) {
    border-right: 1px solid #149387;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #bottom-bar button:nth-child(1) {
        border-right: none;
        border-bottom: 1px solid #149387;
    }
}

#frame #sidepanel #bottom-bar button:hover {
    background: #224076;
}

#frame #sidepanel #bottom-bar button i {
    margin-right: 3px;
    font-size: 1em;
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #bottom-bar button i {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 1106px) {
    #frame #sidepanel #bottom-bar button span {
        display: none;
    }
}

#frame .content {
    float: right;
    width: 60%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

@media screen and (max-width: 1106px) {
    #frame .content {
        width: calc(100% - 58px);
        min-width: 300px !important;
    }
}

@media screen and (min-width: 1107px) {
    #frame .content {
        width: calc(100% - 30%);
    }
}

#frame .content .contact-profile {
    width: 100%;
    height: 60px;
    line-height: 60px;
    background: #f5f5f5;
    box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 2px 2px rgba(0, 0, 0, .1);
    z-index: 99;
    position: relative;
}

#frame .content .contact-profile img {
    width: 40px;
    border-radius: 50%;
    float: left;
    margin: 9px 12px 0 16px;
}

#frame .content .contact-profile p {
    float: left;
    font-weight: 600;
}

#frame .content .contact-profile .social-media {
    float: right;
}

#frame .content .contact-profile .social-media i {
    margin-left: 14px;
    cursor: pointer;
    font-size: 22px;
    color: #2a54a2;
}

#frame .content .contact-profile .social-media i:nth-last-child(1) {
    margin-right: 20px;
}

#frame .content .contact-profile .social-media i:hover {
    color: #16b7c4;
}

#frame .content .messages {
    height: auto;
    min-height: calc(100% - 93px);
    max-height: calc(100% - 93px);
    overflow-y: scroll;
    overflow-x: hidden;
    padding-bottom: 20px;
    font-size: 17px;
}

@media screen and (max-width: 1106px) {
    #frame .content .messages {
        max-height: calc(100% - 105px);
    }
    #frame .content .contact-profile .social-media i {
        margin-left: 8px;
        font-size: 16px;
    }
}

#frame .content .messages::-webkit-scrollbar {
    width: 8px;
    background: transparent;
}

#frame .content .messages::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.3);
}

#frame .content .messages ul li {
    display: inline-block;
    clear: both;
    float: left;
    margin: 15px 15px 5px 15px;
    width: calc(100% - 25px);
    font-size: 0.9em;
}

#frame .content .messages ul li:nth-last-child(1) {
    margin-bottom: 20px;
}

#frame .content .messages ul li.sent img {
    margin: 0px 8px 0 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

#frame .content .messages ul li.sent p {
    background: #dee8ed;
    color: black;
    word-break: break-all;
}

#frame .content .messages ul li.replies img {
    float: right;
    margin: 6px 0 0 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
}

#frame .content .messages ul li.replies p {
    background: #f5f5f5;
    float: right;
    word-break: break-all;
}

#frame .content .messages ul li img {
    width: 40px;
    border-radius: 50%;
    float: left;
}

#frame .content .messages ul li p {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 20px;
    max-width: 205px;
    line-height: 130%;
}

@media screen and (min-width: 1106px) {
    #frame .content .messages ul li p {
        max-width: 300px;
    }
}

#frame .content .message-input {
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 99;
    background-color: #fff;
    box-shadow: 0 -2px 2px rgba(0, 0, 0, .1);
    -webkit-box-shadow: 0 -2px 2px rgba(0, 0, 0, .1);
}

#frame .content .message-input .wrap {
    position: relative;
}

#frame .content .message-input .wrap input {
    float: left;
    border: none;
    width: calc(100% - 90px);
    padding: 13px 35px 15px 8px;
    color: #6684ba;
    margin-bottom: 0;
}

@media screen and (max-width: 1106px) {
    #frame .content .message-input .wrap input {
        padding: 15px 32px 16px 8px;
    }
}

#frame .content .message-input .wrap input:focus {
    outline: none;
}

#frame .content .message-input .wrap .attachment {
    position: absolute;
    right: 130px;
    z-index: 4;
    margin-top: 13px;
    font-size: 1.5em;
    color: #6684ba;
    opacity: .5;
    cursor: pointer;
}

#frame .content .message-input .wrap .emoji {
    position: absolute;
    right: 85px;
    z-index: 4;
    margin-top: 13px;
    font-size: 1.5em;
    color: #6684ba;
    opacity: .5;
    cursor: pointer;
}

@media screen and (max-width: 1106px) {
    #frame .content .message-input .wrap .attachment,
    #frame .content .message-input .wrap .emoji {
        margin-top: 17px;
        right: 65px;
    }
}

#frame .content .message-input .wrap .attachment:hover,
#frame .content .message-input .wrap .emoji:hover {
    opacity: 1;
}

#frame .content .message-input .wrap button {
    float: right;
    border: none;
    width: 70px;
    padding: 15px 0;
    cursor: pointer;
    background: #16b7c4;
    color: #f5f5f5;
    font-size: 20px;
}

@media screen and (max-width: 1106px) {
    #frame .content .message-input .wrap button {
        padding: 16px 0;
    }
}

#frame .content .message-input .wrap button:hover {
    background: #18a89b;
}

#frame .content .message-input .wrap button:focus {
    outline: none;
}

.msg .media.product {
    margin: 10px;
    padding: 15px;
}

.msg .media.product .chat_title {
    font-size: 18px;
    margin-bottom: 10px;
}

.msg .media.product li {
    font-size: 14px;
}

.msg .media.product .media-body a {
    padding: 5px 10px;
    margin-top: 10px;
}


/* member profile */

#frame .content.expanded {
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
}

#frame .content .right-side {
    position: absolute;
    right: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    margin: 0;
    z-index: 99;
    line-height: initial;
    background: #f5f5f5;
}

#frame .content .right-side table {
    font-size: 14px;
}

#frame .content .right-side.expanded {
    width: 100%;
    height: 670px;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 20px 15px;
    opacity: 1;
    visibility: visible;
    -moz-transition: 0.3s all ease;
    -o-transition: 0.3s all ease;
    -webkit-transition: 0.3s all ease;
    transition: 0.3s all ease;
    box-shadow: inset 2px 0px 2px rgba(0, 0, 0, .1);
    -webkit-box-shadow: inset 2px 0px 2px rgba(0, 0, 0, .1);
}

#frame .content .right-side .avatar {
    width: auto;
    height: 100px;
    margin-bottom: 10px;
    border-radius: 0;
}

@media screen and (max-width: 1106px) {
    #frame {
        min-width: 360px;
        height: 500px;
        min-height: 300px;
        max-height: 720px;
    }
    #frame .content.expanded {
        padding: 0 300px 0 0;
        -moz-transition: 0.3s all ease;
        -o-transition: 0.3s all ease;
        -webkit-transition: 0.3s all ease;
        transition: 0.3s all ease;
    }
    #frame #sidepanel #contacts ul li.contact {
        font-size: 0;
    }
    #frame .content .right-side.expanded {
        width: 300px;
        height: 500px;
        overflow-y: scroll;
        overflow-x: hidden;
        padding: 15px 10px;
        opacity: 1;
        visibility: visible;
        -moz-transition: 0.3s all ease;
        -o-transition: 0.3s all ease;
        -webkit-transition: 0.3s all ease;
        transition: 0.3s all ease;
    }
    #frame .content .right-side .avatar {
        width: auto;
        height: 120px;
        margin-bottom: 10px;
        border-radius: 0;
    }
    #frame .content .message-input .wrap .emoji {
        right: 72px;
        margin-top: 16px;
        font-size: 1.2em;
    }
    #frame .content .message-input .wrap .attachment {
        right: 100px;
        margin-top: 16px;
        font-size: 1.2em;
    }
    #frame .content .message-input .wrap button {
        width: 60px;
        padding: 19px 0;
        font-size: 16px;
    }
    .msg .media.product .chat_title {
        font-size: 14px;
        margin-bottom: 10px;
    }
    .msg .media.product li {
        font-size: 12px;
    }
    /* .chat_content {
        max-width: 100px;
    } */
    #frame .content .message-input .wrap input {
        padding: 15px 32px 16px 8px;
    }
    #frame #sidepanel #profile .wrap #expanded {
        display: none;
    }
}