.real-reviews-shortcode-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.real-reviews-shortcode-wrapper .real-reviews-sidebar h3 {
  border-bottom: 1px solid #ccc;
  padding-bottom: 15px;
  font-weight: 700;
  font-size: 18px;
}

.real-reviews-shortcode-wrapper .real-reviews-sidebar h4 {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.real-reviews-shortcode-wrapper .real-reviews-sidebar h4 span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  flex-shrink: 0;
}

.real-reviews-shortcode-wrapper .real-reviews-sidebar h4 span::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: transform 0.2s ease;
}

.real-reviews-shortcode-wrapper .real-reviews-sidebar h4.closed span::after {
  transform: rotate(45deg);
}

.real-reviews-sidebar ul.real-reviews-filter-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.real-reviews-sidebar ul.real-reviews-filter-categories li {
  display: flex;
  grid-gap: 8px;
  justify-content: space-between;
  cursor: pointer;
  align-items: center;
  line-height: 30px;
  margin-bottom: 10px;
}

.real-reviews-sidebar ul.real-reviews-filter-categories li input {
  cursor: pointer;
  width: 25px;
  height: 25px;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #444;
  border-radius: 5px;
}

.real-reviews-sidebar ul.real-reviews-filter-categories li input:checked {
  background-color: #2b7153;
  border-color: #2b7153;
  position: relative;
}

.real-reviews-sidebar
  ul.real-reviews-filter-categories
  li
  input:checked::after {
  content: "\2713";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.real-reviews-sidebar ul.real-reviews-filter-categories li label {
  cursor: pointer;
  flex: 1;
  display: flex;
  justify-content: space-between;
  font-weight: 500;
  margin-bottom: 0;
}

.real-reviews-list {
  position: relative;
}

.real-reviews-list-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.real-reviews-list-item .real-reviews-list-item-content {
  position: relative;
  cursor: pointer;
}
.real-reviews-list-item[data-rr-gallery="[]"] .real-reviews-list-item-content {
  cursor: initial;
}
.real-reviews-list-item img.real-review-thumbnail {
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
  border-radius: 5px;
}

.real-reviews-list-item .placeholder-thumbnail {
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ccc;
  border-radius: 5px;
}
.real-reviews-list-item .placeholder-thumbnail img {
  max-width: 90%;
}

@media (max-width: 1680px) and (min-width: 1200px) {
    .real-reviews-list-item img.real-review-thumbnail {
        height: clamp(450px, 41vw, 629px) !important;
    }
}

.real-reviews-list-item .rr-list-item-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 2;
}

.real-reviews-list-item .rr-list-item-play-icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  transform: translate(-40%, -50%);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff;
}

.rr-carousel-slide .real-reviews-list-item img.real-review-thumbnail,
.rr-carousel-slide .real-reviews-list-item .placeholder-thumbnail {
  height: 486px;
}

.real-reviews-list-item h3 {
  display: flex;
  opacity: 0;
  background: #2b7153;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  text-align: center;
  color: #fff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
  font-size: 16px;
  min-height: 71px;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.real-reviews-list-item .real-reviews-list-item-content:hover h3 {
  opacity: 1;
}

.real-reviews-list-item
  .real-reviews-list-item-content
  .real-reviews-list-item-excerpt {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  margin-bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  padding: 10px;
  color: white;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  font-size: 14px;
  padding-bottom: 20px;
  height: 95px;
  overflow: hidden;
  transition: height 0.5s ease;
}

.rr-carousel-slide
  .real-reviews-list-item
  .real-reviews-list-item-content
  .real-reviews-list-item-excerpt {
  height: 70px;
}

.real-reviews-list-item .real-reviews-list-item-excerpt .rr-excerpt-full {
  margin-top: 10px;
  display: none;
}

.real-reviews-list-item-content:hover .real-reviews-list-item-excerpt {
  height: 380px;
  overflow-y: auto;
}

.rr-carousel-slide
  .real-reviews-list-item
  .real-reviews-list-item-content:hover
  .real-reviews-list-item-excerpt {
  height: 415px;
}

.real-reviews-list-item-content:hover
  .real-reviews-list-item-excerpt
  .rr-excerpt-full {
  display: block;
}

.real-reviews-list-item-content:hover
  .real-reviews-list-item-excerpt
  .rr-excerpt-short {
  display: none;
}

.real-reviews-list-item
  .real-reviews-list-item-content
  .real-reviews-list-item-bullets {
  display: block;
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
}

.real-reviews-list-item
  .real-reviews-list-item-content
  .real-reviews-list-item-bullets.no-excerpt {
  background: rgba(0, 0, 0, 0.5);
}

.real-reviews-list-item
  .real-reviews-list-item-content
  .real-reviews-list-item-bullets
  i {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}

.real-reviews-list-item a {
  background: #2b7153;
  color: white;
  padding: 12px 20px;
  border-radius: 5px;
  text-decoration: none !important;
  display: block;
  margin-top: 15px;
  text-align: center;
}

.real-reviews-list-item a:hover {
  opacity: 0.75;
}

.real-reviews-list #real-reviews-load-more {
  margin: 0 auto;
  margin-top: 32px;
  display: block;
  padding: 12px 20px;
  background: #2b7153;
  color: #fff;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  transition: opacity 0.3s ease;
  text-align: center;
}

.real-reviews-list #real-reviews-load-more:hover {
  opacity: 0.75;
}

.real-reviews-ajax-loader {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 20px;
}

.real-reviews-ajax-loader span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.real-reviews-ajax-loader.active {
  display: block;
  z-index: 1;
}

