/* assets/css/talent-post-comments.css */
/* talent_post コメント表示のスタイル */

.purimall-comments-wrapper {
    margin-top: 2em;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.purimall-comments-wrapper form {
    margin-bottom: 1.5em;
    position: relative;
    z-index: 2;
}

.purimall-comments-wrapper textarea[name="purimall_comment_body"] {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    position: relative;
    z-index: 3;
    background-color: #ffffff;
    pointer-events: auto;
}

.purimall-comments-wrapper button[type="submit"] {
    margin-top: 0.5em;
    background-color: #ec4899;
    color: white;
    border: none;
    padding: 0.5em 1em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.purimall-comments-wrapper .purimall-comment-replying-to {
    display: none;
    align-items: center;
    gap: 0.75em;
    margin-bottom: 0.5em;
    padding: 0.5em 0.75em;
    background: rgba(236, 72, 153, 0.1);
    border-radius: 4px;
    font-size: 0.9em;
}

.purimall-comments-wrapper .purimall-comment-replying-to.is-replying {
    display: flex;
}

.purimall-comments-wrapper .purimall-comment-cancel-reply {
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 0.85em;
    text-decoration: underline;
    padding: 0;
}

.purimall-comments-wrapper ul.purimall-comment-list {
    list-style: none;
    padding: 0;
}

.purimall-comments-wrapper ul.purimall-comment-list > li.comment-item {
    margin-bottom: 1.2em;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1em;
}

.purimall-comments-wrapper ul.purimall-comment-replies {
    list-style: none;
    margin: 0.75em 0 0 0;
    padding: 0 0 0 1.25em;
    border-left: 3px solid rgba(236, 72, 153, 0.35);
}

.purimall-comments-wrapper ul.purimall-comment-replies > li.comment-reply {
    margin-bottom: 0.9em;
    padding-bottom: 0.9em;
    border-bottom: 1px solid #eee;
}

.purimall-comments-wrapper ul.purimall-comment-replies > li.comment-reply:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.purimall-comments-wrapper .comment-item > div:first-child {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
}

.purimall-comments-wrapper .comment-main {
    flex: 1;
    min-width: 0;
}

.purimall-comments-wrapper .comment-reply-btn {
    margin-top: 0.5em;
    background: transparent;
    border: 1px solid #ec4899;
    color: #ec4899;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.purimall-comments-wrapper .comment-reply-btn:hover,
.purimall-comments-wrapper .comment-reply-btn.is-active {
    background: #ec4899;
    color: #fff;
}

.purimall-comments-wrapper .comment-delete-reply-btn {
    margin-top: 0.5em;
    background: transparent;
    border: 1px solid #999;
    color: #666;
    padding: 0.25em 0.75em;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85em;
}

.purimall-comments-wrapper .comment-delete-reply-btn:hover {
    background: #666;
    border-color: #666;
    color: #fff;
}

.purimall-comments-wrapper .comment-delete-reply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* コメント投稿者アバター：正円表示 */
.purimall-comments-wrapper .comment-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.purimall-comments-wrapper .comment-author-avatar a {
    display: block;
    width: 100%;
    height: 100%;
}

.purimall-comments-wrapper .comment-author-avatar img.avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.purimall-comments-wrapper .comment-meta {
    color: #777;
    font-size: 0.85em;
    margin-left: 0.5em;
}

.purimall-comments-wrapper .comment-body {
    margin-top: 0.3em;
}

