.notifications-inbox-page {
  padding-bottom: 2rem;
  background-color: #f9fafb;
}

.notifications-inbox-page__header {
  margin-bottom: 1.5rem;
}

.notifications-inbox-page__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-bottom: 0.5rem;
}

.notifications-inbox-page__back {
  flex: 0 0 auto;
  touch-action: manipulation;
  background-color: transparent;
  border: none;
  color: #6b7280;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}

.notifications-inbox-page__back:hover {
  color: #111827;
}

.notifications-inbox-page__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.notifications-inbox-page__lead,
.notifications-inbox-page__unread {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  color: #6b7280;
  line-height: 1.5;
}

@media (max-width: 767px) {
  .notifications-inbox-page__card {
    overflow: visible;
    height: auto;
  }
}

.notifications-inbox-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 1.5rem;
}

.notifications-inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notifications-inbox-filters__chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  color: #4b5563;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  touch-action: manipulation;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.notifications-inbox-filters__chip:hover {
  background-color: #f3f4f6;
  border-color: #d1d5db;
}

.notifications-inbox-filters__chip.is-active {
  background-color: #111827;
  color: #ffffff;
  border-color: #111827;
}

.notifications-inbox-toolbar__mark-all {
  margin: 0;
}

.notifications-inbox-toolbar__btn {
  min-height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  background-color: #2563eb;
  color: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.notifications-inbox-toolbar__btn:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
}

.chat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.chat-list-item {
  position: relative;
  border-bottom: 1px solid #f3f4f6;
  transition: background-color 0.15s ease;
}

.chat-list-item:last-child {
  border-bottom: none;
}

.chat-list-item:hover {
  background-color: #f9fafb;
}

.chat-list-item.is-unread {
  background-color: #f0fdf4;
}

.chat-list-item__link {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  text-decoration: none;
  color: inherit;
  touch-action: manipulation;
}

.chat-list-item__avatar {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #6b7280;
  margin-right: 14px;
}

.chat-list-item__avatar--account {
  background-color: #dbeafe;
  color: #2563eb;
}

.chat-list-item__avatar--prices {
  background-color: #ffedd5;
  color: #ea580c;
}

.chat-list-item__content {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chat-list-item__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chat-list-item__sender {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list-item__time {
  font-size: 0.75rem;
  color: #6b7280;
  flex-shrink: 0;
  margin-left: 8px;
}

.chat-list-item.is-unread .chat-list-item__time {
  color: #16a34a;
  font-weight: 600;
}

.chat-list-item__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-list-item__preview {
  font-size: 0.875rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.chat-list-item__unread-dot {
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #16a34a;
}

/* Chat Thread (Detail View) */

.chat-thread {
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
  border-radius: 0;
  border: none;
  flex: 1;
  min-height: 0;
  margin: -24px -24px -32px -24px; /* offset the typical card padding */
}

.chat-thread__header {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #f0f2f5;
  border-bottom: 1px solid #e5e7eb;
}

.chat-thread__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #54656f;
  margin-right: 8px;
  text-decoration: none;
}

.chat-thread__back:hover {
  color: #111827;
}

.chat-thread__avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ffffff;
  color: #6b7280;
  margin-right: 12px;
}

.chat-thread__avatar--account {
  color: #2563eb;
}

.chat-thread__avatar--prices {
  color: #ea580c;
}

.chat-thread__contact-info {
  display: flex;
  flex-direction: column;
}

.chat-thread__contact-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.chat-thread__contact-status {
  font-size: 0.8rem;
  color: #6b7280;
}

.chat-thread__body {
  padding: 24px 16px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.chat-bubble {
  position: relative;
  background-color: #ffffff;
  border-radius: 0 12px 12px 12px;
  padding: 10px 12px 28px 12px;
  max-width: 95%;
  align-self: flex-start;
  box-shadow: 0 1px 1px rgba(0,0,0,0.06);
}

.chat-bubble__tail {
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 12px;
  background-image: radial-gradient(circle at top left, transparent 8px, #ffffff 8px);
}

.chat-bubble__title {
  margin: 0 0 6px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #111827;
}

.chat-bubble__text {
  margin: 0;
  font-size: 0.95rem;
  color: #111827;
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.chat-bubble__actions {
  margin-top: 12px;
}

.chat-bubble__link {
  display: inline-block;
  padding: 8px 16px;
  background-color: #f0f2f5;
  color: #2563eb;
  text-decoration: none;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
}

.chat-bubble__time {
  position: absolute;
  bottom: 6px;
  right: 12px;
  font-size: 0.65rem;
  color: #6b7280;
}

.chat-thread__date-divider {
  text-align: center;
  margin: 10px 0 20px;
}

.chat-thread__date-divider span {
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #54656f;
  box-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.chat-bubble--unread {
  border-left: 3px solid #16a34a;
}

.your-alerts-message__btn:hover {
  background-color: #1d4ed8;
}

.your-alerts-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  color: #6b7280;
}

.your-alerts-empty p {
  margin: 0 0 0.5rem;
  color: #111827;
}

.your-alerts-empty__hint {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

@media (max-width: 767px) {
  .your-alerts-item__open,
  .your-alerts-item--detail {
    padding: 0.9rem 1rem;
  }

  .your-alerts-item__actions .settings-submit-inline {
    width: 100%;
    justify-content: center;
  }
}
