/* Comment form and list */

#comments,
#comments * {
    box-sizing: border-box;
}


/* OwO hover bridge: keep panel open while the cursor moves into it. */

#comments .comment-form-btn-wrap .OwO {
    position: relative;
}

#comments .comment-form-btn-wrap .OwO::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    display: block !important;
    height: 14px;
    pointer-events: auto !important;
}

#comments .comment-form-btn-wrap .OwO:hover .OwO-body,
#comments .comment-form-btn-wrap .OwO:focus-within .OwO-body,
#comments .comment-form-btn-wrap .OwO.OwO-open .OwO-body {
    display: grid !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    top: calc(100% + 4px);
}


/* Keep the emoji panel open while moving from the trigger to the panel. */

#comments .comment-form-btn-wrap .OwO {
    position: relative;
}

#comments .comment-form-btn-wrap .OwO::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    display: block !important;
    height: 14px;
    pointer-events: auto !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    top: calc(100% + 4px);
}

#comments {
    scroll-margin-top: 110px;
}

#comments ul,
#comments li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#comments .respond {
    position: relative;
    z-index: 50;
    display: block;
    margin: 24px 0 28px;
}

#comments .cat_comment_respond_form {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 16px;
    border: 1px solid rgba(221, 212, 200, .78);
    border-radius: 12px;
    background: rgba(252, 250, 246, .58);
    box-shadow: 0 10px 28px rgba(80, 64, 48, .035);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

#comments .cat_comment_respond_form .card,
#comments .comment-form-btn-wrap .card {
    overflow: visible;
    word-break: normal;
}

#comments .cat_comment_respond_form .head {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

#comments .cat_comment_respond_form .head .list,
#comments .cat_comment_respond_form .body {
    border: 1px solid rgba(226, 216, 202, .92);
    border-radius: 8px;
    background: rgba(255, 253, 248, .68);
    box-shadow: none;
}

#comments .cat_comment_respond_form input,
#comments .cat_comment_respond_form textarea {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #4B433D;
    font: 14px/1.7 var(--font-main);
}

#comments .cat_comment_respond_form .head input {
    height: 36px;
    padding: 0 12px;
}

#comments .cat_comment_respond_form .body {
    padding: 0;
}

#comments .cat_comment_respond_form .Comment_Textarea {
    display: block;
    min-height: 92px;
    padding: 11px 12px;
    resize: vertical;
}

#comments .cat_comment_respond_form input::placeholder,
#comments .cat_comment_respond_form textarea::placeholder {
    color: #A09388;
}

#comments .comment-form-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#comments .comment-form-btn-wrap .right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#comments .tp-comment-captcha {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    width: 118px;
    height: 34px;
    border: 1px solid rgba(206, 190, 169, .88);
    border-radius: 8px;
    background: rgba(255, 253, 248, .82);
    overflow: hidden;
}

#comments .tp-comment-captcha-input {
    flex: 0 0 56px;
    width: 56px;
    min-width: 56px;
    max-width: 56px;
    height: 32px;
    padding: 0 6px;
    font-size: 13px;
    line-height: 32px;
    text-transform: uppercase;
}

#comments .tp-comment-captcha-code {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 60px;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    height: 32px;
    padding: 0 10px;
    border-left: 1px solid rgba(206, 190, 169, .78);
    background: radial-gradient(circle at 10px 8px, rgba(138, 109, 74, .18) 0 1px, transparent 1.4px), radial-gradient(circle at 38px 23px, rgba(138, 109, 74, .14) 0 1px, transparent 1.4px), repeating-linear-gradient(-16deg, transparent 0 7px, rgba(138, 109, 74, .09) 7px 8px), #F3ECE2;
    color: #6D5641;
    cursor: pointer;
    font: italic 700 15px/32px Consolas, "Courier New", monospace;
    letter-spacing: 2.5px;
    text-shadow: 1px 1px 0 rgba(255, 255, 255, .8), -1px 0 0 rgba(171, 59, 58, .16);
    user-select: none;
    transform: skew(-4deg);
}

#comments .tp-comment-captcha-code:hover {
    filter: contrast(1.08) saturate(1.08);
}

