.is-hidden-field {
    display: none !important;
}


.block-editor-block-list__layout .block-list-appender,
.block-editor-block-list__block .block-list-appender {
    width: 100%;
    position: relative;
    display: none !important;
}
.block-editor-block-list__layout .block-list-appender .block-list-appender__toggle,
.block-editor-block-list__block .block-list-appender .block-list-appender__toggle {
    display: flex;
    flex-wrap: nowrap;
    width: max-content;
    padding: 20px !important;
    position: relative;
    margin: 20px auto;
}
.block-editor-block-list__layout .block-list-appender .block-list-appender__toggle:after,
.block-editor-block-list__block .block-list-appender .block-list-appender__toggle:after {
    margin-left: 10px;
    content: 'Click to add a block';
    display: block;
}
.da-block-placeholder {
    display: none !important;
}
.wp-block.has-no-inner-blocks > .da-block-placeholder {
    display: block !important;
}
.da-empty-content-placeholder {
    max-width: 500px;
    svg {
        width: 80%;
        margin: auto;
    }
}
.da-empty-innerblocks-placeholder {
    padding: 20px;
}
.da-empty-innerblocks-placeholder .da-empty-innerblocks-placeholder__inner {
    text-align: center;
}
.da-empty-innerblocks-placeholder .da-empty-innerblocks-placeholder__inner p {
    font-size: 1.24rem;
    margin-bottom: 1rem;
}

.admin-ui-navigable-region.interface-interface-skeleton__sidebar:not(:empty) {
    width: 100% !important;
    max-width: 760px;
    position: absolute !important;
    right: 0 !important;
    left: auto;
    transition: width 200ms ease;
}

.admin-ui-navigable-region.interface-interface-skeleton__sidebar:not(:empty) .interface-complementary-area__fill {
    width: 100% !important;
}

.admin-ui-navigable-region.interface-interface-skeleton__sidebar:not(:empty) 
.interface-complementary-area__fill .interface-complementary-area.editor-sidebar {
    width: 100% !important;
}

.components-panel__body.block-editor-block-inspector__advanced {
    display: none !important;
}

iframe[title="Editor canvas"] {
    max-width: unset !important;
}

.edit-site-layout [aria-label="Identity"] .dataforms-layouts-regular__field:nth-of-type(3),
.edit-site-layout [aria-label="Identity"] .dataforms-layouts-regular__field:nth-of-type(4) {
    display: none;
}

/* Adding faint indicator of section breaks to editor pages */
.block-editor-block-list__insertion-point-indicator {
    --wp-admin-theme-color: #FF00FB;
}
/* With "Show template" on, sections are nested in post-content rather than the root container. */
.is-root-container > .wp-block + .wp-block:not(.wp-block-post-content):not(.is-editing-disabled)::before,
.wp-block-post-content > .wp-block + .wp-block::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: #FF00FB;
    opacity: .15;
    pointer-events: none;
}

/* Dashed "+" tile for blocks whose template uses renderAppender="button". Overrides the global .block-list-appender hide rule above. */
.block-editor-block-list__layout > .block-list-appender:has(> .block-editor-button-block-appender) {
    display: flex !important;
    margin: 0;
}
.block-editor-block-list__layout > .block-list-appender > .block-editor-button-block-appender {
    flex-grow: 1;
    height: auto;
    min-height: 80px;
    border: 2px dashed currentColor;
    border-radius: 4px;
    opacity: .4;
    box-shadow: none;
    transition: opacity 150ms ease;
}
.block-editor-block-list__layout > .block-list-appender > .block-editor-button-block-appender:hover,
.block-editor-block-list__layout > .block-list-appender > .block-editor-button-block-appender:focus {
    opacity: 1;
}
/* The empty-layout placeholder already offers an add button. */
.block-editor-block-list__layout:has(> .da-empty-innerblocks-placeholder) > .block-list-appender {
    display: none !important;
}

