.pdp-unified-reviews {
    background: white;
    padding: 156px 0 24px;
    margin-top: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100vw;
  }

  .pdp-unified-reviews .container {
    max-width: 100%;
    padding: 0;
  }

  /* Desktop: centered head. Mobile: left-aligned, no hanging indent. */
  .pdp-unified-reviews .upr-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
    text-align: left;
  }

  .pdp-unified-reviews .upr-head svg {
    width: 2.6rem;
    height: 2.6rem;
    flex-shrink: 0;
  }

  .pdp-unified-reviews .upr-head-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.25;
    margin: 0;
  }

  .pdp-unified-reviews .upr-head-sub {
    font-size: 0.95rem;
    color: #6b7280;
    margin: 0.25rem 0 0;
  }

  @media (max-width: 768px) {
    .pdp-unified-reviews .upr-head {
      justify-content: flex-start;
      gap: 0.75rem;
    }

    .pdp-unified-reviews .upr-head svg {
      width: 2.2rem;
      height: 2.2rem;
    }

    .pdp-unified-reviews .upr-head-title {
      font-size: 1.25rem;
    }

    .pdp-unified-reviews .upr-head-sub {
      font-size: 0.85rem;
    }
  }

  .pdp-unified-reviews .reviews-carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 8px 0 0;
  }

  .pdp-unified-reviews .reviews-carousel {
    overflow: hidden;
    margin: 0 60px;
    position: relative;
  }

  .pdp-unified-reviews .reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 16px;
    align-items: flex-start;
    padding: 16px 0 36px;
  }

  @media (min-width: 769px) {
    .pdp-unified-reviews .review-card {
      min-width: 400px;
      max-width: 400px;
      height: auto;
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 14px;
      padding: 24px;
      box-shadow: 0 4px 8px rgba(0,0,0,0.08);
      transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
      transform: scale(0.85);
      opacity: 0.6;
      max-height: 380px;
      -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 97%);
      mask-image: linear-gradient(180deg, #000 62%, transparent 97%);
      display: flex;
      flex-direction: column;
      overflow: hidden;
      margin-bottom: 4px;
    }

    .pdp-unified-reviews .review-card.active {
      transform: scale(1);
      opacity: 1;
      box-shadow: 0 8px 24px rgba(0,0,0,0.12);
      z-index: 2;
      max-height: none;
      overflow: visible;
      -webkit-mask-image: none;
      mask-image: none;
    }

    .pdp-unified-reviews .review-card.adjacent {
      transform: scale(0.9);
      opacity: 0.8;
      z-index: 1;
      cursor: pointer;
    }

    .pdp-unified-reviews .review-card.adjacent:hover {
      transform: scale(0.92);
      opacity: 0.85;
      box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    }

    .pdp-unified-reviews .review-card:not(.adjacent):not(.active) {
      pointer-events: none;
    }
  }

  @media (max-width: 768px) {
    .pdp-unified-reviews .review-card {
      min-width: calc(100vw - 140px);
      max-width: calc(100vw - 140px);
      height: auto;
      min-height: 240px;
      background: white;
      border: 1px solid #e0e0e0;
      border-radius: 10px;
      padding: 16px;
      box-shadow: 0 3px 8px rgba(0,0,0,0.08);
      display: flex;
      flex-direction: column;
      flex-shrink: 0;
      transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      transform: scale(0.85);
      opacity: 0.7;
      max-height: 340px;
      overflow: hidden;
      -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent 97%);
      mask-image: linear-gradient(180deg, #000 62%, transparent 97%);
      transform-origin: center center;
    }

    .pdp-unified-reviews .review-card.active {
      transform: scale(1);
      opacity: 1;
      box-shadow: 0 8px 20px rgba(0,0,0,0.12);
      z-index: 2;
      max-height: none;
      overflow: visible;
      -webkit-mask-image: none;
      mask-image: none;
    }

    .pdp-unified-reviews .review-card.adjacent {
      transform: scale(0.9);
      opacity: 0.85;
      z-index: 1;
    }

    .pdp-unified-reviews .review-header {
      font-size: 12px;
    }

    .pdp-unified-reviews .review-title {
      font-size: 14px;
      margin-bottom: 6px;
    }

    .pdp-unified-reviews .review-content {
      font-size: 13px;
      line-height: 1.5;
    }
  }

  .pdp-unified-reviews .review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  .pdp-unified-reviews .reviewer-avatar {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #e5e7eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 17px;
    color: #4b5563;
  }

  .pdp-unified-reviews .review-header .reviewer-info {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pdp-unified-reviews .reviewer-name {
    font-weight: 600;
    color: #191919;
    font-size: 15px;
  }

  .pdp-unified-reviews .reviewer-location {
    color: #999;
    font-size: 12px;
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .pdp-unified-reviews .review-date {
    color: #999;
    font-size: 12px;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
  }

  .pdp-unified-reviews .review-stars {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  .pdp-unified-reviews .review-stars .upr-star {
    width: 19px;
    height: 19px;
    color: #191919;
  }

  .pdp-unified-reviews .review-stars .upr-star--empty {
    color: #e2e8f0;
  }

  .pdp-unified-reviews .review-title {
    font-weight: 600;
    color: #191919;
    margin-bottom: 7px;
    font-size: 15px;
  }

  .pdp-unified-reviews .review-content {
    color: #191919;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 10px;
    flex-grow: 1;
  }

  /* Customer media inside Loox cards (opens the unified modal) */
  .pdp-unified-reviews .upr-media {
    display: block;
    width: 100%;
    border: none;
    border-radius: 10px;
    background: transparent;
    padding: 0;
    margin: 0 0 10px;
    cursor: zoom-in;
    text-align: left;
  }

  .pdp-unified-reviews .upr-media:focus-visible {
    outline: 2px solid #0f172a;
    outline-offset: 2px;
  }

  .pdp-unified-reviews .upr-media-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-height: 440px;
    overflow: hidden;
    border-radius: 10px;
    background: #0f172a;
    aspect-ratio: var(--upr-media-aspect, 16 / 10);
  }

  .pdp-unified-reviews .upr-media-frame img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    -webkit-user-drag: none;
    user-select: none;
  }

  .pdp-unified-reviews .upr-media-frame img.upr-watermark {
    width: 74px;
    height: auto;
    object-fit: contain;
  }

  .pdp-unified-reviews .upr-media-kind {
    position: absolute;
    left: 12px;
    bottom: 12px;
    min-height: 36px;
    padding: 0 12px 0 10px;
    gap: 7px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.32);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    pointer-events: none;
  }

  .pdp-unified-reviews .upr-media-kind svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
  }

  .pdp-unified-reviews .upr-media-count {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 3px 9px;
    border-radius: 9999px;
    background: rgba(15, 23, 42, 0.78);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    pointer-events: none;
  }

  .pdp-unified-reviews .upr-media-count svg {
    width: 12px;
    height: 12px;
  }

  .upr-watermark {
    position: absolute;
    right: 10px;
    bottom: 8px;
    width: 74px;
    opacity: 0.75;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
  }

  /* Card footer: verification left, official platform logo right */
  .pdp-unified-reviews .review-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .pdp-unified-reviews .review-verified {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #00b67a;
    font-size: 12.5px;
    font-weight: 500;
  }

  .pdp-unified-reviews .review-source-logo {
    height: 18px;
    width: auto;
    display: block;
    opacity: 0.85;
  }

  .pdp-unified-reviews .review-source-logo--loox {
    height: 15px;
  }

  .pdp-unified-reviews .carousel-btn {
    /* fixed offset from the section top: taller cards must not move the arrows */
    position: absolute;
    top: 215px;
    transform: none;
    background: none;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    font-size: 34px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .pdp-unified-reviews .carousel-btn:hover {
    color: #111827;
  }

  .pdp-unified-reviews .carousel-prev { left: 0; }
  .pdp-unified-reviews .carousel-next { right: 0; }

  .pdp-unified-reviews .swipe-indicator {
    display: none;
    text-align: center;
    margin-top: 8px;
  }

  .pdp-unified-reviews .desktop-dots {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    position: relative;
  }

  @media (min-width: 769px) {
    .pdp-unified-reviews .desktop-dots {
      display: flex;
    }

    .pdp-unified-reviews .desktop-dots .carousel-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: #d1d5db;
      transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
      cursor: pointer;
      opacity: 0.5;
      transform: scale(1);
    }

    .pdp-unified-reviews .desktop-dots .carousel-dot:hover:not(.active) {
      opacity: 0.7;
      transform: scale(1.2);
      background-color: #9ca3af;
    }

    .pdp-unified-reviews .desktop-dots .carousel-dot.active {
      width: 24px;
      height: 8px;
      border-radius: 4px;
      background-color: #111827;
      opacity: 1;
      transform: scale(1);
    }
  }

  .pdp-unified-reviews .swipe-text {
    font-size: 13px;
    color: #999;
    display: block;
    margin-bottom: 10px;
    animation: uprSwipeHint 2s ease-in-out infinite;
  }

  @keyframes uprSwipeHint {
    0%, 100% { opacity: 0.5; transform: translateX(0); }
    50% { opacity: 1; transform: translateX(5px); }
  }

  .pdp-unified-reviews .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 5px;
  }

  .pdp-unified-reviews .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    opacity: 0.5;
    transform: scale(1);
  }

  .pdp-unified-reviews .carousel-dot:hover:not(.active) {
    opacity: 0.7;
    transform: scale(1.2);
    background-color: #9ca3af;
  }

  .pdp-unified-reviews .carousel-dot.active {
    width: 20px;
    height: 6px;
    border-radius: 3px;
    background-color: #111827;
    opacity: 1;
    transform: scale(1);
  }

  .pdp-unified-reviews .carousel-dot.near-active {
    transform: scale(1.1);
    opacity: 0.65;
    transition-duration: 0.4s;
  }

  @media (max-width: 768px) {
    .pdp-unified-reviews {
      padding: 184px 0 32px;
    }

    .pdp-unified-reviews .reviews-carousel-container {
      padding: 18px 0 24px 0;
      overflow: hidden;
    }

    .pdp-unified-reviews .reviews-carousel {
      margin: 0;
      cursor: grab;
      user-select: none;
      -webkit-user-select: none;
      touch-action: pan-y;
      overflow: hidden;
      position: relative;
      max-width: 100vw;
    }

    .pdp-unified-reviews .reviews-carousel.grabbing {
      cursor: grabbing;
    }

    .pdp-unified-reviews .reviews-track {
      padding: 12px 0 32px;
      width: max-content;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      will-change: transform;
    }

    .pdp-unified-reviews .carousel-btn {
      display: none;
    }

    .pdp-unified-reviews .swipe-indicator {
      display: block;
      margin-top: 8px;
    }
  }

  .pdp-unified-reviews .desktop-dots,
  .pdp-unified-reviews .carousel-dots {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow: hidden;
    max-width: 126px;
    margin-left: auto;
    margin-right: auto;
    scroll-behavior: smooth;
  }

  @media (prefers-reduced-motion: reduce) {
    .pdp-unified-reviews .reviews-track,
    .pdp-unified-reviews .review-card,
    .pdp-unified-reviews .carousel-dot,
    .pdp-unified-reviews .carousel-btn {
      transition: none !important;
      animation: none !important;
    }
  }

  /* ---------- Unified media modal: Immersive Fullscreen Lightbox ----------
     Ground-up concept: no dialog box, no side panel. The customer photo/video
     floats huge on a neutral near-black stage. Bare white chevrons sit at the
     LEFT and RIGHT screen edges (no circles), the X sits at the TOP RIGHT of
     the screen, a slim glass info bar with the review floats at the bottom. */
  .upr-modal {
    position: fixed;
    inset: 0;
    /* above every sticky page control (options bar, chat, header) */
    z-index: 10050;
    display: none;
  }

  .upr-modal.is-open {
    display: flex;
    flex-direction: column;
  }

  .upr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .upr-modal__close {
    position: fixed;
    top: 20px;
    right: 24px;
    z-index: 5;
    background: none;
    border: 0;
    padding: 8px;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
  }

  .upr-modal__close:hover {
    color: #ffffff;
    transform: scale(1.1);
  }

  .upr-modal__close svg {
    width: 30px;
    height: 30px;
    display: block;
  }

  .upr-modal__counter {
    position: fixed;
    top: 26px;
    left: 28px;
    z-index: 5;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.06em;
  }

  .upr-modal__arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: none;
    border: 0;
    padding: 18px 10px;
    color: rgba(255, 255, 255, 0.75);
    cursor: pointer;
    transition: color 0.15s ease, transform 0.15s ease;
  }

  .upr-modal__arrow svg {
    width: 44px;
    height: 44px;
    display: block;
  }

  .upr-modal__arrow--prev { left: 10px; }
  .upr-modal__arrow--next { right: 10px; }

  .upr-modal__arrow--prev:hover {
    color: #ffffff;
    transform: translateY(-50%) translateX(-3px);
  }

  .upr-modal__arrow--next:hover {
    color: #ffffff;
    transform: translateY(-50%) translateX(3px);
  }

  /* Single-media review: no thumb strip, but the gallery-wide counter and
     arrows stay visible because navigation continues through every review. */
  .upr-modal.is-single .upr-modal__thumbs {
    display: none;
  }

  .upr-modal__media {
    position: relative;
    z-index: 1;
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 56px 90px 12px;
  }

  .upr-modal__image,
  .upr-modal__video,
  .upr-modal__iframe {
    max-width: 100%;
    max-height: 100%;
    border-radius: 10px;
    display: none;
    -webkit-user-drag: none;
    user-select: none;
    box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9);
  }

  .upr-modal__iframe {
    width: auto;
    height: 100%;
    aspect-ratio: var(--upr-modal-media-aspect, 16 / 9);
    border: 0;
    background: #000;
  }

  .upr-modal__image.is-visible,
  .upr-modal__video.is-visible,
  .upr-modal__iframe.is-visible {
    display: block;
  }

  .upr-modal__media .upr-watermark {
    /* right/bottom are set by JS to hug the visible media's corner */
    right: 24px;
    bottom: 24px;
    width: 96px;
    transition: right 0.15s ease, bottom 0.15s ease;
  }

  .upr-modal__thumbs {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    padding: 6px 90px;
    overflow-x: auto;
    justify-content: center;
    scrollbar-width: none;
  }

  .upr-modal__thumb {
    width: 52px;
    height: 52px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition: border-color 0.15s ease, opacity 0.15s ease;
    opacity: 0.55;
  }

  .upr-modal__thumb:hover {
    opacity: 0.9;
  }

  .upr-modal__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    -webkit-user-drag: none;
  }

  .upr-modal__thumb.is-active {
    border-color: #ffffff;
    opacity: 1;
  }

  .upr-modal__thumb-play {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .upr-modal__thumb-play svg {
    width: 9px;
    height: 9px;
    margin-left: 1px;
  }

  /* Floating glass info bar with the review itself */
  .upr-modal__info {
    position: relative;
    z-index: 2;
    width: min(780px, calc(100vw - 32px));
    margin: 0 auto 20px;
    background: rgba(22, 22, 22, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px 20px;
    color: #f5f5f5;
  }

  .upr-modal__info-top {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
  }

  .upr-modal__info-logo {
    height: 14px;
    width: auto;
    /* official black Loox wordmark inverted to white for the dark bar */
    filter: invert(1) brightness(1.6);
    opacity: 0.9;
  }

  .upr-modal__info-stars {
    height: 17px;
    width: auto;
  }

  .upr-modal__info-meta {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
    display: inline-flex;
    align-items: center;
    gap: 5px;
  }

  .upr-modal__info-meta svg {
    width: 13px;
    height: 13px;
    color: #00b67a;
  }

  .upr-modal__info-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    margin-left: auto;
  }

  .upr-modal__info-text {
    margin: 10px 0 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
  }

  .upr-modal__info.is-expanded .upr-modal__info-text {
    display: block;
    -webkit-line-clamp: unset;
    max-height: 32vh;
    overflow-y: auto;
    scrollbar-width: thin;
  }

  .upr-modal__info-more {
    margin-top: 6px;
    background: none;
    border: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
  }

  .upr-modal__info-more:hover {
    color: #ffffff;
  }

  .upr-modal__info-product {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
  }

  @media (max-width: 768px) {
    .upr-modal__close {
      top: 12px;
      right: 12px;
    }

    .upr-modal__close svg {
      width: 26px;
      height: 26px;
    }

    .upr-modal__counter {
      top: 18px;
      left: 16px;
      font-size: 0.8rem;
    }

    .upr-modal__arrow svg {
      width: 32px;
      height: 32px;
    }

    .upr-modal__arrow--prev { left: 0; }
    .upr-modal__arrow--next { right: 0; }

    .upr-modal__media {
      margin: 52px 44px 10px;
    }

    .upr-modal__media .upr-watermark {
      width: 68px;
    }

    .upr-modal__thumbs {
      padding: 6px 16px;
    }

    .upr-modal__info {
      margin-bottom: 12px;
      padding: 13px 15px;
    }

    .upr-modal__info-name {
      margin-left: 0;
      width: 100%;
      order: -1;
    }
  }
