.wysiwyg-block table {
    margin: 32px 0 0 0;
    display: block;
    border-bottom: 2px solid var(--charcoal-grey);
    border-top: 2px solid var(--charcoal-grey);
}

.wysiwyg-block :not(.gfield_list) > thead,
.wysiwyg-block :not(.gfield_list_container) > thead {
    display: block;
}

.wysiwyg-block :not(.gfield_list) > thead tr,
.wysiwyg-block :not(.gfield_list_container) > thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
}

.wysiwyg-block :not(.gfield_list) > tbody,
.wysiwyg-block :not(.gfield_list_container) > tbody {
    display: block;
}

.wysiwyg-block :not(.gfield_list) > tbody tr:last-child,
.wysiwyg-block :not(.gfield_list_container) > tbody tr:last-child td,
.wysiwyg-block :not(.gfield_list) > tbody tr:last-child,
.wysiwyg-block :not(.gfield_list_container) > tbody tr:last-child td {
    border-bottom: none;
}

.wysiwyg-block :not(.gfield_list) > * > tr,
.wysiwyg-block :not(.gfield_list_container) > * > tr {
    display: block;
    margin: 0 0 1rem 0;
    border-bottom: 1px solid var(--pale-sky-blue);
}

.wysiwyg-block :not(.gfield_list) > thead > th,
.wysiwyg-block :not(.gfield_list_container) > thead > th {
    display: none;
    border-bottom: 2px solid var(--charcoal-grey);
    font-family: 'Red Hat Display', sans-serif;
    font-size: 18px;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.25;
    letter-spacing: normal;
    color: var(--dark);
    padding: 15px 0;
    text-align: left;
}

.wysiwyg-block tr:not(.gfield_list_group) > td {
    background-color: unset !important;
    color: var(--slate-grey);
    display: block;
    font-family: 'Red Hat Text', sans-serif;
    font-size: 18px;
    font-stretch: normal;
    font-style: normal;
    font-weight: normal;
    letter-spacing: normal;
    line-height: 1.25;
    margin: 15px;
    padding: 0;
}

@media screen and (min-width: 768px) {
    .wysiwyg-block table:not(.gfield_list),
    .wysiwyg-block table:not(.gfield_list_container) {
        border: none;
        display: table;
        width: 100%;
        border-collapse: collapse;
    }

    .wysiwyg-block :not(.gfield_list) > thead,
    .wysiwyg-block :not(.gfield_list_container) > thead {
        display: table-header-group;
    }

    .wysiwyg-block :not(.gfield_list) > thead tr,
    .wysiwyg-block :not(.gfield_list_container) > thead tr {
        position: static;
    }

    .wysiwyg-block :not(.gfield_list) > tbody,
    .wysiwyg-block :not(.gfield_list_container) > tbody {
        display: table-row-group;
    }

    .wysiwyg-block :not(.gfield_list) > * > tr,
    .wysiwyg-block :not(.gfield_list_container) > * > tr {
        display: table-row;
    }

    .wysiwyg-block :not(.gfield_list) > thead > th,
    .wysiwyg-block :not(.gfield_list_container) > thead > th {
        padding: 15px 5px;
        display: table-cell;
        width: 1%;
    }

    .wysiwyg-block :not(.gfield_list) > thead > th:first-child,
    .wysiwyg-block :not(.gfield_list_container) > thead > th:first-child {
        padding-left: 0;
    }

    .wysiwyg-block :not(.gfield_list) > thead > th:last-child,
    .wysiwyg-block :not(.gfield_list_container) > thead > th:last-child {
        padding-right: 0;
    }

    .wysiwyg-block tr:not(.gfield_list_group) > td {
        padding: 15px 5px;
        display: table-cell;
        border-bottom: 1px solid var(--pale-sky-blue);
    }

    .wysiwyg-block tr:not(.gfield_list_group) > td:first-child {
        padding-left: 0;
    }

    .wysiwyg-block tr:not(.gfield_list_group) > td:last-child {
        padding-right: 0;
    }
}