/* Inline "Add ..." button after the last block in a run (see da-appender.jsx). */
.da-repeat-appender {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}
/* End-of-page inserter (da-appender.jsx). Mirrors Gutenberg's in-between inserter */
.da-end-inserter {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 24px;
    z-index: 30;
}
.da-end-inserter::before {
    content: '';
    position: absolute;
    top: 11px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: #FF00FB;
    opacity: .15;
    pointer-events: none;
}
.da-end-inserter__indicator {
    position: absolute;
    top: calc(50% - 2px);
    height: 4px;
    width: 100%;
    border-radius: 2px;
    background: #FF00FB;
    opacity: 0;
    transition: opacity 100ms ease;
}
.da-end-inserter__inserter {
    position: absolute;
    top: calc(50% - 12px);
    left: calc(50% - 12px);
    display: none;
}
.da-end-inserter:hover .da-end-inserter__indicator,
.da-end-inserter:has([aria-expanded="true"]) .da-end-inserter__indicator {
    opacity: 1;
}
.da-end-inserter:hover .da-end-inserter__inserter,
.da-end-inserter:has([aria-expanded="true"]) .da-end-inserter__inserter {
    display: flex;
}
.da-end-inserter__inserter .block-editor-inserter__toggle.components-button.has-icon {
    background: var(--wp-admin-theme-color, #3858e9);
    color: #fff;
    padding: 0;
    min-width: 24px;
    height: 24px;
}
.da-end-inserter__inserter .block-editor-inserter__toggle.components-button.has-icon:hover {
    background: #1e1e1e;
    color: #fff;
}
.da-end-inserter__inserter .block-editor-inserter__toggle.components-button.has-icon svg {
    transition: transform cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s;
}
.da-end-inserter__inserter .block-editor-inserter__toggle.components-button.has-icon.is-pressed svg {
    transform: rotate(45deg);
}
/* In-section inserter (da-appender.jsx). Zero-height anchor so editor spacing matches the frontend; line straddles the gap. */
.da-section-inserter {
    position: relative;
    width: 100%;
    height: 0;
    flex-basis: 100%;
    grid-column: 1 / -1;
    /* Keep the hover area above the following sibling block, which would otherwise paint over it. */
    z-index: 31;
}
.da-section-inserter > .da-end-inserter {
    top: -12px;
}
/* Hide the global Styles button in the post/page editor header (shown with "Show template" on). Access is also blocked in da-editor-ui.js. */
.editor-header__settings button[aria-label="Styles"],
.interface-pinned-items button[aria-label="Styles"] {
    display: none !important;
}
/* Block icons in the inserter at 2.5x. zoom (not transform) so the layout grows with the icon and the label stays below it;
   it also keeps each icon's own proportions (most are 24px, some custom SVGs are 20px).
   Centered with flex and no side padding: ACF wraps custom SVG icons in a full-width div that left-aligns them, and
   Gutenberg's 20px side padding and 8px icon margin (scaled by the zoom) pushed icons off center. */
.block-editor-block-types-list__item-icon {
    display: flex;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.block-editor-block-types-list__item-icon > * {
    zoom: 2.5;
    display: flex;
    justify-content: center;
    margin: 0;
}
/* Hide the block switcher ("Change block type or style") in the block toolbar; the theme's blocks register no
   transforms or block styles, so it only ever opened "No transforms." */
.block-editor-block-toolbar__block-controls > .components-toolbar-group:has(> .block-editor-block-switcher) {
    display: none;
}
/* Hide the Block tab while the settings panel shows Page settings (e.g. opened from the title box, see da-editor-ui.js).
   Selecting a block still switches the panel to its Block settings. */
[role="tablist"]:has([data-tab-id="edit-post/document"][aria-selected="true"]) [role="tab"][data-tab-id="edit-post/block"] {
    display: none;
}
.block-editor-inserter__menu .block-editor-tabbed-sidebar__tab[id$="-media"] {
    display: none;
}
.css-hmwkew[aria-orientation="horizontal"] {
    --fade-width: 0 !important;
}

/* End-of-column variant takes up real space inside the column so its hover area stays within the column's bounds
   (hanging into the section gap lets Gutenberg's in-between inserter and the next layout steal the hover).
   Matches the rich content width with a 24px inset. */
.da-section-inserter--last {
    height: 24px;
    max-width: var(--rich-content-max-width, 880px);
    margin: 0 auto;
}
.da-section-inserter--last > .da-end-inserter {
    top: 0;
    left: 24px;
    right: 24px;
}
/* Mirrors block-rich-content/_styles.scss: content goes full width in 9-column layouts. */
.daGrid__column--9 .da-section-inserter--last,
.sm\:daGrid__column--9 .da-section-inserter--last,
.md\:daGrid__column--9 .da-section-inserter--last,
.lg\:daGrid__column--9 .da-section-inserter--last,
.xl\:daGrid__column--9 .da-section-inserter--last {
    --rich-content-max-width: 100%;
}
.editor-post-parent__panel-dialog .components-popover__content {
    max-height: none !important;
}
.editor-page-attributes__parent .components-form-token-field__suggestions-list {
    max-height: 50vh;
}
/* Page outline (da-page-outline.jsx), hiding default to allow the ACF one to display. */
.editor-list-view-sidebar__list-view-container:has(> .daPageOutline-host) > :not(.daPageOutline-host) {
    display: none;
}
.daPageOutline-host {
    padding: 16px;
}
.daPageOutline__stats {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 12px;
    margin: 0 0 12px;
    color: #757575;
}
.daPageOutline__stats dd {
    margin: 0;
}
.daPageOutline__notice {
    margin: 0 0 8px;
    padding: 8px 12px;
    border-left: 4px solid #f0b849;
    background: #fef8ee;
}
.daPageOutline__list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.daPageOutline__list li {
    margin: 0;
}
.daPageOutline__item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 4px 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.daPageOutline__item:hover .daPageOutline__text,
.daPageOutline__item:focus-visible .daPageOutline__text {
    color: var(--wp-admin-theme-color, #3858e9);
    text-decoration: underline;
}
.daPageOutline__level {
    flex: none;
    padding: 0 6px;
    border-radius: 2px;
    background: #f0f0f0;
    font-weight: 600;
    font-size: 11px;
    line-height: 20px;
}
.daPageOutline__level.is-warning {
    background: #f0b849;
}
.daPageOutline__text {
    line-height: 20px;
}
.daPageOutline__issue {
    display: block;
    color: #cc1818;
    font-size: 12px;
}
.daPageOutline__empty {
    margin: 0;
    color: #757575;
}

/* "Collapse all" above the List View tree (da-editor-ui.js). */
.daListViewTools {
    display: flex;
    justify-content: flex-end;
    padding: 4px 8px 0;
}

.editor-styles-wrapper .card {
    margin-top: 0;
    min-width: 0;
    max-width: none;
    border: 0;
}
.editor-styles-wrapper .richContent.card {
    max-width: var(--rich-content-max-width, 880px);
}

/* Drag and drop (da-editor-ui.js marks the dragged block's container): outline the places it can be dropped,
   and make core's drop-position line easier to see. */
.da-drop-zones > .wp-block:not(.is-dragging):not(.block-list-appender) {
    outline: 2px dashed var(--wp-admin-theme-color, #3858e9);
    outline-offset: -6px;
    transition: outline-color 150ms ease;
}
.da-drop-zones > .wp-block.is-dragging {
    opacity: 0.4;
}
.block-editor-block-list__insertion-point-indicator {
    box-shadow: 0 0 0 2px var(--wp-admin-theme-color, #3858e9);
}