#comments .comment-form-btn-wrap .OwO,
#comments .OwO .OwO-logo {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(226, 216, 202, .9);
    border-radius: 50%;
    background: rgba(248, 244, 237, .82) !important;
    color: #8A6D4A;
    cursor: pointer;
    font-size: 0 !important;
}

#comments .comment-form-btn-wrap .OwO {
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

#comments .comment-form-btn-wrap .OwO:hover,
#comments .comment-form-btn-wrap .OwO:focus-within {
    border-color: #8A6D4A;
    background: rgba(241, 232, 220, .95) !important;
    color: #6D5641;
    transform: translateY(-1px);
}

#comments .comment-form-btn-wrap .OwO::before {
    content: "\1F60A";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-family: emoji, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-size: 18px;
    line-height: 1;
}

#comments .comment-form-btn-wrap .OwO::after {
    display: none !important;
    content: none !important;
    pointer-events: none !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    left: 0;
    top: calc(100% + 6px);
    bottom: auto;
    display: none;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(520px, calc(100vw - 32px)) !important;
    max-width: min(520px, calc(100vw - 32px));
    max-height: 300px;
    border: 1px solid rgba(218, 209, 195, .96);
    border-radius: 10px !important;
    background: rgba(252, 250, 246, .98);
    box-shadow: 0 16px 34px rgba(80, 64, 48, .13);
    overflow: hidden;
    z-index: 2001 !important;
}

#comments .comment-form-btn-wrap .OwO:hover .OwO-body,
#comments .comment-form-btn-wrap .OwO:focus-within .OwO-body,
#comments .comment-form-btn-wrap .OwO.OwO-open .OwO-body {
    display: grid !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body::before {
    content: "";
    position: absolute;
    left: 10px;
    top: -5px;
    width: 10px;
    height: 10px;
    border-left: 1px solid rgba(218, 209, 195, .96);
    border-top: 1px solid rgba(218, 209, 195, .96);
    background: rgba(252, 250, 246, .98);
    transform: rotate(45deg);
}

#comments .comment-form-btn-wrap .OwO>.OwO-logo,
#comments .OwO .OwO-logo::before {
    display: none !important;
    content: "";
}

#comments .comment-form-btn-wrap .OwO .OwO-items {
    min-height: 0;
    max-height: 246px !important;
    margin: 0 !important;
    padding: 10px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}

#comments .comment-form-btn-wrap .OwO .OwO-items-show {
    display: grid !important;
    gap: 6px;
}

#comments .comment-form-btn-wrap .OwO .OwO-items-image.OwO-items-show {
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
}

#comments .comment-form-btn-wrap .OwO .OwO-items-emoji.OwO-items-show {
    grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
}

#comments .comment-form-btn-wrap .OwO .OwO-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    min-height: 30px;
    padding: 4px;
    border-radius: 8px;
    line-height: 1;
    transition: background-color .18s ease, transform .18s ease;
}

#comments .comment-form-btn-wrap .OwO .OwO-item:hover {
    background: #F1E8DC;
    box-shadow: none;
    transform: translateY(-1px);
    animation: none;
}

#comments .comment-form-btn-wrap .OwO .OwO-item img {
    display: block !important;
    width: 34px;
    height: 34px;
    max-width: 34px;
    margin: 0;
    object-fit: contain;
}

#comments .comment-form-btn-wrap .OwO .OwO-bar {
    border-top: 1px solid rgba(226, 216, 202, .88);
    border-radius: 0;
    background: rgba(248, 244, 237, .92);
    overflow-x: auto;
    white-space: nowrap;
}

#comments .comment-form-btn-wrap .OwO .OwO-packages {
    display: flex;
    gap: 4px;
    padding: 6px;
}

#comments .comment-form-btn-wrap .OwO .OwO-packages li {
    flex: 0 0 auto;
    margin: 0;
    padding: 0 10px;
    border-radius: 999px !important;
    color: #7C7168;
    font-size: 13px;
    line-height: 28px;
}

