/* =========================
   LaonPeople Blog Comment
   /css/comment.css
========================= */

#comments.lp-comments {
    /* border-top: 1px solid #dddddd; */
    max-width: 720px;
    margin: auto;
}

#comments.lp-comments::before {
    content: '';
    border-top: 1px solid #efefef;
    width: 100%;
    left: 0;
    display: block;
    position: absolute;
}

#comments .lp-comments__head {
    position: relative;
    margin-bottom: 16px;
    padding-top: 80px;
    display: flex;
    justify-content: space-between;
}

#comments .lp-comments__title {
    margin: 0;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

#comments .lp-comments__title span {
    color: var(--green);
}

/* 댓글 리스트 */
#comments .lp-comment-list {
    list-style: none;
    margin: 40px 0 0 0;
    padding: 0;
}

#comments .lp-comment-item {
    list-style: none;
    margin: 0;
    padding: 0;
}

#comments .lp-comment-item+.lp-comment-item {
    /* margin-top: 18px; */
}

/* 댓글 카드 */
#comments .lp-comment-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    border-top: 1px solid #f4f4f4;
    padding-block: 16px;
}

#comments .lp-comment-avatar {
    flex: 0 0 56px;
    width: 56px;
    display: none;
}

#comments .lp-comment-avatar img,
#comments .lp-comment-avatar .avatar {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
}

#comments .lp-comment-body {
    flex: 1 1 auto;
    min-width: 0;
}

/* 메타 */
#comments .lp-comment-meta {
    display: flex;
    margin-bottom: 8px;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

#comments .lp-comment-author {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: #111;
}

#comments .lp-comment-author a {
    color: inherit;
    text-decoration: none;
}

#comments .lp-comment-author a:hover {
    color: var(--green);
}

#comments .lp-comment-date {
    font-size: 12px;
    line-height: 1.4;
    color: var(--dark-gray01);
    white-space: nowrap;    
}

/* 승인 대기 */
#comments .lp-comment-awaiting {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 600;
    color: var(--green);
}

/* 댓글 내용 */
#comments .lp-comment-content {
    font-size: 15px;
    line-height: 1.8;
    color: #222;
    word-break: keep-all;
    overflow-wrap: break-word;
}

#comments .lp-comment-content p {
    margin: 0;
}

#comments .lp-comment-content p+p {
    margin-top: 10px;
}

#comments .lp-comment-content a {
    color: var(--green);
    text-decoration: underline;
}

#comments .lp-comment-content img {
    max-width: 100%;
    height: auto;
}

/* 답글 구조를 나중에 쓸 수도 있어서 기본 대비 */
#comments .children {
    list-style: none;
    margin: 0 0 16px 20px;
    padding: 0;
}

#comments .children .lp-comment-card {
    border-top: 0;
    border-left: 4px solid #efefef;
    padding-left: 12px;
    border-bottom: 0;
}

/* 댓글 폼 영역 */
#comments #respond {
    position: relative;
}
#comments .lp-comment-list #respond{
    margin-bottom: 40px;
}

#comments .comment-reply-title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    color: #111;
    letter-spacing: -0.02em;
}

#comments .comment-notes {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.6;
    color: #6f7b87;
}

/* 폼 기본 */
#comments .comment-form {
    margin: 0;
}

#comments .comment-form.comment-form-open p {
    margin-top: 18px;
}

#comments .comment-form label {
    font-size: 14px;
    margin-bottom: 5px;
    width: 100%;
    display: block;
}

#comments .comment-form .comment-form-cookies-consent label {
    margin-bottom: 0;
}

#comments .comment-form .required {
    color: var(--green);
}

/* 입력 필드 */
#comments .comment-form input[type="text"],
#comments .comment-form input[type="email"],
#comments .comment-form input[type="url"],
#comments .comment-form input[type="password"],
#comments .comment-form textarea {
    display: block;
    width: 100%;
    height: 40px;
    ;
    padding-inline: 12px;
    background: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    line-height: 1.5;
    border: 1px solid var(--dark-gray01);
    font-size: 1rem;

}

#comments .comment-form input::placeholder,
#comments .comment-form textarea::placeholder {
    color: #9aa6b2;
}

#comments .comment-form textarea {
    height: 80px;
    resize: vertical;
    padding: 12px;
}

/* 이름 / 이메일 2열 */
#comments .comment-form-author,
#comments .comment-form-email {
    width: 100%;
}

