/* PTP_CLIENT_COMMENTS_MENTIONS_V1 */

.ptp-client-comments-card {
  overflow: visible !important;
}

.ptp-client-comment-compose {
  position: relative;
  padding: 16px;
  border-bottom: 1px solid #e8edf5;
  background: #fbfcff;
}

.ptp-client-comment-compose textarea {
  width: 100%;
  min-height: 92px;
  box-sizing: border-box;
  resize: vertical;
  border: 1px solid #d9e2ef;
  border-radius: 12px;
  background: #fff;
  padding: 12px 13px;
  color: #172033;
  font: inherit;
  outline: none;
}

.ptp-client-comment-compose textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.ptp-client-comment-help {
  margin-top: 7px;
  color: #8290a6;
  font-size: 11px;
}

.ptp-client-comment-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
}

.ptp-client-comment-send {
  border: 0;
  border-radius: 10px;
  background: #2563eb;
  padding: 9px 15px;
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}

.ptp-client-comment-send:disabled {
  cursor: wait;
  opacity: .6;
}

.ptp-mention-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ptp-mention-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  padding: 5px 8px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 750;
}

.ptp-mention-chip button {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
}

.ptp-mention-suggestions {
  position: absolute;
  z-index: 20;
  right: 16px;
  bottom: 67px;
  left: 16px;
  overflow: auto;
  max-height: 210px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 35px rgba(15, 23, 42, .16);
}

.ptp-mention-suggestions.hidden {
  display: none !important;
}

.ptp-mention-option {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.ptp-mention-option:last-child {
  border-bottom: 0;
}

.ptp-mention-option:hover {
  background: #f5f8ff;
}

.ptp-mention-avatar {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
}

.ptp-mention-option strong,
.ptp-mention-option small {
  display: block;
}

.ptp-mention-option small {
  margin-top: 2px;
  color: #8190a8;
  font-size: 10px;
}

.ptp-client-comments-list {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.ptp-client-comment {
  border: 1px solid #e3e9f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px 13px;
}

.ptp-client-comment-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ptp-client-comment-author {
  display: flex;
  align-items: center;
  gap: 9px;
}

.ptp-client-comment-author strong,
.ptp-client-comment-author small {
  display: block;
}

.ptp-client-comment-author small {
  margin-top: 2px;
  color: #8190a8;
  font-size: 10px;
}

.ptp-client-comment-time {
  color: #8b98ad;
  font-size: 10px;
  white-space: nowrap;
}

.ptp-client-comment-text {
  margin-top: 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.ptp-client-comment-text .ptp-comment-mention {
  border-radius: 5px;
  background: #eff6ff;
  padding: 1px 4px;
  color: #1d4ed8;
  font-weight: 800;
}

.ptp-comments-empty {
  padding: 25px;
  color: #8190a8;
  text-align: center;
  font-size: 12px;
}

.ptp-notification-bell {
  position: relative;
}

.ptp-notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  min-width: 17px;
  height: 17px;
  box-sizing: border-box;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #dc2626;
  padding: 0 4px;
  color: #fff;
  font-size: 8px;
  font-weight: 900;
}

.ptp-notification-badge.hidden {
  display: none !important;
}

.ptp-notification-panel {
  position: fixed;
  z-index: 25000;
  top: 72px;
  right: 76px;
  width: min(390px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid #dbe3ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .22);
}

.ptp-notification-panel.hidden {
  display: none !important;
}

.ptp-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f7;
}

.ptp-notification-head h3 {
  margin: 0;
  color: #172033;
  font-size: 15px;
}

.ptp-notification-head button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.ptp-notification-list {
  overflow: auto;
  max-height: 430px;
}

.ptp-notification-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #edf1f7;
  background: #fff;
  padding: 13px 15px;
  text-align: left;
  cursor: pointer;
}

.ptp-notification-item.unread {
  background: #f2f7ff;
}

.ptp-notification-item:hover {
  background: #f8fafc;
}

.ptp-notification-item strong,
.ptp-notification-item span,
.ptp-notification-item small {
  display: block;
}

.ptp-notification-item strong {
  color: #172033;
  font-size: 12px;
}

.ptp-notification-item span {
  margin-top: 4px;
  color: #52617a;
  font-size: 11px;
  line-height: 1.4;
}

.ptp-notification-item small {
  margin-top: 5px;
  color: #8b98ad;
  font-size: 9px;
}

.ptp-notification-empty {
  padding: 34px 20px;
  color: #8190a8;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 650px) {
  .ptp-notification-panel {
    top: 65px;
    right: 12px;
    left: 12px;
    width: auto;
  }

  .ptp-client-comment-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ptp-client-comment-send {
    width: 100%;
  }
}