/* DP SHOP 01.12.2026 — złote gwiazdki opinii w całym sklepie (karta produktu: średnia, lista opinii, okno «Dodaj opinię»;
   karty produktów w listach). Rysuje je themes/classic/assets/js/dp-stars-fx.js na wierzchu gwiazdek modułu productcomments
   (te zostają ukryte, ale działają dalej: ukryty input oceny w formularzu itd.). Ten sam wygląd co w koncie (dpreviewrequest). */
.grade-stars.dp-gsfx,
.grade-stars-static.dp-gsfx {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  flex: 0 0 auto !important;
}
.grade-stars.dp-gsfx > .star-content,
.grade-stars-static.dp-gsfx > .star-content { display: none !important; }

.dp-gsfx-row {
  --dp-s: 20px;
  position: relative;
  display: inline-block;
  flex: 0 0 auto;
  width: calc(var(--dp-s) * 5);
  height: var(--dp-s);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.6l2.9 6.2 6.8.8-5 4.6 1.4 6.7L12 17.5l-6.1 3.4 1.4-6.7-5-4.6 6.8-.8z' fill='%23dcd7e4'/%3E%3C/svg%3E") 0 0 / var(--dp-s) var(--dp-s) repeat-x;
}
.dp-gsfx-gold {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--dp-fill, 0%);
  max-width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe27a'/%3E%3Cstop offset='1' stop-color='%23f2a714'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M12 2.6l2.9 6.2 6.8.8-5 4.6 1.4 6.7L12 17.5l-6.1 3.4 1.4-6.7-5-4.6 6.8-.8z' fill='url(%23g)' stroke='%23e49a0c' stroke-width='.6' stroke-linejoin='round'/%3E%3C/svg%3E") 0 0 / var(--dp-s) var(--dp-s) repeat-x;
  filter: drop-shadow(0 0 2px rgba(255, 186, 40, .4));
  pointer-events: none;
  transition: width .2s ease-out;
}

/* formularz «Dodaj opinię»: większe, klikalne, złoto do kursora */
.dp-gsfx.is-input .dp-gsfx-row { cursor: pointer; touch-action: manipulation; }
.dp-gsfx.is-input.is-hovering .dp-gsfx-gold { transition: width .04s linear; }
.dp-gsfx-word { font-size: 13px; font-weight: 600; color: #6b6475; min-width: 96px; }
.dp-gsfx.just-rated .dp-gsfx-row { animation: dp-gsfx-pop .45s ease; }
@keyframes dp-gsfx-pop { 40% { transform: scale(1.07); } }

/* złoty pyłek */
.dp-gsfx-spark {
  position: absolute;
  z-index: 2;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe0 0, #ffd54a 45%, rgba(255, 200, 40, 0) 72%);
  pointer-events: none;
  animation: dp-gsfx-spark var(--t, .9s) ease-out forwards;
}
.dp-gsfx-spark.is-big { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
@keyframes dp-gsfx-spark {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; }
}

/* karta produktu: liczba obok gwiazdek bez zmian, gwiazdki nie rozpychają wiersza */
.dp-rating .grade-stars.dp-gsfx,
.dp-rating .grade-stars-static.dp-gsfx { height: 28px !important; }
/* karty produktów w listach: motyw stawiał gwiazdki pod zdjęciem i zdjęcie je zasłaniało (niewidoczne) →
   biała pigułka w lewym dolnym rogu zdjęcia, tylko gdy produkt ma opinie (wtyczka narysowała gwiazdki) */
.product-miniature .product-list-reviews {
  z-index: 3;
  width: auto !important;
  left: 10px !important;
  top: -34px !important;
  justify-content: flex-start;
  align-items: center;
  gap: 4px;
  padding: 3px 9px 3px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94) !important;
  box-shadow: 0 2px 8px rgba(40, 20, 60, .14);
}
.product-miniature .product-list-reviews:not(:has(.dp-gsfx)) { display: none !important; }
.product-miniature .product-list-reviews .comments-nb { margin-left: 2px; font-size: 12px; font-weight: 600; color: #6b6475; }

@media (prefers-reduced-motion: reduce) {
  .dp-gsfx-spark { display: none; }
  .dp-gsfx-gold { transition: none; }
  .dp-gsfx.just-rated .dp-gsfx-row { animation: none; }
}
