/* Comment UI v2 for the WeChat Apple theme. */

body.wechat-apple .topic_comments_wrap,
body.wechat-apple #comments.comments-area,
body.wechat-apple .single_content .comments-area,
body.wechat-apple .page_content .comments-area {
    margin-top: 24px;
    padding: 22px 0 2px !important;
    border: 0 !important;
    border-top: 1px solid rgba(15, 23, 42, .08) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

body.wechat-apple .comments-title {
    margin-bottom: 18px;
    padding: 0;
    border: 0;
}

body.wechat-apple .comments-title .noticom {
    min-height: 22px;
    padding-inline: 8px;
    border: 0;
    background: #f3f5f7;
}

body.wechat-apple #t_commentform,
body.wechat-apple #commentform {
    position: relative;
    margin: 0;
    padding: 0 0 20px;
    border: 0 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none !important;
}

body.wechat-apple #t_commentform:focus-within,
body.wechat-apple #commentform:focus-within {
    border: 0 !important;
    box-shadow: none !important;
}

body.wechat-apple .vi_avatar_box {
    margin: 0 0 12px;
}

body.wechat-apple a.edit-profile img,
body.wechat-apple a.edit-profile .avatar {
    width: 28px;
    height: 28px;
}

body.wechat-apple #t_commentform #ava-content.comment-author-inline,
body.wechat-apple #commentform #ava-content.comment-author-inline {
    margin: 10px 0 0 !important;
}

body.wechat-apple #t_commentform #comment-author-info.comment-author-panel,
body.wechat-apple #commentform #comment-author-info.comment-author-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.wechat-apple #t_commentform #comment-author-info.comment-author-panel p,
body.wechat-apple #commentform #comment-author-info.comment-author-panel p {
    margin-bottom: 9px;
}

body.wechat-apple .comment-author-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

body.wechat-apple .comment-author-fields input {
    height: 40px;
    padding: 0 12px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    background: #f3f5f7 !important;
}

body.wechat-apple .comment-author-fields input:focus {
    border-color: rgba(15, 23, 42, .2) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .055) !important;
}

body.wechat-apple textarea#comment,
body.wechat-apple #commentform textarea#comment {
    width: 100%;
    min-height: 88px;
    padding: 13px 14px;
    border: 1px solid rgba(15, 23, 42, .085);
    border-radius: 10px;
    background: #f7f8fa;
    color: #1f2937;
    line-height: 1.7;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

body.wechat-apple textarea#comment:focus,
body.wechat-apple #commentform textarea#comment:focus {
    border-color: rgba(15, 23, 42, .24);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, .055);
}

body.wechat-apple .topic_comments_foobar,
body.wechat-apple .com-footer {
    position: relative;
    margin-top: 9px;
    padding: 0;
}

body.wechat-apple .comment_smile_box {
    position: relative;
    z-index: 30;
}

body.wechat-apple a.com_smile_btn {
    width: 34px;
    height: 34px;
    display: inline-flex;
    background: transparent;
    color: #6b7a90;
    -webkit-tap-highlight-color: transparent;
}

body.wechat-apple a.com_smile_btn:hover,
body.wechat-apple a.com_smile_btn:focus,
body.wechat-apple a.com_smile_btn:active,
body.wechat-apple a.com_smile_btn[aria-expanded="true"] {
    background: #eef2f5;
    color: #172033;
}

body.wechat-apple .com_smile_show,
body.wechat-apple .com_smile_show.uk-drop {
    position: absolute !important;
    top: auto !important;
    right: auto !important;
    bottom: 42px !important;
    left: 0 !important;
    width: 252px !important;
    max-width: calc(100vw - 64px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 1200 !important;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, .1);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 16px 38px -18px rgba(15, 23, 42, .42) !important;
}

body.wechat-apple .com_smile_show .inner {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
    padding: 8px;
    border-radius: 0 !important;
    background: #fff;
}

