.pop-up-main {
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    z-index: 9999;
}

.pop-up-main .overlay-div {
    background: rgba(0, 0, 0, 0.5);
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
}

.popup-contentbox {
    position: relative;
    z-index: 2;
    box-shadow: 0px 2px 4px 0px #0000000D;
    background: #fff;
    border-radius: 5px;
    /* padding: 20px; */
    height: auto;
    width: 90vw;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-wrap: wrap;
}

.popup-header,
.popup-body {
    width: 100%;
    padding: 20px;
}

.popup-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
    line-height: 40px;
}

.close-popup {
    border-radius: 50%;
    background-color: #D9D9D9;
    position: absolute;
    top: 20px;
    right: 20px;
    height: 40px;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.popup-body {
    padding-top: 0;
    max-height: calc(100vh - 100px);
    overflow: auto;
    padding: 20px;
    width: 100%;
}

.discussionmain {
    background-color: #fff;
    border-radius: 10px;
    padding: 0;
    position: relative;
}

.discussionmain .message-div {
    padding-bottom: 5px;
    justify-content: unset;
    display: flex;
    align-items: center;
}

.discussionmain .write-userimage {
    width: 66px;
    height: 66px;
    max-width: 66px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.discussionmain .write-userimage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.discussionmain .post-nameuser {
    font-size: 16px;
    font-weight: 600;
    padding-left: 15px;
    margin-bottom: 0;
}

.discussionmain .message-input {
    height: 100px !important;
    width: 100%;
    overflow: auto;
    resize: none;
    border: none;
    outline: none;
    box-shadow: none;
    border-radius: 10px;
    background-color: #DFDFDF;
    padding: 20px;
    height: 40px;
    color: #65676B;
    margin-top: 10px;
}

.discussionmain .preview-div {
    height: auto;
    width: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    /* overflow: hidden; */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    /* justify-content: space-between; */
    margin: 10px 0;
}

.discussionmain .closeuploaditem {
    height: 25px;
    width: 25px;
    background-color: #DFDFDF;
    border-radius: 50%;
    overflow: hidden;
    position: absolute;
    top: -5px;
    right: -5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-image: url('../images/like-close-icon.png');
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.discussionmain .innerpreviewdiv {
    height: 150px;
    width: 200px;
    background-color: #f5f5f5;
    position: relative;
    margin-left: 10px;
}

.discussionmain .innerpreviewdiv img {
    height: 100%;
    width: 100%;
    object-fit: scale-down;
}

.discussionmain .add-input-div {
    justify-content: space-between;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px 0;
}

.discussionmain .add-input-div .hidden {
    display: none;
}

.discussionmain .post-message {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: 100%;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background-color: #D8D8D8;
    border-radius: 25px;
    padding: 0 20px;
    border: none;
    outline: none;
    box-shadow: none;
    margin: 20px 0;
    pointer-events: none;
}

.discussionmain .post-message.active {
    background-color: #4AA9DE;
    color: #fff;
    pointer-events: all;
}

.discussionmain .media-inputs {
    width: 48%;
    background-color: #4AA9DE;
    padding: 10px;
    border-radius: 10px;
    color: #fff;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.discussionmain .media-inputs img {
    position: absolute;
    left: 40px;
    top: 5px;
}

.discussionmain .media-inputs label {
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.discussionmain .textarealabel {
    color: #000;
    font-size: 14px;
    font-weight: 600;
}

.filled-icon {
    display: none;
}

.likebox.active .filled-icon {
    display: block;
}

.likebox.active .unfilled-icon {
    display: none;
}

/* discussion mail list */
.singlediscussion {
    display: flex;
    justify-content: space-between;
    align-items: start;
}

.discussionmaillistdiv {
    padding: 25px 0;
    min-height: 300px;
}

.users-postmaindiv {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 65%;
}

.listdiscussion .postuser-div {
    width: 100%;
    min-height: 100%;
    padding: 15px;
    border-radius: 10px;
    margin: 10px 0;
    box-shadow: 0 0 15px #e2e2e2;
}

.listdiscussion .postuser-id {
    display: flex;
    align-items: center;
    position: relative;
}

.listdiscussion .postuser-id .postuser-image {
    width: 66px;
    height: 66px;
    max-width: 66px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
}

.listdiscussion .postuser-id .postuser-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listdiscussion .postuser-id .postuser-details {
    width: calc(100% - 120px);
    margin-left: 15px;
    height: auto;
}

.listdiscussion .postuser-id .post-name {
    margin-bottom: 0;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

.listdiscussion .postuser-id .post-time {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    color: #666;
}

.listdiscussion .postuser-id .editpostdiv {
    width: 30px;
    height: 30px;
    overflow: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    align-self: flex-start;
    justify-content: center;
    background-color: #DFDFDF;
    margin-left: 10px;
}

.listdiscussion .editpostdiv .editoption {
    width: 100%;
    height: 100%;
    cursor: pointer;
    object-fit: cover;
    transform: rotate(90deg);
}

.listdiscussion .edithiddendiv {
    position: absolute;
    top: 35px;
    right: 0;
    width: 120px;
    height: auto;
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 15px #ccc;
    z-index: 3;
}

.listdiscussion .edithiddendiv p {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    color: #333333;
}

.listdiscussion .edithiddendiv p:last-child {
    margin-bottom: 0;
}

.listdiscussion .post-caption {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    color: #333;
    line-height: 18px;
    padding: 10px 0;
    word-wrap: break-word;
}

.listdiscussion .likes-comment {
    margin-top: 10px;
}

.listdiscussion .like-maindiv,
.listdiscussion .comment-maindiv {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 8px;
    height: 25px;
}

.listdiscussion .likes-count,
.listdiscussion .comment-count {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 14px;
    margin-left: 15px;
    width: fit-content;
}

.listdiscussion .commenttextarea {
    width: 100%;
    border: none;
    box-shadow: none;
    outline: none;
    resize: none;
    padding: 0;
    margin-top: 10px;
    height: 30px;
}

.listdiscussion .common-postimage-div {
    height: auto;
    width: 100%;
    overflow: hidden;
}

.listdiscussion .common-postimage-div img {
    width: 100%;
    height: 300px;
    object-fit: contain;
}

.listdiscussion .common-postimage-div video {
    width: -webkit-fill-available;
}

.writemorediv {
    text-align: center;
    margin: 10px 0;
}

.writemorediv .whatsonmind {
    border: none;
    box-shadow: none;
    outline: none;
    background: #4AA9DE;
    padding: 10px;
    width: 280px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border-radius: 25px;
    height: 50px;
}

.writemorediv .plus-icon {
    margin-right: 10px;
}

/* comment popup css */

.comment-popup .comment-listdiv {
    max-height: calc(75vh - 100px);
    min-height: 350px;
    overflow: auto;
}

.comment-popup .comment-listdiv .box-comment {
    display: flex;
    padding-bottom: 15px;
}

.comment-popup .box-comment .commentuserimgdiv {
    height: 40px;
    width: 40px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.comment-popup .comment-user-img,
.comment-popup .writecommentuserimgdiv img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.comment-popup .comment-listdiv .commentbox {
    padding-left: 15px;
    width: calc(100% - 40px);
}

.comment-popup .comment-listdiv .comt-username {
    margin-bottom: 0;
    font-weight: 600;
    font-size: 16px;
    color: #333;
    width: calc(100% - 90px);
}

.comment-popup .comment-listdiv .flag-icon {
    top: 0;
    right: 10px;
    position: absolute;
    cursor: pointer;
    text-align: right;
}

.comment-popup .comment-listdiv .name-flag-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.comment-popup .comment-listdiv .posteddate {
    margin-bottom: 0;
    color: #666;
    font-size: 12px;
    width: 90px;
}

.comment-popup .comment-listdiv .comment-full {
    margin-bottom: 5px;
    font-weight: 400;
    font-size: 14px;
    color: #666;
    padding-right: 10px;
    word-wrap: break-word;
}

.comment-popup .write-box {
    box-shadow: 0px 4px 20px 0px #00000066;
    padding: 0 15px;
    width: 100%;
    /* position: absolute; */
}

.comment-popup .write-box .write-comment {
    display: flex;
    padding: 15px 0;
}

.comment-popup .write-box .comment-user-img {
    height: 40px;
    width: auto;
    width: 40px;
    border-radius: 50%;
}

.comment-popup .write-box .comment-input {
    border-radius: 25px;
    background-color: #DFDFDF;
    border: none;
    outline: none;
    padding: 0 60px 0 15px;
    margin-left: 15px;
    width: calc(100% - 55px);
    color: #333;
}

.comment-popup .write-box .write-comment .send-comment {
    height: 40px;
    width: 40px;
    border: none;
    outline: none;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #4AA9DE;
    background-color: transparent;
    position: absolute;
    right: 25px;
}

.comment-popup .like-maindiv,
.comment-popup .comment-maindiv {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    width: 90px;
    height: 25px;
}

.comment-popup .filled-icon {
    display: none;
}

.comment-popup .likes-count,
.comment-popup .comment-count {
    margin-bottom: 0;
    font-size: 13px;
    margin-left: 10px;
    width: fit-content;
    line-height: 22px;
}

.comment-popup .likebox.active .unfilled-icon {
    display: none;
}

.comment-popup .likebox.active .filled-icon {
    display: block;
}

.comment-popup .likesandreplymain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    position: relative;
    width: calc(100% - 80px);
}

.comment-popup .repliescount,
.comment-popup .bluereplyclass {
    margin-bottom: 0;
    font-size: 13px;
    margin-right: 10px;
    width: fit-content;
    line-height: 22px;
}

.comment-popup .bluereplyclass {
    color: #4AA9DE;
    margin-right: 0;
    cursor: pointer;
}

.comment-popup .repliesdiv {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: 25px;
    width: 100px;
}

.comment-popup .likebox {
    cursor: pointer;
}

.comment-popup .repliesdiv span {
    height: 10px;
    width: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 5px;
    cursor: pointer;
}

.comment-popup .repliesdiv span img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: rotate(90deg);
}

.comment-popup .repliesdiv span img.active {
    transform: rotate(270deg);
}

.comment-popup .repliesshowdiv {
    display: flex;
    justify-content: center;
    align-items: center;
}

.comment-popup .replyadddiv {
    background-color: #4AA9DE;
    color: #fff;
    padding: 5px 10px;
    height: 25px;
    width: 75px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 5px;
    right: 0;
    top: 0;
    position: absolute;
    cursor: pointer;
}

.comment-popup .replyadddiv span {
    height: 15px;
    width: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.comment-popup .replyadddiv span img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.comment-popup .replieshoddendiv {
    display: none;
}

.comment-popup .replieshoddendiv.active {
    display: block;
    margin-top: 10px;
}

/* sidepart css */
.users-postmaindiv2 {
    width: 33%;
    height: 100%;
    box-shadow: 0 0 15px #e2e2e2;
    border-radius: 10px;
    margin-top: 10px;
    position: sticky;
    top: 105px;
}

.users-postmaindiv2 .discussiongrpside {
    padding: 15px;
}

.users-postmaindiv2 .feedprofile-body {
    background-color: #fff;
    padding: 15px;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.users-postmaindiv2 .commonprofile-image-div {
    width: 230px;
    height: 230px;
    margin: 15px auto;
    /* border-radius: 50%; */
    overflow: hidden;
}

.commonprofile-image-div img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.users-postmaindiv2 .commonprofile-group-name .discussiongrpname {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
    word-wrap: break-word;
    text-align: center;
}

.users-postmaindiv2 .commonprofile-group-name .discussiongrpdesc {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 0;
    color: #666;
    word-wrap: break-word;
    text-align: center;
}

.users-postmaindiv2 .profilebtn-div {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin: 15px 0 20px;
}

.users-postmaindiv2 .common-btn.fill-btn {
    background-color: #4aa9de;
    color: #fff;
}

.users-postmaindiv2 .common-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    width: auto;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    background-color: #D8D8D8;
    border-radius: 25px;
    padding: 0 20px;
    border: none;
    outline: none;
    box-shadow: none;
}

.users-postmaindiv2 .friend-interstmaindiv {
    border-top: 1px solid #D8D8D8;
    padding: 15px 0;
}

.users-postmaindiv2 .friend-interstmaindiv .interest-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.users-postmaindiv2 .friend-interstmaindiv .interest-ul {
    padding-left: 20px;
}

.users-postmaindiv2 .friend-interstmaindiv .interest-li {
    line-height: 22px;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.users-postmaindiv2 .friend-interstmaindiv .interest-li::marker {
    color: #333;
}

.users-postmaindiv2 .discusionbtns {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.users-postmaindiv2 .discusionbtns .discussionbtnone {
    margin-right: 15px;
}

.users-postmaindiv2 .memberslocationdiv {
    margin: 0 0 10px;
}

@media (max-width:767px) {
    .popup-body {
        padding: 15px;
    }

    .discussionmain .media-inputs {
        width: 100%;
        margin-top: 15px;
    }

    .users-postmaindiv {
        width: 100%;
    }
    
    .discussionmain .media-inputs img {
        left: 20px;
    }
}

@media (max-width: 425px) {

    .comment-popup .like-maindiv,
    .comment-popup .comment-maindiv {
        width: 65px;
    }

    .comment-popup .repliesdiv {
        width: 90px;
    }
}

@media (min-width:992px) and (max-width: 1199px) {
    .users-postmaindiv2 .discusionbtns .discussionbtnone {
        margin-bottom: 15px;
        margin-right: 0;
    }
}

@media (max-width: 991px) {
    .users-postmaindiv2 {
        display: none;
    }

    .singlediscussion {
        justify-content: center;
    }

    .users-postmaindiv {
        width: 95%;
    }
}