.messaging {
    position: fixed;
    right: 0;
    top: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
    transition: 0.2s all cubic-bezier(0, 0.85, 1, 1);
    transform: translateY(100%);
}

@-webkit-keyframes placeHolderShimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

@keyframes placeHolderShimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

.animated-background {
    -webkit-animation-duration: 2s;
    animation-duration: 2s;
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-iteration-count: infinite;
    animation-iteration-count: infinite;
    -webkit-animation-timing-function: linear;
    animation-timing-function: linear;
    -webkit-animation-name: placeHolderShimmer;
    animation-name: placeHolderShimmer;
    background: #f6f7f8;
    background: -webkit-gradient(linear, left top, right top, color-stop(8%, #eeeeee), color-stop(18%, #dddddd), color-stop(33%, #eeeeee));
    background: linear-gradient(to right, #eeeeee 8%, #dddddd 18%, #eeeeee 33%);
    background-size: 800px 104px;
    height: 96px;
    position: relative;
}

.background-masker {
    background: #fff;
    position: absolute;
}

.background-masker.header-top,
.background-masker.header-bottom,
.background-masker.subheader-bottom {
    top: 0;
    left: 40px;
    right: 0;
    height: 10px;
}

.background-masker.header-left,
.background-masker.subheader-left,
.background-masker.header-right,
.background-masker.subheader-right {
    top: 10px;
    left: 40px;
    height: 8px;
    width: 10px;
}

.background-masker.header-bottom {
    top: 18px;
    height: 6px;
}

.background-masker.subheader-left,
.background-masker.subheader-right {
    top: 24px;
    height: 6px;
}

.background-masker.header-right,
.background-masker.subheader-right {
    width: auto;
    left: 300px;
    right: 0;
}

.background-masker.subheader-right {
    left: 230px;
}

.background-masker.subheader-bottom {
    top: 30px;
    height: 10px;
}

.background-masker.content-top,
.background-masker.content-second-line,
.background-masker.content-third-line,
.background-masker.content-second-end,
.background-masker.content-third-end,
.background-masker.content-first-end {
    top: 40px;
    left: 0;
    right: 0;
    height: 6px;
}

.background-masker.content-top {
    height: 20px;
}

.background-masker.content-first-end,
.background-masker.content-second-end,
.background-masker.content-third-end {
    width: auto;
    left: 380px;
    right: 0;
    top: 60px;
    height: 8px;
}

.background-masker.content-second-line {
    top: 68px;
}

.background-masker.content-second-end {
    left: 420px;
    top: 74px;
}

.background-masker.content-third-line {
    top: 82px;
}

.background-masker.content-third-end {
    left: 300px;
    top: 88px;
}

.messaging.show {
    transform: translateY(0%);
}

.messagingBox {
    float: right;
    width: 100%;
    height: 100%;
    position: relative;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
    transition: 0.2s all cubic-bezier(0, 0.85, 1, 1);
    z-index: -1;
    pointer-events: none;
    opacity: 0;
}

.messagingBox.show {
    opacity: 1;
    z-index: 99999;
    pointer-events: auto;
}

.messagingBox-header {
    position: relative;
    float: right;
    width: 100%;
    height: 60px;
    background: #03a9f4;
    color: #fff;
    display: flex;
    align-items: center;
    padding: 20px;
}

.messagingBox-header i:not(.fa-times):not(.fa-arrow-left) {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(255 255 255 / 25%);
    color: #ffffff;
    border-radius: 100%;
    margin-left: 10px;
}

.messaging-closeBox, .messaging-backBox {
    position: absolute;
    left: 15px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    border-radius: 100%;
    transition: 0.2s all cubic-bezier(0, 0.85, 1, 1);
}

.messaging-closeBox:hover, .messaging-backBox:hover {
    background: rgb(255 255 255 / 25%);
}

.messaging-backBox {
    display: none;
}

.messaging-closeBox:hover, .messaging-backBox:hover {
    color: #fff;
}

.messagingBox-header span small {
    font-weight: 300;
    opacity: .8;
    display: flex;
}

.messagingBox-header span status {
    display: none;
    margin-right: 3px;
}

.messagingBox-header span {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: 0.2s all cubic-bezier(0, 0.85, 1, 1);
}

.messaging.show .messaging-openBox {
    display: none;
}

.messagingBox-content {
    float: right;
    width: 100%;
    height: 100%;
    padding: 15px 20px;
    background: #fff;
    overflow: auto;
}

.messagingBox-content[data-type="messageShow"] {
    padding: 0;
}

.messagingBox-content ul li span small {
    font-weight: 300;
    color: #999;
}

.messagingBox-content ul {
    float: right;
    width: 100%;
    margin-top: -10px;
}

.messagingBox-content ul li span {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    font-weight: 300;
    color: #999;
}

.messagingBox-content ul li span.badge {
    position: absolute;
    left: 0;
    font-size: 9px;
    font-weight: 500 !important;
    color: #fff !important;
    padding: 1px 7px 0 !important;
    height: 16px;
    margin: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.messagingBox-content ul li i, .messagingBox-content ul li img {
    width: 36px;
    height: 36px;
    background: #f7f7f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #999;
    border-radius: 100%;
    margin-left: 10px;
}

.messagingBox-content ul li img {
    background: #fff;
}

.messagingBox-content ul li {
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 10px;
    margin-top: 10px;
}

.messagingBox-content ul li .animated-background {
    position: absolute;
    width: 100%;
    height: 40px;
    right: 0;
    top: 0;
    transform: rotateY(180deg);
    background: linear-gradient(to right, #fbfbfb 8%, #f5f5f5 18%, #fbfbfb 33%);
}

.messagingBox-content ul li + li {
    border-top: 1px solid #eee;
}

.messagingBox-content ul li date {
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 11px;
    color: #adadad;
}

.messagingBox-content ul li em {
    position: absolute;
    left: 0;
    bottom: 0;
    font-size: 10px;
    font-style: normal;
    background: rgb(244 81 108 / 12%);
    color: #f4516c;
    height: 18px;
    padding: 3px 6px 0;
    border-radius: 25px;
}

.messagingBox-content ul li.messagingBox-unread span, .messagingBox-content ul li.messagingBox-unread span small {
    font-weight: 400;
    color: #000;
}

.messagingBox-content ul li:hover span {
    color: #000 !important;
    cursor: pointer;
}

.messaging-openBox:hover em {
    transform: scale(1) rotate(-15deg);
}

.messaging-openBox em {
    position: absolute;
    right: -2px;
    top: -4px;
    background: #fff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, .05), 0 15px 20px -16px rgba(9, 9, 16, .1);
    color: #2196F3;
    font-size: 10px;
    font-weight: 500;
    font-style: normal;
    height: 18px;
    padding: 3px 6px 0;
    border-radius: 25px;
}

.message-comment {
    float: right;
    width: 100%;
    display: flex;
}

.message-comment-content {
    max-width: calc(100% - 50px);
    position: relative;
    padding: 7px 10px;
    border-radius: 7px;
    background: #03a9f4;
    color: #fff;
    overflow: hidden;
}

.message-comment-content:before {
    content: '';
    position: absolute;
    right: -3px;
    top: 10px;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: #03a9f4;
}

.message-comment-content p {
    font-weight: 300;
    font-size: 15px;
    text-align: justify;
}

.message-comment-content p strong {
    font-weight: 500;
}

.message-comment-content p + p {
    margin-top: 15px;
}

.message-comment-user i {
    margin-bottom: 7px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    background: #03a9f4;
    color: #fff;
}

.message-comment-user img {
    margin-bottom: 7px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
}

.message-comment-user {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 40px;
    margin-left: 10px;
    border-radius: 100%;
    justify-content: flex-start;
    align-items: flex-end;
    color: #828580;
}

.message-comment:not(.me) .message-comment-user {
    margin-right: 10px;
    margin-left: 0;
}

.message-comment:not(.me) .message-comment-content:before {
    right: auto;
    left: -4px;
    background: #f5f5f5;
}

.message-comment.me .message-comment-user {
    align-items: flex-start;
}

.message-comment:not(.me) {
    flex-direction: row-reverse;
}

.message-comment:not(.me) .message-comment-content {
    background: #f5f5f5;
    color: #828580;
}

.message-comment:not(.me) .message-comment-user i {
    background: #f5f5f5;
    color: #828580;
}

.message-comment + .message-comment {
    margin-top: 15px;
}

.message-comment-content date {
    float: left;
    margin: 2px 0 0;
    font-size: 10px;
    text-align: left;
}

.message-info {
    position: relative;
    float: right;
    width: 100%;
    height: 72px;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #efefef;
    color: #5d5d5d;
    margin: 0 0 15px;
}

.message-info h3 {
    font-size: 14px;
}

.message-info h3 small {
    float: right;
    width: 100%;
    margin: 10px 0 0;
    color: #777;
    font-size: 12px;
    font-weight: 300;
}

.message-data div strong {
    margin-left: 5px;
}

.message-data div + div {
    margin-top: 5px;
}

.message-data div {
    display: flex;
    align-items: center;
}

.message-data {
    position: absolute;
    left: 15px;
    top: 0;
    height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 11px;
}

.message-answer:before {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
    content: '';
    height: 20px;
    pointer-events: none;
    position: absolute;
    top: -18px;
    right: 0;
    left: 0;
}

.message-comments {
    position: relative;
    float: right;
    width: 100%;
    height: calc(100% - 140px);
    padding: 15px 20px;
    overflow: scroll;
}

.message-comments-scroll {
    z-index: 999999 !important;
    margin-left: -12px;
    transform: scale(0.5);
}

.message-comments-scroll:before {
    content: '\f106';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 100;
    position: absolute;
    top: -40px;
    right: -5px;
    font-size: 29px;
    color: #444;
}

.message-comments-scroll:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 100;
    position: absolute;
    bottom: -40px;
    right: -5px;
    font-size: 29px;
    color: #444;
}

.message-answer-scroll {
    z-index: 999999 !important;
    margin-left: 2px;
    transform: scale(0.3);
}

.message-answer-scroll:before {
    content: '\f106';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 100;
    position: absolute;
    top: -90px;
    right: -5px;
    font-size: 29px;
    color: #444;
}

.message-answer-scroll:after {
    content: '\f107';
    font-family: 'Font Awesome 5 Pro';
    font-weight: 100;
    position: absolute;
    bottom: -90px;
    right: -5px;
    font-size: 29px;
    color: #444;
}

.messageSeen {
    margin: 0 0 0 7px;
    position: relative;
    top: 1px;
    float: right;
}

.message-answer {
    position: relative;
    float: right;
    width: 100%;
    height: 80px;
    padding: 15px 20px;
}

.message-answer textarea.form-control {
    position: absolute;
    left: 20px;
    font-size: 13px;
    padding: 15px;
    width: calc(100% - 157px);
    height: 50px;
    border-radius: 25px;
    resize: none;
    transition: 0.2s all cubic-bezier(0, 0.85, 1, 1);
}

.message-loading {
    position: absolute;
    z-index: 999999;
    left: 0;
    top: 60px;
    width: 100%;
    height: calc(100% - 60px);
    background: #fff;
    padding: 20px;
    transform: rotateY(180deg);
}

.message-loading .animated-background {
    background: linear-gradient(to right, #fbfbfb 8%, #f5f5f5 18%, #fbfbfb 33%);
}

.message-comment.me + .message-comment.me, .message-comment:not(.me) + .message-comment:not(.me) {
    margin-top: 3px;
}

.message-comment.me + .message-comment.me .message-comment-content:before, .message-comment.me + .message-comment.me .message-comment-user i, .message-comment:not(.me) + .message-comment:not(.me) .message-comment-content:before, .message-comment:not(.me) + .message-comment:not(.me) .message-comment-user i {
    display: none;
}

.messagingBox-content ul li span small.messageText + small {
    display: none;
}

#messagingAudio {
    display: none;
    pointer-events: none;
    position: absolute;
    z-index: -1;
}

.chat-comments {
    position: relative;
    float: right;
    width: 100%;
    height: calc(100% - 175px);
}

.chat-comments .messagingBox-content {
    padding: 0;
    overflow: hidden;
}

.chat-comments .message-comments {
    height: 100%;
    padding: 25px;
    overflow: scroll;
}

.no-messages {
    position: absolute;
    right: 0;
    top: 60px;
    width: 100%;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.message-comment.me + .message-comment.me .message-comment-user, .message-comment:not(.me) + .message-comment:not(.me) .message-comment-user {
    opacity: 0;
}

.message-answer form {
    display: flex;
    align-items: flex-end;
}

.sendMessage {
    pointer-events: none;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(56 188 239 / 15%) !important;
    color: #03a9f4 !important;
    font-size: 17px;
    border-radius: 100%;
    margin-left: 10px;
}

.sendMessage.active {
    pointer-events: auto;
    background: #03a9f4 !important;
    color: #fff !important;
}

.message-comments .showDate {
    position: relative;
    float: right;
    width: 100%;
    margin: 30px auto;
    text-align: center;
    color: #ccc;
}

.message-comments .showDate:first-child {
    margin-top: 15px;
}

.message-comments .showDate span {
    position: relative;
    z-index: 9;
    padding: 0 15px;
    background: #fff;
}

.message-comments .showDate:before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 100%;
    height: 1px;
    background: #f9f9f9;
}

.sendImage {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    color: #999 !important;
    font-size: 17px;
    border-radius: 100%;
    margin-left: 10px;
    transition: 0.2s all cubic-bezier(0, 0.85, 1, 1);
    overflow: hidden;
}

.sendImage input {
    position: absolute;
    opacity: 0;
    right: 0;
    z-index: 99;
}

.sendImage.active {
    pointer-events: none;
    opacity: 0;
}

.sendImage.active + textarea {
    width: calc(100% - 100px);
}

.message-comment-content p img {
    margin-bottom: 7px;
}

.fancybox-skin {
    background: transparent !important;
    box-shadow: none !important;
}

#fancybox-thumbs {
    direction: ltr;
}

.closeMessage, .openMessage {
    display: none !important;
}

.restart-chat {
    margin-right: 10px;
    background: #03a9f4;
    color: #fff !important;
    padding: 2px 10px 3px;
    border-radius: 25px;
}

/*recording*/

@keyframes blink {
    50% {
        opacity: 1;
    }
}

.startRecording {
    color: #969da4;
    width: 53px;
    flex-shrink: 0;
    cursor: pointer;
    margin-right: 16px;
    font-size: 19px;
    height: 53px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    position: absolute;
    left: 19px;
    z-index: 9;
    top: 11px;
}

.startRecording.recording {
    background: #f4516c !important;
    width: 63px;
    height: 63px;
    top: 5px;
    color: #fff;
    font-size: 24px;
}

.voiceRecording {
    position: absolute;
    right: 20px;
    top: 22px;
    font-size: 14px;
    color: #999;
    opacity: 0;
    pointer-events: none;
    display: none;
    align-items: center;
    direction: rtl;
}

#voiceRecording-timer {
    width: 70px;
    margin: 3px 0 0 10px;
    position: relative;
    padding-right: 15px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

#voiceRecording-timer::before {
    content: '';
    width: 7px;
    height: 7px;
    position: absolute;
    right: 0;
    top: 11px;
    background: #f4516c;
    border-radius: 50%;
    opacity: 0;
    animation: .8s blink infinite 0.3333s;
}

.message-answer.recording .voiceRecording {
    opacity: 1;
    display: flex;
}

.message-answer.recording a, .message-answer.recording textarea {
    opacity: 0;
    pointer-events: none;
}

.message-comment.message-msg-audio .message-comment-content {
    display: flex;
    direction: ltr;
    text-align: left;
    padding: 10px 15px 2px 10px;
}

.message-msg-audio-info {
    width: 150px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.message-msg-audio-spectrum {
    width: 100%;
    height: 36px;
    opacity: .15;
}

.me .message-msg-audio-spectrum {
    opacity: 1;
}

.message-msg-audio-spectrum wave, .message-msg-audio-spectrum wave canvas {
    height: 100% !important;
}

.message-msg-audio-play {
    background: #a2a2a2;
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    color: #fff !important;
}

.me .message-msg-audio-play {
    background: #fff;
    color: #03a9f4 !important;
}

.message-msg-audio-play.active i::before {
    content: "\f04c";
}

.message-msg-audio-spectrum-info {
    display: flex;
    align-items: center;
}

.message-msg-audio-info span, .message-msg-audio-info p {
    color: var(--msg-date);
    font-size: 11px;
    font-weight: 500;
}

.me .message-msg-audio-info span, .owner .message-msg-audio-info p {
    color: #fff;
}

.message-msg-audio-info p {
    margin-left: 7px;
}

.message-comment.message-msg-audio .message-comment-content date {
    position: absolute;
    bottom: 3px;
    right: 7px;
}

.sending-voice i {
    margin-left: 4px;
}
