.news-chat {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid rgba(99, 163, 97, .14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(99, 163, 97, .06) 0%, rgba(255, 255, 255, 1) 28%);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.news-chat__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.news-chat__eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #63A361;
}

.news-chat__title {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.15;
}

.news-chat__count {
  min-width: 62px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(99, 163, 97, .12);
  color: #1f2937;
  text-align: center;
}

.news-chat__count span {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.news-chat__count small {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #556070;
}

.news-chat__composer,
.news-chat__notice {
  margin-bottom: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(99, 163, 97, .14);
}

.news-chat__notice {
  color: #475467;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.5;
}

.news-chat__notice--muted {
  display: none;
  margin-top: -4px;
  border-color: rgba(192, 57, 43, .16);
  background: rgba(192, 57, 43, .05);
  color: #8f2d23;
}

.news-chat__notice--muted.is-visible {
  display: block;
}

.news-chat__notice a {
  color: #63A361;
  font-weight: 700;
}

.news-chat__composer textarea {
  width: 100%;
  min-height: 72px;
  padding: 11px 13px;
  border: 1px solid #d8e5d7;
  border-radius: 12px;
  background: #fdfefe;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
}

.news-chat__composer textarea:focus {
  outline: none;
  border-color: #63A361;
  box-shadow: 0 0 0 2px rgba(99, 163, 97, .1);
}

.news-chat__composer-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.news-chat__composer-footer small {
  color: #667085;
  font-size: 12px;
}

.news-chat__send {
  border: 0;
  padding: 9px 14px;
  border-radius: 999px;
  background: #63A361;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.news-chat__send:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.news-chat__feedback {
  margin-top: 8px;
  min-height: 18px;
  font-size: 12px;
  color: #63A361;
}

.news-chat__feedback.is-error {
  color: #c0392b;
}

.news-chat__messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.news-chat__empty {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .84);
  color: #667085;
  text-align: center;
  font-size: 13px;
}

.news-chat__message {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.news-chat__message--mine {
  flex-direction: row-reverse;
}

.news-chat__avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 11px;
  background: rgba(99, 163, 97, .18);
  color: #2f5f2d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
}

.news-chat__bubble {
  max-width: min(100%, 520px);
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(99, 163, 97, .12);
}

.news-chat__message--mine .news-chat__bubble {
  background: rgba(99, 163, 97, .12);
}

.news-chat__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
  font-size: 11px;
  color: #667085;
}

.news-chat__meta strong {
  color: #101828;
  font-size: 12px;
}

.news-chat__text {
  color: #111827;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.5;
}

.news-chat[data-chat-variant="sidebar"] {
  margin-top: 0;
  padding: 14px;
  border-radius: 16px;
  box-shadow: none;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__header {
  align-items: center;
  margin-bottom: 12px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__eyebrow {
  font-size: 9px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__title {
  font-size: 17px;
  margin-top: 2px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__count {
  min-width: 56px;
  padding: 7px 8px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__count span {
  font-size: 16px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__composer,
.news-chat[data-chat-variant="sidebar"] .news-chat__notice {
  padding: 10px;
  border-radius: 12px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__composer textarea {
  min-height: 60px;
  padding: 10px 11px;
  font-size: 13px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__composer-footer {
  flex-direction: column;
  align-items: stretch;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__composer-footer small {
  font-size: 11px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__send {
  width: 100%;
  justify-content: center;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__messages {
  max-height: 360px;
  gap: 8px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__avatar {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
  border-radius: 10px;
  font-size: 11px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__bubble {
  padding: 9px 10px;
  border-radius: 12px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__meta {
  font-size: 10px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__meta strong {
  font-size: 11px;
}

.news-chat[data-chat-variant="sidebar"] .news-chat__text {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 767px) {
  .news-chat {
    padding: 14px;
    border-radius: 16px;
  }

  .news-chat__title {
    font-size: 18px;
  }

  .news-chat__header,
  .news-chat__composer-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .news-chat__count {
    width: 100%;
  }
}
