.custom-customer-reviews {
  background-color: transparent !important;
  padding: 200px 5% 70px 5%;
  font-family: var(--cm-font-body, "DM Sans", sans-serif); /* body font (was forbidden Inter) */
  overflow: visible !important;
  position: relative;
  z-index: 8 !important;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.custom-customer-reviews::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(100% + 400px);
  z-index: 99 !important;
  pointer-events: none;
  /* WASH SLUKKET 2026-08-28. TÆND IGEN: fjern `none` og af-kommentér. */
  background-image: none !important;
  /*
  background-image:
    radial-gradient(circle at -5% 65%, rgba(202, 152, 153, 0.15) 0%, transparent 22%),
    radial-gradient(circle at 10% 90%, rgba(195, 145, 149, 0.08) 0%, transparent 18%) !important;
  */
  /* Fade the whole overlay out over its lower 400px so the warm radials
     dissolve instead of being clipped by the box edge — which otherwise
     left a hard horizontal line where this ::before ends. */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 460px), rgba(0,0,0,0) calc(100% - 120px));
  mask-image: linear-gradient(to bottom, #000 0%, #000 calc(100% - 460px), rgba(0,0,0,0) calc(100% - 120px));
}

/* Left-edge sand continuation — RETIRED 2026-06-23.
   This used to paint a warm sand glow on the left of the reviews box. Because
   it was anchored to THIS section's box, its strongest point (bottom-left) sat
   right at the reviews→lydkurser boundary and the radial then fell off, so the
   warm tone was concentrated just ABOVE the seam and lighter just below it —
   a visible soft step in the left third. The overhang/overflow tricks couldn't
   fully hide it because the glow itself was asymmetric across the boundary.
   The same left warm column now lives in the CONTINUOUS .seamless-wallpaper-bg
   gradient (see custom.css), which spans both sections, so the tone crosses the
   seam uninterrupted and there is nothing to clip here. Layer removed. */

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* Left side - timeline */
.reviews-left {
  position: relative;
  width: 350px;
  height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: scale(1.18);
  transform-origin: top left;
  margin-left: -20px;
  margin-right: 50px;
  margin-bottom: 70px;
}

