/* RX8 external review roundup. Matches the FAQ card look: black card, grey
   (#424751) 1px border, rounded corners, grey dividers between reviews.
   Override via the .rx8-reviews__* classes in your theme. */
.rx8-reviews {
margin: 1.5em 0;
background: var(--e-global-color-text, #000);
border: 1px solid #424751;
border-radius: 12px;
padding: clamp(1em, 3vw, 2em);
max-width: 100%;
box-sizing: border-box;
}
.rx8-reviews__title {
margin: 0 0 0.35em;
text-align: center;
}
.rx8-reviews__disclaimer {
margin: 0 0 1.25em;
text-align: center;
font-size: 0.85em;
opacity: 0.75;
}
.rx8-reviews__item {
padding: 1em 0.25em;
border-top: 1px solid #424751;
}
.rx8-reviews__header {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 0.6em;
margin-bottom: 0.4em;
}
.rx8-reviews__stars {
color: #f5a623;
letter-spacing: 0.1em;
white-space: nowrap;
}
.rx8-reviews__body {
font-size: 0.9em;
line-height: 1.4em;
font-style: italic;
color: var(--e-global-color-8f1fab1);
}
/* No blank space between paragraphs within a review. */
.rx8-reviews__body p {
margin: 0 !important;
}
/* Long reviews start collapsed; JS removes the cap when expanded and hides
   the toggle entirely for short ones. */
/* Collapsed cap: show 3 full lines, with the fade obscuring the 4th
   (line-height 1.4em x 4 lines = 5.6em). */
.rx8-reviews__body[data-rx8-collapsible]:not(.is-expanded) {
max-height: 5.6em;
overflow: hidden;
position: relative;
}
.rx8-reviews__body[data-rx8-collapsible]:not(.is-expanded).is-collapsible::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: 0;
height: 1.5em;
background: linear-gradient(rgba(0, 0, 0, 0), var(--e-global-color-text, #000));
}
/* Subtle text-link toggle. The !important flags beat theme/Elementor button
   styling (pill background, padding, underline) seen on the live site. */
.rx8-reviews__toggle,
.rx8-reviews__toggle:hover,
.rx8-reviews__toggle:focus {
display: inline-block;
background: none !important;
border: 0 !important;
border-radius: 0 !important;
box-shadow: none !important;
padding: 0 !important;
margin: 0;
color: #fff !important;
text-decoration: none !important;
cursor: pointer;
font-family: inherit;
font-size: 10px !important;
font-weight: 600 !important;
text-transform: uppercase;
letter-spacing: 0.06em;
line-height: 1.4;
}
/* Some themes force button display and defeat the hidden attribute — that is
   why "Show more" appeared on short reviews. Enforce it. */
.rx8-reviews__toggle[hidden],
.rx8-reviews__toggle [hidden] {
display: none !important;
}
.rx8-reviews__meta {
display: flex;
flex-wrap: wrap;
gap: 0.35em 0.9em;
margin-top: 0.5em;
font-size: 0.8em;
opacity: 0.8;
}
.rx8-reviews__author {
font-weight: 600;
}
.rx8-reviews__source {
text-decoration: underline;
font-weight: 600;
}
