/**
 * Globale Gutenberg-Editor-Styles
 */

/* ACF-Bearbeitungsfenster ca. 12% breiter — ACF vergibt die eigene Klasse
   "acf-block-form-modal" auf .components-modal__frame, andere WP-Modals bleiben unberührt.
   Drei Klassen im Selektor (statt zwei), damit die Regel unabhängig von der Lade-
   reihenfolge gegenüber ACFs eigenem "is-full-screen"-Style gewinnt (gleiche Spezifität
   würde sonst per Ladereihenfolge entscheiden). */
.acf-expanded-editor-panel-overlay .components-modal__frame.acf-block-form-modal {
    width: 85vw !important;
    max-width: 1200px !important;
    right: 0 !important;
}

/* Kompakte Block-Vorschau im Canvas — Bearbeitung erfolgt im seitlichen ACF-Fenster */
/* Farben entsprechen der WordPress-7.1-Standardpalette (@wordpress/base-styles Gray-Skala) */

.rothschild-editor-block {
    padding: 16px;
    background: #f1f3fd;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.06);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 13px;
}

.rothschild-editor-block-title {
    font-size: 13px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Block Label — fett/uppercase am Anfang */
.rothschild-editor-block-label {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000;
}

/* Block-Typ-Name — leicht, rechtsbündig */
.rothschild-editor-block-name {
    margin-left: auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #3858e9;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.wp-block {
	max-width: 1200px;
	font-family: Arial, Helvetica, sans-serif;
	color: #000;
}

.wp-block[data-align="wide"] {
	max-width: 1200px;
}

.wp-block[data-align="full"] {
	max-width: none;
}


/* Block Label + Vorschaubild-Erzeugung — heller Hintergrund zur Abgrenzung (WP Gray-100) */

.acf-field[data-name="block_label"],
.acf-field[data-name="block_preview_action"] {
    background: #f6f7f7;
    border: 1px solid #e0e0e0;
    padding: 10px;
    border-radius: 2px;
    margin-bottom: 12px;
}

.theme-generate-preview-btn {
    display: inline-flex;
    align-items: center;
}

.theme-generate-preview-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.theme-preview-status {
    margin-left: 10px;
    font-size: 12px;
    color: #757575;
}

.rothschild-editor-block-thumb svg {
    display: block;
    width: 100%;
    height: auto;
}

.rothschild-editor-block-thumb {
    max-width: 200px;
    margin-left: auto;
    margin-top: 10px;
    padding: 8px;
    background: #aebcf5;
    border: 1px solid #e0e0e0;
    border-radius: 2px;
}

/* WYSIWYG-Felder */

.acf-editor-wrap iframe {
	min-height: 78px !important;
}

.acf-editor-wrap .wp-editor-area {
	min-height: 78px !important;
	resize: vertical;
}
