/* Editor.js admin/editor styling */
.editorjs-editor {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  min-height: 18rem;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.editorjs-editor .codex-editor__redactor {
  padding-bottom: 120px;
}

.editorjs-editor .ce-toolbar__content,
.editorjs-editor .ce-block__content {
  max-width: 100%;
}

.editorjs-editor .ce-toolbar__actions {
  right: 12px;
}

.editorjs-editor .ce-popover__container {
  border-radius: 12px;
}

.editorjs-editor .ce-inline-toolbar,
.editorjs-editor .ce-toolbar__settings-btn,
.editorjs-editor .ce-toolbar__plus {
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.editorjs-editor .ce-toolbar__plus,
.editorjs-editor .ce-toolbar__settings-btn {
  border-radius: 10px;
  background: #f8fafc;
}

.editorjs-editor .ce-inline-toolbar {
  border-radius: 12px;
}

.editorjs-editor .ce-inline-toolbar__buttons {
  padding: 4px;
}

.editorjs-editor .ce-block__content h1,
.editorjs-editor .ce-block__content h2,
.editorjs-editor .ce-block__content h3 {
  font-weight: 700;
  color: #0f172a;
}

.editorjs-editor .ce-block__content h1 {
  font-size: 2rem;
}

.editorjs-editor .ce-block__content h2 {
  font-size: 1.6rem;
}

.editorjs-editor .ce-block__content h3 {
  font-size: 1.25rem;
}

/* Storefront rendering */
.editorjs-content h1,
.editorjs-content h2,
.editorjs-content h3 {
  font-weight: 700;
  color: #0f172a;
  margin: 1.5rem 0 0.75rem;
}

.editorjs-content h1 {
  font-size: 2.25rem;
}

.editorjs-content h2 {
  font-size: 1.75rem;
}

.editorjs-content h3 {
  font-size: 1.35rem;
}

.editorjs-content p {
  margin: 0.75rem 0;
  line-height: 1.7;
}

.editorjs-content ul,
.editorjs-content ol {
  margin: 0.75rem 0 0.75rem 1.5rem;
}

.editorjs-content blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid #38bdf8;
  background: #f0f9ff;
  border-radius: 0.75rem;
  color: #0f172a;
}

.editorjs-content figure {
  margin: 1.5rem 0;
}

.editorjs-content figure img {
  border-radius: 0.75rem;
  width: 100%;
}

.editorjs-content figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #64748b;
}

.editorjs-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.editorjs-content table th,
.editorjs-content table td {
  border: 1px solid #e2e8f0;
  padding: 0.6rem 0.75rem;
  text-align: left;
}

.editorjs-content .editorjs-embed {
  margin: 1.5rem 0;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  border-radius: 0.75rem;
  overflow: hidden;
}

.editorjs-content .editorjs-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
