/* Restore Discuz reply/comment box under viewthread */

body.pg_viewthread #f_pst,
body.pg_viewthread #postlistreply,
body.pg_viewthread #fastpostform,
body.pg_viewthread #vfastpost {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.pg_viewthread .dz-reply-restored {
    display: block !important;
    width: 100% !important;
    clear: both !important;
    margin: 14px 0 0 0 !important;
    background: #fff !important;
    border: 1px solid #e5ebf2 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

body.pg_viewthread .dz-reply-title {
    padding: 16px 22px !important;
    border-bottom: 1px solid #edf0f5 !important;
    color: #284765 !important;
    font-size: 22px !important;
    line-height: 30px !important;
    font-weight: 500 !important;
    background: #fff !important;
}

body.pg_viewthread .dz-reply-restored .bm_h,
body.pg_viewthread .dz-reply-restored h2,
body.pg_viewthread .dz-reply-restored h3 {
    padding: 14px 22px !important;
    border-bottom: 1px solid #edf0f5 !important;
    background: #fff !important;
    color: #284765 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

body.pg_viewthread .dz-reply-restored .bm_c,
body.pg_viewthread .dz-reply-restored .plc,
body.pg_viewthread .dz-reply-restored form {
    width: 100% !important;
    padding: 18px 22px !important;
    box-sizing: border-box !important;
    background: #fff !important;
}

body.pg_viewthread .dz-reply-restored .pls {
    display: none !important;
}

body.pg_viewthread .dz-reply-restored textarea,
body.pg_viewthread .dz-reply-restored .pt,
body.pg_viewthread .dz-reply-restored input[type="text"] {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 110px !important;
    box-sizing: border-box !important;
    border: 1px solid #dbe3ec !important;
    border-radius: 6px !important;
    padding: 10px !important;
    font-size: 14px !important;
    line-height: 22px !important;
}

body.pg_viewthread .dz-reply-restored button,
body.pg_viewthread .dz-reply-restored .pn,
body.pg_viewthread .dz-reply-restored input[type="submit"] {
    display: inline-block !important;
    margin-top: 12px !important;
    padding: 8px 18px !important;
    background: #ff6756 !important;
    border: 1px solid #ff6756 !important;
    border-radius: 6px !important;
    color: #fff !important;
    cursor: pointer !important;
}

body.pg_viewthread .dz-reply-login-tip {
    padding: 22px !important;
    color: #66788a !important;
    font-size: 15px !important;
    line-height: 26px !important;
}

body.pg_viewthread .dz-reply-login-tip a {
    display: inline-block !important;
    margin-left: 8px !important;
    padding: 7px 14px !important;
    background: #ff6756 !important;
    border-radius: 6px !important;
    color: #fff !important;
    text-decoration: none !important;
}

/* 避免右侧栏再次撑开页面 */
body.pg_viewthread .sd,
body.pg_viewthread #sd,
body.pg_viewthread .wk_f_sd,
body.pg_viewthread .side,
body.pg_viewthread .sidebar {
    display: none !important;
}

body.pg_viewthread .mn,
body.pg_viewthread #mn,
body.pg_viewthread .wk_f_mn,
body.pg_viewthread .week_ct2 .wk_f_mn {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
}

@media screen and (max-width: 768px) {
    body.pg_viewthread .dz-reply-title {
        padding: 14px 16px !important;
        font-size: 20px !important;
    }

    body.pg_viewthread .dz-reply-restored .bm_c,
    body.pg_viewthread .dz-reply-restored .plc,
    body.pg_viewthread .dz-reply-restored form {
        padding: 14px 16px !important;
    }
}
