/* Google reviews: the cards, the score box (or the ask in its place), the Home band and the cart's strip
   (inc/google-reviews/parts.php). Loaded only on a page that prints the band or the strip. Nextech's own
   greys and dark buttons; only Google's G and the stars carry colour. */
.nx-gr-band, .nx-gr-strip { --nx-gr-ink: #111; --nx-gr-text: #444; --nx-gr-muted: #5c6573; --nx-gr-line: #e6e8ec; --nx-gr-soft: #f7f8fa; --nx-gr-star: #f3a63b; --nx-gr-star-off: #d5d8dc; }
.nx-gr-g { display: inline-block; flex: none; vertical-align: middle; }

/* The stars: five ★ in grey with the gold row over them, cut to the rating. */
.nx-gr-stars { position: relative; display: inline-block; flex: none; color: var(--nx-gr-star-off); font-size: 16px; line-height: 1; letter-spacing: 2px; white-space: nowrap; vertical-align: middle; }
.nx-gr-stars__on { position: absolute; inset: 0 auto 0 0; width: var(--nx-gr-fill, 100%); overflow: hidden; color: var(--nx-gr-star); }

/* The card. */
.nx-gr-list { display: contents; margin: 0; padding: 0; list-style: none; }
.nx-gr-list > li { margin: 0; min-width: 0; }
.nx-gr-card { display: flex; flex-direction: column; gap: 12px; height: 100%; margin: 0; padding: 20px; border: 1px solid var(--nx-gr-line); border-radius: 8px; background: #fff; color: var(--nx-gr-text); }
.nx-gr-card__who { position: relative; display: flex; align-items: center; gap: 12px; padding-right: 26px; line-height: 1.3; }
.nx-gr-card__photo { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; overflow: hidden; border-radius: 50%; background: #e8edf8; color: #1f3a7a; font-size: 18px; font-weight: 700; }
.nx-gr-list > li:nth-child(3n+2) .nx-gr-card__photo { background: #e6f4ea; color: #19572e; }
.nx-gr-list > li:nth-child(3n) .nx-gr-card__photo { background: #fdf1dc; color: #6b4300; }
.nx-gr-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.nx-gr-card__id { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
.nx-gr-card__id b { display: block; color: var(--nx-gr-ink); font-size: 15px; font-weight: 600; }
.nx-gr-card__id small { display: block; color: var(--nx-gr-muted); font-size: 13px; }
.nx-gr-card__g { position: absolute; top: 0; right: 0; }
.nx-gr-card blockquote { margin: 0; padding: 0; border: 0; font-size: 15px; font-style: normal; line-height: 1.6; color: var(--nx-gr-text); }
.nx-gr-card blockquote::before, .nx-gr-card blockquote::after { content: none; }
.nx-gr-card blockquote p { margin: 0; font-size: inherit; line-height: inherit; } /* Shoptimizer sets blockquote p at 20px. */
.nx-gr-card :lang(si), .nx-gr-card :lang(ta) { line-height: 1.75; }
.nx-gr-card__foot { margin: auto 0 0; }
.nx-gr-card__foot a { font-size: 14px; font-weight: 600; }

/* The score box, or the ask in its place. */
.nx-gr-score { container-type: inline-size; padding: 24px; border-radius: 8px; background: #fff; border: 1px solid var(--nx-gr-line); color: var(--nx-gr-text); }
.nx-gr-score__in { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; }
.nx-gr-score p { margin: 0; }
.nx-gr-score__head { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--nx-gr-ink); font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.nx-gr-score__name { margin-top: 2px !important; color: var(--nx-gr-muted); font-size: 14px; }
.nx-gr-score__big { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.nx-gr-score__num { color: var(--nx-gr-ink); font-size: 48px; font-weight: 700; line-height: 1; letter-spacing: -.02em; }
.nx-gr-score__big .nx-gr-stars { font-size: 22px; }
.nx-gr-score__based { font-size: 14px; color: var(--nx-gr-muted); }
.nx-gr-score__based a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nx-gr-score__ask { font-size: 15px; line-height: 1.5; }
.nx-gr-score .nx-gr-score__write { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: auto; padding: 10px 18px; border-radius: 4px; background: #161d27; color: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.nx-gr-score .nx-gr-score__write:hover { background: #2b3542; color: #fff; }
.nx-gr-score__write .nx-gr-g { padding: 2px; border-radius: 50%; background: #fff; box-sizing: content-box; width: 16px; height: 16px; }
/* A box a whole row wide sets its parts in one line. */
@container (min-width: 560px) {
	.nx-gr-score__in { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
	.nx-gr-score .nx-gr-score__write { margin: 0 0 0 auto; }
}

/* The Home band. */
.nx-gr-band { margin: 48px 0; color: var(--nx-gr-text); }
.nx-gr-band__head { display: grid; justify-items: center; gap: 6px; margin-bottom: 24px; text-align: center; }
.nx-gr-band__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: var(--nx-gr-muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.nx-gr-band .nx-gr-band__title { margin: 0; color: var(--nx-gr-ink); }
.nx-gr-band__all { font-size: 15px; font-weight: 600; }
.nx-gr-band__note { margin: 14px 0 0; color: var(--nx-gr-muted); font-size: 14px; }
.nx-gr-band.is-strip .nx-gr-score { background: var(--nx-gr-soft); }
.nx-gr-band.is-strip .nx-gr-score__head { font-size: 22px; }
.nx-gr-band.is-strip .nx-gr-band__note { text-align: right; }

.nx-gr-box { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 16px; border-radius: 10px; background: var(--nx-gr-soft); border: 1px solid var(--nx-gr-line); }
.nx-gr-rail { display: contents; }
.nx-gr-band.is-one .nx-gr-list > li { grid-column: span 2; }
.nx-gr-band.is-one blockquote { font-size: 18px; }
/* Every row full at every count: three across, the box takes the top row beside 3 or 6 reviews and two rows
   beside 4; two across (tablets), a row of its own beside an even count. */
@media (min-width: 1025px) {
	.nx-gr-box:is(.has-3, .has-6) .nx-gr-score { grid-column: 1 / -1; }
	.nx-gr-box.has-4 .nx-gr-score { grid-row: span 2; }
}
@media (min-width: 768px) and (max-width: 1024px) {
	.nx-gr-box { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nx-gr-band.is-one .nx-gr-list > li { grid-column: auto; }
	.nx-gr-box:is(.has-2, .has-4, .has-6) .nx-gr-score { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	.nx-gr-band { margin: 32px 0; }
	.nx-gr-box { display: block; padding: 0; border: 0; background: none; }
	.nx-gr-box .nx-gr-score { margin-bottom: 14px; background: var(--nx-gr-soft); }
	.nx-gr-score__num { font-size: 40px; }
	.nx-gr-band.is-strip .nx-gr-band__note { text-align: left; }
}

/* Phones (and the cart's strip under 960 px): a swipe row, one card and a peek of the next. Positioned, so the
   cards' screen-reader text is clipped by the row and cannot widen the page. */
@media (max-width: 767px) {
	.nx-gr-band .nx-gr-rail { position: relative; display: block; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 -1em; padding: 2px 1em 10px; scroll-padding-inline: 1em; }
	.nx-gr-band .nx-gr-list { display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; }
	.nx-gr-band.is-one .nx-gr-list { grid-auto-columns: 100%; }
	.nx-gr-band .nx-gr-list > li { grid-column: auto; scroll-snap-align: start; }
}
.nx-gr-rail:focus-visible { outline: 2px solid #1e68c4; outline-offset: -2px; }

/* The cart's strip, after the items. */
.nx-gr-strip { display: grid; gap: 14px; min-width: 0; margin: 24px 0; padding: 18px; border: 1px solid var(--nx-gr-line); border-radius: 8px; background: var(--nx-gr-soft); color: var(--nx-gr-text); }
.nx-gr-strip__h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 20px; }
.nx-gr-strip .nx-gr-strip__t { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; color: var(--nx-gr-ink); font-size: 20px; font-weight: 600; line-height: 1.2; text-transform: none; letter-spacing: 0; }
.nx-gr-strip__sc { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; margin: 0; }
.nx-gr-strip__sc b { color: var(--nx-gr-ink); font-size: 26px; line-height: 1; }
.nx-gr-strip__sc small { flex-basis: 100%; color: var(--nx-gr-muted); font-size: 13px; }
.nx-gr-strip__sc small a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nx-gr-strip .nx-gr-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.nx-gr-strip.has-1 .nx-gr-list { grid-template-columns: minmax(0, 1fr); }
.nx-gr-strip.has-2 .nx-gr-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nx-gr-strip .nx-gr-rail { display: contents; }
.nx-gr-strip .nx-gr-card { gap: 10px; padding: 14px; }
.nx-gr-strip .nx-gr-card__pg { display: block; } /* Narrow cards: "Posted on Google" on its own line, not split after the dot. */
.nx-gr-strip .nx-gr-card__dot { display: none; }
.nx-gr-strip .nx-gr-card__photo { width: 36px; height: 36px; font-size: 16px; }
.nx-gr-strip .nx-gr-card blockquote p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 5; -webkit-box-orient: vertical; font-size: 14px; line-height: 1.55; }
.nx-gr-strip__f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
.nx-gr-strip .nx-gr-band__note { margin: 0; font-size: 13px; color: var(--nx-gr-muted); }
.nx-gr-strip .nx-gr-band__all { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
@media (max-width: 959px) {
	.nx-gr-strip { padding: 14px; }
	.nx-gr-strip .nx-gr-rail { position: relative; display: block; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin: 0 -14px; padding: 2px 14px 8px; scroll-padding-inline: 14px; }
	.nx-gr-strip .nx-gr-list, .nx-gr-strip.has-2 .nx-gr-list { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(84%, 320px); }
	.nx-gr-strip.has-1 .nx-gr-list { grid-auto-columns: 100%; }
	.nx-gr-strip .nx-gr-list > li { scroll-snap-align: start; }
}
