#comments h2 {
    margin-bottom: 0.5rem;
}

oom-comments * {
    all: revert-layer;
}

oom-comments {
    display: block;
}

oom-comments ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

oom-comments li {
    margin: 1rem 0;
}

oom-comments ul ul {
    padding-left: 2rem;
    border-left: 2px solid color-mix(in srgb, var(--fg) 15%, transparent);
    margin-top: 1rem;
}

oom-comments .comment-user {
    display: block;
    position: relative;
    padding-left: 64px;
    min-height: 50px;
    color: currentColor;
    text-decoration: none;
}

oom-comments .comment-avatar {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
}

oom-comments .comment-author {
    position: absolute;
    left: 35px;
    top: 35px;
    background: white;
    border-radius: 100%;
    width: 16px;
    height: 16px;
    color: var(--accent);
}

oom-comments .comment-username {
    display: block;
    line-height: 1.3;
    margin-right: 0.5em;
}
oom-comments .comment-address:hover,
oom-comments .comment-user:hover .comment-username {
    text-decoration: underline;
    text-underline-offset: 0.2rem;
}
oom-comments .comment-useraddress {
    display: block;
    line-height: 1.3;
    color: var(--muted);
    font-size: small;
    font-style: normal;
}

oom-comments .comment-time {
    font-size: small;
    display: flex;
    align-items: center;
    column-gap: 0.4em;
}

oom-comments .comment-time svg {
    width: 1em;
    height: 1em;
    fill: var(--muted);
}

oom-comments .comment-address {
    color: currentColor;
    text-decoration: none;
    display: block;
    margin-top: 0.25em;
}

oom-comments .comment-body {
    margin-top: 0.5em;
    line-height: 1.5;
}

oom-comments .comment-body p {
    margin: 0.5em 0;
}

oom-comments .comment-counts {
    display: flex;
    column-gap: 1em;
    font-size: small;
}

oom-comments .comment-counts > span {
    display: flex;
    align-items: center;
    column-gap: 0.3em;
    color: var(--like);
}

@media (max-width: 600px) {
    oom-comments li {
        margin: 20px 0;
    }

    oom-comments ul ul {
        padding-left: 1.2rem;
    }

    oom-comments .comment-user {
        padding-left: 46px;
        min-height: 36px;
    }

    oom-comments .comment-avatar {
        width: 36px;
        height: 36px;
    }

    oom-comments .comment-author {
        left: 24px;
        top: 24px;
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 400px) {
    oom-comments ul ul ul ul {
        padding-left: 0.6rem;
    }
}
