:global {
    .xbbcode-tag {
        &.xbbcode-tag-hr {
            border: none;
            border-top: .125em solid #555;

            margin-top: .1em;
            margin-bottom: .1em;
        }

        &.xbbcode-tag-table {
            th, td {
                border-color: var(--chat-message-table-border);
            }

            tr {
                background-color: var(--chat-message-table-row-background);
            }

            tr:nth-child(2n) {
                background-color: var(--chat-message-table-row-even-background);
            }
        }

        &.xbbcode-tag-bg-color {
            padding: 0 .25em;
            line-height: 1em;

            border-radius: 2px;
            display: inline-block;
        }

        &.xbbcode-tag-quote {
            border-color: var(--chat-message-quote-border);
            padding-left: .5em;
            color: var(--chat-message-quote);
        }

        &.xbbcode-tag-img {
            padding: .25em;
            border-radius: .25em;

            overflow: hidden;
            max-width: 20em;
            max-height: 20em;

            img {
                width: 100%;
                height: 100%;
            }
        }
    }
}