/**
 * Mega menu only. Safe to load from any theme.
 */
.scea-menu-state {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.scea-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent!important;
  color: var(--wp--preset--color--white);
  cursor: pointer;
}

.scea-burger {
  display: block;
  width: 35px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: relative;
}

.scea-burger::before, .scea-burger::after {
  content: "";
  display: block;
  width: 35px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  position: absolute;
  left: 0;
}
.scea-burger::before {
  top: -7px;
}
.scea-burger::after {
  top: 7px;
}

.scea-mega .scea-mega__grid,
.wp-block-scea-mega-menu .scea-mega__grid {
  display: none;
}

.scea-mega {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  background: transparent!important;
}
.scea-mega.is-menu-open .scea-burger, .scea-mega:has(.scea-menu-state:checked) .scea-burger {
  background: transparent;
}
.scea-mega.is-menu-open .scea-burger::before, .scea-mega:has(.scea-menu-state:checked) .scea-burger::before {
  top: 0;
  transform: rotate(45deg);
  width: 26px;
}
.scea-mega.is-menu-open .scea-burger::after, .scea-mega:has(.scea-menu-state:checked) .scea-burger::after {
  top: 0;
  transform: rotate(-45deg);
  width: 26px;
}
.scea-mega.is-menu-open .scea-mega__grid, .scea-mega:has(.scea-menu-state:checked) .scea-mega__grid {
  display: grid;
  grid-template-columns: repeat(var(--scea-cols, 2), minmax(0, 1fr));
  grid-template-rows: repeat(var(--scea-rows, 1), auto);
  column-gap: var(--scea-col-gap, 36px);
  row-gap: var(--scea-row-gap, 28px);
  width: min(1100px, 92vw);
  align-items: start;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  background: var(--scea-menu-bg, #d7e6fb);
  padding: 28px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}
.scea-mega.is-menu-open .scea-mega__grid > .block-editor-inner-blocks > .block-editor-block-list__layout, .scea-mega:has(.scea-menu-state:checked) .scea-mega__grid > .block-editor-inner-blocks > .block-editor-block-list__layout {
  display: grid !important;
  grid-template-columns: repeat(var(--scea-cols, 3), minmax(0, 1fr));
  grid-template-rows: repeat(var(--scea-rows, 1), auto);
  column-gap: var(--scea-col-gap, 36px);
  row-gap: var(--scea-row-gap, 28px);
  width: 100%;
  align-items: start;
}

.scea-mega__col,
.wp-block-scea-mega-column {
  max-width: none;
  min-width: 0;
  min-height: 72px;
}
.scea-mega__col .block-editor-block-list__layout,
.wp-block-scea-mega-column .block-editor-block-list__layout {
  display: block !important;
  grid-template-columns: none !important;
}
.scea-mega__col > .scea-col-add,
.wp-block-scea-mega-column > .scea-col-add {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-top: 8px;
  border: 1px solid #c5cdd8;
  border-radius: 4px;
  background: #fff;
  color: #1a2744;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  position: relative;
  z-index: 5;
  visibility: visible !important;
  opacity: 1 !important;
}

.wp-block-scea-mega-column.is-style-card {
  background: #f3f1eb;
  border-radius: 18px;
  padding: 28px 24px 22px;
}

.scea-mega__grid > .block-editor-inner-blocks > .block-editor-block-list__layout > .block-list-appender {
  display: none;
}
