/* Visible only when ?editor_preview=1 */

.te-section {
  position: relative;
}

.te-section:hover {
  outline: 1px dashed rgba(16, 185, 129, 0.35);
  outline-offset: 2px;
}

/* Editable static content only */
.te-editable--static {
  cursor: pointer;
  transition: outline-color 0.15s ease, box-shadow 0.15s ease;
}

.te-editable--static:hover {
  outline: 2px solid rgba(16, 185, 129, 0.65);
  outline-offset: 2px;
}

.te-editable--static.is-selected {
  outline: 2px solid #059669;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.15);
}

/* Read-only contact/dynamic values in preview */
.te-dynamic {
  cursor: default;
  outline: 1px dashed rgba(148, 163, 184, 0.5);
  outline-offset: 1px;
}

.te-dynamic:hover {
  outline-color: rgba(100, 116, 139, 0.6);
}

/* Standalone preview: floating edit panel */
#te-inline-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  width: min(360px, calc(100vw - 32px));
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  padding: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
}

.te-inline-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.te-inline-panel__link {
  font-size: 12px;
  color: #2563eb;
}

.te-inline-panel__hint {
  margin: 0;
  color: #64748b;
  line-height: 1.4;
}

.te-inline-panel__placeholder-hint {
  margin: 0 0 8px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}

.te-inline-panel__placeholder-hint code {
  font-size: 11px;
  background: #f1f5f9;
  padding: 0 4px;
  border-radius: 3px;
}

.te-inline-panel__label {
  margin: 0 0 8px;
  font-weight: 600;
  word-break: break-word;
}

.te-inline-panel__input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  resize: vertical;
}

.te-inline-panel__preview {
  margin-top: 8px;
  text-align: center;
}

.te-inline-panel__preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
}

.te-inline-panel__actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.te-inline-panel__save,
.te-inline-panel__reset {
  border: 0;
  border-radius: 6px;
  padding: 8px 12px;
  font: inherit;
  cursor: pointer;
}

.te-inline-panel__save {
  background: #2563eb;
  color: #fff;
}

.te-inline-panel__reset {
  background: #f1f5f9;
  color: #334155;
}

.te-inline-panel__status {
  min-height: 18px;
  margin: 8px 0 0;
  font-size: 13px;
}