.real-reviews-ajax-loader span::after {
  content: "";
  display: inline-block;
  width: 36px;
  height: 36px;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: #2b7153;
  border-radius: 50%;
  animation: rr-spin 0.8s linear infinite;
}

@keyframes rr-spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Lightbox === */

.rr-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
}

.rr-lightbox.is-open {
  display: block;
}

/* Backdrop */
.rr-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}

/* Center everything */
.rr-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

/* Media wrapper */
.rr-lightbox-content {
  position: relative;
  max-width: 95vw;
  height: 90vh;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rr-lightbox-media {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Media itself */
.rr-lightbox-content img,
.rr-lightbox-content video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
}

/* Close button */
.rr-lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: transparent !important;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
  pointer-events: auto;
  outline: none !important;
}

.rr-lightbox-close:hover {
  color: #2b7153;
}

.rr-lightbox-excerpt {
  display: none;
}

/* Navigation arrows */
.rr-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  border: none;
  background: transparent !important;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
  pointer-events: auto;
  outline: none !important;
}

.rr-lightbox-nav:hover {
  color: #2b7153;
}

.rr-lightbox-nav.rr-prev {
  left: 24px;
}

.rr-lightbox-nav.rr-next {
  right: 24px;
}

/* Counter */
.rr-lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  pointer-events: auto;
  opacity: 0.85;
}

/* Share menu */

.rr-icon-share {
  width: 20px;
  height: 20px;
  fill: currentColor;
  display: block;
}

.rr-lightbox-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  pointer-events: auto;
  padding: 8px 16px;
}

.rr-share-menu {
  position: absolute;
  top: 90px;
  right: 24px;
  display: none;
  background: rgba(0, 0, 0, 0.75);
  padding: 10px;
  border-radius: 10px;
  z-index: 3;
}

.rr-share-menu.is-open {
  display: grid;
  gap: 8px;
}

.rr-share-menu a,
.rr-share-menu button {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
  text-decoration: none;
  font: inherit;
}

/* === RR Carousel === */

.rr-carousel {
  position: relative;
}

/* Viewport clips the track */
.rr-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

/* Track is a row we translate in JS */
.rr-carousel-track {
  display: flex;
  transition: transform 0.25s ease;
  will-change: transform;
}

/* Default: 2 slide per view */
.rr-carousel-slide {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 8px;
  box-sizing: border-box;
}

/* Nav buttons */
.rr-carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
  color: #fff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  outline: none !important;
}

.rr-carousel-prev {
  left: 8px;
}

.rr-carousel-next {
  right: 8px;
}

.rr-carousel-nav:hover {
  background: rgba(0, 0, 0, 0.75);
}

/* Disabled state */
.rr-carousel-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/*-------------------------------------------------------------------------*/
/*	Responsive
/*-------------------------------------------------------------------------*/

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
}

/* Min-width 1024px */
@media only screen and (min-width: 1024px) {
  .real-reviews-shortcode-wrapper {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }

  .real-reviews-shortcode-wrapper .real-reviews-sidebar {
    flex: 0 0 20%;
    max-width: 20%;
  }

  .real-reviews-list {
    flex: 0 0 80%;
    max-width: 80%;
  }

  .real-reviews-list-wrapper {
    grid-template-columns: repeat(3, 1fr);
  }

  .rr-carousel-slide {
    flex-basis: calc(100% / 3);
    max-width: calc(100% / 3);
  }
}

/* Extra large devices (large laptops and desktops, 1600px and up) */
@media only screen and (min-width: 1600px) {
  .real-reviews-list-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }

  .rr-carousel-slide {
    flex-basis: 25%;
    max-width: 25%;
  }
}

/* Large Phones And Tablet */
@media only screen and (max-width: 768px) {
  .rr-lightbox-close {
    top: 16px;
    right: 16px;
  }

  .rr-lightbox-nav {
    width: 25px;
    height: 25px;
    font-size: 22px;
  }

  .rr-lightbox-nav.rr-prev {
    left: 12px;
  }

  .rr-lightbox-nav.rr-next {
    right: 12px;
  }

  .rr-lightbox-counter {
    bottom: 16px;
    font-size: 13px;
  }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width: 480px) {
  .real-reviews-list-wrapper {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .rr-carousel-slide {
    flex-basis: 50%;
    max-width: 50%;
  }

  .rr-carousel-nav {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .real-reviews-list-item
    .real-reviews-list-item-content
    .real-reviews-list-item-excerpt {
    height: 70px;
  }

  .real-reviews-list-item.is-active
    .real-reviews-list-item-content
    .real-reviews-list-item-excerpt {
    height: 380px;
  }
  .real-reviews-list-item.is-active .real-reviews-list-item-content h3 {
    opacity: 1;
  }
  .real-reviews-list-item .real-reviews-list-item-excerpt .rr-excerpt-inner {
    transform: none !important;
  }
  .rr-lightbox-content {
    overflow-y: auto;
    flex-direction: column;
  }
  .rr-lightbox-media {
    max-height: 70vh;
    height: auto;
    width: 100%;
  }
  .rr-lightbox-media video {
    max-height: 100%;
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: cover;
  }
  .rr-lightbox-share {
    position: absolute;
    top: 20px;
    z-index: 1;
  }
  .rr-lightbox-excerpt {
    display: block;
    background: rgba(0, 0, 0, 0.55);
    padding: 12px 14px;
    border-radius: 10px;
    color: #fff;
  }

  .real-reviews-list-item img.real-review-thumbnail{
    height: 300px;
  }
}
