.kp-admin-only {
  display: none;
}

body.kp-editing .kp-admin-only {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 10px 14px;
  background: #234e49;
  color: #f7f7f2;
  text-decoration: none;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 0.88rem;
  border: 1px dashed rgba(219, 113, 78, 0.85);
}

body.kp-editing .kp-admin-only span {
  opacity: 0.85;
}

body.kp-editing .kp-admin-only strong {
  color: #ffd2c2;
  font-weight: 700;
}

body.kp-editing .kp-admin-only:hover {
  background: #1b3f3b;
}

.kp-editor-bar {
  position: fixed;
  z-index: 10000;
  left: 16px;
  right: 16px;
  bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #234e49;
  color: #f7f7f2;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 40px rgba(16, 39, 31, 0.28);
  font-family: "Manrope", "Segoe UI", sans-serif;
}

.kp-editor-bar strong { font-size: 0.95rem; }
.kp-editor-bar span { opacity: 0.85; font-size: 0.85rem; }

.kp-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kp-editor-bar button,
.kp-editor-bar a {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  padding: 10px 14px;
  color: #10271f;
  background: #db714e;
}

.kp-editor-bar button.ghost,
.kp-editor-bar a.ghost {
  background: transparent;
  color: #f7f7f2;
  border: 1px solid rgba(247, 247, 242, 0.35);
}

.kp-editor-bar button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.kp-editor-bar .status {
  min-width: 12rem;
  font-size: 0.85rem;
}

.kp-editor-bar .status.ok { color: #b7e0c8; }
.kp-editor-bar .status.err { color: #ffc9c9; }

body.kp-editing {
  cursor: default;
  padding-bottom: 88px;
}

body.kp-editing [data-edit] {
  outline: 1px dashed rgba(219, 113, 78, 0.7);
  outline-offset: 3px;
  cursor: text;
  min-width: 1ch;
}

body.kp-editing [data-edit]:hover,
body.kp-editing [data-edit]:focus {
  outline: 2px solid #db714e;
  outline-offset: 3px;
  background: rgba(219, 113, 78, 0.08);
}

body.kp-editing [data-edit-type="image"] {
  cursor: pointer;
  position: relative;
}

body.kp-editing [data-edit-type="image"]::after {
  content: "Смени снимката";
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 12px;
  background: #234e49;
  color: #f7f7f2;
  font-size: 0.8rem;
  font-weight: 700;
  pointer-events: none;
}

/* Keep normal navigation working. Only block links when the click is on an editable field (handled in JS). */
