.components-accessible-toolbar .components-button.is-pressed::before, .components-toolbar .components-button.is-pressed::before {
  background: var(--wp-components-color-background-inverted);
}

.components-modal__frame {
  background: var(--wp-components-color-background);
}

.components-dropdown__content .components-menu-group + .components-menu-group {
  border-top: 1px solid var(--blocknotes-border-color);
}

.components-modal__content.has-scrolled-content:not(.hide-header) .components-modal__header {
  border-bottom-color: var(--blocknotes-border-color);
}

.components-popover__content {
  background: var(--wp-components-color-background);
  box-shadow: 0 0 0 1px var(--blocknotes-border-color), 0 0.7px 1px var(--blocknotes-border-color), 0 1.2px 1.7px -0.2px var(--blocknotes-border-color), 0 2.3px 3.3px -0.5px var(--blocknotes-border-color);
}

.block-editor-block-list__empty-block-inserter .block-editor-inserter__toggle.components-button.has-icon {
  background: var(--wp-components-color-background-inverted);
  color: var(--wp-components-color-foreground-inverted);
}

.components-autocomplete__result.components-button.is-selected {
  color: var(--wp-components-color-foreground-inverted);
}

.components-button.block-editor-block-types-list__item,
.block-editor-block-types-list__item-icon {
  color: var(--wp-components-color-foreground);
}

html,
body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif
}

a {
	color: var(--wp-components-color-accent);
}

* {
  box-sizing: border-box;
}

html {
  /* margin-top: env(safe-area-inset-top); */
  height: 100%;
  background: var(--wp-components-color-background);
  color: var(--wp-components-color-foreground);
}

body,
#app {
  height: 100%;
}

#start {
  padding: 1px 1em 1px;
  max-width: 600px;
  margin: env(safe-area-inset-top) auto 0;
  font-size: 1em;
}

.components-popover.is-expanded {
  top: env(safe-area-inset-top);
}

#sidebar {
  position: absolute;
  top: env(safe-area-inset-top);
  width: 300px;
  bottom: 0;
  overflow-y: auto;
  overscroll-behavior: none;
  word-break: break-all;
}

.dataviews-filters__view-actions {
  border-bottom: 1px solid var(--blocknotes-border-color);
  position: sticky;
  top: 0;
  z-index: 1;
}

.dataviews-wrapper .dataviews-filters__view-actions {
  display: none;
}

.dataviews-filters__container {
  row-gap: 0 !important;
}

#sidebar-bottom {
  position: sticky;
  bottom: 0;
  padding: 5px;
  border-top: 1px solid var(--blocknotes-border-color);
  padding-bottom: calc(env(safe-area-inset-bottom) + 5px);
}

.dataviews-wrapper {
  min-height: 100%;
}

.dataviews-view-list__item-wrapper {
  display: block !important;
}

.dataviews-view-list__item[aria-pressed="true"] {
  background-color: var(--wp-components-color-accent);
  color: var(--wp-components-color-accent-inverted);
}

.dataviews-view-list__item {
  padding: 10px 7px;
  border-radius: 2px;
  font-size: 15px;
  cursor: pointer;
}

.dataviews-view-list__item > div {
  display: block !important;
}

ul.dataviews-view-list {
  padding: 7px;
  margin: 0;
  list-style: none;
}

ul.dataviews-view-list li {
  padding: 0;
  margin: 0;
  list-style: none;
}

.dataviews-view-table {
  padding: 7px
}

.dataviews-view-list__field {
  text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

#content {
  height: 100%;
  background: var(--wp-components-color-background);
  position: relative;
  z-index: 1;
  border-left: 1px solid var(--blocknotes-border-color);
}

#select {
  position: absolute;
  height: calc( env(safe-area-inset-top) + 47px );
}

.select-toolbar {
  top: 0;
  width: 100%;
  display: flex;
  justify-content: start;
  align-items: end;
  border: none;
  border-bottom: 1px solid var(--blocknotes-border-color);
  border-radius: 0;
  z-index: 1;
  overflow-x: auto;
}

#select-right {
  margin-left: auto;
}

.notes-tag {
  background: #444;
  color: white;
  padding: 2px 3px;
  border-radius: 2px;
  margin: 2px 3px 2px 0;
  display: inline-block;
}

.block-editor-block-contextual-toolbar {
  position: static;
  width: auto;
}

.block-editor-block-toolbar .components-toolbar-group, .block-editor-block-toolbar .components-toolbar {
  margin: 0;
}

#block-toolbar {
  display: flex;
  flex-shrink: 0;
}

.select-toolbar .components-toolbar {
  border-color: var(--blocknotes-border-color);
  border-width: 0 1px 0 0;
  background-color: transparent;
}

#editor > div {
  display: block !important;
}

#editor.has-overlay::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.block-editor-iframe__container,
.block-editor-iframe__scale-container {
  height: 100%
}

iframe[name="editor-canvas"] {
  display: block;
  background-color: transparent;
}

.components-button.components-menu-item__button.is-active {
  background: var(--wp-components-color-accent, var(--wp-admin-theme-color, #3858e9));
  color: var(--wp-components-color-accent-inverted, #fff);
}

.select-toolbar,
.dataviews-filters__view-actions,
#sidebar-bottom,
/* .is-unstyled ? */
.components-dropdown__content div.components-popover__content {
  /* backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px); */
  background-color: var(--wp-components-color-background);
}

.components-dropdown__content div.components-popover__content {
  box-shadow: none;
  border: 1px solid var(--blocknotes-border-color);
}

.select-toolbar .blocknotes-select button {
  padding-right: 1em;
}

.select-toolbar button.components-button:not(.is-small) {
  font-size: 16px;
  height: 46px;
}

.select-toolbar .components-toolbar-group {
  min-height: auto;
}

.select-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container {
  flex-direction: unset;
}

.select-toolbar .block-editor-block-contextual-toolbar {
  border: none;
  background: none;
}

.select-toolbar .block-editor-block-contextual-toolbar .block-editor-block-toolbar .components-toolbar-group {
  border-color: var(--blocknotes-border-color);
}

.select-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-down-button svg {
  bottom: unset;
}

.select-toolbar .block-editor-block-mover:not(.is-horizontal) .block-editor-block-mover__move-button-container .block-editor-block-mover-button.is-up-button svg {
  top: unset;
}

.components-modal__content {
  max-width: 600px;
}

.is-loading {
  pointer-events: none;
  opacity: 0.5;
}

.components-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.back-swiper {
  position: absolute;
  top: 0;
  left: -10px;
  bottom: 0;
  width: 20px;
  cursor: col-resize;
}

.back-swiper.is-open {
  width: auto;
  right: 0;
}

.block-editor-block-switcher__preview__popover {
  display: none;
}
