/* Opinie Google – sekcja „Co mówią o nas klienci” (moduł s24googlereviews)
   Wariant A: ocena w nagłówku, 3 opinie obok siebie.
   Wszystko pod klasą .s24gr, żeby nie mieszać się ze stylami motywu. */

.s24gr {
  --s24gr-accent: #8F6B30;
  --s24gr-ink: #1F2430;
  --s24gr-text: #3E3E3E;
  --s24gr-muted: #5E5E5E;
  --s24gr-line: #EFE3CC;
  --s24gr-star: #E2A93B;
  --s24gr-star-off: #E5DCCB;
  font-family: inherit;
  color: var(--s24gr-ink);
  background: #FFFFFF;
  padding: 32px 0;
  clear: both;
}
/* zaraz pod „Zobacz także” motyw daje już 30 px marginesu */
.featured-products + .s24gr { padding-top: 0; }
.s24gr *, .s24gr *::before, .s24gr *::after { box-sizing: border-box; }

.s24gr__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* --- nagłówek: tytuł + ocena + strzałki --- */
.s24gr__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.s24gr__heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s24gr__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #7A5A24; }
.s24gr__title { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 600; color: var(--s24gr-ink); text-transform: none; letter-spacing: 0; }

.s24gr__rating { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 8px; }
.s24gr__g { flex-shrink: 0; }
.s24gr__score { font-size: 26px; line-height: 1; font-weight: 700; color: var(--s24gr-ink); letter-spacing: -0.01em; }
.s24gr__stars { display: inline-flex; gap: 2px; line-height: 0; }
.s24gr__stars--sm { gap: 1px; flex-shrink: 0; }
.s24gr__star-on { fill: var(--s24gr-star); }
.s24gr__star-off { fill: var(--s24gr-star-off); }
.s24gr__star-half { clip-path: inset(0 50% 0 0); }
.s24gr__sep { width: 1px; height: 22px; background: var(--s24gr-line); }
.s24gr__based { font-size: 13px; line-height: 1.5; color: var(--s24gr-muted); }
.s24gr__all { color: #7A5A24; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.s24gr__all:hover, .s24gr__all:focus-visible { color: var(--s24gr-accent); }

.s24gr__nav { display: flex; align-items: center; gap: 10px; }
.s24gr__counter { font-size: 13px; color: var(--s24gr-muted); margin-right: 6px; min-width: 36px; text-align: right; }
.s24gr__arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--s24gr-ink);
  border: 1px solid var(--s24gr-ink);
  color: #FFFFFF;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.s24gr__arrow:hover { background: var(--s24gr-accent); border-color: var(--s24gr-accent); }
.s24gr__arrow:disabled { background: #FFFFFF; border-color: #E6D9BF; color: #B5AC9C; cursor: default; }
.s24gr__arrow:focus-visible, .s24gr__more:focus-visible, .s24gr__track:focus-visible, .s24gr__all:focus-visible {
  outline: 2px solid var(--s24gr-accent);
  outline-offset: 2px;
}
.s24gr--static .s24gr__nav { display: none; }

/* --- przewijany pas z kartami (3 na komputerze, 2 na tablecie, 1 na telefonie) --- */
.s24gr__track {
  --s24gr-per-view: 3;
  --s24gr-gap: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--s24gr-per-view) - 1) * var(--s24gr-gap)) / var(--s24gr-per-view));
  gap: var(--s24gr-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 2px 18px;
  margin: -4px -2px -18px;
}
.s24gr__track::-webkit-scrollbar { display: none; }

.s24gr__card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #FFFFFF;
  border: 1px solid var(--s24gr-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 6px 20px rgba(31, 36, 48, 0.05);
  min-width: 0;
}
.s24gr__quote { fill: #E8D9BC; flex-shrink: 0; }
.s24gr__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--s24gr-text);
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.s24gr__text.is-expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
.s24gr__more {
  align-self: flex-start;
  margin-top: -6px;
  padding: 4px 0;
  min-height: 32px;
  background: none;
  border: 0;
  color: #7A5A24;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.s24gr__more[hidden] { display: none; }

.s24gr__author {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #F1E8D6;
}
.s24gr__avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  flex-shrink: 0;
  object-fit: cover;
  background: #F3EBDC;
}
.s24gr__avatar--initial {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7A5A24;
  font-size: 16px;
  font-weight: 600;
}
.s24gr__who { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; min-width: 0; }
.s24gr__name { font-size: 14px; font-weight: 600; color: var(--s24gr-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s24gr__when { font-size: 12px; color: #6B6B6B; }

.s24gr__note { margin: 0; font-size: 12px; line-height: 1.6; color: #6B6B6B; }

.s24gr__sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* --- tablet --- */
@media (max-width: 991px) {
  .s24gr { padding: 28px 0; }
  .s24gr__track { --s24gr-per-view: 2; }
}
/* --- telefon --- */
@media (max-width: 767px) {
  .s24gr { padding: 24px 0; }
  .s24gr__inner { gap: 20px; }
  .s24gr__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .s24gr__title { font-size: 24px; }
  .s24gr__rating { gap: 6px 10px; }
  .s24gr__sep { display: none; }
  .s24gr__based { flex-basis: 100%; }
  .s24gr__counter { text-align: left; min-width: 0; }
  .s24gr__track { --s24gr-per-view: 1.12; --s24gr-gap: 14px; }
  .s24gr__card { padding: 22px; }
}

/* --- Meblefox: zieleń sklepu (#7aaf3e / #415F25), Roboto z motywu, mniejsze zaokrąglenia --- */
.s24gr--meblefox {
  --s24gr-ink: #212529;
  --s24gr-text: #3A3F44;
  --s24gr-muted: #5C636A;
  --s24gr-line: #DCE8CC;
}
.s24gr--meblefox .s24gr__inner { padding: 0; } /* motyw ma już .container z marginesem */
.s24gr--meblefox .s24gr__eyebrow,
.s24gr--meblefox .s24gr__all,
.s24gr--meblefox .s24gr__more { color: #415F25; }
.s24gr--meblefox .s24gr__all:hover { color: #7AAF3E; }
.s24gr--meblefox .s24gr__title { font-weight: 700; }
.s24gr--meblefox .s24gr__arrow { background: #7AAF3E; border-color: #7AAF3E; }
.s24gr--meblefox .s24gr__arrow:hover { background: #415F25; border-color: #415F25; }
.s24gr--meblefox .s24gr__arrow:disabled { background: #FFFFFF; border-color: #DCE8CC; color: #A9B5A0; }
.s24gr--meblefox .s24gr__card { border-radius: 8px; box-shadow: 0 4px 14px rgba(33, 37, 41, 0.06); }
.s24gr--meblefox .s24gr__quote { fill: #CFE2B8; }
.s24gr--meblefox .s24gr__author { border-top-color: #E8F0DD; }
.s24gr--meblefox .s24gr__avatar { background: #EEF5E5; }
.s24gr--meblefox .s24gr__avatar--initial { color: #415F25; }

@media (prefers-reduced-motion: reduce) {
  .s24gr__track { scroll-behavior: auto; }
}
