 .facebook-comments-block {
            /*width: 100%;*/
            background-color: #fff;
            padding: 20px;
            border: 1px solid rgba(45, 57, 76, 0.1);
            box-sizing: border-box; 
            margin-top: 12px;
            margin-bottom: 32px;
        }

        .comments-actions-header {
            display: flex;
            justify-content: space-around; 
            padding-bottom: 15px;
            margin-bottom: 15px;
            border-bottom: 1px solid #f0f2f5; 
                flex-wrap: wrap;
                gap: 10px;
        }

        .action-button {
            text-decoration: none;
            color: #65676B; 
           font-size: 14px;
font-weight: 400;
line-height: 110%;
            display: flex;
            align-items: center;
            transition: color 0.3s ease;
        }
         .action-button:first-child{
            color: rgb(18, 155, 247);
         }

        .action-button:hover {
            color: #050505;
        }

        .action-button i {
            margin-right: 5px;
            font-size: 1.1em;
        }

        .comments-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.85em;
            color: #65676B;
            margin-bottom: 20px;
        }

        .comment-sort .sort-link {
            text-decoration: none;
            color: #65676B;
            margin-left: 5px;
        }
         .comment-sort .sort-link:hover {
             text-decoration: underline;
         }

        .comment-input-area {
            display: flex;
            margin-bottom: 20px;
            align-items: flex-start;
        }

        .user-avatar-placeholder i {
            font-size: 36px;
            color: #ced0d4;
            margin-right: 10px;
        }
         .user-avatar-placeholder img {
             width: 36px;
             height: 36px;
             border-radius: 50%;
             margin-right: 10px;
             object-fit: cover;
         }


        .comment-input-wrapper {
            flex-grow: 1;
            position: relative; 
                display: flex;
    flex-direction: column;
    border: 1px solid rgba(45, 57, 76, 0.1);
    background: rgb(245, 246, 247);
        }

        .comment-textarea {
            width: 100%;
            min-height: 71px;
            max-height: 300px;
            padding: 10px;
              
            box-sizing: border-box;
            resize: vertical;
            font-size: 16px;
            font-weight: 400;
            line-height: 110%;
            color: #050505;
            outline: none;
                border: none;
                 border-bottom: 1px solid #ced0d4;
        }

        .comment-textarea::placeholder {
             color: #8a8d91;
        }

        .comment-submit-button {
           
             border: none;
    cursor: pointer;
   background: rgb(71, 119, 222);
    transition:0.3s ease;
    width: max-content;
    align-self: end;

    color: rgb(255, 255, 255);
font-size: 12px;
font-weight: 700;
line-height: 110%;
border-radius: 2px;

padding: 5px 8px;
opacity: 1;
    margin: 20px;
        }
        
.reply-form-container {
  border: 1px solid rgba(45, 57, 76, 0.1);
}
.reply-textarea {
  width: 100%;
  min-height: 71px;
  max-height: 200px;
  padding: 10px;
 
  box-sizing: border-box;
  resize: vertical;
  font-size: 16px;
  font-weight: 400;
  line-height: 110%;
  color: #050505;
  outline: none;
  border: none;
   border-bottom: 1px solid rgba(45, 57, 76, 0.1);
}
.reply-form-container > div{
        display: flex;
    flex-direction: column;
    background: rgb(245, 246, 247);
}
.reply-form-container .submit-reply {
  cursor: pointer;
  background: rgb(71, 119, 222);
  transition: 0.3s ease;
  width: max-content;
  align-self: end;

  color: rgb(255, 255, 255);
  font-size: 12px;
  font-weight: 700;
  line-height: 110%;
  border-radius: 2px;

  padding: 5px 8px;
  opacity: 1;
  margin: 20px;
    border: none;
}

.reply-form-container .submit-reply:hover:not([disabled]) {
  background: rgb(184, 194, 214);
    border: none;
}