#comments .comment-form-btn-wrap .OwO .OwO-packages li:hover,
#comments .comment-form-btn-wrap .OwO .OwO-packages .OwO-package-active {
    background: #8A6D4A;
    color: #FAF6EF;
}

#comments .send_anniu_style,
#comments .comment-form-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    height: 34px;
    padding: 0 14px;
    border: 1px solid rgba(206, 190, 169, .88);
    border-radius: 8px;
    background: #F3ECE2;
    box-shadow: none;
    color: #6D5641;
    cursor: pointer;
    font-size: 13px;
    line-height: 34px;
    white-space: nowrap;
    overflow: visible;
    transition: all .2s ease;
}

#comments .comment-form-cancel {
    background: rgba(255, 253, 248, .82);
    color: #7C7168;
}

#comments #cancel-comment-reply-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

#comments .send_anniu_style:hover,
#comments .comment-form-cancel:hover {
    border-color: rgba(138, 109, 74, .52);
    background: rgba(241, 232, 220, .96);
    color: #6D5641;
}

#comments .send_anniu_style[data-disabled="true"] {
    pointer-events: none;
    opacity: .58;
}

#comments .tp-comment-toast {
    position: fixed;
    left: 50%;
    bottom: 38px;
    z-index: 3000;
    padding: 8px 14px;
    border: 1px solid rgba(138, 109, 74, .22);
    border-radius: 999px;
    background: rgba(255, 253, 248, .96);
    box-shadow: 0 8px 22px rgba(80, 64, 48, .12);
    color: #6D5641;
    font-size: 13px;
    line-height: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease;
}

#comments .tp-comment-toast.is-show {
    opacity: 1;
    transform: translate(-50%, 0);
}

#comments .tp-comment-panel {
    margin-top: 26px;
    padding: 18px 22px;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 0 0 14px 14px;
    background: rgba(255, 255, 255, .54);
    box-shadow: 0 10px 28px rgba(80, 64, 48, .045);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
}

#comments .tp-comment-head,
#comments .tp-comment-title-wrap,
#comments .tp-comment-meta,
#comments .tp-comment-foot,
#comments .tp-comment-actions,
#comments .tp-comment-from,
#comments .tp-comment-from>span,
#comments .tp-heart-action,
#comments .tp-reply-action {
    display: flex;
    align-items: center;
}

#comments .tp-comment-head {
    gap: 16px;
    margin: 0 0 16px;
}

#comments .tp-comment-title-wrap {
    gap: 10px;
    min-width: 0;
}

#comments .tp-comment-title-mark {
    position: relative;
    width: 18px;
    height: 15px;
    border: 1.7px solid #8A6D4A;
    border-radius: 6px;
}

#comments .tp-comment-title-mark::after {
    content: "";
    position: absolute;
    left: 3px;
    bottom: -5px;
    width: 7px;
    height: 7px;
    border-left: 1.7px solid #8A6D4A;
    border-bottom: 1.7px solid #8A6D4A;
    background: rgba(255, 255, 255, .54);
    transform: skew(-18deg);
}

#comments .comments-list-title {
    margin: 0;
    color: #2F2A26;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
}

#comments .tp-comment-count {
    color: #7C7168;
    font-size: 13px;
}

#comments .comment-list {
    display: grid;
    gap: 0;
}

#comments .comment-list>.tp-comment-item {
    padding: 13px 0 15px;
    border-bottom: 0;
}

#comments .tp-comment-card {
    position: relative;
}

#comments .tp-comment-main {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

#comments .tp-comment-avatar-wrap .avatar,
#comments .avatar {
    display: block;
    width: 30px !important;
    height: 30px !important;
    border: 1px solid rgba(236, 239, 242, .95);
    border-radius: 50%;
    background: #F6F8FA;
    object-fit: cover;
}

#comments .tp-comment-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "top top" "text text" "foot actions";
    column-gap: 16px;
    min-width: 0;
}

#comments .tp-comment-top {
    grid-area: top;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
}

#comments .tp-comment-meta {
    flex-wrap: wrap;
    gap: 4px 8px;
    min-height: 20px;
    color: #777;
    font-size: 13px;
    line-height: 20px;
}

#comments .tp-comment-author,
#comments .tp-comment-author a {
    color: #555;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

