/* Responsive editor chrome only; section renderers and saved content stay unchanged. */
[data-editor-model-tools] > * { flex-shrink: 0; }
@media (max-width: 979px) {
  [data-editor-appearance] { height: 100dvh !important; }
  [data-editor-center] { padding: 4px 0 0 !important; }
  [data-editor-topbar] {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    box-sizing: border-box;
    max-width: 100%;
    flex-wrap: wrap !important;
    gap: 4px !important;
    padding: 4px !important;
  }
  [data-editor-topbar] [title="Mover barra"],
  [data-editor-topbar] [title="Minimizar barra"],
  [data-editor-topbar] [data-editor-brand] { display: none !important; }
  [data-editor-actions] {
    order: -1;
    width: 100%;
    min-width: 0 !important;
    flex-wrap: wrap;
    gap: 4px !important;
    justify-content: flex-start !important;
  }
  [data-editor-save-status] {
    margin-right: auto;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  [data-editor-actions] button { flex-shrink: 0; }
  [data-editor-tools] { width: 100%; flex: 0 0 100% !important; overflow: visible !important; }
  [data-editor-tools] > button, [data-editor-tools] nav, [data-editor-tools] nav button { flex-shrink: 0; }
  [data-editor-canvas-outer] { padding: 8px 8px 108px !important; justify-content: flex-start !important; }
  [data-editor-appearance] [data-editor-preview-mode="mobile"] { min-width: 0 !important; }
  [data-editor-appearance] [data-editor-preview-mode] { overflow-x: clip; }
  [data-editor-library][data-collapsed="true"],
  [data-editor-side-panel][data-collapsed="true"] { display: none !important; }
  [data-editor-library][data-collapsed="false"],
  [data-editor-side-panel][data-collapsed="false"] {
    position: fixed !important;
    inset: 8px 8px max(8px, env(safe-area-inset-bottom)) auto !important;
    width: min(360px, calc(100vw - 16px)) !important;
    max-width: calc(100vw - 16px) !important;
    height: auto !important;
    max-height: none !important;
    box-sizing: border-box;
    border-radius: 14px !important;
    z-index: 1900 !important;
  }
  [data-editor-library][data-collapsed="false"] { left: 8px !important; right: auto !important; }
  .editor-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1800;
    border: 0;
    background: rgba(0, 0, 0, .45);
  }
  [data-editor-side-panel] button[title="Fechar painel"],
  [data-editor-side-panel] button[title="Minimizar painel"] { min-width: 36px; min-height: 36px; }
  [data-canvas-toolbar] {
    position: absolute !important;
    left: 8px !important;
    right: 8px !important;
    top: auto !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    transform: none !important;
    width: auto !important;
    max-width: 420px;
    margin: 0 auto;
  }
  [data-canvas-toolbar] > div {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    justify-content: center;
    flex-wrap: wrap;
    border-radius: 16px !important;
    gap: 4px !important;
    max-width: 100%;
    box-sizing: border-box;
  }
  [data-canvas-toolbar] > div > div { display: contents !important; }
  [data-canvas-toolbar] button { flex-shrink: 0; width: 100% !important; min-width: 0; min-height: 40px; }
  [data-editor-appearance] button[aria-label="Abrir formulário do WhatsApp"] {
    bottom: 120px !important;
    right: 20px !important;
    z-index: 100 !important;
  }
  [data-canvas-toolbar] button[title="Mover toolbar"],
  [data-canvas-toolbar] button[title="Arrastar toolbar"],
  [data-canvas-toolbar] > div > span { display: none !important; }
  [data-canvas-toolbar] [aria-label="Modo de visualizacao"] button span { display: none; }
}
.editor-coherence-error{position:fixed;right:20px;top:100px;z-index:12100;max-width:min(560px,90vw);max-height:70vh;overflow:auto;padding:16px;border:1px solid #f472b6;border-radius:10px;background:#101722;color:#fff;white-space:pre-line;font-size:13px;line-height:1.5}.editor-coherence-error button{display:block;margin-top:8px}

.editor-tool-groups { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; font-size: 12px; color: var(--lands-editor-text); }
.editor-tool-categories, .editor-tool-history { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.editor-tool-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 14px; }
.editor-tool-categories .editor-tool-trigger { border-color: var(--lands-editor-border); justify-content: flex-start; }
.editor-tool-categories .editor-tool-trigger[aria-pressed="true"] { background: var(--lands-editor-surface-muted); border-color: #9b79ed; }
.editor-tool-category-heading { margin-bottom: 12px; line-height: 1.5; }
.editor-tool-category-heading p { margin: 5px 0 0; color: var(--lands-editor-text-muted); }
.editor-tool-history { padding-left: 8px; border-left: 1px solid var(--lands-editor-border); }
.editor-tool-groups button, .editor-tool-option { font: inherit; color: inherit; }
.editor-tool-trigger, .editor-tool-history button, .editor-tool-popover-header > button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 7px 9px; border: 1px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; }
.editor-tool-trigger { font-weight: 650 !important; }
.editor-tool-trigger[aria-expanded="true"], .editor-tool-groups button:hover:not(:disabled), .editor-tool-option:hover { background: var(--lands-editor-surface-muted); border-color: var(--lands-editor-border); }
.editor-tool-groups :is(button, a, input, select):focus-visible { outline: 2px solid #9b79ed; outline-offset: 2px; }
.editor-tool-groups button:disabled { opacity: .45; cursor: not-allowed; }
.editor-tool-popover { position: absolute; top: calc(100% + 10px); left: 0; z-index: 1150; width: min(430px, calc(100vw - 32px)); max-height: min(620px, calc(100dvh - 150px)); box-sizing: border-box; padding: 16px; overflow: auto; border: 1px solid var(--lands-editor-border); border-radius: 14px; background: var(--lands-editor-panel-strong-bg, var(--lands-editor-panel-bg)); backdrop-filter: blur(24px); box-shadow: 0 18px 50px rgba(0,0,0,.22); }
.editor-tool-popover-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.editor-tool-popover-header strong { font-size: 14px; }
.editor-tool-popover-header p { margin: 5px 0 0; line-height: 1.5; color: var(--lands-editor-text-muted); }
.editor-tool-popover-header > button { flex: 0 0 auto; padding: 5px; }
.editor-tool-options { display: grid; gap: 6px; }
.editor-tool-option { display: grid; gap: 4px; width: 100%; padding: 12px; text-align: left; border: 1px solid var(--lands-editor-border-soft); border-radius: 9px; background: var(--lands-editor-surface); text-decoration: none; cursor: pointer; box-sizing: border-box; }
.editor-tool-option small { font-size: 11px; line-height: 1.5; color: var(--lands-editor-text-muted); }
.editor-tool-creation { display: grid; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--lands-editor-border); }
.editor-tool-creation > div { min-width: 0; }
.editor-tool-creation [data-editor-model-tools] { display: flex !important; flex-direction: column; align-items: stretch !important; gap: 12px !important; overflow: visible !important; }
.editor-tool-creation [data-editor-model-tools] > * { flex: 0 0 auto !important; height: auto !important; max-width: 100%; box-sizing: border-box; }
.editor-tool-creation [data-editor-model-tools] > label { display: grid !important; padding: 10px !important; gap: 8px !important; }
.editor-tool-creation [data-editor-model-tools] > div { flex-wrap: wrap; padding: 4px; }
.editor-tool-creation [data-editor-quality-popover] { position: static !important; margin-top: 8px; width: 100% !important; box-shadow: none !important; }
.editor-tool-creation [data-editor-model-tools] input { min-width: 0 !important; width: auto !important; flex: 1 1 150px; }
.editor-tool-creation [data-editor-model-tools] :is(input,select) { max-width: 100%; min-height: 36px; font-size: 12px !important; }
.editor-tool-creation [data-editor-model-tools] button { white-space: normal; min-height: 36px; }
.editor-panel-area-label { font-size: 10px; font-weight: 700; color: var(--lands-editor-text-muted); padding: 8px 12px 3px; }
.editor-selection-hint { padding: 16px 12px; line-height: 1.6; font-size: 12px; color: var(--lands-editor-text-muted); }
.editor-selection-hint strong { display: block; color: var(--lands-editor-text); }
.editor-global-style summary { cursor: pointer; padding: 8px 0; font-size: 12px; font-weight: 700; color: var(--lands-editor-text); }
@media (max-width: 1199px) {
  [data-editor-topbar] { flex-wrap: wrap !important; }
  [data-editor-topbar] [data-editor-tools] { flex: 1 1 auto !important; overflow: visible !important; }
}
@media (max-width: 979px) {
  .editor-tool-groups { width: 100%; gap: 6px; }
  .editor-tool-categories { width: 100%; }
  .editor-tool-trigger { padding: 8px 4px; gap: 4px; min-height: 44px; font-size: 11px !important; }
  .editor-tool-trigger > svg:first-child { display: none; }
  .editor-tool-history { border: 0; padding: 0; }
  .editor-tool-history button { min-height: 40px; min-width: 40px; }
  .editor-tool-popover { position: fixed; top: 8px; left: 8px; right: 8px; width: auto; max-height: calc(100dvh - 16px); z-index: 1700; }
  .editor-tool-option { min-height: 56px; }
  .editor-tool-popover-header > button { min-width: 44px; min-height: 44px; }
}

.notice-settings { display: grid; gap: 12px; color: var(--lands-editor-text); font-size: 12px; line-height: 1.5; }
.notice-settings-intro { margin: 0; color: var(--lands-editor-text-muted); }
.notice-settings-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.notice-settings-groups button { min-height: 38px; border: 1px solid var(--lands-editor-border); background: var(--lands-editor-surface); border-radius: 8px; font: inherit; color: inherit; cursor: pointer; }
.notice-settings-groups button[aria-current="true"] { background: #6f48b720; border-color: #9874d4; font-weight: 700; }
.notice-settings-card { display: grid; gap: 12px; padding: 12px; border: 1px solid var(--lands-editor-border); border-radius: 10px; background: var(--lands-editor-surface); min-width: 0; }
.notice-settings-card h3, .notice-settings-card p { margin: 0; }
.notice-settings-card h3 { font-size: 14px; }
.notice-settings-card > p { color: var(--lands-editor-text-muted); }
.notice-settings-field { display: grid; gap: 6px; font-weight: 600; min-width: 0; }
.notice-settings-field :is(input,textarea,select) { box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; border: 1px solid var(--lands-editor-border); padding: 9px; border-radius: 7px; font: inherit; color: var(--lands-editor-input-text); background: var(--lands-editor-input-bg); }
.notice-settings-field textarea { resize: vertical; line-height: 1.6; font-weight: 400; }
.notice-settings-toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; min-height: 36px; }
.notice-settings-toggle input { width: 17px; height: 17px; accent-color: #7950ba; flex-shrink: 0; }
.notice-settings-help { padding: 10px; background: var(--lands-editor-surface-muted); border-radius: 7px; font-size: 11px; line-height: 1.6; }
.notice-settings-preview-heading { display: grid; gap: 3px; }
.notice-settings-preview-heading span, .notice-settings small { font-size: 11px; color: var(--lands-editor-text-muted); }
.notice-settings :is(button,input,textarea,select):focus-visible { outline: 2px solid #9874d4; outline-offset: 2px; }

.site-notices { font: 14px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; color: #192333; }
.site-notices :is(button,a), .site-notice-dialog :is(button,a) { font: inherit; cursor: pointer; }
.site-notices :is(button,a):focus-visible, .site-notice-dialog :is(button,a):focus-visible { outline: 3px solid #8c69d5; outline-offset: 3px; }
.site-notice-alert { display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px 20px; background: #e9efff; color: #183977; overflow-wrap: anywhere; }
.site-notice-alert[data-tone="success"] { background: #e3f5e9; color: #155d38; }
.site-notice-alert[data-tone="warning"] { background: #fff1cf; color: #774b08; }
.site-notice-alert > button { border: 0; background: transparent; color: inherit; font-size: 24px; min-width: 36px; min-height: 36px; }
.site-notice-cookies { position: fixed; z-index: 2100; bottom: 18px; left: 18px; width: min(440px, calc(100vw - 36px)); box-sizing: border-box; border: 1px solid #d8dce6; padding: 22px; border-radius: 16px; background: #fff; color: #192333; box-shadow: 0 16px 48px #16223a26; overflow-wrap: anywhere; max-height: calc(100dvh - 36px); overflow: auto; }
.site-notice-cookies h2, .site-notice-modal-preview h2 { margin: 0 0 8px; font: 700 18px/1.4 Inter, ui-sans-serif, system-ui, sans-serif; }
.site-notice-cookies p, .site-notice-dialog p, .site-notice-modal-preview p { white-space: pre-wrap; margin: 0 0 16px; }
.site-notice-action { display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 8px 16px; border: 1px solid #5233a4; background: #5233a4; color: #fff !important; border-radius: 8px; text-decoration: none; box-sizing: border-box; }
.site-notice-policy-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px; padding: 12px; background: #fff; color: #334155; }
.site-notice-policy-links :is(a,button) { border: 0; background: none; padding: 4px 0; color: #5233a4; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.site-notice-cookies .site-notice-policy-links { padding: 0 0 14px; justify-content: flex-start; }
.site-notice-reopen { position: fixed; z-index: 2100; bottom: 12px; left: 12px; min-height: 40px; border: 1px solid #cbd5e1; border-radius: 20px; padding: 6px 16px; background: #fff; color: #334155; }
.site-notice-dialog { z-index: 2200; max-width: min(620px, calc(100vw - 32px)); width: 100%; max-height: calc(100dvh - 32px); box-sizing: border-box; border: 1px solid #d8dce6; border-radius: 18px; padding: 30px; color: #192333; background: white; font: 14px/1.6 Inter, ui-sans-serif, system-ui, sans-serif; box-shadow: 0 24px 80px #0f172a40; overflow: auto; overflow-wrap: anywhere; }
.site-notice-dialog::backdrop { background: #10182899; }
.site-notice-dialog h2 { margin: 0 40px 18px 0; font-size: 22px; line-height: 1.4; }
.site-notice-close { position: absolute; top: 12px; right: 12px; border: 0; border-radius: 8px; background: #f1f5f9; color: #334155; width: 40px; height: 40px; font-size: 24px !important; }
.site-notice-policy-body { white-space: pre-wrap; }
.site-notices-preview { border: 1px dashed #bcc5d4; border-radius: 12px; overflow: hidden; }
.site-notices-preview .site-notice-cookies { position: static; width: 100%; padding: 16px; border: 0; border-radius: 0; box-shadow: none; max-height: none; }
.site-notices-preview .site-notice-alert { padding: 12px; flex-wrap: wrap; }
.site-notice-modal-preview { padding: 20px; background: #fff; }
.site-notice-modal-preview small { display: block; margin-top: 16px; color: #64748b; }
.notice-settings .site-notices-preview .site-notice-modal-preview small { color: #64748b !important; }
@media (max-width: 600px) { .site-notice-alert { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding: 10px 14px; } .site-notice-alert > span { flex: 1; min-width: 180px; } .site-notice-dialog { padding: 24px 20px; } }

[data-editor-topbar] [data-editor-tools]{overflow:visible!important}.editor-tool-creation [data-editor-model-tools]>div>div{position:static!important;width:100%!important;box-shadow:none!important}
