
.commentWrap {
    padding: 40px 0;
    box-sizing: border-box;
    background-color: #fff;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}

.commentWrap .commentInputBox .counting {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin-bottom: 16px;
    display: block;
}

.commentWrap .commentInputBox .counting>img {
    width: 24px;
    height: 24px;
    display: inline-block;
    vertical-align: bottom;
    margin-left: 3px;
}

.commentWrap .inputArea {
    position: relative;
    /* margin: 16px 0; */
    border: 1px solid #ccc;
    box-sizing: border-box;
    background-color: #fff;
    padding: 16px;
}

.commentWrap .inputArea.active {
    padding: 16px 10px 10px 16px;
}

.commentWrap .inputArea textarea {
    border: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.2px;
    resize: none;
    color: #000;
}

.commentWrap .inputArea textarea::-webkit-scrollbar {
    width: 3px;
}


.commentWrap .inputArea textarea::-webkit-scrollbar-thumb {
    background-color: #d9d9d9;
    border-radius: 3px;
}

.commentWrap .inputArea textarea::-webkit-scrollbar-track {
    background-color: #fff !important;
    background: #fff !important;
}

.commentWrap .inputArea textarea:active,
.commentWrap .inputArea textarea:focus {
    outline: none;
}

.commentWrap .inputArea textarea.fillOut {
    height: 28px;
    overflow: hidden;
}

.commentWrap .inputArea textarea::placeholder {
    color: #aaa;
}

.commentWrap .bottomInfo {
    display: none;
}

.commentWrap .inputArea.active .bottomInfo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
}

.commentWrap .bottomInfo > span {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 400;
    color: #999;
}

.commentWrap .bottomInfo > span p {
    color: #000;
}

.commentWrap .bottomInfo .applyBtn {
    width: 53px;
    color: #fff;
    font-size: 13px;
    font-weight: 400;
    background-color: #000000;
    border-radius: 2px;
    height: 36px;
}

.commentWrap .bottomInfo .applyBtn:disabled {
    background-color: #cccccc;
}

.commentWrap .tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #ddd;
    gap: 24px;
    margin-top: 24px;
}

.commentWrap .tabsItem {
    font-size: 15px;
    font-weight: 400;
    color: #999;
    letter-spacing: -0.2px;
    position: relative;
    padding-bottom: 12px;
    cursor: pointer;
}

.commentWrap .tabsItem.active {
    color: #000;
    font-weight: 700;
}

.commentWrap .tabsItem.active::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background-color: #000;
}

.commentWrap .contentBox {
    display: none;
}

.commentWrap .contentBox.show {
    display: block;
}

.commentWrap .commentList > li {
    padding: 20px 20px 0;
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.commentWrap .commentList > li.gray {
    padding: 16px 20px;
}

.commentWrap .commentList > li.self::before,
.commentWrap .commentList > li.gray::before {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    height: 100%;
    background-color: #f0f7f0;
    left: -20px;
    right: -20px;
    z-index: -1;
}

.commentWrap .commentList > li.self .like,
.commentWrap .replyCommentList li.self .like {
    margin-left: auto;
}

.commentWrap .commentList > li.self .like::before,
.commentWrap .replyCommentList li.self .like::before {
    display: none !important;
}

.commentWrap .commentList > li.gray::before {
    background-color: #f5f5f5;
}

.commentWrap .replyCommentList li.self {
    z-index: 1;
    background-color: #f0f7f0;
    padding-bottom: 20px;
}

.commentWrap .replyCommentList li.self > p {
    margin-bottom: 12px;
}

.commentWrap .commentList > li:last-child {
    border-bottom: 1px solid #eee;
}

.commentWrap .commentList > li.show {
    border-bottom: 0;
}


.commentWrap .commentList > li.close {
    border-bottom: 1px solid #eee;
}

.commentWrap .commentInfo p {
    font-size: 13px;
    color: #999;
    font-weight: 400;
    letter-spacing: -0.2px;
    display: inline-block;
    vertical-align: middle;
}

.commentWrap .commentInfo p + p::before {
    content: "";
    display: inline-block;
    vertical-align: text-top;
    width: 1px;
    height: 14px;
    background-color: #eee;
    margin: 0 6px;
}

.commentWrap .commentContent {
    margin: 12px 0 20px;
    font-size: 15px;
    color: #000;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.2px;
    white-space: normal;          /* 기본 줄바꿈 허용 */
    word-break: keep-all;         /* 한글은 단어 단위로 */
    overflow-wrap: anywhere;      /* 공백 없는 긴 문자열 강제 줄바꿈 */
    word-break: break-word;       /* Safari 등 호환용 */
}

.commentWrap .commentBtm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.commentWrap button {
    font-size: 13px;
    font-weight: 400;
    color: #000;
    letter-spacing: -0.2px;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

.commentWrap button.like {
    display: flex;
    align-items: center;
    gap: 2px;
    color: #757575;
    font-weight: 700;
}

.commentWrap button.like img {
    width: 15px;
}

.commentWrap .replyCommentArea {
    border-top: 1px solid #eee;
    background-color: #f5f5f5;
    display: block;
    margin: 0 -20px;
}

.commentWrap .replyCommentArea.close {
    display: none;
}

.commentWrap .replyInput {
    padding: 16px 20px 16px 48px;
    border-bottom: 1px solid #eee;
}

.commentWrap .closeReply {
    margin: 16px 0 0;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: #000;
    text-align: center;
    width: 100%;
}

.commentWrap .replyCommentList li {
    border-bottom: 1px solid #eee;
    padding: 20px 20px 36px 48px;
}

.commentWrap .replyCommentList li p {
    margin-bottom: 0;
}

.commentWrap .comment.self .edit,
.commentWrap .comment.self .del {
    text-decoration: underline;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: #000;
}

.commentWrap .comment.self .del2Btn,
.commentWrap .comment.self .edit2Btn {
    text-decoration: underline;
    font-size: 13px;
    font-weight: 400;
    letter-spacing: -0.2px;
    color: #000;
}

.commentWrap .comment.self .commentBtm {
    justify-content: flex-start;
}

.commentWrap .replyCommentArea .comment.self .commentBtm {
    margin: 0;
}

.commentWrap .comment.self .commentBtm button + button::before {
    content: "";
    display: inline-block;
    vertical-align: sub;
    width: 1px;
    height: 14px;
    background-color: #eee;
    margin: 0 12px;
}

.commentWrap .moreComment {
    width: fit-content;
    margin: 20px auto 0;
    border: 1px solid #ddd;
    padding: 17px 51px;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    display: block;
}