/* hj-editor.css — editor/visual-edit + form-state rules extracted from the legacy stylesheets */
.inquiry-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.inquiry-status {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.inquiry-status.success { color: oklch(0.42 0.12 150); }
.inquiry-status.error { color: oklch(0.5 0.2 25); }
.editor-container-media {
  position: relative;
  min-height: 40px;
  background-origin: content-box;
}

.editor-container-media > span:not(.editor-container-video),
.editor-container-media > small,
.editor-container-media > strong {
  opacity: 0;
}

.editor-container-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.editor-button-row {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.editor-button {
  text-decoration: none;
}

.editor-button-secondary {
  border-color: oklch(30% 0.05 250 / 0.3);
  color: var(--ink);
  background: oklch(96% 0.012 250);
}

.section-dark .editor-button-secondary {
  color: oklch(94% 0.012 250);
  background: oklch(96% 0.01 250 / 0.08);
}

.editor-button-ghost {
  color: inherit;
  background: transparent;
}

.editor-button-text {
  min-height: 34px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--blue);
}

.editor-button-sm {
  min-height: 38px;
  padding-inline: 16px;
  font-size: 13px;
}

.editor-button-lg {
  min-height: 56px;
  padding-inline: 28px;
  font-size: 15px;
}
.visual-edit-mode body {
  cursor: default;
}

.visual-edit-mode [data-editor-block] {
  position: relative;
  outline: 2px solid oklch(64% 0.18 28 / 0.42);
  outline-offset: -2px;
  cursor: grab;
}

.visual-edit-mode [data-editor-block]::before {
  content: attr(data-editor-block);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 6px 9px;
  border-radius: 999px;
  color: oklch(98% 0.006 250);
  background: oklch(18% 0.04 250 / 0.78);
  border: 1px solid oklch(100% 0.006 250 / 0.18);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.visual-edit-mode [data-editor-block]:hover {
  outline-color: oklch(66% 0.19 28 / 0.82);
}

.visual-edit-mode [data-editor-media] {
  pointer-events: auto !important;
  animation: none !important;
  transition: none !important;
  cursor: pointer;
  outline: 2px dashed oklch(74% 0.13 155 / 0.72);
  outline-offset: -2px;
}

.visual-edit-mode [data-editor-media] img,
.visual-edit-mode [data-editor-media] video {
  pointer-events: auto !important;
  animation: none !important;
  transition: none !important;
}

.visual-edit-mode [data-canvas-element],
.visual-edit-mode .editor-free-element {
  cursor: move;
  outline: 1px dashed oklch(61% 0.18 28 / 0.78);
  outline-offset: 2px;
  touch-action: none;
}

.visual-edit-mode .editor-element-selected {
  outline: 2px solid oklch(61% 0.18 28);
}

.guanchi-position-label {
  position: absolute;
  z-index: 10000;
  pointer-events: none;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: oklch(32% 0.12 250 / 0.92);
  box-shadow: 0 6px 16px oklch(18% 0.018 250 / 0.2);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.guanchi-position-label[data-position-kind="media"] {
  background: oklch(45% 0.19 28 / 0.94);
}

.guanchi-position-label[data-position-kind="text"] {
  background: oklch(38% 0.12 155 / 0.94);
}

.visual-edit-mode .editor-free-text {
  min-height: 32px;
  padding: 6px 8px;
  color: oklch(18% 0.012 32);
  background: oklch(99% 0.005 32 / 0.92);
}

.visual-edit-mode .editor-free-image {
  display: block;
  object-fit: cover;
}

.visual-edit-mode .editor-free-video {
  display: block;
  object-fit: cover;
}

.guanchi-element-overlay {
  position: absolute;
  z-index: 9999;
  pointer-events: none;
  border: 1px solid oklch(61% 0.18 28);
  box-shadow: 0 0 0 1px oklch(99% 0.005 32 / 0.82);
}

.guanchi-element-overlay [data-editor-position-id] {
  position: absolute;
  left: 0;
  top: -30px;
  max-width: min(360px, 78vw);
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
  background: oklch(45% 0.19 28 / 0.96);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.guanchi-element-overlay button {
  position: absolute;
  top: -30px;
  right: 0;
  min-height: 24px;
  border: 0;
  border-radius: 4px;
  padding: 0 8px;
  color: oklch(99% 0.005 32);
  background: oklch(48% 0.18 28);
  font: 700 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  pointer-events: auto;
  cursor: pointer;
}

.guanchi-element-overlay [data-move-handle],
.guanchi-element-overlay [data-resize-handle] {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 2px solid oklch(99% 0.005 32);
  border-radius: 50%;
  background: oklch(61% 0.18 28);
  pointer-events: auto;
}

.guanchi-element-overlay [data-move-handle] {
  left: -11px;
  top: -11px;
  cursor: move;
}

.guanchi-element-overlay [data-resize-handle] {
  right: -11px;
  bottom: -11px;
  cursor: nwse-resize;
}

.guanchi-element-overlay.is-media-position [data-move-handle],
.guanchi-element-overlay.is-media-position [data-resize-handle],
.guanchi-element-overlay:not(.can-transform-position) [data-move-handle],
.guanchi-element-overlay:not(.can-transform-position) [data-resize-handle] {
  display: none;
}

.visual-edit-mode .editor-dragging {
  opacity: 0.58;
  cursor: grabbing;
}

.visual-edit-mode [contenteditable="true"] {
  cursor: text;
  outline: 1px dashed oklch(74% 0.13 155 / 0.76);
  outline-offset: 3px;
  border-radius: 4px;
}

.visual-edit-mode [contenteditable="true"]:focus {
  outline: 2px solid oklch(74% 0.13 155);
  background: oklch(100% 0.006 250 / 0.08);
}

