/* General Comments Section */
.fb-comments-section {
    margin-top: 20px;
    font-family: Arial, sans-serif;
}

/* Individual Comment */
.fb-comment {
    display: flex;
    align-items: flex-start;
    padding: 5px 0;
}

/* Profile Image */
.fb-comment-avatar {
    width: 48px;
    height: 48px;
    margin: unset;
    margin-right: 8px;
    margin-top: 7px;
    align-self: flex-start; /* Moves the avatar to the top */
    border-radius: 2px;
}

.fb-comment-body a {
    font-weight: bold;
    color: #4267b2;
}

.fb-comment-actions {
    display: flex;
    align-items: center;
}

.fb-comment-body a:over {
    text-decoration: underline;
}

/* Comment Container */
.fb-comment-content {
    flex: 1;
}

/* Name & Comment Layout */
.fb-comment-header {
    font-weight: bold;
    color: #385898;
    margin-bottom: 2px;
}

/* Comment Text */
.fb-comment-body {
    background: #f9f9f9;
    padding: 5px 8px;
    border-radius: 5px;
    max-width: fit-content;
    display: inline-block;
    font-size: 14px;
    line-height: 1.3;
}

/* Timestamp */
.fb-comment-timestamp {
    font-size: 11px;
    line-height: 12px;
    color: #65676b;
    display: block;
    margin-top: 0;
}

/* Like & Reply Actions */
.fb-comment-actions {
    font-size: 12px;
    color: #65676b;
    margin-top: 4px;
}

.reply-button-off {
    display: none;
}

.fb-comment-actions a {
    color: #4267b2 !important;
    text-decoration: none;
    font-weight: bold;
    margin-right: 8px;
}

.fb-comment-actions a:hover {
    text-decoration: underline;
}

/* Replies */
.fb-comment-replies {
    /* margin-left: 42px; */
    border-left: 1px solid #ddd;
    padding-left: 10px;
}

/* Nested replies styling based on depth */
.fb-comment[data-depth="1"],
.fb-comment[data-depth="2"],
.fb-comment[data-depth="3"],
.fb-comment[data-depth="4"],
.fb-comment[data-depth="5"] {
    /* All nested replies keep consistent styling */
}

/* Limit nesting visual indication at deeper levels */
.fb-comment[data-depth] .fb-comment-replies {
    border-left-color: #e4e6eb;
    margin-left: 0;
}

#fb-comment-section iframe {
    width: 1000px !important;
}

#th_fb_comments {
    float: unset !important;
}

/* #th_fb_comments,
#th_fb_comments .fb-comments,
#th_fb_comments span,
#th_fb_comments iframe {
    height: 165px !important;
} */

#th_fb_comments iframe {
    width: 100% !important;
}

#loadMoreComments {
    background: #3578e5;
    border: none;
    box-sizing: border-box;
    color: #fff;
    font-size: 14px;
    margin-top: 24px;
    padding: 12px;
    text-shadow: none;
    width: 100%;
}

.fb-comment-header a {
    color: #385898;
}

.fbCommentsFormItem .form-group {
    display: flex;
    gap: 6px;
}

.fbCommentsComment {
    width: 100%;
}

.fbCommentsComment textarea {
    height: 65px;
    border: 1px solid #d3d6db;
    word-wrap: break-word;
}

.fbCommentsFormItem button.btn {
    border: 1px solid;
    border-radius: 2px;
    padding: 0 8px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
}

.fbCommentsFormItem button.btn.btn-primary {
    background-color: #4267b2;
    border-color: #4267b2;
}

.fbCommentsFormItem button.btn.btn-primary:hover {
    background-color: #365899;
    border-color: #365899;
}

.fbCommentsFormItem button.btn.btn-secondary {
    background-color: #f5f6f7;
    border-color: #ccd0d5;
    color: #4b4f56;
}

.fbCommentsFormItem button.btn.btn-secondary:hover {
    background-color: #ebedf0;
}

.fbCommentsImg img {
    width: 48px;
    height: 48px;
    max-width: none;
}

/* Reply form styles */
.reply-form-wrapper {
    margin-top: 8px;
    margin-left: 0;
    padding-left: 0;
}

.reply-form-wrapper .fbReplyForm {
    background: #f7f8fa;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.reply-form-wrapper .fbCommentsComment textarea {
    height: 50px;
    font-size: 13px;
}

.reply-form-wrapper .fbCommentsSubmit {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.reply-form-wrapper .fbCommentsSubmit button {
    font-size: 13px;
    padding: 4px 12px;
}

.fbCommentsSubmit {
    text-align: right;
    padding: 4px;
    background: #f5f6f7;
    border: 1px solid #d3d6db;
    border-top: 0;
}

/*==========  Mobile First Method  ==========*/

@media only screen and (max-width : 991px) {

}

/* Phones Portrait */ 
@media only screen and (min-width : 320px) and (max-width : 479px) {
    .fb-comment-replies {
        margin-left: -25px;
    }

    .fb-comment-avatar {
        width: 35px;
        height: 35px;
        margin-right: 7px;
        margin-top: 5px;
    }

    .fb-comment {
        padding: 6px 0;
    }

    .fb-comments-section > .fb-comment {
        border-bottom: 1px solid #ddd;
    }

    .fb-comment-body {
        padding: 4px 8px;
        border-radius: 7px;
    }

    .fb-comment-timestamp {
        margin-top: 0;
    }
}

/* Phones Landscape */ 
@media only screen and (min-width : 480px) and (max-width : 767px) {

}

/* Phones Portrait and Landscape */ 
@media only screen and (min-width : 320px) and (max-width : 767px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) and (max-width : 991px) {

}

@media only screen and (min-width : 992px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) and (max-width : 1199px) {

}

/* Small and Medium Devices */
@media only screen and (min-width : 768px) and (max-width : 1199px) {

}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

}
