/* ——— Post button ——— */
#w2dm-profile .fbp-composer .fbp-btn-post,
#w2dm-profile .fbp-composer button#fbp-btn-post {
  box-sizing: border-box;
  min-height: 34px;
  padding: 6px 16px;
  border-radius: 8px;
  border: 1px solid #1b74e4;
  background: #1b74e4;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease, box-shadow .15s ease;
  text-align: center;
}
#w2dm-profile .fbp-composer .fbp-btn-post:hover,
#w2dm-profile .fbp-composer button#fbp-btn-post:hover {
  background: #166fe5;
  border-color: #166fe5;
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}
#w2dm-profile .fbp-composer .fbp-btn-post:active,
#w2dm-profile .fbp-composer button#fbp-btn-post:active {
  transform: translateY(1px);
}



/* Layout: push the post delete button to the right in the header row */
.fbp-post-header .js-post-delete{ margin-left: auto; }



/* === Comment layout: avatar | (name+Delete + text) === */

/* Container + left align */
.fbp-comments .fbp-comment {
  display: grid !important;
  grid-template-columns: 36px 1fr;   /* avatar | content */
  column-gap: 8px;
  row-gap: 4px;
  align-items: start;
  padding: 8px 0;
  border-top: 1px solid #e5e7eb;
  text-align: left;                  /* override any centered ancestor */
}