body.wechat-apple .com_smile_show a.smile_btn {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin: 0;
    border-radius: 7px;
    color: #172033;
    font-size: 18px;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}

body.wechat-apple .com_smile_show a.smile_btn:hover,
body.wechat-apple .com_smile_show a.smile_btn:focus,
body.wechat-apple .com_smile_show a.smile_btn:active {
    background: #f0f3f6;
    color: #172033;
}

body.wechat-apple input#push_comment,
body.wechat-apple .com_push input#submit {
    min-width: 66px;
    height: 38px;
    padding: 0 17px;
    border-radius: 8px;
    background: #1fbd68;
    color: #fff;
    box-shadow: none;
    -webkit-tap-highlight-color: transparent;
}

body.wechat-apple input#push_comment:hover,
body.wechat-apple input#push_comment:focus,
body.wechat-apple .com_push input#submit:hover,
body.wechat-apple .com_push input#submit:focus {
    background: #17a95a;
    color: #fff;
    transform: none;
}

body.wechat-apple input#push_comment:active,
body.wechat-apple .com_push input#submit:active {
    background: #128b4a;
    color: #fff;
}

body.wechat-apple .post_footer_meta span.comnum.is-open {
    background: #18181b !important;
    color: #fff !important;
    box-shadow: none !important;
    transform: none !important;
}

body.wechat-apple .post_footer_meta span.comnum.is-open i {
    color: #fff !important;
}

body.wechat-apple .commentshow {
    margin-top: 20px;
}

body.wechat-apple .comments-area ul.comment-list li {
    margin-bottom: 16px;
    padding-bottom: 16px;
}

body.wechat-apple .comments-area ul.comment-list li .profile,
body.wechat-apple .comments-area ul.comment-list li .profile a {
    width: 34px;
    height: 34px;
    min-width: 34px;
}

body.wechat-apple .comments-area ul.comment-list li ul {
    margin-left: 42px;
    padding-left: 12px;
    border-left: 1px solid rgba(15, 23, 42, .075);
}

body.wechat-apple .nodata {
    margin: 0;
    padding: 28px 0 24px;
    color: #94a3b8;
}

@media (hover: none) and (pointer: coarse) {
    body.wechat-apple .post_footer_meta span.comnum:hover:not(.is-open) {
        background: #f1f5f9 !important;
        color: #64748b !important;
        box-shadow: none !important;
        transform: none !important;
    }

    body.wechat-apple .post_footer_meta span.comnum:hover:not(.is-open) i {
        color: #64748b !important;
    }

    body.wechat-apple .post_footer_meta span.comnum:active:not(.is-open) {
        background: #e5eaf0 !important;
        color: #172033 !important;
    }
}

@media (max-width: 640px) {
    body.wechat-apple .topic_comments_wrap,
    body.wechat-apple #comments.comments-area,
    body.wechat-apple .single_content .comments-area,
    body.wechat-apple .page_content .comments-area {
        margin-top: 20px;
        padding: 18px 0 0 !important;
    }

    body.wechat-apple #t_commentform,
    body.wechat-apple #commentform {
        padding: 0 0 16px;
    }

    body.wechat-apple .comment-author-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.wechat-apple .comment-author-fields input {
        height: 38px;
    }

    body.wechat-apple textarea#comment,
    body.wechat-apple #commentform textarea#comment {
        min-height: 82px;
        padding: 12px;
    }

    body.wechat-apple .com_smile_show,
    body.wechat-apple .com_smile_show.uk-drop {
        width: min(244px, calc(100vw - 56px)) !important;
        max-width: calc(100vw - 56px) !important;
    }

    body.wechat-apple input#push_comment,
    body.wechat-apple .com_push input#submit {
        height: 36px;
    }
}

@media (max-width: 350px) {
    body.wechat-apple .comment-author-fields {
        grid-template-columns: 1fr;
    }
}
