/*  Sticky Table Header  */

table thead th, 
.autoresponsivetable-sticky table thead th, 
.wp-block-table table thead th,
body.autoresponsivetable-sticky table thead th,
body.autoresponsivetable-sticky-enabled table thead th,
body.autoresponsivetable-sticky .wp-block-table table thead th,
body.autoresponsivetable-sticky-enabled .wp-block-table table thead th,
html body .wp-block-table table thead th,
html body .wp-block-table table.autoresponsivetable-sticky thead th,
table.autoresponsivetable-sticky thead th,
.wp-block-table table.autoresponsivetable-sticky thead th,
.wp-block-table table thead th.autoresponsivetable-sticky, 
.wp-block-table table thead th.autoresponsivetable-sticky-enabled, 
.entry-content table thead th,
.autoresponsivetable-sticky thead th,
.autoresponsivetable-sticky-enabled thead th 
{
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 999 !important;
}

table,
.autoresponsivetable-sticky table,
.wp-block-table table,
body.autoresponsivetable-sticky table,
body.autoresponsivetable-sticky-enabled table,
body.autoresponsivetable-sticky .wp-block-table table,
body.autoresponsivetable-sticky-enabled .wp-block-table table,
html body .wp-block-table table,
table.autoresponsivetable-sticky,
.wp-block-table table.autoresponsivetable-sticky,
.entry-content table
 {
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: visible !important;
}


/* === BACKGROUND PRESERVATION === */

table thead,
.autoresponsivetable-sticky table thead,
.wp-block-table table thead,
body.autoresponsivetable-sticky-enabled table thead,
body.autoresponsivetable-sticky-enabled .wp-block-table table thead,
table.autoresponsivetable-sticky thead,
.wp-block-table table.autoresponsivetable-sticky thead {
    background-color: inherit;
}


/* Allow sticky to work inside Gutenberg figure */
.wp-block-table,
.wp-block-table > table {
    overflow: visible !important;
}

/* For Classic Editor or other wrappers */
.editor-styles-wrapper table {
    overflow: visible !important;
}