.astra-mm-options-wrap,
.ast-popup-wrap {
  box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
  display: none;
  border-radius: 2px;
  position: fixed;
  top: 5%;
  right: 0;
  left: 0;
  bottom: 5%;
  width: 85%;
  max-width: 1100px;
  margin: auto;
  background: #FFF;
  box-sizing: border-box;
  z-index: 99999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.astra-mm-options-wrap .ast-popup-content .spinner,
.ast-popup-wrap .ast-popup-content .spinner {
  z-index: 100000;
  position: relative;
  align-self: center;
}

.astra-mm-options-wrap .ast-popup-content .ast-mm-settings .astra-mm-settings-wrap,
.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-settings-wrap {
  -js-display: flex;
  display: flex;
  justify-content: center;
  align-items: center;
}

.astra-mm-options-wrap .spinner.is-active,
.ast-popup-wrap .spinner.is-active {
  visibility: visible;
}

.astra-mm-modal-overlay {
  width: 100%;
  height: 100%;
  position: fixed;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.8);
  top: 0;
  right: 0;
}

.astra-mm-cta-wrap {
  width: 100%;
  border-top: 1px solid #ccc;
  padding: 1em;
  background: #FFF;
  z-index: 9999;
  box-sizing: border-box;
  text-align: left;
  flex-shrink: 0;
  bottom: 0;
  position: absolute;
  bottom: 0;
  right: 0;
}

.astra-mm-cta-wrap .alignright {
  -js-display: flex;
  display: flex;
}

.astra-mm-cta-wrap .astra-megamenu-save-opts {
  margin-left: 5px;
}

.astra-mm-title-wrap {
  font-size: 18px;
  border-bottom: 1px solid #ddd;
  flex-shrink: 0;
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  z-index: 999999;
}

.astra-mm-title-wrap h2 {
  margin: 0;
}

.astra-option-input-container input[type="text"], .astra-option-input-container select {
  width: 100%;
}

.astra-option-input-container .wp-picker-container .wp-color-result.button {
  /* Added !important because we have to override the inline css added by colorpicker */
  margin-bottom: 0 !important;
}

.astra-option-input-container .wp-picker-container .color-alpha {
  /* Added !important because we have to override the inline css added by colorpicker */
  height: 23px !important;
}

.field-mm-enabled,
.field-mm-columns,
.astra-mm-option-container {
  display: none;
}

.field-mm-megamenu-label {
  display: block;
}

.astra-mm-options-wrap .field-mm-width {
  display: none;
}

.menu-item-depth-0 .field-mm-disable-label,
.menu-item-depth-0 .field-mm-disable-link,
.menu-item-depth-0 .field-mm-megamenu-label {
  display: none;
}

.menu-item-depth-0 .field-mm-enabled,
.menu-item-depth-0 .field-mm-width,
.menu-item-depth-0 .field-mm-color,
.menu-item-depth-0 .field-mm-h-color {
  display: block;
}

.menu-item-depth-0 .field-mm-bg-img,
.menu-item-depth-0 .field-mm-bg-size,
.menu-item-depth-0 .field-mm-bg-position,
.menu-item-depth-0 .field-mm-bg-color,
.menu-item-depth-0 .field-mm-divider-color {
  display: block;
}

.menu-item-depth-1 .field-mm-template,
.menu-item-depth-1 .field-mm-content-src,
.menu-item-depth-1 .field-mm-shortcode,
.menu-item-depth-1 .field-mm-custom-text,
.menu-item-depth-1 .field-mm-widget-option,
.menu-item-depth-1 .field-mm-widget-area {
  display: block;
}

.astra-mm-options-wrap .field-mm-highlight-label,
.astra-mm-options-wrap .field-mm-highlight-label-color,
.astra-mm-options-wrap .field-mm-highlight-label-bg-color,
.astra-mm-options-wrap .field-mm-megamenu-opts {
  display: block;
}

.menu-item-depth-1 .field-mm-template,
.menu-item-depth-1 .field-mm-content-src,
.menu-item-depth-1 .field-mm-shortcode,
.menu-item-depth-1 .field-mm-custom-text {
  display: block;
}

.menu-item-depth-1 .field-mm-megamenu-opts {
  display: block;
}

.wp-core-ui .button-primary.astra-megamenu-opts-btn {
  display: inline-block;
}

.wp-core-ui .button-secondary.astra-megamenu-opts-btn {
  margin-top: 8px;
  margin-bottom: 8px;
}

.astra-mm-title-wrap h2 {
  display: inline-block;
  padding: 1.1em 2.5% 1.1em 1.5%;
}

.astra-mm-close.dashicons-no-alt {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.98em 2%;
  font-size: 1.4em;
  vertical-align: middle;
  cursor: pointer;
  border-right: 1px solid #ccc;
}

.astra-mm-close.dashicons-no-alt:hover {
  background: #f6f6f6;
}

.astra-mm-option-container {
  float: right;
  width: 92%;
  padding: 2em 4%;
  margin: 0;
}

