/**
 * Pinned notice + in-thread search. Scoped to chat surfaces only.
 * Marker: chatpinsearch20260903c
 */
.cotinder-chat-pinsearch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 10px;
  max-width: 100%;
  min-width: 0;
}

.cotinder-chat-pinbar {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 6px 10px;
  border: 0;
  border-radius: 10px;
  text-align: left;
  background: #fff7ef;
  color: #2b2b2b;
  box-shadow: inset 0 0 0 1px rgba(253, 119, 40, 0.28);
}

.cotinder-chat-pinbar--user {
  cursor: pointer;
  background: #fff;
}

.cotinder-chat-pinbar--user:hover {
  background: #fff4ea;
}

.cotinder-chat-pinbar__icon {
  flex: 0 0 auto;
  line-height: 1.3;
}

.cotinder-chat-pinbar__body {
  flex: 1 1 auto;
  min-width: 0;
}

.cotinder-chat-pinbar__title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #fd7728;
  margin: 0 0 2px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cotinder-chat-pinbar__text {
  margin: 0;
  font-size: 12px;
  line-height: 1.35;
  color: #444;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cotinder-chat-pinbar--notice .cotinder-chat-pinbar__text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.charts-group-chat__message.is-chat-search-hidden,
.cotinder-messages__msg.is-chat-search-hidden {
  display: none !important;
}

.cotinder-chat-pinbar__unpin {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 50%;
  font-size: 14px;
  color: #888;
}

.cotinder-chat-pinbar__unpin:hover {
  background: rgba(0, 0, 0, 0.06);
  color: #333;
}

.cotinder-chat-msg-search {
  display: block;
  margin: 0;
  min-width: 0;
}

.cotinder-chat-msg-search__input {
  width: 100%;
  box-sizing: border-box;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
  font-size: 14px;
  background: #fff;
}

.cotinder-chat-msg-search__input:focus {
  outline: none;
  border-color: #fd7728;
}

.cotinder-messages__thread-head .cotinder-chat-msg-search--head {
  flex: 1 1 180px;
  min-width: 140px;
  max-width: 280px;
}

.cotinder-group-chat-searchrow {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}

.cotinder-group-chat-searchrow .charts-group-chat__title {
  margin: 0;
  flex: 0 1 auto;
}

.cotinder-group-chat-searchrow .cotinder-chat-msg-search {
  flex: 1 1 200px;
  min-width: 160px;
  max-width: 360px;
}

.cotinder-chat-search-empty {
  margin: 0;
  font-size: 13px;
  color: #888;
}

.charts-group-chat__message.is-pin-flash,
.cotinder-messages__msg.is-pin-flash {
  outline: 2px solid #fd7728;
  outline-offset: 2px;
}

.charts-group-chat__pin,
.cotinder-messages__msg-action.js-cotinder-msg-pin {
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #fd7728;
  cursor: pointer;
  font-size: 12px;
}

@media (max-width: 767.98px) {
  .cotinder-chat-pinbar__text {
    font-size: 12px;
  }

  .cotinder-messages__thread-head .cotinder-chat-msg-search--head,
  .cotinder-group-chat-searchrow .cotinder-chat-msg-search {
    flex: 1 1 100%;
    max-width: none;
  }
}
