/* Rich text output — mirrors CKEditor product description styles on the frontend */

.rich-text-content {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: inherit;
  word-wrap: break-word;
  text-align: start;
  word-spacing: normal;
  letter-spacing: normal;
}

.rich-text-content p {
  margin: 0 0 0.75rem;
}

.rich-text-content p:last-child {
  margin-bottom: 0;
}

/* Preserve inline font-size / line-height from the editor */
.rich-text-content [style*="font-size"],
.rich-text-content [style*="line-height"] {
  font-family: inherit;
}

.rich-text-content strong,
.rich-text-content b {
  font-weight: 700;
}

.rich-text-content em,
.rich-text-content i {
  font-style: italic;
}

.rich-text-content u,
.rich-text-content [style*="underline"] {
  text-decoration: underline;
}

.rich-text-content s,
.rich-text-content strike,
.rich-text-content del {
  text-decoration: line-through;
}

.rich-text-content ul {
  list-style-type: disc !important;
  list-style-position: outside;
  margin: 0.75rem 0 !important;
  padding-left: 1.5rem !important;
}

.rich-text-content ol {
  list-style-type: decimal !important;
  list-style-position: outside;
  margin: 0.75rem 0 !important;
  padding-left: 1.5rem !important;
}

.rich-text-content li {
  display: list-item !important;
  margin-bottom: 0.35rem;
}

.rich-text-content a {
  color: inherit;
  text-decoration: underline;
}

.rich-text-content h1,
.rich-text-content h2,
.rich-text-content h3,
.rich-text-content h4,
.rich-text-content h5,
.rich-text-content h6 {
  font-family: inherit;
  font-weight: 600;
  line-height: 1.3;
  margin: 1rem 0 0.5rem;
}

.rich-text-content blockquote {
  border-left: 3px solid currentColor;
  margin: 1rem 0;
  padding-left: 1rem;
  opacity: 0.9;
}

.rich-text-content img {
  max-width: 100%;
  height: auto;
}

.rich-text-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
}

.rich-text-content table td,
.rich-text-content table th {
  border: 1px solid currentColor;
  padding: 0.5rem;
}
