/*
 * Opinie z aplikacji na stronie sprzętu (inc/trekkit-gear-reviews.php,
 * assets/js/gear-reviews.js). Nagłówek i podtytuł z .gv-sec (_places.css);
 * tu karty opinii, średnia, status i pasek „Napisz opinię w aplikacji".
 * Bez zaokrągleń (motyw jest kanciasty) - okrągłe są tylko awatary.
 */
.gv-reviews [hidden] {
  display: none !important;
}

.gv-reviews__avg {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.gv-reviews__avg .gv-reviews__stars {
  font-size: 18px;
}

.gv-reviews__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.gv-reviews__list:empty {
  display: none;
}

.gv-reviews__item {
  margin: 0;
  padding: 20px 22px;
  background: #fff;
  border: 1px solid var(--gray-light);
  scroll-margin-top: calc(var(--nav-h, 64px) + 16px);
}

.gv-reviews__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gv-reviews__av {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
}

.gv-reviews__av img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}

.gv-reviews__who {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gv-reviews__author {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.gv-reviews__author:hover,
a.gv-reviews__author:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.gv-reviews__date {
  font-size: 12.5px;
  color: var(--gray-dark);
  font-variant-numeric: tabular-nums;
}

/* Gwiazdki: szara warstwa + terakotowa przycięta do oceny (działa też dla 4,5). */
.gv-reviews__stars {
  position: relative;
  flex: 0 0 auto;
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  letter-spacing: 1px;
  white-space: nowrap;
}

.gv-reviews__stars-base {
  color: var(--gray-light);
}

.gv-reviews__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: var(--accent);
}

.gv-reviews__trails {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--gray-dark);
}

.gv-reviews__title {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text);
}

.gv-reviews__text {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
}

.gv-reviews__title + .gv-reviews__text {
  margin-top: 4px;
}

.gv-reviews__text p {
  margin: 0;
}

.gv-reviews__text p + p {
  margin-top: 10px;
}

.gv-reviews__photos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

a.gv-reviews__photo {
  display: block;
  width: 88px;
  height: 88px;
  overflow: hidden;
  background: var(--gray-light);
  border: 1px solid var(--gray-light);
  text-decoration: none;
}

a.gv-reviews__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  transition: transform 0.2s ease;
}

a.gv-reviews__photo:hover img {
  transform: scale(1.04);
}

a.gv-reviews__photo:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.gv-reviews__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--gray-dark);
}

a.gv-reviews__video {
  font-weight: 600;
  color: var(--accent-dark);
  text-decoration: none;
}

a.gv-reviews__video:hover {
  color: var(--primary);
}

.gv-reviews__status {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--gray-dark);
}

.gv-reviews__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--gray-light);
}

.gv-reviews__cta-text strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
  color: var(--text);
}

.gv-reviews__cta-text p {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--gray-dark);
  max-width: 60ch;
}

.gv-reviews__cta .btn {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .gv-reviews__item {
    padding: 16px;
  }

  .gv-reviews__head {
    flex-wrap: wrap;
  }

  .gv-reviews__cta {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
  }

  .gv-reviews__cta .btn {
    text-align: center;
    justify-content: center;
  }

  a.gv-reviews__photo {
    width: 72px;
    height: 72px;
  }
}
