/**
 * QSuli Global Reviews
 * Shortcode opinii z karuzelą i lightboxem
 */
.qsuli-reviews-wrapper {
  margin-top: 30px;
  background: #fff;
  padding: 25px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
}

.qsuli-top-gallery-wrapper {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.qsuli-gallery-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 15px;
  color: #222;
  text-transform: uppercase;
}

.qsuli-carousel-container {
  position: relative;
  padding: 0 40px;
}

.qsuli-gallery-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 5px 0;
  width: 100%;
  scrollbar-width: none;
}

.qsuli-gallery-scroll::-webkit-scrollbar {
  display: none;
}

.qsuli-gallery-item {
  flex-shrink: 0;
  cursor: pointer;
}

.qsuli-gallery-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #eee;
  transition: transform 0.2s;
  display: block;
}

.qsuli-gallery-item img:hover {
  transform: scale(1.03);
  border-color: #999;
}

.qsuli-carousel-btn {
  background: #fff !important;
  border: 1px solid #ddd !important;
  color: #333 !important;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  z-index: 10;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  line-height: 1;
  padding-bottom: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.qsuli-carousel-btn:hover {
  background: #333 !important;
  color: #fff !important;
}

.qsuli-carousel-btn.prev-btn {
  left: 0;
}

.qsuli-carousel-btn.next-btn {
  right: 0;
}

@media (max-width: 600px) {
  .qsuli-carousel-btn {
    display: none;
  }
  .qsuli-carousel-container {
    padding: 0;
  }
}

.qsuli-review-row {
  border-bottom: 1px solid #f0f0f0;
  padding: 16px 0;
  gap: 20px;
}

.qsuli-review-row:last-child {
  border-bottom: none;
}

.qsuli-review-meta-compact {
  flex: 0 0 140px;
  text-align: left;
}

.qsuli-review-author-line {
  font-size: 14px;
  margin-bottom: 2px;
  line-height: 1.3;
}

.qsuli-review-country-badge {
  display: inline-block;
  background: #f4f4f4;
  padding: 1px 4px;
  border-radius: 3px;
  font-size: 9px;
  color: #666;
  font-weight: 600;
  margin-left: 4px;
  vertical-align: middle;
}

.qsuli-review-date {
  color: #999;
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}

.qsuli-review-content-area {
  flex: 1;
  min-width: 0;
}

.qsuli-review-product {
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.qsuli-review-product-link {
  color: #666;
  text-decoration: none;
}

.qsuli-review-product-link:hover {
  text-decoration: underline;
  color: #333;
}

.qsuli-review-stars {
  font-size: 16px;
  margin: 0 0 6px 0;
  color: #ffb800;
  letter-spacing: 2px;
  line-height: 1.2;
}

.qsuli-review-text {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
}

.qsuli-review-inline-images {
  margin-top: 15px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.qsuli-inline-img-wrap {
  cursor: pointer;
}

.qsuli-inline-img-wrap img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #ddd;
  transition: 0.2s;
}

.qsuli-inline-img-wrap img:hover {
  opacity: 0.8;
}

.qsuli-reviews-wrapper .qsuli-load-more-wrapper {
  text-align: center;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f0f0f0;
}

.qsuli-reviews-wrapper .qsuli-load-more-btn {
  background: #fff;
  border: 1px solid #333;
  color: #333;
  padding: 10px 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 700;
  transition: 0.2s;
}

.qsuli-reviews-wrapper .qsuli-load-more-btn:hover {
  background: #333;
  color: #fff;
}

.qsuli-lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2147483647;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.qsuli-lightbox-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.qsuli-lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
}

#qsuli-lightbox-caption {
  margin-top: 15px;
  color: #fff;
  font-size: 14px;
  pointer-events: auto;
}

.qsuli-lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  z-index: 100;
  width: 60px;
  height: 60px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qsuli-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 600px) {
  .qsuli-review-row {
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
  }

  .qsuli-review-meta-compact {
    flex: 0 0 auto;
  }

  .qsuli-review-date {
    margin-top: 0;
  }

  .qsuli-review-stars {
    margin-top: 2px;
    margin-bottom: 6px;
  }
}
