// WP Core conflict changes

figure.wp-block-gallery {
  display: flex;
}

body.admin-bar{
  .fixed-top{
    margin-top: 32px;
  }
}

@media (max-width: 782px) {
  body.admin-bar{
    .fixed-top {
      margin-top: 46px;
    }
  }
}

@media (max-width: 600px) {
    html:not([data-scroll='0']){
      body.admin-bar {
        .fixed-top {
          margin-top: 0;
          transition: all 0.2s ease;
        }
      }
  }
}


// background transparent until scroll
.bg-transparent-until-scroll{
  transition: all 0.2s ease;
}

// frontend
html[data-scroll='0'],html:not([data-scroll]){
  body:not(.block-editor-iframe__body){
      .bg-transparent-until-scroll:not(.nav-menu-open){
        background: transparent !important;
        box-shadow: none !important;
      }
  }
}

// FSE editor
html[data-scroll='0'],html:not([data-scroll]){
  body.block-editor-iframe__body{
    .wp-block-template-part:not(.has-child-selected){
      .bg-transparent-until-scroll:not(.nav-menu-open){
        background: transparent !important;
        box-shadow: none !important;
      }
    }
  }
}

// fix for fully transparent nav menu open on mobile
.navbar.bg-transparent.nav-menu-open.navbar-dark{
  background: #343a40 !important;
}
.navbar.bg-transparent.nav-menu-open.navbar-light{
  background: #f8f9fa !important;
}


.editor-styles-wrapper .tab-pane.is-selected, .editor-styles-wrapper .tab-pane.has-child-selected{
  display: block !important;
  opacity: 1 !important;
}

// Show dropdown when selected.
.editor-styles-wrapper .dropdown-menu {
  &.is-selected, &.has-child-selected{
    display: block;
  }
}

/* Fix conflicts calendar year selector */
body>.flatpickr-calendar .flatpickr-month .flatpickr-current-month>*{display:inline-block}

// Uploader in safari button overflowing
.geodir-add-files .moxie-shim {
  position: initial !important;
  background: transparent; // this is for divi theme that does background position stuff and breaks it.
}

// Backend import/export safari issues
.gd-settings-wrap .moxie-shim input{
  font-size: 0 !important;
}
/* Prevent BS left padding on ul */
.select2-dropdown .select2-results > .select2-results__options {
    padding-left: 0;
    padding-right: 0;
}