@media (min-width: 768px) {

    #comments .comment-form-author,
    #comments .comment-form-email {
        /* display: inline-block;
        vertical-align: top;
        width: calc(50% - 8px); */
    }

    #comments .commenter-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    #comments .comment-form-author {
        margin-right: 16px;
    }
}

/* 제출 버튼 */
#comments .form-submit {
    display: flex;
    justify-content: right;
    /* margin-bottom: 60px !important; */
}

#comments .submit,
#comments input[type="submit"] {
    display: block;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    line-height: 1;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    font-size: 1rem;
}

#comments .submit:hover,
#comments input[type="submit"]:hover {
    opacity: 0.94;
}

#comments .submit:active,
#comments input[type="submit"]:active {
    transform: translateY(1px);
}

#comments .submit:focus-visible,
#comments input[type="submit"]:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 4px rgba(0, 183, 81, 0.15),
        0 10px 24px rgba(0, 183, 81, 0.18);
}

/* logged in 문구, 취소 링크 */
#comments .logged-in-as,
#comments .comment-form-cookies-consent,
#comments .comment-awaiting-moderation {
    font-size: 13px;
    line-height: 1.6;
    color: #6f7b87;
}

#comments .logged-in-as a,
#comments .comment-reply-title small a {
    color: var(--green);
    text-decoration: none;
}

#comments .logged-in-as a:hover,
#comments .comment-reply-title small a:hover {
    text-decoration: underline;
}

#comments .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 4px;
    display: none;
}

#comments .comment-form-cookies-consent #wp-comment-cookies-consent {
    width: 16px;
    height: 16px;
}

/* 댓글 네비게이션 */
#comments .comment-navigation {
    margin-top: 24px;
}

#comments .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

#comments .nav-links a {
    color: #111;
    text-decoration: none;
    font-weight: 600;
}

#comments .nav-links a:hover {
    color: var(--green);
}


.commenter-info,
.form-submit {
    max-height: 0;
    opacity: 0;
    /* overflow:hidden; */
    transition: all .35s ease;
    visibility: hidden;
}

.comment-form-open .commenter-info,
.comment-form-open .form-submit {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
}

#comments .lp-comment-actions {
    margin-top: 10px;
}

#comments .lp-comment-actions a {    
    font-size: 14px;
    text-decoration: underline;
    color: var(--dark-gray02);
}

#comments .lp-comment-actions a:hover {    
    color:var(--green);
}

#comments #cancel-comment-reply-link {
    display: none;
    font-size: 14px;
    font-weight: 800;
    color: var(--black);
    text-decoration: none;
    position: absolute;
    left: 0;
    bottom: 14px;
}

#comments #cancel-comment-reply-link:hover {
    text-decoration: underline;
}


.lp-comment-policy {	
	z-index: 3;
}

.lp-comment-policy__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.lp-comment-policy__btn img {
	width: 24px;
	height: 24px;
	display: block;
}

.lp-comment-policy__layer {
    position: absolute;
    top: 85px;
    right: 34px;
    max-width: 600px;
    padding: 12px 18px;
    border-radius: 12px;
    background: #333;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    white-space: normal;
}

.lp-comment-policy__layer[hidden] {
	display: none;
}

/* 모바일 */
@media (max-width: 767px) {
    #comments.lp-comments {
        margin-top: 40px;        
    }

    #comments .lp-comments__title {
        font-size: 24px;
    }

    #comments .lp-comment-card {
        gap: 14px;
        padding: 20px 8px;        
    }

    #comments .lp-comment-avatar,
    #comments .lp-comment-avatar img,
    #comments .lp-comment-avatar .avatar {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

    #comments .lp-comment-meta {
        align-items: flex-start;        
        gap: 4px;
    }

    #comments .children {
        margin-left: 16px;
    }

    #comments #respond {
        
    }

    #comments .comment-reply-title {
        font-size: 22px;
    }

    #comments .comment-form input[type="text"],
    #comments .comment-form input[type="email"],
    #comments .comment-form input[type="url"],
    #comments .comment-form input[type="password"],
    #comments .comment-form textarea {
        padding: 14px 14px;
        font-size: 14px;
    }

    #comments .submit,
    #comments input[type="submit"] {
        width: fit-content;
        min-width: 0;
    }
    #comments .lp-comments__head{
        padding-top: 40px;
    }
    .lp-comment-policy__layer{
        top: 45px;
    }
}