/**
 Only code related specific to lists in the WYSIWYG block should
 live here. Anything that interacts with a list before or after
 should live in the main file.

 This file also holds CSS for the admin styling which are prefixed
 with #tinymce.wp-editor. Any changes to the general WYSIWYG lists
 must be tested in both front-facing as well as TinyMCE modes, with
 both regular and nested lists.
 */
.wysiwyg-block ul {
    list-style-type: none;
    padding: 0;
}

.wysiwyg-block ul,
#tinymce.wp-editor ul {
    margin: 32px 0 32px 0;
}

.wysiwyg-block ul > li,
#tinymce.wp-editor ul > li {
    margin: 0 0 8px 0;
    padding-left: 1.5em;
}

.wysiwyg-block ul.less-space-outside,
#tinymce.wp-editor ul.less-space-outside {
    margin: 8px 0;
}

.wysiwyg-block ul.more-space-inside > li,
#tinymce.wp-editor ul.more-space-inside > li {
    margin: 32px 0;
}

.wysiwyg-block ul.gform_fields > li::before,
.wysiwyg-block ul.gform_fields li ul > li::before {
    display: none;
}

.wysiwyg-block ul > li::before {
    content: '—';
    color: var(--brown-grey);
    margin-left: -1.5em;
    margin-right: 0.75em;
}

.wysiwyg-block ul ul > li::before {
    content: " ";
    -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 246.5 246.5"><path d="M123 247a123 123 0 11123-124c0 68-55 123-123 124zm0-198a74 74 0 1075 74c0-41-34-74-75-74z"/></svg>');
    mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 246.5 246.5"><path d="M123 247a123 123 0 11123-124c0 68-55 123-123 124zm0-198a74 74 0 1075 74c0-41-34-74-75-74z"/></svg>');
    display: inline-block;
    height: 10px;
    width: 10px;
    background-color: var(--brown-grey);
}

.wysiwyg-block ul > li:last-child {
    margin: 0;
}

.wysiwyg-block ol:not([reversed]) {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
    counter-reset: ol-counter;
}

.wysiwyg-block ol:not([reversed]):last-child {
    margin: 0;
}

.wysiwyg-block ol:not([reversed]) > li {
    counter-increment: ol-counter;
    padding-left: 49px;
    margin: 0 0 8px 0;
}

.wysiwyg-block ol:not([reversed]) > li::before {
    content: '0' counter(ol-counter);
    display: inline-block;
    font-family: 'Red Hat Display', serif;
    font-size: 18px;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.5;
    letter-spacing: normal;
    text-align: center;
    color: var(--scarlet);
    width: 33px;
    margin-right: 16px;
    margin-left: -49px;
}

/* Don't prefix with zero for items above 10 */
.wysiwyg-block ol:not([reversed]) > li:nth-child(n+10)::before {
    content: counter(ol-counter);
}

.wysiwyg-block ol:not([reversed]) > li:last-child {
    margin: 0;
}

.wysiwyg-block ol[reversed] > li {
    margin: 0 0 var(--margin-xs) var(--margin-m);
    padding-left: var(--margin-xs);
}
