/**
 * GPBox Review items
 */
.review-card {
  border-radius: 10px;
  padding: 1.5rem;
  border: var(--border);
  margin-bottom: 1rem;
}

.review-card .reviewer-verified {
  line-height: normal;
}

.reviewer-verified .verified-badge {
  height: 28px;
  padding: 0 0.5rem 0 0.25rem;
}

.reviewer-verified .verified-badge .verified-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--medium-dark-green-clr);
  line-height: 20px;
}

.review-thumbnail > img {
  border-radius: 4px;
  border: var(--border);
  width: 50px;
  height: 50px;
  max-width: 50px;
  min-width: 50px;
  max-height: 50px;
  min-height: 50px;
  object-fit: cover;
}

/* Review photo modal */
.review-photo__item .modal-container {
  max-width: min(1000px, 95%);
  max-height: min(75vh, 800px);
  padding: 0 !important;
  align-items: stretch;
  overflow: hidden;
}
.review-photo-modal .left-column {
  width: 62%;
  overflow: hidden;
}
.review-photo-modal .right-column {
  width: 38%;
}

.review-photo__item .modal-container .review-photo-modal__thumbnail {
  position: relative;
  padding: 100% 0 0 0;
  overflow: hidden;
}

.review-photo__item .modal-container .review-photo-modal__thumbnail img {
  border-top-left-radius: 25px;
  border-bottom-left-radius: 25px;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  object-fit: cover;
}

.review-photo__item .review-card {
  border: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.review-photo-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.review-photo__thumbnail {
  width: 120px;
  height: 120px;
  overflow: hidden;
  z-index: 0; /*Safari fix*/
  transform: translateZ(0); /*Safari fix*/
  -webkit-transform: translateZ(0); /*Safari fix*/
  mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); /*Safari fix*/
  -webkit-mask-image: -webkit-radial-gradient(circle, white 100%, black 100%); /*Safari fix*/
  border-radius: 8px;
  border: var(--border);
  position: relative;
  cursor: pointer;
}
.review-photo__thumbnail img {
  height: 100%;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 295ms var(--bezier-nobounce);
}

.review-photo__thumbnail:hover img {
  transform: scale(1.15);
}

/* Photos from reviews */
.product-reviews-photos {
  overflow: hidden;
}
.product-reviews-photos__wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}
.product-reviews-photos .review-photo__thumbnail {
  width: 160px;
  height: 160px;
}

.product-reviews-photos .flex-direction-nav {
  top: 50%;
}

@media screen and (max-width: 37.5rem) {
  /* Review */
  .review-card {
    padding: 1.25rem;
  }
  .review-photo-modal .left-column {
    width: 100%;
  }
  .review-photo-modal .right-column {
    display: none;
  }
  .review-photo__item .modal-container .review-photo-modal__thumbnail img {
    border-radius: 25px;
  }
}
