.wpm-blur-msg {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.wpm-locked-box {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, #fff 60%, rgba(255, 255, 255, 0.7));
  text-align: center;
  padding: 40px 20px 20px;
}

.wpm-locked-inner h3 {
  margin-bottom: 10px;
}

.wpm-thread-body {
  position: relative;
}

.wpm-locked-inner a.wpm-btn:hover,
.wpm-locked-inner a.wpm-btn {
  color: #ffffff !important;
}

.wpm-locked-inner p {
  padding: 12px;
}

.wpm-locked-box {
  background-color: #143950;
}


.chat-access-badge {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.chat-access-badge.active {
    background: #e6f9f0;
    border: 1px solid #b6f0d2;
}

.chat-access-badge.expired {
    background: #fff4f4;
    border: 1px solid #ffd2d2;
}

.chat-access-badge .badge-title {
    font-weight: 600;
    font-size: 16px;
}

.chat-access-badge .badge-meta {
    font-size: 14px;
}

.chat-access-badge .badge-btn a:hover{
  background: #111 !important;
    color: #fff !important;
}
.chat-access-badge .badge-btn {
    margin-top: 8px;
    display: inline-block;
    padding: 6px 12px;
    background: #111;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    width: 120px;
}
/* Container */

.wpm-inbox-wrap {
  display: grid;

  grid-template-columns: 360px 1fr;

  gap: 24px;

  background: #f6f7f9;

  padding: 20px;

  border-radius: 16px;
}

a.custom-cn-pop {
  color: #163c4a;

  border: solid 1px #163c4a;

  padding: 3px 20px;

  font-size: 14px;
}

a.custom-cn-pop:hover {
  background: #163c4a;

  color: #f6f7f9 !important;
}

.wpm-left {
  background: #fff;

  border-radius: 16px;

  padding: 12px;

  border: 1px solid #e6e8ec;
}

.wpm-left-head h3 {
  color: #133950;

  padding-left: 15px;
}

.wpm-right {
  background: #fff;

  border-radius: 16px;

  border: 1px solid #e6e8ec;

  padding: 0;

  display: flex;

  flex-direction: column;

  min-height: 520px;
}

/* Headings */

.wpm-left-head h3 {
  margin: 8px 8px 12px 8px;

  font-size: 20px;
}

/* Sender list */

.wpm-sender-list {
  max-height: 70vh;

  overflow: auto;

  padding: 4px;
}

.wpm-sender {
  display: grid;

  grid-template-columns: 48px 1fr;

  gap: 10px;

  padding: 10px;

  background: #f3f5f7;

  border-radius: 12px;

  margin: 10px 6px;

  cursor: pointer;

  transition: background 0.15s ease;
}

.wpm-sender:hover {
  background: #e9eef3;
}

.wpm-avatar {
  width: 48px;

  height: 48px !important;

  border-radius: 50% !important;

  object-fit: cover;

  background: #dbe1e6;
}

.wpm-avatar.is-fallback {
  display: block;
}

.wpm-sender-main {
  display: flex;

  flex-direction: column;
}

.wpm-sender-top {
  display: flex;

  align-items: center;

  justify-content: space-between;
}

.wpm-name {
  font-weight: 700;

  /* color: #133950; */

  font-size: 16px;
}

.wpm-ago {
  color: #7a8794;

  font-size: 12px;
}

.wpm-preview {
  color: #5a6470;

  font-size: 13px;

  margin-top: 4px;
}

/* Thread header */

.wpm-thread-head {
  background: #113a59;

  color: #fff;

  padding: 14px 16px;

  border-radius: 16px 16px 0 0;

  display: flex;

  align-items: center;

  justify-content: space-between;
}

.wpm-thread-user {
  display: flex;

  gap: 12px;

  align-items: center;
}

.wpm-thread-user .wpm-avatar {
  width: 44px;

  height: 44px;
}

.wpm-thread-actions button {
  margin-left: 8px;
}

/* Thread body */

.wpm-thread-body {
  padding: 16px;

  flex: 1;

  overflow: auto;

  background: #fbfcfd;
}

.wpm-empty {
  color: #7a8794;

  margin: 20px !important;

  text-align: center;

  font-size: 20px;

  font-weight: bold;
}

.wpm-msg {
  margin: 10px 0;

  display: flex;

  flex-direction: column;

  max-width: 70%;
}

.wpm-msg.them {
  align-items: flex-start;
}

.wpm-msg.me {
  align-items: flex-end;

  margin-left: auto;
}

.wpm-bubble {
  background: #ffffff;

  border: 1px solid #e6e8ec;

  padding: 12px 14px;

  border-radius: 12px;

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);

  white-space: pre-wrap;
}

.wpm-msg.me .wpm-bubble {
  background: #e8f3ff;

  border-color: #cfe2ff;
}

.wpm-time {
  font-size: 11px;

  color: #7a8794;

  margin-top: 4px;
}

/* Reply */

.wpm-reply {
  border-top: 1px solid #eef1f4;

  padding: 12px 16px;
}

.wpm-textarea {
  width: 100%;

  border: 2px solid #143950;

  border-radius: 12px;

  padding: 10px 12px !important;

  resize: vertical;

  font-family: "Plus Jakarta Sans";
}

.wpm-reply .wpm-btn {
  margin-top: 8px;

  float: right;
}

/* Paging */

/* .wpm-thread-paging,

.wpm-actions {

    padding: 8px 16px;

} */

.wpm-btn,
.wpm-btn-close,
.wpm-btn-secondary,
.wpm-btn-danger,
.wpm-btn-tertiary {
  color: #ffffff;

  background: #143950;

  cursor: pointer;

  min-height: 40px;

  border-radius: 3px;

  display: inline-block;

  font-size: 15px;

  line-height: 1;

  padding: 12px 24px;

  fill: #fff;

  text-align: center;

  font-family: "Plus Jakarta Sans";
}

/* .wpm-btn:hover {

    background: #eef3f7;

} */

.wpm-btn-secondary {
  background: #882525;
}

.wpm-btn-danger {
  background: #ffe8e8;

  border-color: #ffd1d1;

  color: #a21d1d !important;
}

.wpm-btn-tertiary {
  background: #fff;

  color: #334155;
}

/* Compose card (profile) */

.wpm-compose-card {
  background: #fff;

  border: 1px solid #e6e8ec;

  border-radius: 16px;

  padding: 16px;
}

.wpm-title {
  margin-top: 0;
}

.wpm-status {
  margin-left: 10px;

  color: #475569;
}

/* Responsive */

@media (max-width: 900px) {
  .wpm-inbox-wrap {
    grid-template-columns: 1fr;
  }
}