.reply-form-container .submit-reply:disabled {
  color: #ced0d4;
  cursor: not-allowed;
  background: rgb(161, 179, 213);
  border: none;
}
.comment-item.reply .reply-button {
  display: none !important;
}










       
        .comment-submit-button:hover:not([disabled]) {
           background: rgb(184, 194, 214);
        }

        .comment-submit-button:disabled {
            color: #ced0d4; 
            cursor: not-allowed;
                background: rgb(161, 179, 213);
        }

        /* Список комментариев */
        .comments-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .comment-item {
            display: flex;
            margin-bottom: 15px;
             position: relative; 
        }

         .comment-item.reply {
             margin-left: 46px;
             /* border-left: 1px dotted rgba(144, 148, 156, 0.3); */
             padding-left: 8px;
             position: relative;

           
         }
          .comment-item.reply::before {
             content: '';
             position: absolute;
             left: -8px;
           top: 50%;
  transform: translateY(-50%);
             width: 0px;
             height: 70%;
             border: 1px dashed rgba(144, 148, 156, 0.3);
          }
        .comment-item .user-avatar img {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            margin-right: 8px;
            object-fit: cover;
                width: 32px;
    min-width: 32px;
        }

        .comment-content {
            flex-grow: 1;
        }

        .comment-bubble {
            background-color: #f0f2f5;
            border-radius: 18px;
            padding: 16px;
            margin-bottom: 5px;
            display: inline-block;
            /* max-width: 100%; */
            word-wrap: break-word;
                width: 100%;
    /*max-width: -webkit-fill-available;*/
        box-sizing: border-box;
        }

        .comment-bubble .user-name {
            display: block;
            text-decoration: none;
            margin-right: 5px;
            color: rgb(56, 88, 152);
            font-size: 12px;
            font-weight: 700;
            line-height: 110%;
        }
         .comment-bubble .user-name:hover {
             text-decoration: underline;
         }

        .comment-bubble .comment-text {
           color: rgb(0, 0, 0);
            font-size: 12px;
            font-weight: 400;
            line-height: 130%;
            display: inline-block;
            margin-top: 8px;
        }

        .comment-image {
            max-width: 100%;
            border-radius: 8px;
            margin-top: 8px;
            display: block;
            max-height: 400px;
        }


        .comment-actions {
            font-size: 0.75em;
            color: #65676B;
            margin-left: 12px;
            display: flex;
            align-items: center;
             flex-wrap: wrap;
             position: relative; 
             z-index: 1; 
        }

        .comment-actions .action-link,
        .comment-actions .time {
             text-decoration: none;
             color: #65676B;
             margin-right: 5px;
             cursor: pointer;
        }
        /*, .comment-actions .reply-button*/
        .comment-actions .hide-button{ 
            display: none;
        }
         .comment-actions .action-link:hover {
             text-decoration: underline;
         }
        .comment-actions span {
             margin-right: 5px;
                 display: flex
;
    align-items: center;
        }

        
        .comment-reactions-summary {
            display: flex;
            align-items: center;
             margin-left: auto;
             font-weight: 500;
             color: #65676B;
             font-size: 0.9em;
        }

        .comment-reactions-summary .count {
             margin-right: 5px;
             color: #65676B;
        }

        .comment-reactions-summary .reaction-icons img {
               width: 28px;
    height: 28px;
            border-radius: 50%;
            margin-left: -4px;
            border: 1px solid #fff; 
            box-sizing: content-box;
             vertical-align: middle;
        }
        
         .comment-reactions-summary .reaction-icons img:first-child {
             margin-left: 0;
         }

       
        .reaction-palette {
            display: none;
            position: absolute;
            bottom: 100%; 
            left: 0;
            transform: translateY(-10px);
            background-color: #fff;
            border: 1px solid #ccc;
            border-radius: 50px; 
            padding: 5px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            z-index: 10; 
                 overflow: hidden;
             margin-bottom: 5px;
        }

        .reaction-palette img {
            width: 45px;
            height: 45px;
            cursor: pointer;
            transition: transform 0.4s ease, filter 0.4s ease;
        }

        .reaction-palette img:hover {
            transform: scale(1.4); 
            filter: brightness(1.1); 
        }

       
        .comment-actions .action-link.user-reacted {
            
             font-weight: 700;
        }
         
         .comment-actions .action-link.user-reacted.reaction-like {
             color: #2176ff; 
         }
          .comment-actions .action-link.user-reacted.reaction-love {
             color: #f83a4a;
         }
         


       
        .view-more-button {
            display: block;
            padding: 16px;
            border-radius: 2px;
            background: rgb(71, 119, 222);
            color: #050505;
            text-align: center;
            
            color: rgb(255, 255, 255);
            font-size: 14px;
            font-weight: 700;
            line-height: 110%;
            transition: 0.3s ease;
            margin-top: 10px;
            box-sizing: border-box;
        }
         /* Если нет отступов у комментариев */
        .comments-list:empty + .view-more-button {
             margin-left: 0;
             width: 100%;
        }

        .view-more-button:hover {
           opacity: 0.9;
        }

        /* Футер атрибуции */
        .facebook-attribution {
            font-size: 0.7em;
          color: rgb(56, 88, 152);
        
            margin-top: 20px;
        }
         .facebook-attribution i {
             margin-right: 3px;
         }
        .facebook-attribution a {
             color: rgb(56, 88, 152);
             text-decoration: none;
        }
         .facebook-attribution a:hover {
             text-decoration: underline;
         }

         /* --- Адаптивность --- */
        @media (max-width: 640px) {
            .facebook-comments-block {
                padding: 15px;
                 border-radius: 0;
                 box-shadow: none;
            }

             .comments-actions-header {
                 padding-bottom: 10px;
                 margin-bottom: 10px;
             }
             .action-button {
                 font-size: 0.8em;
             }
             .action-button i {
                 margin-right: 3px;
             }

             .comments-meta {
                 flex-direction: column;
                 align-items: flex-start;
                 margin-bottom: 15px;
             }
             .comment-sort {
                 margin-top: 5px;
             }


             .comment-item {
                 margin-bottom: 10px;
             }
              .comment-item.reply {
                 margin-left: 30px;
             }

             .comment-item .user-avatar img {
                 width: 28px;
                 height: 28px;
                 margin-right: 6px;
                 min-width: 28px;
             }
              .user-avatar-placeholder i,
              .user-avatar-placeholder img {
                  font-size: 28px;
                  width: 28px;
                  height: 28px;
                  margin-right: 6px;
              }

             .comment-bubble {
                 padding: 6px 10px;
                 border-radius: 16px;
             }
             .comment-bubble .user-name,
             .comment-bubble .comment-text {
                 font-size: 0.85em;
             }

             .comment-actions {
                 font-size: 0.65em;
                 margin-left: 8px;
             }
              .comment-actions span {
                  margin-right: 3px;
              }
              .comment-reactions-summary {
                  font-size: 0.8em;
              }
              .comment-reactions-summary .reaction-icons img {
                  width: 18px;
                  height: 18px;
              }
               .reaction-palette img {
                   width: 25px; /* Размер иконок в палитре на мобильных */
                   height: 25px;
               }


             .view-more-button {
                width: calc(100% - 30px);
                margin-left: 30px;
                 font-size: 0.8em;
             }
            .comments-list:empty + .view-more-button {
                 margin-left: 0;
                 width: 100%;
            }


             .facebook-attribution {
                 text-align: center;
                 margin-top: 15px;
             }
        }