.wp-block-netoff-expandable-table,
.wp-block-netoff-expandable-content {
  margin: 1.5em 0;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__viewport,
.wp-block-netoff-expandable-content .netoff-expandable-content__viewport {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: max-height 0.35s ease;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__viewport {
  max-height: var(--netoff-table-preview-height, 480px);
}

.wp-block-netoff-expandable-content .netoff-expandable-content__viewport {
  max-height: var(--netoff-content-preview-height, 320px);
}

.wp-block-netoff-expandable-table.has-fade:not(.is-expanded):not(.is-not-collapsible) .netoff-expandable-table__viewport::after,
.wp-block-netoff-expandable-content:not(.is-expanded):not(.is-not-collapsible) .netoff-expandable-content__viewport::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  pointer-events: none;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.95) 60%, rgba(255,255,255,1) 100%);
}

.wp-block-netoff-expandable-table.is-expanded .netoff-expandable-table__viewport,
.wp-block-netoff-expandable-table.is-not-collapsible .netoff-expandable-table__viewport,
.wp-block-netoff-expandable-content.is-expanded .netoff-expandable-content__viewport,
.wp-block-netoff-expandable-content.is-not-collapsible .netoff-expandable-content__viewport {
  overflow: visible;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__actions,
.wp-block-netoff-expandable-content .netoff-expandable-content__actions {
  margin-top: 14px;
  text-align: center;
  position: relative;
}

.wp-block-netoff-expandable-content:not(.is-expanded):not(.is-not-collapsible) .netoff-expandable-content__actions {
  position: relative;
  z-index: 150;
  margin-top: -44px;
  margin-bottom: 14px;
  pointer-events: auto;
}

.wp-block-netoff-expandable-content:not(.is-expanded):not(.is-not-collapsible) .netoff-expandable-content__button {
  position: relative;
  z-index: 151;
  pointer-events: auto;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__button,
.wp-block-netoff-expandable-content .netoff-expandable-content__button {
  appearance: none;
  border: 1px solid #BBBBBB;
  background: #F7F7F7;
  color: #333333;
  border-radius: 9999px;
  padding: 0.7em 1.4em;
  line-height: 1.4;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__button:hover,
.wp-block-netoff-expandable-content .netoff-expandable-content__button:hover {
  background: #F0F0F0;
  border-color: #AFAFAF;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__button--secondary,
.wp-block-netoff-expandable-content .netoff-expandable-content__button--secondary {
  margin-left: 10px;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__button[hidden],
.wp-block-netoff-expandable-table .netoff-expandable-table__actions[hidden],
.wp-block-netoff-expandable-content .netoff-expandable-content__button[hidden],
.wp-block-netoff-expandable-content .netoff-expandable-content__actions[hidden] {
  display: none !important;
}

.wp-block-netoff-expandable-table .netoff-expandable-table__editor-note,
.wp-block-netoff-expandable-content .netoff-expandable-content__editor-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: #666;
}

.wp-block-netoff-expandable-table table {
  width: 100%;
}

.editor-styles-wrapper .wp-block-netoff-expandable-table .netoff-expandable-table__viewport,
.block-editor-block-list__block .wp-block-netoff-expandable-table .netoff-expandable-table__viewport,
.editor-styles-wrapper .wp-block-netoff-expandable-content .netoff-expandable-content__viewport,
.block-editor-block-list__block .wp-block-netoff-expandable-content .netoff-expandable-content__viewport {
  max-height: none !important;
  overflow: visible !important;
}

.editor-styles-wrapper .wp-block-netoff-expandable-table .netoff-expandable-table__button,
.block-editor-block-list__block .wp-block-netoff-expandable-table .netoff-expandable-table__button,
.editor-styles-wrapper .wp-block-netoff-expandable-content .netoff-expandable-content__button,
.block-editor-block-list__block .wp-block-netoff-expandable-content .netoff-expandable-content__button {
  appearance: none;
  border: 1px solid #BBBBBB;
  background: #F7F7F7;
  color: #333333;
  border-radius: 9999px;
  padding: 0.7em 1.4em;
  line-height: 1.4;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.editor-styles-wrapper .wp-block-netoff-expandable-table.has-fade .netoff-expandable-table__viewport::after,
.block-editor-block-list__block .wp-block-netoff-expandable-table.has-fade .netoff-expandable-table__viewport::after,
.editor-styles-wrapper .wp-block-netoff-expandable-content.has-fade .netoff-expandable-content__viewport::after,
.block-editor-block-list__block .wp-block-netoff-expandable-content.has-fade .netoff-expandable-content__viewport::after {
  content: none !important;
}

.editor-styles-wrapper .wp-block-netoff-expandable-content .netoff-expandable-content__actions,
.block-editor-block-list__block .wp-block-netoff-expandable-content .netoff-expandable-content__actions {
  position: static !important;
  z-index: auto !important;
  margin-top: 14px !important;
  margin-bottom: 0 !important;
  pointer-events: auto !important;
}

.editor-styles-wrapper .wp-block-netoff-expandable-content .netoff-expandable-content__button,
.block-editor-block-list__block .wp-block-netoff-expandable-content .netoff-expandable-content__button {
  pointer-events: auto !important;
}