.astra-mm-option-container .astra-mm-option-heading {
  margin-bottom: 1.5em;
}

.ast-mm-settings {
  overflow: auto;
  width: 100%;
  box-sizing: border-box;
  background-color: #fff;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 2em;
  margin-top: 5.4em;
  margin-bottom: 2.5em;
}

.ast-mm-settings .astra-mm-option-container:not(:last-child) {
  border-bottom: 1px solid #ddd;
}

.ast-active.menu-item-settings {
  z-index: 9999;
}

.ast-mm-label-container {
  float: right;
  width: 45%;
  display: inline-block;
}

.ast-mm-label-container label {
  margin: 1em 0 10px;
  vertical-align: baseline;
}

.astra-option-input-container {
  float: right;
  width: 45%;
  display: inline-block;
  margin-right: 10%;
}

.astra-option-input-container .ast-mm-input, .astra-option-input-container .select2-container {
  width: 50% !important;
}

.astra-option-input-container .select2-search__field, .astra-option-input-container .select2-search--inline {
  width: 100% !important;
}

.astra-option-input-container .wp-picker-holder {
  position: absolute;
  z-index: 999;
}

.astra-builder-upload-preview {
  margin-bottom: 10px;
}

.astra-builder-upload-preview img {
  max-width: 100%;
  display: block;
  height: auto;
}

.wp-core-ui .ast-remove-button,
.wp-core-ui .astra-builder-upload-button.astra-edit-button {
  display: none;
}

.ast-image-set .ast-remove-button, .ast-image-set .astra-builder-upload-button.astra-edit-button {
  display: inline-block;
}

.ast-image-set .ast-upload-button {
  display: none;
}

.select2-container.select2-container--open {
  z-index: 99999;
}

.astra-mm-cta-wrap .button-large.astra-megamenu-save-opts, .astra-mm-cta-wrap .button-large.astra-megamenu-cancel-btn {
  padding: 15px 25px;
  line-height: 0;
  font-size: 1.1em;
}

.astra-mm-settings-wrap {
  padding: 1em 0;
}

.astra-mm-settings-wrap:after {
  content: " ";
  display: block;
  clear: both;
}

.ast-widget-list {
  min-height: 300px;
  width: 405px;
  margin-right: auto;
  border: 1px solid #aaa;
  display: none;
}

.ast-widget-list:empty {
  display: none !important;
}

.ast-widget-list .widget-top .widget-action {
  padding: 0;
  left: 0;
}

.astra-option-input-container select.ast-select-widget {
  width: 70%;
}

.button-primary.ast-insert-widget {
  margin-right: 5%;
  width: 100px;
  float: left;
}

.astra-mm-settings-wrap .ast-widget-list {
  padding: 20px;
}

.astra-mm-settings-wrap .widget.open .widget-inner {
  display: inline-block;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
}

.astra-mm-cta-wrap .spinner {
  float: right;
}

.ast-editing-label {
  font-size: 14px;
  color: #999;
}

.wp-picker-input-wrap input {
  font-size: 12px;
  line-height: 15px;
  margin: 0;
  vertical-align: top;
}

.wp-picker-input-wrap label {
  display: inline;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-settings-wrap.field-mm-enabled {
  display: none;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-settings-wrap.ast-show {
  display: block;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-settings-wrap.ast-hide {
  display: none;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .field-mm-text-color,
.ast-popup-wrap .ast-popup-content .ast-mm-settings .field-mm-text-hover-color,
.ast-popup-wrap .ast-popup-content .ast-mm-settings .field-mm-column-div-color {
  display: none;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-option-heading,
.ast-popup-wrap .ast-popup-content .ast-mm-settings .field-mm-header-sep-color {
  display: block;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-option-heading .ast-show,
.ast-popup-wrap .ast-popup-content .ast-mm-settings .field-mm-header-sep-color .ast-show {
  display: block;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-option-heading .ast-hide,
.ast-popup-wrap .ast-popup-content .ast-mm-settings .field-mm-header-sep-color .ast-hide {
  display: none;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .astra-mm-option-heading.ast-hide,
.ast-popup-wrap .ast-popup-content .ast-mm-settings .field-mm-header-sep-color.ast-hide {
  display: none;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .ast-show {
  display: block;
}

.ast-popup-wrap .ast-popup-content .ast-mm-settings .ast-hide {
  display: none;
}

.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .astra-mm-settings-wrap.field-mm-enabled {
  display: block;
}

.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .field-mm-color,
.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .astra-mm-option-heading,
.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .field-mm-text-color,
.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .field-mm-text-hover-color,
.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .field-mm-column-div-color {
  display: block;
}

.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .field-mm-megamenu-opts {
  display: block;
}

.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-mm-settings .field-mm-megamenu-opts .field-mm-enabled {
  display: block;
}

.ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-show.field-mm-enabled-heading, .ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-show.field-mm-content-src, .ast-popup-wrap .ast-popup-content .menu-item-depth-0 .ast-show.field-mm-header-sep-color {
  display: none;
}
