/* One toolbar and editing surface for every public and admin description. */
.rich-description-editor {
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.rich-description-editor .rich-description-editor__basic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
.rich-description-editor .rich-description-editor__basic button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: #475569;
  background: transparent;
  cursor: pointer;
}
.rich-description-editor .rich-description-editor__basic button svg { width: 18px; height: 18px; }
.rich-description-editor .rich-description-editor__basic button:hover,
.rich-description-editor .rich-description-editor__basic button[aria-pressed="true"],
.rich-description-editor .rich-description-editor__basic button[aria-expanded="true"] { background: #e0e7ff; color: #4f46e5; }
.rich-description-editor button:focus-visible { outline: 2px solid #6366f1; outline-offset: 2px; }
.rich-description-editor .editor-content {
  min-height: 210px;
  max-height: 480px;
  padding: 16px;
  overflow-y: auto;
  outline: none;
}
.rich-description-editor .editor-content:empty::before {
  color: #64748b;
  content: attr(data-placeholder);
  pointer-events: none;
}
.rich-description-editor:focus-within { border-color: #a5b4fc; }
.rich-description-editor.is-invalid { border-color: #dc3545; }
.description-link-panel[hidden] { display: none; }
.description-link-panel { padding: 12px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.description-link-panel label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.description-link-panel input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 16px; }
.description-link-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.description-link-panel__actions button { padding: 8px 12px; border: 1px solid #c7d2fe; border-radius: 8px; background: #fff; color: #4338ca; }
.description-link-panel [role="status"] { display: block; color: #b91c1c; font-size: .85rem; margin-top: 6px; }

.rich-description-editor__divider { width: 1px; height: 22px; background: #dbe1ea; margin: 0 2px; }
.rich-description-editor .rich-description-editor__basic button:disabled { opacity: .38; cursor: default; background: transparent; color: #64748b; }
@media (max-width: 575.98px) {
  .rich-description-editor .rich-description-editor__basic { gap: 3px; padding: 8px; }
  .rich-description-editor .rich-description-editor__basic button { width: 32px; height: 38px; }
}
