/* comments.php */

.p-wpd-comments {
    margin-top: 48px;
}

.p-wpd-comments__head {
    margin-bottom: 24px;
}

.p-wpd-comments__title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.p-wpd-comments__count {
    margin: 6px 0 0;
    font-size: 13px;
    color: #777;
}

.p-wpd-comments__list,
.p-wpd-comments__list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.p-wpd-comment {
    margin: 0 0 18px;
}

.p-wpd-comment .children {
    margin-top: 18px;
    margin-left: 56px;
}

.p-wpd-comment__card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.p-wpd-comment__avatar {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.p-wpd-comment__avatar img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.p-wpd-comment__main {
    flex: 1;
    min-width: 0;
}

.p-wpd-comment__head {
    margin-bottom: 10px;
}

.p-wpd-comment__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.p-wpd-comment__id {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #777;
}

.p-wpd-comment__body {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.9;
    color: #333;
}

.p-wpd-comment__body p {
    margin: 0 0 1em;
}

.p-wpd-comment__body p:last-child {
    margin-bottom: 0;
}

.p-wpd-comment__awaiting {
    color: #b45309;
    font-size: 13px;
}

.p-wpd-comment__foot {
    margin-top: 16px;
}

.p-wpd-comment__foot .comment-reply-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 96px;
    min-height: 32px;
    padding: 6px 22px;
    background: #4E5E34;
    color: #fff;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
}

.p-wpd-comment__foot .comment-reply-link:hover {
    opacity: 0.85;
}

.p-wpd-comments__nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.p-wpd-comments__closed {
    margin-top: 24px;
    color: #777;
    font-size: 14px;
}

.p-wpd-form {
    margin-top: 20px;
    padding: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
}

.p-wpd-form .comment-reply-title {
    margin: 0 0 20px;
    font-size: 20px;
    font-weight: 700;
}

.p-wpd-form__comment label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

.p-wpd-form__comment textarea {
    width: 100%;
    min-height: 160px;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 15px;
    line-height: 1.7;
}

.p-wpd-form__submit {
    min-width: 140px;
    min-height: 46px;
    padding: 10px 24px;
    background: #4E5E34;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

@media screen and (max-width: 600px) {
    .p-wpd-comment__card {
        gap: 12px;
        padding: 16px;
        border-radius: 14px;
    }

    .p-wpd-comment__avatar {
        width: 48px;
        height: 48px;
    }

    .p-wpd-comment__avatar img {
        width: 48px;
        height: 48px;
    }

    .p-wpd-comment .children {
        margin-left: 24px;
    }

    .p-wpd-comment__foot .comment-reply-link {
        width: 100%;
    }
}
.p-wpd-form .p-wpd-form-user {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.p-wpd-form-user__avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.p-wpd-form-user__avatar img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.p-wpd-form-user__info {
    min-width: 0;
}

.p-wpd-form-user__name {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
  margin-bottom: 0 !important;
}

.p-wpd-form-user__id {
    margin: 2px 0 0;
    font-size: 13px;
    color: #777;
    line-height: 1.4;
}
#cancel-comment-reply-link {
  color: #333;
  border-radius: 20px;
  padding: 10px 20px;
  font-style: normal;
}
.comment-respond {
  margin-bottom: 20px;
}
.p-wpd-comment__card {
    position: relative;
}

.tm-comment-menu {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
}

.tm-comment-menu__toggle {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
}

.tm-comment-menu__toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.tm-comment-menu__toggle span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #777;
    display: block;
}

.tm-comment-menu__panel {
    position: absolute;
    top: 40px;
    right: 0;
    min-width: 120px;
    padding: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
}

.tm-comment-menu.is-open .tm-comment-menu__panel {
    display: block;
}

.tm-comment-menu__delete {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: #c0392b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.4;
}

.tm-comment-menu__delete:hover {
    background: #fff1f1;
}

.wpulike-animated-heart button.wp_ulike_btn {
    position: relative;
    border-radius: 50%;
    background-color: #fff;
    padding: 0;
    box-shadow: none;
    border: 0;
    width: 40px;
    height: 40px;
  border: 1px solid var(--c-main);
}
.tm-comment-ulike {
    margin-top: 14px;
}

.tm-comment-ulike .p-post__action-circle,
.tm-comment-ulike__circle {
    position: relative;
}

.tm-comment-ulike__heart {
    position: relative;
    z-index: 1;
    pointer-events: none;
}
.wpulike {
  display: none;
}
.tm-comment-ulike .p-post__action-circle, .tm-comment-ulike__circle {
width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    border: 1px solid var(--c-main);
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.tm-comment-ulike .p-post__action-circle svg, .tm-comment-ulike__circle svg {
    width: 1.6rem;
    height: 1.6rem;
}
.is-liked .tm-comment-ulike .p-post__action-circle path, .is-liked .tm-comment-ulike__circle path {
    fill: #ef2285;
    stroke: #ef2285;
}
.tm-comment-ulike .p-post__action-circle path, .tm-comment-ulike__circle path {
    transition: fill 0.2s ease, stroke 0.2s ease;
}
.tm-comment-ulike__action {
  display: flex;
    gap: 0.6rem;
}
.p-wpd-comment__foot {
  max-width: 150px;
}
.p-wpd-form__image-note {
  display: block;
  font-size: 14px;
  color: #555;
}
.p-wpd-comments__title,
.comment-reply-title {
  color: var(--c-main);
}
.p-wpd-comment__card {
    position: relative;
}

.p-wpd-comment__date {
    position: absolute;
    top: 22px;
    right: 56px;
    font-size: 12px;
    line-height: 1.4;
    color: #999;
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
    .p-wpd-comment__date {
        position: static;
        display: block;
        margin: 4px 0 10px;
        font-size: 11px;
        color: #999;
    }
}