.quote-chat-activity-cards {
  position: fixed;
  top: 84px;
  right: 22px;
  z-index: 11020;
  display: grid;
  width: min(320px, calc(100vw - 32px));
  max-height: calc(100dvh - 112px);
  gap: 9px;
  overflow: auto;
  padding: 2px 3px 8px;
  color: #eef4ff;
  font-family: inherit;
  scrollbar-width: thin;
}

.quote-chat-activity-cards.hidden,
body[data-active-section="chat-workspace"] .quote-chat-activity-cards,
body[data-active-section="support-desk"] .quote-chat-activity-cards {
  display: none !important;
}

.quote-chat-activity-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(24, 36, 60, 0.98), rgba(31, 31, 43, 0.98));
  border: 1px solid rgba(105, 142, 204, 0.32);
  border-radius: 17px;
  box-shadow: 0 16px 38px rgba(7, 12, 24, 0.3);
}

.quote-chat-activity-card.is-unread {
  border-color: rgba(255, 106, 92, 0.72);
  box-shadow: 0 16px 42px rgba(7, 12, 24, 0.34), 0 0 0 1px rgba(255, 106, 92, 0.12);
}

.quote-chat-activity-card.quote-chat-activity-quote_engaged:not(.is-unread) {
  border-color: rgba(242, 174, 69, 0.5);
}

.quote-chat-activity-open {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  width: 100%;
  min-height: 96px;
  gap: 10px;
  padding: 12px 36px 12px 12px;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.quote-chat-activity-open:hover,
.quote-chat-activity-open:focus-visible {
  background: rgba(79, 140, 255, 0.1);
  outline: none;
}

.quote-chat-activity-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  background: linear-gradient(145deg, #ff685a, #e94d60);
  border-radius: 999px;
}

.quote-chat-activity-copy,
.quote-chat-activity-head {
  display: flex;
  min-width: 0;
}

.quote-chat-activity-copy {
  flex-direction: column;
  gap: 4px;
}

.quote-chat-activity-head {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.quote-chat-activity-head strong,
.quote-chat-activity-head small,
.quote-chat-activity-state,
.quote-chat-activity-preview {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quote-chat-activity-head strong {
  color: #ffffff;
  font-size: 0.88rem;
}

.quote-chat-activity-head small {
  flex: 0 0 auto;
  color: #aab7cc;
  font-size: 0.68rem;
}

.quote-chat-activity-state {
  color: #f3ae45;
  font-size: 0.76rem;
  font-weight: 800;
}

.quote-chat-activity-new_message .quote-chat-activity-state {
  color: #ff776b;
}

.quote-chat-activity-preview {
  color: #c3cedf;
  font-size: 0.76rem;
}

.quote-chat-activity-unread {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 900;
  background: #ff685a;
  border-radius: 999px;
}

.quote-chat-activity-dismiss {
  position: absolute;
  right: 7px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 0;
  color: #9cabc0;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.quote-chat-activity-dismiss:hover,
.quote-chat-activity-dismiss:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  outline: none;
}

.quote-chat-activity-overflow {
  justify-self: end;
  min-height: 35px;
  padding: 0 14px;
  color: #d8e5fb;
  font-size: 0.76rem;
  font-weight: 800;
  background: rgba(24, 36, 60, 0.96);
  border: 1px solid rgba(105, 142, 204, 0.32);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(7, 12, 24, 0.24);
  cursor: pointer;
}

body.chat-floating-widget-open .quote-chat-activity-cards {
  display: none !important;
}

@media (max-width: 1320px) {
  body.chat-floating-widget-open .quote-chat-activity-cards {
    display: none !important;
  }
}

@media (max-width: 760px) {
  .quote-chat-activity-cards {
    top: auto;
    right: 12px;
    bottom: 86px;
    width: min(360px, calc(100vw - 24px));
    max-height: min(46dvh, 390px);
  }

  .quote-chat-activity-card:not(:first-of-type) {
    display: none;
  }

  .quote-chat-activity-overflow {
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-chat-activity-card {
    animation: none;
  }
}