.avatar-list {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.avatar-item {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 15px;
  /* `all` made WebKit watch every property on every frame; these are the
     ones that actually change. Same result, cheaper. */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.avatar-item.active {
  opacity: 1;
  transform: translate(80px, 170px) scale(1);
  pointer-events: auto;
}

.avatar-item.prev {
  transform: translate(30px, 50px) scale(0.8);
}
.avatar-item.prev .avatar-img-wrapper svg,
.avatar-item.prev .avatar-info {
  opacity: 0.4;
}

.avatar-item.next {
  transform: translate(30px, 290px) scale(0.8);
}
.avatar-item.next .avatar-img-wrapper svg,
.avatar-item.next .avatar-info {
  opacity: 0.4;
}

.avatar-item.enter-top {
  opacity: 0;
  transform: translate(-20px, -70px) scale(0.6);
}

.avatar-item.exit-bottom {
  opacity: 0;
  transform: translate(-20px, 410px) scale(0.6);
}

.avatar-img-wrapper {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background-color: #fdfbfa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: transform 0.6s ease;
}

.avatar-item.active .avatar-img-wrapper {
  transform: scale(1.15);
  border-color: var(--cm-accent, #c08276); /* gold = element detail */
}

.avatar-img-wrapper svg {
  width: 26px;
  height: 26px;
  color: var(--cm-accent, #c08276); /* gold = element */
  transition: opacity 0.6s ease;
}

.avatar-info {
  display: flex;
  flex-direction: column;
}

.avatar-name {
  font-family: var(--cm-font-body, "DM Sans", sans-serif);
  font-size: var(--cm-size-body, 17px);         /* 2026-08-29: var 15px */
  font-weight: 600;
  color: var(--cm-body, #35312d);               /* body taupe, not the dark heading colour */
}

.avatar-date {
  font-family: var(--cm-font-body, "DM Sans", sans-serif);
  font-size: var(--cm-size-body, 17px);        /* 2026-08-29: var 13px */
  color: var(--cm-muted, #85827c);
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-rating {
  /* Alle stjerner på sitet kører nu på accent-fersken (Oliver 2026-08-28: ingen
     guldstjerner). Stod på #c69a92 — en rest fra paletten FØR Cammillas egne
     valg, så den fulgte hverken guldet eller accenten. Trustpoint-stjernen
     (Framer-SVG i custom.css + custom.js) er sat til samme farve. */
  color: var(--cm-accent, #c08276);
}

/* Right side - review text */
.reviews-right {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 20px;
}

/* QUOTE MARK — the opening mark, up-left of the review text.
   It is a pseudo-element of the TEXT BOX (not a sibling in the column), so it
   travels with it: narrow the box and the mark comes in with it.
   `line-height: 0` centres the glyph ON the 84px anchor line.
     KNOBS: font-size, the 84px top anchor, the -62px overhang. */
.review-text-container::before {
  content: "\201C";
  position: absolute;
  top: 84px;
  left: -62px;
  font-family: var(--cm-font-heading, "Playfair Display", serif) !important; /* was forbidden Crimson Text; !important to beat broad p/div font rule */
  font-size: 156px;
  line-height: 0;
  color: var(--cm-accent, #c08276); /* gold = decorative element */
  opacity: 0.38;
  pointer-events: none;
}

.review-text-container {
  min-height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  /* Narrower quote box so the text reads more vertical than horizontal, and so
     its right edge stops a little LEFT of the "Skriv din historie" button's
     left point (button left ≈ the right ~210px of this column). */
  max-width: 510px;
}

.review-text {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  /* Body typography (design rules §4): DM Sans, --cm-size-body, --cm-body. The
     brief wants the review quote as BODY (the lead treatment moved up to the
     section subtitle). !important on the family: a broad rule forces the body
     font on all <p> anyway, but we keep it explicit. Weight is 300 (body) via
     the --cm-weight-body bind in custom.css. */
  font-family: var(--cm-font-body, "DM Sans", sans-serif) !important;
  font-size: var(--cm-size-body, 17px);         /* body typography (was a 24px one-off, which read as lead) */
  font-style: italic !important;                /* italic review quotes per brief; !important beats the broad `p { font-style: normal !important }` reset */
  line-height: 1.5;
  color: var(--cm-body, #35312d);
  /* `all` made WebKit watch every property on every frame; these are the
     ones that actually change. Same result, cheaper. */
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(-50%);
}

.review-text.slide-in-top {
  opacity: 0;
  transform: translateY(calc(-50% - 50px));
}

.review-text.slide-out-bottom {
  opacity: 0;
  transform: translateY(calc(-50% + 50px));
}

.review-button {
  margin-top: 20px;
  align-self: flex-end;
  background-color: var(--cm-btn, #171210);   /* near-black */
  color: var(--cm-on-btn, #fdfbf9);
  border: none;
  padding: 12px 24px;
  border-radius: 999px;
  /* canonical button typography (design rules §5) */
  font-family: var(--cm-font-body, "DM Sans", sans-serif); /* was forbidden Inter */
  font-weight: var(--cm-btn-cta-weight, 600);
  font-size: var(--cm-btn-cta-size, 12px);                  /* was 14px */
  letter-spacing: var(--cm-btn-cta-tracking, 0.11em);
  text-transform: var(--cm-btn-cta-transform, uppercase);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color 0.3s;
  z-index: 2;
}

.review-button:hover {
  background-color: #2b2624; /* lifted near-black */
}

/* Responsive */
@media (max-width: 900px) {
  .reviews-container {
    flex-direction: column-reverse;
  }
  .reviews-left {
    width: 100%;
    height: 350px;
    transform: none;
    margin: 0;
  }
  .avatar-item.active {
    transform: translate(60px, 150px) scale(1);
  }
  .avatar-item.prev {
    transform: translate(20px, 50px) scale(0.8);
  }
  .avatar-item.next {
    transform: translate(20px, 250px) scale(0.8);
  }
  .review-text {
    font-size: var(--cm-size-body, 17px);   /* body size, uniform on mobile */
  }
  /* Smaller + tucked in, so the mark cannot hang off the edge of the screen. */
  .review-text-container::before {
    font-size: 104px;
    top: 56px;
    left: -12px;
  }
}

.avatar-item.hidden-teleport {
  opacity: 0;
  transform: translate(-20px, -70px) scale(0.6);
  transition: none !important;
}

.review-text-container {
  margin-top: 40px; /* Pushing the text a bit further down to better center with the active avatar */
}

/* Header styles */
.reviews-header {
  max-width: 1200px;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reviews-badge {
  display: flex;
  align-items: center;
  font-family: var(--cm-font-body, "DM Sans", sans-serif); /* eyebrow = DM Sans */
  font-size: var(--cm-size-eyebrow, 13px);
  font-weight: 650;            /* eyebrow rule §4: weight 650 */
  letter-spacing: 0.16em !important;  /* beat the global `div { letter-spacing: normal !important }` reset */
  color: var(--cm-eyebrow, #c08276); /* muted gold */
  text-transform: uppercase;
}

.reviews-title {
  font-family: var(--cm-font-heading, "Playfair Display", serif); /* heading font */
  font-size: var(--cm-size-h2, 48px);                 /* section title */
  font-weight: 400;            /* Lora regular per scale */
  color: var(--cm-text, #4a3730);
  margin: 0;
}

.reviews-subtitle {
  /* LEAD line under the section title (design rules §2/§4): Montserrat, lead
     size, weight 400 — same treatment as the lead line under hero titles.
     Was body (DM Sans 17px); the brief wants the intro to read as the lead, a
     step up from the review body below it. */
  font-family: var(--cm-font-lead, "Montserrat", sans-serif) !important; /* beat the broad `p { font-family: body !important }` reset */
  font-size: var(--cm-size-lead, 19px);
  font-weight: 400;
  color: var(--cm-body, #35312d);
  max-width: 600px;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .reviews-title {
    font-size: 32px;
  }
}

/* Lydkurser Section Icon */
.framer-tSQUb [data-framer-name="Journal"] [data-framer-name="Section Icon"] .framer-jayjtp {
  -webkit-mask-image: url('../images/user_icon_lydkurser.png') !important;
  mask-image: url('../images/user_icon_lydkurser.png') !important;
  -webkit-mask-size: contain !important;
  mask-size: contain !important;
  -webkit-mask-repeat: no-repeat !important;
  mask-repeat: no-repeat !important;
  -webkit-mask-position: center !important;
  mask-position: center !important;
  background-image: none !important;
  background-color: var(--cm-accent, #c08276) !important;
}

/* The connecting timeline line (.timeline-svg, z-index 1) must NEVER show through
   the avatar circles — not even the faded prev/next ones. The faded states dim the
   IMG to 0.4, so without an opaque disc behind it the line bleeds through. The
   global "make all reviews children transparent" rule in custom.css
   (.custom-customer-reviews div, specificity 0,3,0) had stripped the wrapper's
   opaque #fdfbfa fill. Restore an opaque disc with matching specificity (this
   file loads after custom.css). The wrapper sits in .avatar-list (z-index 2),
   above the line, and the disc is NOT dimmed (only the img is), so it fully
   blocks the line regardless of the avatar's faded state.
   The transparent rule is .custom-customer-reviews div:not(A):not(B) =
   specificity (0,3,1), so we need MORE than that — the extra :not([data-x])
   pushes this to (0,4,1) and wins. */
.custom-customer-reviews .avatar-list .avatar-item .avatar-img-wrapper:not([data-x]) {
  background-color: #fdfbfa !important;
  background-image: none !important;
}

/* =======================================================================
   LONG REVIEWS — "Læs hele" + pop-up (Oliver 2026-11-27)
   A review over ~220 characters shows an excerpt in the carousel with a
   small "Læs hele" after it; that opens the whole review in a pop-up in the
   same style as the product pop-up (.cm-prod-modal). Built by
   js/custom-reviews.js (fillReviewText / openReviewModal).
   ======================================================================= */
.custom-customer-reviews .review-text button.cm-review-more {
  all: unset;
  display: inline;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--cm-font-body, "DM Sans", sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-style: normal !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cm-accent, #c08276) !important;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  vertical-align: 0.25em;
  margin-left: 6px;
  transition: color 0.2s ease;
}
.custom-customer-reviews .review-text button.cm-review-more:hover { color: var(--cm-text, #4a3730) !important; }
.custom-customer-reviews .review-text button.cm-review-more:focus-visible {
  outline: 2px solid var(--cm-accent, #c08276);
  outline-offset: 3px;
  border-radius: 2px;
}

.cm-rv-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(74, 55, 48, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}
.cm-rv-overlay.cm-rv-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s ease;
}
.cm-rv-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  max-height: min(720px, calc(100dvh - 40px));
  background: var(--cm-bg, #f4f1ea);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(74, 55, 48, 0.35);
  overflow: hidden;
  transform: translateY(16px) scale(0.97);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}
.cm-rv-overlay.cm-rv-open .cm-rv-modal { transform: none; opacity: 1; }
/* the big gold quote mark, as on the carousel — at the end of the name row */
.cm-rv-head::after {
  content: "\201C";
  margin-left: auto;
  align-self: flex-start;
  height: 48px;
  font-family: var(--cm-font-heading, "Playfair Display", serif);
  font-size: 96px;
  line-height: 1;
  color: var(--cm-accent, #c08276);
  opacity: 0.35;
  pointer-events: none;
  transform: translateY(6px);
}
.cm-rv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: rgba(244, 239, 233, 0.85);
  color: var(--cm-btn, #171210);
  font-size: 26px !important;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.cm-rv-close:hover { background: #fff; }
.cm-rv-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 44px;
  padding: 36px 0 22px;
  border-bottom: 1px solid rgba(74, 55, 48, 0.14);
  flex: none;
}
.cm-rv-heart {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 999px;
  border: 1.5px solid var(--cm-accent, #c08276);
  background: #fdfbfa;
  color: var(--cm-accent, #c08276);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cm-rv-heart svg { width: 24px; height: 24px; }
.cm-rv-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cm-rv-name {
  font-family: var(--cm-font-body, "DM Sans", sans-serif);
  font-size: var(--cm-size-body, 17px);
  font-weight: 600;
  color: var(--cm-body, #35312d);
}
.cm-rv-date {
  font-family: var(--cm-font-body, "DM Sans", sans-serif);
  font-size: 14px;
  color: var(--cm-muted, #85827c);
}
.cm-rv-star { color: var(--cm-accent, #c08276); }
.cm-rv-body {
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 24px 44px 40px;
}
.cm-rv-overlay p.cm-rv-text {
  margin: 0 !important;
  white-space: pre-line;
  font-family: "Caveat", cursive !important;
  font-style: normal !important;
  font-weight: 400 !important;
  font-size: 30px !important;
  line-height: 1.3 !important;
  color: var(--cm-text, #4a3730) !important;
}
@media (max-width: 809.98px) {
  .cm-rv-overlay { padding: 14px; }
  .cm-rv-modal { max-height: calc(100dvh - 28px); border-radius: 18px; }
  .cm-rv-head::after { font-size: 80px; height: 42px; }
  .cm-rv-head { margin: 0 24px; padding: 28px 0 18px; }
  .cm-rv-heart { width: 42px; height: 42px; }
  .cm-rv-body { padding: 20px 24px 30px; }
  .cm-rv-overlay p.cm-rv-text { font-size: 24px !important; }
}
