.row.row-broken {
    padding-bottom: 0;
}

.col-inside-lg {
    padding: 20px;
}

.chat, .decor-default, .replay-decor-default {
    height: 471px;
}

.decor-default, .replay-decor-default {
    background-color: #fbfbfb;
}

.chat-users h6 {
    font-size: 20px;
    margin: 0 0 20px;
}

.chat-users .user {
    position: relative;
    padding: 0 0 0 50px;
    display: block;
    cursor: pointer;
    margin: 0 0 20px;
}

.chat-users .user .avatar {
    top: 0;
    left: 0;
}

.chat .avatar {
    width: 40px;
    height: 40px;
    position: absolute;
    background: #1753fc;
    border-radius: 20px;
}

.chat .avatar img {
    display: block;
    border-radius: 20px;
    height: 100%;
}

.chat .avatar .status.off {
    border: 1px solid #5a5a5a;
    background: #ffffff;
}

.chat .avatar .status.on-line {
    background: #4caf50;
}

.chat .avatar .status.busy {
    background: #ffc107;
}

.chat .avatar .status.offline {
    background: #ed4e6e;
}

.chat-users .user .status {
    bottom: 0;
    left: 28px;
}

.chat .avatar .status {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    position: absolute;
}

.chat-users .user .name {
    font-size: 14px;
    font-weight: bold;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-users .user .mood {
    font: 200 14px/20px "Raleway", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/*****************CHAT BODY *******************/
.chat-body h6 {
    font-size: 20px;
    margin: 0 0 20px;
}

.chat-body .answer.left {
    padding: 0 0 0 58px;
    text-align: left;
    float: left;
}

.chat-body .answer {
    position: relative;
    max-width: 600px;
    overflow: hidden;
    clear: both;
}

.chat-body .answer.left .avatar {
    left: 0;
}

.chat-body .answer .avatar {
    bottom: 36px;
}

.chat .avatar {
    width: 40px;
    height: 40px;
    position: absolute;
}

.chat .avatar img {
    display: block;
    border-radius: 20px;
    height: 100%;
}

.chat-body .answer .name {
    font-size: 14px;
    line-height: 36px;
}

.chat-body .answer.left .avatar .status {
    right: 4px;
}

.chat-body .answer .avatar .status {
    bottom: 0;
}

.chat-body .answer.left .text {
    background: #ebebeb;
    color: #333333;
    border-radius: 8px 8px 8px 0;
}

.chat-body .answer .text {
    padding: 12px;
    font-size: 16px;
    line-height: 26px;
    position: relative;
}

.chat-body .answer.left .text:before {
    left: -30px;
    border-right-color: #ebebeb;
    border-right-width: 12px;
}

.chat-body .answer .text:before {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    border: 18px solid transparent;
    border-bottom-width: 0;
}

.chat-body .answer.left .time {
    padding-left: 12px;
    color: #333333;
}

.chat-body .answer .time {
    font-size: 13px;
    line-height: 36px;
    position: relative;
    padding-bottom: 1px;
}

/*RIGHT*/
.chat-body .answer.right {
    padding: 0 58px 0 0;
    text-align: right;
    float: right;
}

.chat-body .answer.right .avatar {
    right: 0;
}

.chat-body .answer.right .avatar .status {
    left: 4px;
}

.chat-body .answer.right .text {
    background: #7266ba;
    color: #ffffff;
    border-radius: 8px 8px 0 8px;
}

.chat-body .answer.right .text:before {
    right: -30px;
    border-left-color: #7266ba;
    border-left-width: 12px;
}

.chat-body .answer.right .time {
    padding-right: 12px;
    color: #333333;
}

/**************ADD FORM ***************/
.chat-body .answer-add {
    clear: both;
    position: relative;
    margin: 20px -20px -20px;
    padding: 20px;
    background: #46be8a;
}

.chat-body .answer-add input {
    border: none;
    background: none;
    display: block;
    width: 100%;
    font-size: 16px;
    line-height: 20px;
    padding: 0;
    color: #ffffff;
}

.chat input {
    -webkit-appearance: none;
    border-radius: 0;
}

.chat-body .answer-add .answer-btn-1 {
    background: url("http://91.234.35.26/iwiki-admin/v1.0.0/admin/img/icon-40.png") 50% 50% no-repeat;
    right: 56px;
}

.chat-body .answer-add .answer-btn {
    display: block;
    cursor: pointer;
    width: 36px;
    height: 36px;
    position: absolute;
    top: 50%;
    margin-top: -18px;
}

.chat-body .answer-add .answer-btn-2 {
    background: url("http://91.234.35.26/iwiki-admin/v1.0.0/admin/img/icon-41.png") 50% 50% no-repeat;
    right: 20px;
}

.chat input::-webkit-input-placeholder {
    color: #fff;
}

.chat input:-moz-placeholder { /* Firefox 18- */
    color: #fff;
}

.chat input::-moz-placeholder { /* Firefox 19+ */
    color: #fff;
}

.chat input:-ms-input-placeholder {
    color: #fff;
}

.chat input {
    -webkit-appearance: none;
    border-radius: 0;
}

.answer-reply {
    clear: both;
    box-shadow: 0 -20px 20px -5px #fff;
    position: relative;
    margin-top: 30px;
    border-top: 1px solid #eee;
    background: #f8f8f8;
}

.answer-reply textarea {
    width: 100%;
    font-size: 13px;
    border: 0;
    padding: 10px 15px;
    resize: none;
    height: 60px;
    background: 0 0;
}

.answer-reply button {
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    height: 100%;
    width: 75px;
    font-size: 25px;
    color: #2196f3;
    background: 0 0;
}

.answer-reply button:hover {
    background: #f2f2f2;
}

.answer-reply .right-btn {
    right: 20px;
}

/****************chat end here ****************************/
.chat-btn {
    position: absolute;
    right: 14px;
    bottom: 30px;
    cursor: pointer
}

.chat-btn .close {
    display: none
}

.chat-btn i {
    transition: all 0.9s ease
}

#check:checked ~ .chat-btn i {
    display: block;
    pointer-events: auto;
    transform: rotate(180deg)
}

#check:checked ~ .chat-btn .comment {
    display: none
}

