/* Product Content v5.0.4
   Universal long-content renderer + responsive Read More modes. */

.pf-product-content-wrapper {
  width: 100%;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.pf-product-content-inner {
  position: relative;
  min-width: 0;
}

.pf-product-content-inner > *:first-child { margin-top: 0; }
.pf-product-content-inner > *:last-child  { margin-bottom: 0; }

/* Headings */
.pf-product-content-wrapper h1,
.pf-product-content-wrapper h2,
.pf-product-content-wrapper h3,
.pf-product-content-wrapper h4,
.pf-product-content-wrapper h5,
.pf-product-content-wrapper h6 {
  margin-top: 1.5em;
  margin-bottom: 0.6em;
  line-height: 1.3;
  font-weight: 700;
}

.pf-product-content-wrapper p {
  margin-top: 0;
  margin-bottom: 1.25em;
}

.pf-product-content-wrapper a {
  text-decoration: underline;
  transition: color .2s ease;
}

/* Images / figures */
.pf-product-content-wrapper img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  box-sizing: border-box;
}
.pf-product-content-wrapper .alignleft,
.pf-product-content-wrapper img.alignleft,
.pf-product-content-wrapper figure.alignleft {
  float: left;
  margin: .5em 1.2em .5em 0;
}
.pf-product-content-wrapper .alignright,
.pf-product-content-wrapper img.alignright,
.pf-product-content-wrapper figure.alignright {
  float: right;
  margin: .5em 0 .5em 1.2em;
}
.pf-product-content-wrapper .aligncenter,
.pf-product-content-wrapper img.aligncenter,
.pf-product-content-wrapper figure.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.pf-product-content-wrapper figure { margin: 0 0 1.25em; max-width: 100%; }
.pf-product-content-wrapper figcaption,
.pf-product-content-wrapper .wp-caption-text {
  color: rgba(0,0,0,.6);
  font-size: .925em;
}
.pf-product-content-wrapper .wp-caption {
  max-width: 100% !important;
  width: auto !important;
}
.pf-product-content-wrapper .wp-caption img {
  width: 100%;
  height: auto;
  display: block;
}

/* Blockquote / lists */
.pf-product-content-wrapper blockquote {
  margin: 0 0 1.25em;
  padding: 10px 20px;
  border-left: 4px solid #ccc;
  background-color: #f9f9f9;
  font-style: italic;
}
.pf-product-content-wrapper ul,
.pf-product-content-wrapper ol {
  margin-bottom: 1.25em;
  padding-left: 2em;
}

/* Code */
.pf-product-content-wrapper pre { overflow-x: auto; }
.pf-product-content-wrapper code,
.pf-product-content-wrapper pre code {
  padding: 2px 4px;
  font-size: 90%;
  color: #c7254e;
  background-color: #f9f2f4;
  border-radius: 4px;
  white-space: pre;
  word-wrap: normal;
}

/* Tables */
.pf-product-content-wrapper table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25em;
}
.pf-product-content-wrapper th,
.pf-product-content-wrapper td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}
.pf-product-content-wrapper th { background-color: #f2f2f2; }
.pf-prod-table-scroll {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.pf-prod-table-scroll table {
  width: max-content;
  min-width: 100%;
}

/* Responsive media */
.pf-prod-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.pf-prod-embed::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.pf-prod-embed > iframe,
.pf-prod-embed > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.pf-product-content-wrapper iframe,
.pf-product-content-wrapper video,
.pf-product-content-wrapper object,
.pf-product-content-wrapper embed { max-width: 100%; }

/* Read more v5.0.4 — deterministic clip + real fade layer. */
.pf-product-content-clip {
  position: relative;
  min-width: 0;
  overflow: visible;
}

/* Height mode: clip the dedicated viewport, not the content node itself. */
.pfpc-mode-height .pf-product-content-clip {
  transition: max-height var(--pfpc-duration,260ms) ease;
}
.pfpc-mode-height.pfpc-collapsed .pf-product-content-clip {
  max-height: var(--pfpc-collapse-h,520px);
  overflow: hidden;
}
.pfpc-mode-height.pfpc-expanded .pf-product-content-clip {
  max-height: none;
  overflow: visible;
}

/* Blocks mode: PHP/JS mark logical blocks even if the editor wrapped the whole
   article inside DIV/SECTION. */
.pfpc-mode-blocks.pfpc-collapsed .pfpc-block-overflow {
  display: none !important;
}
.pfpc-mode-blocks.pfpc-expanded .pfpc-block-overflow {
  display: revert !important;
}

/* Before JS discovers the logical sibling level, prevent a long wrapped article
   from flashing in full. The cap disappears immediately after initBlocks(). */
.pfpc-mode-blocks.pfpc-collapsed:not(.pfpc-blocks-ready) .pf-product-content-clip {
  max-height: var(--pfpc-collapse-h,520px);
  overflow: hidden;
}

/* Real DOM fade layer. This avoids pseudo-element conflicts with imported CSS,
   clearfix rules and rich-content selectors. */
.pf-product-content-fade {
  display: none;
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--pfpc-fade-h,110px);
  pointer-events: none;
  background: linear-gradient(to bottom, transparent 0%, var(--pfpc-fade-color,#fff) 92%);
}
.pfpc-collapsed.pfpc-has-fade .pf-product-content-fade {
  display: block;
}
.pfpc-expanded .pf-product-content-fade {
  display: none !important;
}

/* Toggle */
.pf-product-content-toggle-wrap[hidden] { display: none !important; }
.pf-product-content-toggle-wrap {
  position: relative;
  z-index: 4;
  width: 100%;
}
.pf-product-content-toggle {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.pf-product-content-toggle:focus-visible {
  outline: 3px solid color-mix(in srgb, currentColor 30%, transparent);
  outline-offset: 2px;
}
.pf-product-content-toggle-icon {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 1.7px solid currentColor;
  border-bottom: 1.7px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transform-origin: center;
  transition: transform var(--pfpc-duration,260ms) ease;
}
.pfpc-expanded .pf-product-content-toggle-icon {
  transform: rotate(225deg) translate(-1px,-1px);
}

/* Generic pagination kept for rich content */
.pf-product-content-wrapper .pagination,
.pf-product-content-wrapper .page-links,
.pf-product-content-wrapper .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 20px 0;
}
.pf-product-content-wrapper .pagination a,
.pf-product-content-wrapper .pagination span,
.pf-product-content-wrapper .page-links a,
.pf-product-content-wrapper .page-links .current,
.pf-product-content-wrapper .nav-links a,
.pf-product-content-wrapper .nav-links span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.pf-product-content-inner::after {
  content: "";
  display: table;
  clear: both;
}

@media (max-width: 767.98px) {
  .pf-product-content-wrapper .alignleft,
  .pf-product-content-wrapper img.alignleft,
  .pf-product-content-wrapper figure.alignleft,
  .pf-product-content-wrapper .alignright,
  .pf-product-content-wrapper img.alignright,
  .pf-product-content-wrapper figure.alignright {
    float: none !important;
    display: block;
    margin: .5em auto !important;
    max-width: 100%;
  }
  .pf-product-content-wrapper th,
  .pf-product-content-wrapper td { padding: 6px; }
}
