/* Facebook-style comment composer (profile + market) */
.fb-comment-composer{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  width:100%;
}
.fb-comment-composer-avatar-wrap{
  position:relative;
  flex-shrink:0;
  width:32px;
  height:32px;
}
.fb-comment-composer-avatar{
  width:32px;
  height:32px;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(180deg,#eaebef,#dfe3e8);
  border:1px solid #ccd0d5;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:12px;
  font-weight:700;
  color:#050505;
}
.fb-comment-composer-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.fb-comment-composer-caret{
  position:absolute;
  right:-2px;
  bottom:-2px;
  width:14px;
  height:14px;
  border-radius:999px;
  background:#fff;
  border:1px solid #ccd0d5;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  color:#65676b;
  box-shadow:0 1px 2px rgba(0,0,0,.08);
  pointer-events:none;
}
.fb-comment-composer-main{
  flex:1;
  min-width:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px 4px;
  background:#f0f2f5;
  border-radius:20px;
  padding:6px 10px 6px 12px;
}
.fb-comment-composer-reply{
  font-size:12px;
  font-weight:800;
  color:#1877f2;
  margin-bottom:0;
  display:none;
  flex:1 1 100%;
  width:100%;
}
.fb-comment-composer-reply.show{ display:block; }
.fb-comment-composer-field{
  flex:1 1 80px;
  min-width:0;
  width:auto;
  border:none;
  background:transparent;
  outline:none;
  resize:none;
  min-height:20px;
  max-height:80px;
  font:inherit;
  font-size:15px;
  font-weight:500;
  line-height:1.35;
  color:#050505;
  padding:2px 0;
  margin:0;
}
.fb-comment-composer-field::placeholder{ color:#65676b; }
.fb-comment-composer-toolbar{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:0;
  margin-top:0;
}
.fb-comment-composer-tools-left{
  display:flex;
  align-items:center;
  gap:0;
  flex-wrap:nowrap;
}
.fb-comment-composer-tool{
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  border-radius:999px;
  cursor:pointer;
  font-size:17px;
  line-height:1;
  color:#65676b;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
}
.fb-comment-composer-tool:hover{ background:rgba(0,0,0,.06); }
.fb-comment-composer-tool:disabled{ opacity:.45; cursor:not-allowed; }
.fb-comment-composer-send{
  width:28px;
  height:28px;
  border:none;
  background:transparent;
  border-radius:999px;
  cursor:pointer;
  color:#1877f2;
  font-size:20px;
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}
.fb-comment-composer-send:hover{ background:rgba(24,119,242,.1); }
.fb-comment-composer-send:disabled{ opacity:.35; cursor:not-allowed; }
.fb-comment-composer-preview{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:6px;
  flex:1 1 100%;
  width:100%;
}
.fb-comment-composer-preview:empty{ display:none; }
.fb-comment-composer-preview-item{
  position:relative;
  width:56px;
  height:56px;
  border-radius:8px;
  overflow:hidden;
  border:1px solid #ccd0d5;
  background:#000;
}
.fb-comment-composer-preview-item img,
.fb-comment-composer-preview-item video{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.fb-comment-composer-preview-item button{
  position:absolute;
  top:2px;
  right:2px;
  width:18px;
  height:18px;
  border:none;
  border-radius:999px;
  background:rgba(15,23,42,.72);
  color:#fff;
  font-size:12px;
  cursor:pointer;
  line-height:1;
}
.fb-comment-emoji-pop{
  position:absolute;
  z-index:50;
  background:#fff;
  border:1px solid #e4e6eb;
  border-radius:12px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  padding:8px;
  display:none;
  grid-template-columns:repeat(8, 1fr);
  gap:4px;
  max-width:280px;
}
.fb-comment-emoji-pop.show{ display:grid; }
.fb-comment-emoji-pop button{
  border:none;
  background:transparent;
  font-size:20px;
  cursor:pointer;
  border-radius:8px;
  padding:4px;
}
.fb-comment-emoji-pop button:hover{ background:#f0f2f5; }

.feed-card-comments .fb-comment-composer,
.comments .fb-comment-composer{ margin-top:8px; }
.comment-modal-foot .fb-comment-composer{ margin-top:0; flex:1; }
.comment-modal-foot{
  display:flex;
  align-items:center;
  gap:0;
  padding:10px 12px !important;
}
.comment-modal-foot .comment-modal-input,
.comment-modal-foot .btn{ display:none !important; }
.story-watch-foot .fb-comment-composer{ margin-top:0; flex:1; }
.story-watch-foot .story-watch-input,
.story-watch-foot .btn{ display:none !important; }
.story-watch-foot{
  display:flex !important;
  align-items:center !important;
  padding:10px 12px !important;
}
