:root {
  --swl-table-modern-header-bg: #111111;
  --swl-table-modern-header-text: #ffffff;
  --swl-table-modern-cell-bg: #ffffff;
  --swl-table-modern-cell-text: #222222;
  --swl-table-modern-row-border: #e0e0e0;
  --swl-table-modern-column-border: rgba(17, 17, 17, 0.08);
  --swl-table-modern-hover-bg: #f8f8f8;
  --swl-table-modern-bottom-border: #111111;
}

body :is(.post_content, .entry-content) table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table),
.editor-styles-wrapper table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  line-height: 1.6;
  font-size: 13px;
  background: var(--swl-table-modern-cell-bg);
}

body :is(.post_content, .entry-content) table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) :is(th, td),
.editor-styles-wrapper table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) :is(th, td) {
  padding: 5px 10px;
  border: 0;
  border-right: 1px solid var(--swl-table-modern-column-border);
  border-bottom: 1px solid var(--swl-table-modern-row-border);
  vertical-align: middle;
  background: var(--swl-table-modern-cell-bg);
  color: var(--swl-table-modern-cell-text);
  font-size: 13px;
  line-height: 1.6;
  text-align: left;
}

body :is(.post_content, .entry-content) table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) :is(th, td):last-child,
.editor-styles-wrapper table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) :is(th, td):last-child {
  border-right: 0;
}

body :is(.post_content, .entry-content) table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) thead :is(th, td),
.editor-styles-wrapper table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) thead :is(th, td) {
  padding: 8px 10px;
  background: var(--swl-table-modern-header-bg);
  color: var(--swl-table-modern-header-text);
  border-right-color: rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid var(--swl-table-modern-header-bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

body :is(.post_content, .entry-content) table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) tbody tr:last-child > :is(th, td),
.editor-styles-wrapper table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) tbody tr:last-child > :is(th, td) {
  border-bottom: 2px solid var(--swl-table-modern-bottom-border);
}

body :is(.post_content, .entry-content) table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) tbody tr:hover > :is(th, td),
.editor-styles-wrapper table:not(.etb-table):not(.custom-table-1407):not(.wp-calendar-table) tbody tr:hover > :is(th, td) {
  background: var(--swl-table-modern-hover-bg);
}