#comments .tp-comment-author a:hover {
    color: #8A6D4A;
}

#comments .tp-comment-level,
#comments .commentapprove,
#comments .bozhu {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 6px;
    border: 1px solid rgba(183, 154, 106, .2);
    border-radius: 4px;
    background: rgba(248, 248, 248, .9);
    color: #8A6D4A;
    font-size: 11px;
    font-weight: 400;
    line-height: 18px;
}

#comments .tp-heart-badge {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 7px;
    border-radius: 999px;
    background: rgba(166, 70, 55, .08);
    color: #A64637;
    font-size: 11px;
}

#comments .tp-comment-text {
    grid-area: text;
    margin-top: 4px;
    color: #222;
    font-size: 17px;
    line-height: 1.58;
    word-break: break-word;
}

#comments .tp-comment-text p {
    margin: 0 0 6px;
}

#comments .tp-comment-text p:last-child {
    margin-bottom: 0;
}

#comments .comment-list-item-relation,
#comments .tp-comment-time,
#comments .tp-comment-from {
    color: #555;
}

#comments .tp-comment-foot {
    grid-area: foot;
    min-height: 22px;
    margin-top: 6px;
    font-size: 13px;
    line-height: 22px;
}

#comments .tp-comment-from {
    flex-wrap: wrap;
    gap: 0;
    min-width: 0;
    font-size: 13px;
}

#comments .tp-comment-from:empty {
    display: none;
}

#comments .tp-comment-from>span {
    max-width: 100%;
}

#comments .tp-comment-from>span::before {
    content: "\00b7";
    margin: 0 5px;
}

#comments .tp-comment-from img,
#comments .tp-comment-from svg,
#comments .tp-comment-from .icon,
#comments .tp-comment-from i {
    display: inline-block;
    width: 15px !important;
    height: 15px !important;
    max-width: 15px !important;
    max-height: 15px !important;
    margin: 0 3px;
    object-fit: contain;
    vertical-align: -2px;
}

#comments .tp-comment-from svg {
    flex: 0 0 15px;
}

#comments .comment-waiting {
    margin-bottom: 6px;
    color: #A64637;
    font-size: 13px;
}

#comments .owo_image {
    display: inline-block !important;
    height: 1.75em;
    margin: 0 2px;
    vertical-align: -0.35em;
}

#comments .tp-comment-actions {
    grid-area: actions;
    justify-content: flex-end;
    gap: 13px;
    min-height: 22px;
    margin-top: 6px;
    white-space: nowrap;
}

#comments .tp-heart-action,
#comments .tp-reply-action {
    justify-content: center;
    position: relative;
    height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #7C7168;
    cursor: pointer;
    font: 13px/22px var(--font-main);
    font-weight: 400;
    text-decoration: none;
    text-shadow: none;
    transition: color .2s ease;
}

#comments .tp-heart-action::before {
    content: "\2661";
    margin-right: 4px;
    font-size: 17px;
    line-height: 1;
}

#comments .tp-reply-action::before {
    content: "";
    width: 14px;
    height: 11px;
    margin-right: 4px;
    border: 1.4px solid currentColor;
    border-radius: 3px;
    box-shadow: 4px 4px 0 -3px currentColor;
}

#comments .tp-reply-action span {
    color: inherit;
}

#comments .tp-heart-action:hover,
#comments .tp-reply-action:hover {
    color: #8A6D4A;
    text-decoration: none;
    text-shadow: none;
}

#comments .comment-list>.tp-comment-item>.tp-comment-children {
    margin: 10px 0 0 46px;
    border: 1px solid #EEE;
    border-radius: 6px;
    background: transparent;
    overflow: visible;
}

#comments .tp-comment-children .comment-list,
#comments .tp-comment-children .tp-comment-children,
#comments .tp-comment-children .tp-comment-item>.tp-comment-children {
    display: block;
    margin: 0 -14px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

#comments .tp-comment-children .comment-list {
    margin: 0;
}

#comments .tp-comment-children .tp-comment-item {
    margin: 0;
    padding: 11px 14px 12px;
    border: 0;
    background: transparent;
}

