/* Lightweight rich-text editor styles (admin only). */
.rte {
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #fff;
}

.rte-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.4rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.rte-btn {
  min-width: 2rem;
  height: 1.9rem;
  padding: 0 0.5rem;
  font-size: 0.75rem;
  line-height: 1;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.rte-btn:hover {
  background: #eef2f7;
}

.rte-body {
  min-height: 16rem;
  max-height: 32rem;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: #1e293b;
  outline: none;
}

.rte-body:focus {
  box-shadow: inset 0 0 0 2px rgb(59 130 246 / 25%);
}

.rte-body h2 { font-size: 1.15rem; font-weight: 700; margin: 0.8rem 0 0.4rem; }
.rte-body h3 { font-size: 1rem;   font-weight: 700; margin: 0.7rem 0 0.35rem; }
.rte-body p  { margin: 0 0 0.7rem; }
.rte-body ul { list-style: disc;    padding-left: 1.3rem; margin: 0 0 0.7rem; }
.rte-body ol { list-style: decimal; padding-left: 1.3rem; margin: 0 0 0.7rem; }
.rte-body a  { color: #2563eb; text-decoration: underline; }

/* Rendered policy content on the storefront. */
.page-content h2 { font-size: 1.15rem; font-weight: 700; color: var(--brand-secondary); margin: 1rem 0 0.5rem; }
.page-content h3 { font-size: 1rem; font-weight: 700; color: var(--brand-secondary); margin: 0.9rem 0 0.4rem; }
.page-content p  { margin: 0 0 0.75rem; }
.page-content ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 0.75rem; }
.page-content ol { list-style: decimal; padding-left: 1.25rem; margin: 0 0 0.75rem; }
.page-content li { margin-bottom: 0.3rem; }
.page-content a  { color: var(--brand); text-decoration: underline; }
.page-content strong { font-weight: 700; }
.page-content > *:last-child { margin-bottom: 0; }
