:root {
    --selfcolor: #ccdef8;
}

*,
:after,
:before {
    box-sizing: border-box
}

body,
html {
    height: 100%
}

.service-info-avatar{
    background: url(./digital-woman-contact.png);
    background-size: cover;
    border-radius: 50%;
    height: 7rem;
    width: 7rem;
}
.service-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: 3px 0 25px 3px #fff;
    position: absolute;
    top: -20px;
    left: 0;
    background: url(./digital-woman-contact.png);
    background-size: cover;
}
.system-avatar {
    background: url(./digital-woman-contact.png);
    background-size: cover;
    height:75px;
    width: 75px;
}

.system-avatar-1 {
    background: url(./digital-woman-contact.png);
    background-size: cover;
    background-color: #f2f3f5;
    height:35px;
    width: 35px;
}

.system-avatar-2 {
    background: url(./imchat_senduser_avatar.png);
    background-size: cover;
    background-color: #f2f3f5;
    height:35px;
    width: 35px;
}

.form-control:focus {
    border-color: #dee2e6 !important;
    box-shadow: none !important;
}

.service-name {
    font-size: 0.7rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    height: 8px;
    width: 8px;
    border-radius: 50%;
    background: #4ce337;
}
.same-wenti {
    padding: 5px;
    background: #eff2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.same-wenti .left{
    display: flex;
    align-items: center;
    justify-content: left;
    flex-wrap: nowrap;
    gap: 5px;
}

.same-wenti .left .q-item{
    border-radius: 30px;
    color: #498ed4;
    border: 1px solid #498ed4;
    padding: 3px 5px;;
    font-size: 0.7rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.same-wenti .right{
    display: flex;
    justify-content: right;
}

.same-wenti .right .close {
    font-size: 1.2rem;
    cursor: pointer;
}

.tool-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    gap: 1rem;
}

.tool-bar .left {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.3rem;
}
.tool-bar .left .tool-item {
    cursor: pointer;
}

.tool-bar .left .tool-item:hover {
    color: #0d6efdb0;
}

.custom-radio {
    line-height: 1.3125rem;
    min-height: 1.3125rem
}

.face .face-content {
    overflow-x: hidden;
    overflow-y: scroll;
    height: 10.9375rem;
    width: 15rem;
    padding: 0px;
    margin: 5px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;

}

.face .face-content .face-item {
    padding: 0 5px;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.5s;
}

.face .face-content .face-item:hover {
    background: #f2f3f5;
    border-radius: 3px;
    transform: scale(1.5);

}

.media-label {
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0
}

.avatar {
    height: 3rem;
    width: 3rem;
    min-width: 3rem;
    display: inline-block;
    position: relative;
    border-radius: 50%;
    /* box-shadow: 0 0 1px 1px rgba(0, 0, 0, .1) */
}

.avatar-big {
    height: 7rem;
    width: 7rem;
    min-width: 7rem;
    display: inline-block;
    position: relative;
    border-radius: 50%;
    /* box-shadow: 0 0 1px 1px rgba(0, 0, 0, .1); */
    margin: 20px auto 10px auto;
}

.avatar img,
.avatar span {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    -o-object-fit: cover;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center
}

.avatar.avatar-sm {
    height: 2rem;
    width: 2rem;
    min-width: 2rem
}

.avatar.avatar-md {
    height: 3.75rem;
    width: 3.75rem;
    min-width: 3.75rem
}

.avatar.avatar-lg {
    height: 5rem;
    width: 5rem;
    min-width: 5rem
}

.avatar.avatar-xl {
    height: 7.5rem;
    width: 7.5rem;
    min-width: 7.5rem
}

.avatar.avatar-xxl {
    height: 9.375rem;
    width: 9.375rem;
    min-width: 9.375rem
}

.avatar.avatar-primary {
    background: var(--selfcolor);
    color: #fff
}

.avatar.avatar-success {
    background: #44a675;
    color: #fff
}

.avatar.avatar-secondary {
    background: #6c757d;
    color: #fff
}

.avatar.avatar-danger {
    background: #ff337c;
    color: #fff
}

.avatar.avatar-warning {
    background: #ffb74d;
    color: #fff
}

.avatar.avatar-info {
    background: #3c91ec;
    color: #fff
}

.avatar.avatar-away:before,
.avatar.avatar-busy:before,
.avatar.avatar-offline:before,
.avatar.avatar-online:before {
    content: "";
    position: absolute;
    display: block;
    width: .8rem;
    height: .8rem;
    border-radius: 50%;
    top: 0;
    right: 0;
    border: 3px solid #fff
}

.avatar.avatar-online:before {
    background: #44a675
}

.avatar.avatar-offline:before {
    background: #6c757d
}

.avatar.avatar-busy:before {
    background: #ff337c
}

.avatar.avatar-away:before {
    background: #ffb74d
}

.chat-message-box {
    height: 15rem;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
    font-size: .8rem
}

.chat-message .chat-message-content {
    padding: 0.8rem 1.25rem;
    background-color: #ebecef;
    /* color: #8094ae; */
    margin-left: 1.25rem;
    border-radius: 1rem;
    text-align: left;
    display: inline-block;
    max-width: 90%;
    overflow-wrap: break-word;
    white-space: normal;
}

/* .chat-message-content>span{
	font-size: 16px !important;
} */



.chat-message .avatar {
    display: inline-block;
    vertical-align: bottom;
    margin-top: -2.5rem
}

.chat-message .avatar img {
    box-shadow: 0 0 0 .5rem #fff;
    background: #fff;
}

.chat-message .chat-message-options {
    display: inline-flex;
    align-items: center;
    font-size: .75rem;
    color: #adb5bd;
    margin-top: .3125rem
}

.chat-message .chat-message-options>* {
    margin-left: .3125rem;
    margin-right: .3125rem
}

.chat-message .chat-message-options>:not(.avatar) {
    height: 1.125rem;
    line-height: 1.125rem;
    display: inline-block;
    vertical-align: middle
}

.chat-message.self {
    text-align: right
}

.chat-message.self .chat-message-content {
    background-color: var(--selfcolor);
    /* color: #fff; */
    margin-right: 1.25rem;
    margin-left: 0
}

.chat-message.self .chat-message-content.productBack {
    background-color: #f5f6fa;
    color: #8094ae;
}

.chat-message.self .chat-message-options {
    flex-direction: row-reverse
}

.chat-message-divider {
    width: 100%;
    max-width: 100%;
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1020
}

.chat-message-divider:before {
    content: attr(data-label);
    display: block;
    position: absolute;
    top: -.5rem;
    letter-spacing: .0313rem;
    font-size: .6875rem;
    padding: .125rem .5rem;
    border-radius: .1875rem;
    background-color: #f8f9fa;
    border: 1px solid #e5e9f2;
    left: 50%;
    font-weight: 500;
    transform: translateX(-50%)
}