#comments .tp-comment-children .tp-comment-item+.tp-comment-item,
#comments .tp-comment-children .tp-comment-children .tp-comment-item {
    margin-top: 8px;
}

#comments .tp-comment-children .tp-comment-main {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 9px;
}

#comments .tp-comment-children .avatar {
    width: 24px !important;
    height: 24px !important;
}

#comments .tp-comment-children .tp-comment-author,
#comments .tp-comment-children .tp-comment-author a {
    font-size: 14px;
}

#comments .tp-comment-children .tp-comment-text {
    font-size: 15px;
    line-height: 1.55;
}

#comments .comment-list-empty {
    margin-top: 20px;
    padding: 34px 18px;
    border: 1px dashed rgba(221, 212, 200, .95);
    border-radius: 12px;
    background: rgba(252, 250, 246, .42);
    color: #8D8176;
    text-align: center;
}

#comments .comment-list-empty-text {
    display: block;
    margin: 0;
}

#comments .comment-pagination {
    margin-top: 18px;
}

#comments .mx_pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#comments .mx_pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid #E2D8CA;
    border-radius: 8px;
    background: rgba(248, 244, 237, .72);
    color: #6B6158;
    font-size: 13px;
}

#comments .mx_pagination .active a,
#comments .mx_pagination a:hover {
    border-color: #6D5641;
    background: #6D5641;
    color: #FAF6EF;
}

@media (max-width: 800px) {
    #comments .cat_comment_respond_form .head {
        grid-template-columns: 1fr;
    }
    #comments .tp-comment-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    #comments .tp-comment-panel {
        padding: 14px 12px;
        border-radius: 0 0 12px 12px;
    }
    #comments .cat_comment_respond_form {
        padding: 12px;
    }
    #comments .comment-form-btn-wrap {
        align-items: flex-start;
        flex-direction: column;
    }
    #comments .comment-form-btn-wrap .right {
        flex-wrap: wrap;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-body {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px);
        max-height: 270px;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-items {
        max-height: 220px !important;
        padding: 8px;
        gap: 5px;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-items-image.OwO-items-show {
        grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    }
    #comments .comment-form-btn-wrap .OwO .OwO-item img {
        width: 30px;
        height: 30px;
        max-width: 30px;
    }
    #comments .comment-form-btn-wrap .OwO .OwO-packages li {
        padding: 0 8px;
        font-size: 12px;
        line-height: 26px;
    }
    #comments .tp-comment-main {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 9px;
    }
    #comments .tp-comment-avatar-wrap .avatar,
    #comments .avatar {
        width: 34px !important;
        height: 34px !important;
    }
    #comments .tp-comment-actions {
        justify-content: flex-end;
        margin-top: 4px;
    }
    #comments .comment-list>.tp-comment-item>.tp-comment-children {
        margin-left: 43px;
    }
    #comments .tp-comment-children .tp-comment-item {
        padding: 10px;
    }
    #comments .tp-comment-children .tp-comment-children,
    #comments .tp-comment-children .tp-comment-item>.tp-comment-children {
        margin: 0 -10px;
    }
    #comments .tp-comment-children .tp-comment-main {
        grid-template-columns: 30px minmax(0, 1fr);
        gap: 8px;
    }
    #comments .tp-comment-children .avatar {
        width: 28px !important;
        height: 28px !important;
    }
}


/* OwO final hover bridge: this must come after the default ::after reset. */

#comments .comment-form-btn-wrap .OwO {
    position: relative;
}

#comments .comment-form-btn-wrap .OwO::after {
    content: "";
    position: absolute;
    left: -8px;
    right: -8px;
    top: 100%;
    display: block !important;
    height: 14px;
    pointer-events: auto !important;
}

#comments .comment-form-btn-wrap .OwO:hover .OwO-body,
#comments .comment-form-btn-wrap .OwO:focus-within .OwO-body,
#comments .comment-form-btn-wrap .OwO.OwO-open .OwO-body {
    display: grid !important;
}

#comments .comment-form-btn-wrap .OwO .OwO-body {
    top: calc(100% + 4px);
}