/* Avatar (first img) */
.fbp-comments .fbp-comment > img:first-of-type {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

/* Body column */
.fbp-comments .fbp-comment .fbp-comment-body {
  grid-column: 2;
  min-width: 0;
}

/* Row 1: name on the left, Delete on the right */
.fbp-comments .fbp-comment .fbp-comment-user {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 600;
  color: #111;
}

/* Style the Delete button inline with the name */
.fbp-comments .fbp-comment .fbp-comment-user .js-comment-delete {
  box-sizing: border-box;
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid #f1b5bd;
  background: #fff5f6;
  color: #c81e1e;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease;
}
.fbp-comments .fbp-comment .fbp-comment-user .js-comment-delete:hover {
  background: #ffe8ea; border-color: #e79aa4; color: #b31831; box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.fbp-comments .fbp-comment .fbp-comment-user .js-comment-delete:active {
  transform: translateY(1px);
}

/* Row 2: comment text below, aligned with name */
.fbp-comments .fbp-comment .fbp-comment-text {
  margin-top: 6px;
  line-height: 1.45;
  font-size: 14px;
  color: #111;
  text-align: left;
}

/* ===== Comments styling ===== */
.fbp-comment {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
}

.fbp-comment img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.fbp-comment-body {
  flex: 1;
  background: #f0f2f5;
  border-radius: 12px;
  padding: 8px 12px;
}

.fbp-comment-user {
  font-weight: 600;
  color: #111;
  font-size: 14px;
  margin-bottom: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fbp-comment-time {
  font-size: 12px;
  color: #65676B;
  margin-bottom: 4px;
}

.fbp-comment-text {
  font-size: 14px;
  color: #111;
  line-height: 1.4;
}

.fbp-composer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;     /* makes it a circle */
  object-fit: cover;      /* ensures it doesn’t stretch */
  flex-shrink: 0;         /* keeps size consistent in flexbox */
  border: 1px solid #ddd; /* subtle border like FB */
  background: #fff;       /* fallback background */
}


/* === Composer Card (Create Post) === */
.fbp-composer {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fbp-composer--guest p {
  margin: 0;
  color: #555;
}

.fbp-composer--guest a {
  color: var(--ink, #1b74e4);
  text-decoration: none;
}

/* Header row with avatar + input */
.fbp-composer-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fbp-composer-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;   /* circle */
  object-fit: cover;
  flex-shrink: 0;
}

.fbp-composer-input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 20px;   /* pill shape */
  border: 1px solid #ddd;
  background: #f9fafb;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fbp-composer-input:focus {
  border-color: var(--ink, #1b74e4);
  background: #fff;
}

/* Actions row (Add Photo + Post button) */
.fbp-composer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
  flex-wrap: wrap;
}

/* Label reset so Add Photo isn’t double-styled */
.fbp-action-btn {
  all: unset;
  display: inline-block;
}

/* Add Photo button */
.fbp-action-btn > button {
  all: unset;
  display: inline-block;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 600;
  background: #f0f2f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  color: #111;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.05s ease;
}

.fbp-action-btn > button:hover {
  background: #e4e6eb;
  border-color: #ccc;
}

.fbp-action-btn > button:active {
  transform: translateY(1px);
}

/* Post button */
.fbp-btn-post {
  all: unset;
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px;
  background: var(--ink, #1b74e4);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.05s ease;
  text-align: center;
  border: 0;
}

.fbp-btn-post:hover {
  background: #1558c0;
}

.fbp-btn-post:active {
  transform: translateY(1px);
}

/* === Composer (Create Post) === */
.fbp-composer {
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  box-shadow:0 2px 6px rgba(0,0,0,.05);
  margin-bottom:16px;
}

.fbp-composer-header {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.fbp-composer-avatar {
  width:48px;
  height:48px;
  border-radius:50%; /* circle */
  object-fit:cover;
}

.fbp-composer-input {
  flex:1;
  padding:10px 14px;
  border-radius:20px;
  border:1px solid #ddd;
  background:#f9fafb;
  font-size:15px;
  outline:none;
}
.fbp-composer-input:focus {
  border-color:var(--ink,#1b74e4);
  background:#fff;
}

/* === Post Header (Avatar + Name + Time + Delete) === */
.fbp-post-header {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:8px;
}

.fbp-post-header img {
  width:40px;
  height:40px;
  border-radius:50%; /* circle */
  object-fit:cover;
}

.fbp-post-user {
  font-weight:600;
  color:#111;
}

.fbp-post-time {
  font-size:12px;
  color:#65676B;
}
.js-post-delete:hover {
  text-decoration:underline;
}

/* === Post Button (composer) === */
.fbp-btn-post {
  all:unset;
  display:inline-block;
  padding:6px 16px;
  font-size:14px;
  font-weight:600;
  line-height:1.2;
  border-radius:8px;
  background:var(--ink,#1b74e4);
  color:#fff;
  cursor:pointer;
  text-align:center;
  transition:background .2s ease, transform .05s ease;
}
.fbp-btn-post:hover {
  background:#1558c0;
}
.fbp-btn-post:active {
  transform:translateY(1px);
}

/* === Like, Comment, Share buttons === */
.fbp-post-actions {
  display:flex;
  gap:16px;
  padding-top:8px;
  border-top:1px solid #e5e7eb;
  font-size:14px;
  color:#65676B;
}

.fbp-post-actions button {
  background:none;
  border:0;
  cursor:pointer;
  color:inherit;
  font-weight:600;
  display:flex;
  align-items:center;
  gap:4px;
  padding:6px 12px;
  border-radius:20px; /* rounded pill look */
  transition:background .2s ease, color .2s ease;
}

.fbp-post-actions button:hover {
  background:#f0f2f5;
  color:var(--ink,#1b74e4);
}

.fbp-post-actions .is-disabled {
  opacity:.5;
  pointer-events:none;
  cursor:not-allowed;
}

/* Post cards (container for each post) */
.fbp-post {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px; /* <-- rounded corners */
  box-shadow: 0 2px 6px rgba(0,0,0,.05); /* subtle shadow */
  padding: 12px 16px;
  margin-bottom: 16px; /* space between posts */
  transition: box-shadow 0.2s ease;
}

.fbp-post:hover {
  box-shadow: 0 4px 10px rgba(0,0,0,.08); /* slight lift on hover */
}

/* Ensure post content is left-aligned */
.fbp-post-content {
  text-align: left;
  margin: 6px 0;
  padding: 4px 0;
  line-height: 1.5;
  font-size: 15px;
  color: #111;
}

/* Ensure comment text is left-aligned */
.fbp-comment-text {
  text-align: left;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.4;
  color: #111;
}

/* Comment form */
.fbp-comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

/* Input stays full width */
.fbp-comment-form input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 14px;
  background: #f9fafb;
  outline: none;
}
.fbp-comment-form input:focus {
  border-color: var(--ink, #1b74e4);
  background: #fff;
}

/* Comment form */
.fbp-comment-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  align-items: center;
}

/* Input stays full width */
.fbp-comment-form input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 12px;
  font-size: 14px;
  background: #f9fafb;
  outline: none;
}
.fbp-comment-form input:focus {
  border-color: var(--ink, #1b74e4);
  background: #fff;
}

/* Comment "Post" button — same as main Post button */
.fbp-comment-form button {
  all: unset;
  display: inline-block;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  border-radius: 8px; /* keep rounded corners */
  background: var(--ink, #1b74e4);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease, transform .05s ease;
  text-align: center;
  border: 0;
  margin-left: auto; /* pushes button to the right */
}

.fbp-comment-form button:hover {
  background: #1558c0; /* same hover color */
  border-radius: 8px; /* keep rounded corners */
}

.fbp-comment-form button:active {
  transform: translateY(1px);
  border-radius: 8px; /* keep rounded corners */
}


/* Composer avatar — perfect circle + centered crop */
#w2dm-profile .fbp-composer .fbp-composer-avatar{
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;                 /* avoids inline-image baseline gap */
  object-fit: cover;              /* fill the circle */
  object-position: 50% 50%;       /* center the face */
  flex: 0 0 48px;                 /* lock size in the flex row */
  background: #fff;               /* fallback */
  border: 1px solid #ddd;         /* same subtle ring as comments */
}

/* === Post Delete Button (override inline styles) === */
.fbp-post-header .js-post-delete {
  margin-left: auto !important;
  padding: 3px 10px !important;
  border-radius: 6px !important;
  border: 1px solid #111 !important;   /* charcoal border */
  background: #111 !important;         /* charcoal black */
  color: #f9f9f9 !important;           /* off white */
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .05s ease, box-shadow .15s ease !important;
}

/* Hover state */
.fbp-post-header .js-post-delete:hover {
  background: #222 !important;         /* lighter charcoal */
  border-color: #222 !important;
  color: #fff !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.2) !important;
}

/* Active (pressed) state */
.fbp-post-header .js-post-delete:active {
  transform: translateY(1px) !important;
}




