/* Align content to left — Metabox or Options page wise */
.modern-fields-content-area
  .is-root-container.is-layout-constrained
  > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: initial !important;
  margin-right: initial !important;
}

/* Basic styles */
.has-text-align-right {
  text-align: right !important;
}

.has-text-align-left {
  text-align: left !important;
}

.has-text-align-center {
  text-align: center !important;
}

.has-text-align-justify {
  text-align: justify !important;
}

/* WP admin styles conflicts fixes */
.modern-fields-content-area p.description,
.form-wrap .modern-fields-content-area p {
  color: inherit;
}

/* Full Width handling in most metaboxes */
.modern-fields-content-area .is-root-container .alignfull {
  margin-left: -24px;
  margin-right: -24px;
}

/* Full Width handling in most metaboxes */
.components-modal__content
  .modern-fields-content-area
  .is-root-container
  .alignfull {
  margin-left: -36px;
  margin-right: -36px;
}

/* Full Width handling in options page */
.mf-options-page-root .is-root-container .alignfull {
  margin-left: -48px;
  margin-right: -48px;
}

.mf-options-page-root .is-root-container .alignfull:first-child {
  margin-top: -24px !important;
}

.mf-options-page-root .is-root-container .alignfull:last-child {
  margin-bottom: -24px !important;
}
