/*
 * Comment and reply boxes (feed, post popup, story page, featured).
 * The box grows while you type, up to a limit, then scrolls; after posting it goes back
 * to its normal size (wp-feed-comments.js wpFitCommentBox). The Post / Reply button
 * keeps its own size and stays at the top of the row instead of stretching with the box.
 */
textarea.feed-comment-input,
.panel2 textarea,
.fb-sidebar-footer textarea,
textarea.wyp-comment-input,
textarea.wyp-reply-input {
  max-height: 140px;
  overflow-y: hidden;
}

.feed-comment-input-area > .tweety,
.panel2 .tweetreply,
.panel2 .tweetreplys,
.fb-sidebar-footer .tweetys,
.wyp-comment-box .wyp-post-btn,
.wyp-reply-box .wyp-reply-post-btn {
  align-self: flex-start !important;
  flex: 0 0 auto !important;
  white-space: nowrap;
}

/* Same height as the box's first line (comment box 38px, reply box 32px). */
.feed-comment-input-area > .tweety,
.fb-sidebar-footer .tweetys {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 38px !important;
  min-width: 68px;
  padding: 0 18px !important;
  font-size: 14px !important;
  line-height: 1 !important;
}
.panel2 .tweetreply,
.panel2 .tweetreplys {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  height: 32px !important;
  min-width: 64px;
  padding: 0 14px !important;
  font-size: 13px !important;
  line-height: 1 !important;
}

/* Popup footer: avatar and button stay level with the first line. */
.fb-sidebar-footer > div {
  align-items: flex-start !important;
}

/* A comment or reply opened from a notification. */
.wp-comment-focus {
  animation: wpCommentFocus 3s ease-out 1;
  border-radius: 12px;
}
@keyframes wpCommentFocus {
  0%, 40% { background-color: rgba(39, 174, 96, 0.18); box-shadow: 0 0 0 4px rgba(39, 174, 96, 0.18); }
  100% { background-color: transparent; box-shadow: 0 0 0 4px transparent; }
}

/* Reply threads (Instagram-style): "—— View 2 replies" / "—— Hide replies" under the comment. */
.flip3,
.wyp-replies-toggle {
  display: inline-flex !important;
  align-items: center;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: #737373 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
}
.wp-replies-line {
  display: inline-block;
  width: 24px;
  height: 1px;
  margin-right: 10px;
  background: currentColor;
}
