/* =========================================================
   Shared styling for any HTML coming from the admin WYSIWYG
   (TinyMCE) editor — description/content fields on products,
   pages, articles, news, companies, shops, brands, categories,
   faqs, wallets, points, etc.
   Loaded globally (layouts/app.blade.php) so every {!! !!}
   output can just add class="editor-content".
   ========================================================= */

.editor-content {
  line-height: 27px;
  direction: rtl;
  text-align: right;
}
.editor-content p,
.editor-content div,
.editor-content span,
.editor-content li,
.editor-content td,
.editor-content th {
  direction: rtl !important;
  text-align: right !important;
}
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
  display: block;
  margin: 30px 0 15px;
  font-size: 20px;
  font-weight: 800;
  color: var(--p-ink);
  position: relative;
  padding-right: 18px;
}
.editor-content h1::before,
.editor-content h2::before,
.editor-content h3::before,
.editor-content h4::before,
.editor-content h5::before,
.editor-content h6::before {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  bottom: 3px;
  width: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tb-primary), var(--p-accent));
}
.editor-content p {
  margin-bottom: 25px;
  line-height: 28px;
  font-size: 15px;
}
.editor-content img {
  max-width: 100%;
  display: inline-block;
  margin: 15px 0;
  height: auto;
  border-radius: var(--p-radius-md);
}
.editor-content blockquote {
  padding: 20px;
  border-right: 5px solid var(--tb-primary);
  background: #f9f9f9;
  display: inline-block;
  width: auto;
  font-size: 18px;
  line-height: 32px;
}
.editor-content ul,
.editor-content ol {
  margin: 15px 0 25px 0;
  padding-right: 20px !important;
  padding-left: 0 !important;
}
.editor-content li {
  display: block;
  padding: 5px 0;
}
.editor-content li::before {
  content: "\f00c";
  font-family: var(--fa-family-free, "Font Awesome 6 Free");
  font-weight: 900;
  display: inline-block;
  color: #bbb;
  margin-left: 8px;
}
.editor-content li:hover::before {
  color: var(--tb-primary);
}
.editor-content a {
  color: var(--tb-primary);
}
.editor-content a:hover {
  color: var(--tb-primary-dark);
}
.editor-content table {
  width: 100%;
  margin: 15px 0 25px;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--p-radius-md);
  box-shadow: var(--p-shadow-sm);
}
.editor-content table thead th,
.editor-content table th {
  background: var(--primary);
  color: var(--tb-primary-dark);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 10px;
  border: 1px solid var(--primary);
}
.editor-content table td {
  vertical-align: middle;
  padding: 12px 10px;
  font-size: 14px;
  border: 1px solid var(--primary);
  color: var(--p-deep);
}
.editor-content table tbody tr:hover {
  background-color: var(--p-bg);
}
@media screen and (max-width: 767px) {
  .editor-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