.chat-btn i {
    font-size: 22px;
    color: #fff !important
}

.chat-btn {
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50px;
    background-color: #1753fc;
    color: #fff;
    font-size: 22px;
    border: none
}

.wrapper {
    position: absolute;
    right: 20px;
    bottom: 100px;
    width: 290px;
    background-color: #fff;
    border-radius: 5px;
    opacity: 0;
    display: none;
    transition: all 0.4s
}

#check:checked ~ .wrapper {
    opacity: 1;
    display: block;
}

#check {
    display: none !important
}

.chat-panel-view {
    display: none;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.chat-body {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
}

.chatView {
    height: 100%;
    overflow: auto;
    padding-bottom: 1.5rem;
    margin-right: -20px;
    padding-right: 20px;
}

.answer-reply {
    height: 68px;
    margin-top: 0;
    border: none;

}

.answer-reply textarea {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 0.5rem;
}

.shakeActive {
    width: 75px;
    height: 75px;
    background: #333;
    -webkit-animation-name: shake;
    -webkit-animation-duration: 0.8s;
    -webkit-animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    -webkit-transform-origin: 50% 100%;
}

.shakeReplay {
    background: #6a72ff !important;
}

.shakeReplay.shakeTest- {
    background: #c1e7ff !important;
}

@-webkit-keyframes shake {
    0% {
        -webkit-transform: translate(1px, 1px) rotate(0deg);
    }
    10% {
        -webkit-transform: translate(-1px, -1px) rotate(-1deg);
    }
    20% {
        -webkit-transform: translate(-3px, 0px) rotate(3deg);
    }
    30% {
        -webkit-transform: translate(0px, 1px) rotate(0deg);
    }
    40% {
        -webkit-transform: translate(1px, -1px) rotate(1deg);
    }
    50% {
        -webkit-transform: translate(-1px, 1px) rotate(-1deg);
    }
    60% {
        -webkit-transform: translate(-3px, 1px) rotate(0deg);
    }
    70% {
        -webkit-transform: translate(1px, 1px) rotate(-1deg);
    }
    80% {
        -webkit-transform: translate(-1px, -1px) rotate(4deg);
    }
    90% {
        -webkit-transform: translate(1px, 1px) rotate(0deg);
    }
    100% {
        -webkit-transform: translate(1px, -1px) rotate(-1deg);
    }
}

.chat-btn::after {
    content: "";
    top: 0px;
    right: 0px;
    height: 15px;
    width: 15px;
    background: #2ee02e;
    border-radius: 100px;
    position: absolute;
    border: 3px solid #fff;
}

.call-box1 {
    background: #fff;
    border-radius: 10px;
    padding: 8px;
    height: 100%;
    cursor: pointer;
}

.call-box1:hover {
    background: #e9e9e9;
}

.call-box1 .avatar {
    border-radius: 100%;
    height: 45px;
    width: 45px;
    background: #0b7ec4;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.call-box1 h5 {
    margin-bottom: 5px;
    font-weight: 700;
    width: 270px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.call-box1 p {
    margin: 0;
    font-size: 12px
}

.call-box1 p span {
    font-weight: 600
}

.call-box1 .location {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    width: 270px;
}

.call-box1 .de-active {
    background: #000000;
}

.call-box1 .de-active i {
    color: #e23e3d;
}

.btn-chat-info {
    left: 0;
}

.map-video .chat-list {
    max-width: 350px;
}

.bottom_chat_call_box_view {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
}

.chat-box-btn {
    /*width: 100%;*/
    max-width: 350px;
    /*min-width: 280px;*/
    padding-right: 9px;
    padding-left: 9px;
    padding-bottom: 10px;
}

.chat-list-view-home {
    max-height: 100%;
    overflow-y: auto;
}

.tcp-wrap {
    /*width: 5.4rem;*/
    height: 7.5rem;
    overflow: hidden;
    padding: 5px;
    border: 1px solid;
    display: flex;
    flex-direction:column-reverse;
    word-wrap: break-word;
    text-transform: uppercase;
    font-family: monospace;
    font-size: 1rem;
    width: 12ch;
    margin: 0 auto;
}

@media (max-width: 767.98px) {
    .bottom_chat_call_box_view {
        margin-left: 0;
    }

    .chat-box-btn {
        padding-right: 0px;
        padding-left: 0px;
        padding-bottom: 10px;
    }
    .call-box1{
        padding: 8px 15px;
        border-radius: 10px;
        cursor: pointer;
    }
    .chat-list-view-home{
        max-height: 60vh;
    }
    .chat, .decor-default, .replay-decor-default {
        height: 400px;
    }
    .chat-care {
        min-height: 250px;
    }
}

.chatIntro{
    padding: 10px;
}
.chatIntro p, .chatIntro h5{margin-bottom: 0.5rem;font-size: 0.875rem;line-height: normal;}
.chatIntro p i, .chatIntro h5 i{margin-left: 0.5rem;font-size: 0.875rem;}
.chatIntro p:last-child, .chatIntro h5:last-child{margin-bottom: 0;}

.bottom-callbox-view.gridView {display: grid;grid-template-columns: auto auto auto auto;grid-template-columns: repeat(5, 1fr);grid-gap: 15px;}
.bottom-callbox-view.gridView .chat-box-btn{width: 100% !important;padding: 0 !important;max-width: 100%;}
@media (max-width: 1599.98px){
    .bottom-callbox-view.gridView {grid-template-columns: repeat(4, 1fr);grid-gap: 12px;}
}
@media (max-width: 1199.98px){
    .bottom-callbox-view.gridView {grid-template-columns: repeat(3, 1fr);grid-gap: 12px;}
}
@media (max-width: 991.98px){
    .bottom-callbox-view.gridView {grid-template-columns: repeat(2, 1fr);grid-gap: 8px;}
}
@media (max-width: 640px){
    .bottom-callbox-view.gridView {grid-template-columns: repeat(1, 1fr);grid-gap: 5px;}
}
