html.jp-cm-editing-root #wpadminbar {
  display: none;
}

html.jp-cm-editing-root {
  margin-top: 0 !important;
}

body.jp-cm-editing {
  padding-bottom: 64px;
}

.jp-cm-toolbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 999999;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(640px, calc(100vw - 28px));
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(243, 234, 220, 0.2);
  background: rgba(8, 7, 6, 0.94);
  color: #f3eadc;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
}

.jp-cm-toolbar strong {
  white-space: nowrap;
}

.jp-cm-toolbar span {
  color: #b8aa96;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jp-cm-toolbar button {
  border: 0;
  background: #d79b4a;
  color: #080706;
  font-weight: 700;
  padding: 9px 14px;
  cursor: pointer;
}

@media (max-width: 520px) {
  .jp-cm-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .jp-cm-toolbar span {
    white-space: normal;
  }
}

.jp-cm-editable-text {
  outline: 1px dashed rgba(215, 155, 74, 0.7);
  outline-offset: 3px;
  cursor: text;
}

.jp-cm-editable-text:hover,
.jp-cm-editable-text:focus {
  outline-style: solid;
  background: rgba(215, 155, 74, 0.08);
}

.jp-cm-editable-image {
  cursor: pointer;
  outline: 2px dashed rgba(215, 155, 74, 0.85);
  outline-offset: 4px;
}

.jp-cm-editable-image:hover {
  filter: saturate(1.08) brightness(1.06);
}

.jp-cm-saving .jp-cm-editable-text,
.jp-cm-saving .jp-cm-editable-image {
  opacity: 0.72;
}
