@import "./fc-hub.css";

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview {
  display: grid;
  grid-template-columns: minmax(9rem, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  min-height: 26rem;
  max-height: 26rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.15rem;
  background: #fff;
  box-shadow:
    0 1.4rem 3.2rem rgba(0, 40, 100, 0.13),
    0 1px 0 rgba(255, 255, 255, 0.92) inset;
}

@keyframes cd-fc-chat-message-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cd-fc-chat-thread-pulse {
  0%,
  100% {
    box-shadow: inset 3px 0 0 #3fc77d;
  }
  55% {
    box-shadow:
      inset 3px 0 0 #3fc77d,
      0 0 0 5px rgba(63, 199, 125, 0.1);
  }
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__list {
  border-right: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  padding: 0.75rem;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__search {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.75rem;
  border-radius: 999px;
  background: #eef2f7;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.62rem;
  border-radius: 0.75rem;
  color: #111827;
  font-size: 0.62rem;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread.is-active {
  background: rgba(63, 199, 125, 0.1);
  box-shadow: inset 3px 0 0 #3fc77d;
  animation: cd-fc-chat-thread-pulse 4.8s ease-in-out infinite;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread > i {
  color: #111827;
  font-size: 1.25rem;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread strong,
.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread strong {
  font-size: 0.66rem;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread span,
.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread em {
  color: #64748b;
  font-style: normal;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__chat {
  position: relative;
  overflow: hidden;
  padding: 0.85rem 0.85rem 4rem;
  background: #fff;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message {
  display: flex;
  gap: 0.45rem;
  max-width: 76%;
  margin-bottom: 0.55rem;
  animation: cd-fc-chat-message-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message > i {
  color: #111827;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message p {
  margin: 0;
  padding: 0.52rem 0.68rem;
  border-radius: 0.72rem;
  background: #f1f3f6;
  color: #475569;
  font-size: 0.58rem;
  line-height: 1.35;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message--team {
  display: block;
  margin-left: auto;
  text-align: right;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message:nth-of-type(1) {
  animation-delay: 0.1s;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message:nth-of-type(2) {
  animation-delay: 0.75s;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message:nth-of-type(3) {
  animation-delay: 1.4s;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message:nth-of-type(4) {
  animation-delay: 2.05s;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message:nth-of-type(5) {
  animation-delay: 2.7s;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message--team p {
  display: inline-block;
  background: #3fc77d;
  color: #fff;
  text-align: left;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message--team span {
  display: block;
  margin-top: 0.28rem;
  color: #94a3b8;
  font-size: 0.5rem;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.85rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 0.45rem;
  align-items: center;
  animation: cd-fc-chat-message-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) 3.35s both;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer span,
.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer i,
.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  border-radius: 999px;
  background: #f1f3f6;
  color: #64748b;
  font-size: 0.56rem;
  font-style: normal;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer span {
  justify-content: flex-start;
  padding: 0 0.8rem;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer i,
.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer b {
  width: 2.25rem;
}

.fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer b {
  background: #3fc77d;
  color: #fff;
}

@media (max-width: 575.98px) {
  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview {
    grid-template-columns: 1fr;
    max-height: none;
    min-height: auto;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__list {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.65rem;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread {
    padding: 0.5rem;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread:not(.is-active) {
    display: none;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__chat {
    min-height: 21rem;
    padding: 0.75rem 0.7rem 4rem;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message {
    max-width: 90%;
    margin-bottom: 0.55rem;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message p {
    font-size: 0.56rem;
    padding: 0.5rem 0.62rem;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message:nth-of-type(5) {
    display: none;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer i:nth-of-type(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__thread.is-active,
  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__message,
  .fc-seller-collaboration-lp .cd-fc-seller-chat-preview__composer {
    animation: none !important;
  }
}
