﻿body.ic-messages {
  background: #fff;
}

.ic-msg {
  min-height: 100dvh;
  min-height: 100svh;
  padding-bottom: 24px;
  background: #fff;
}

.ic-msg-toolbar .ic-cat-search {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.ic-sr-filter-icons {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 20px;
  line-height: 0;
}

.ic-sr-filter-active {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 14px;
  height: 14px;
  line-height: 0;
}

.ic-sr-filter-active img {
  display: block;
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.ic-sr-filter-active[hidden],
[data-msg-filter-dot][hidden] {
  display: none !important;
}

.ic-msg-tabs {
  display: flex;
  flex-direction: row-reverse;
  gap: 6px;
  margin: 5px 16px 15px;
  padding: 6px;
  border-radius: 18px;
  background: #f1f3f6;
}

.ic-msg-tab {
  flex: 1;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #7e8a9a;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
}

.ic-msg-tab.is-active {
  background: #fff;
  color: #2d3a4a;
}

.ic-msg-list {
  padding: 12px 16px 16px;
}

.ic-msg-row {
  margin-bottom: 10px;
  transition: transform 0.28s ease, opacity 0.26s ease, max-height 0.28s ease, margin 0.28s ease;
}

.ic-msg-row.is-dragging {
  transition: none;
}

.ic-msg-row.is-dismiss {
  transform: translateX(-110%);
  opacity: 0;
  max-height: 0;
  margin-bottom: 0;
  overflow: hidden;
}

.ic-msg-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: inherit;
  text-decoration: none;
  cursor: pointer;
}

.ic-msg-card {
  position: relative;
  padding: 10px 16px 20px;
  border-radius: 18px;
  background: #f6f9fe;
}

.ic-msg-card.is-read {
  background: #f5f6f7;
}

.ic-msg-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 2.5px 8px;
  border-radius: 6px;
  background: #ebeff6;
  color: #92aed6;
  font-size: 8px;
}

.ic-msg-card .ic-msg-head {
  display: flex;
  flex-direction: row-reverse;
  direction: ltr;
  align-items: center;
  gap: 12px;
}

.ic-msg-avatar {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  margin-top: -10px;
  transform: translateY(23px);
  border-radius: 50%;
  background: #e8f0fe;
  color: #2d3a4a;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 700;
}

.ic-msg-avatar.is-expert {
  background: #e8f0fe;
}

.ic-msg-avatar.is-support {
  background: #ebeff6;
  color: transparent;
}

.ic-msg-support-icon {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: invert(72%) sepia(12%) saturate(650%) hue-rotate(182deg) brightness(94%) contrast(88%);
}

.ic-msg-avatar img:not(.ic-msg-support-icon) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.ic-msg-author {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row-reverse;
  direction: ltr;
  align-items: center;
  gap: 0;
  text-align: right;
}

.ic-msg-author-name {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  font-size: 11px;
  font-weight: 700;
  color: #2d3a4a;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ic-msg-badge-img {
  display: block;
  width: 12.5px;
  height: 12.5px;
  margin-top: 1px;
  margin-right: 4px;
  flex-shrink: 0;
  object-fit: contain;
}

.ic-msg-badge-img--diamond {
  filter: invert(72%) sepia(21%) saturate(456%) hue-rotate(188deg) brightness(96%) contrast(90%);
}

.ic-msg-body {
  margin: 2px 60px 0 4px;
  text-align: right;
  direction: rtl;
}

.ic-msg-text {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 20px;
  color: #3d4651;
}

.ic-msg-action {
  color: #4e91e6;
}

.ic-msg-source {
  display: flex;
  flex-direction: row-reverse;
  direction: ltr;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  margin-top: 4px;
  font-size: 9.5px;
  color: #919aaf;
  text-align: right;
}

.ic-msg-source-name {
  flex: 0 1 auto;
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.ic-msg-source-sep {
  flex-shrink: 0;
  padding: 0 5px;
  color: #b8c0d0;
}

.ic-msg-source-time {
  flex-shrink: 0;
  text-align: right;
}

.ic-msg-time {
  display: inline-flex;
  flex-direction: row;
  direction: rtl;
  align-items: baseline;
  gap: 0.25em;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.ic-msg-time-num,
.ic-msg-time-unit {
  display: inline-block;
  unicode-bidi: isolate;
}

.ic-msg-read-overlay {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.33);
  pointer-events: none;
}

.ic-msg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 100px 32px 24px;
  text-align: center;
}

.ic-msg-empty-icon {
  display: block;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  object-fit: contain;
  opacity: 0.75;
}

.ic-msg-empty-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #2d3a4a;
}

.ic-msg-empty-sub {
  margin: 0;
  font-size: 12px;
  line-height: 20px;
  color: #919aaf;
}

.ic-msg-empty[hidden],
.ic-msg-list[hidden],
.ic-msg-loading[hidden],
.ic-msg-error[hidden],
.ic-msg-more[hidden],
[data-msg-filter-dot][hidden] {
  display: none !important;
}

.ic-msg-more {
  padding: 0 16px 28px;
  text-align: center;
}

