/* Gardj CSV Reviews — front-end block */

.gcr, .gcr-lb {
	--gcr-star: #f5b731;
	--gcr-star-empty: #dcdcdc;
	--gcr-text: #767676;
	--gcr-strong: inherit;
	--gcr-muted: #8a8a8a;
	--gcr-line: #e6e6e6;
	--gcr-soft: #f5f5f5;
	--gcr-accent: #efefef;
	--gcr-accent-text: #111;
	--gcr-radius: 6px;
	--gcr-thumb: 92px;
	--gcr-star-svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.6l3.1 6.6 7.2.9-5.3 5 1.4 7.2L12 17.8l-6.4 3.5L7 14.1l-5.3-5 7.2-.9z'/%3E%3C/svg%3E");
}
.gcr {
	margin: 0 0 40px;
	color: var(--gcr-text);
	font-size: 15px;
	line-height: 1.6;
}
.gcr *, .gcr *::before, .gcr *::after { box-sizing: border-box; }
.gcr [hidden] { display: none !important; }

.gcr .gcr-heading { margin: 0 0 24px; }

/* Stars: one element, masked with a repeating star shape */
.gcr-stars {
	--gcr-size: 20px;
	display: inline-block;
	vertical-align: middle;
	width: calc(var(--gcr-size) * 5);
	height: var(--gcr-size);
	background: linear-gradient(90deg, var(--gcr-star) var(--gcr-fill, 100%), var(--gcr-star-empty) var(--gcr-fill, 100%));
	-webkit-mask: var(--gcr-star-svg) left center / var(--gcr-size) var(--gcr-size) repeat-x;
	mask: var(--gcr-star-svg) left center / var(--gcr-size) var(--gcr-size) repeat-x;
}
.gcr-stars--lg { --gcr-size: 26px; }
.gcr-star-ico {
	display: inline-block; width: 16px; height: 16px; vertical-align: -2px;
	background: var(--gcr-star);
	-webkit-mask: var(--gcr-star-svg) center / contain no-repeat;
	mask: var(--gcr-star-svg) center / contain no-repeat;
}

/* Summary box */
.gcr-summary {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px 40px;
	align-items: center;
	background: var(--gcr-soft);
	padding: 28px 32px;
	border-radius: 2px;
	margin-bottom: 28px;
}
.gcr-summary-main { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.gcr-avg { font-size: 40px; font-weight: 700; line-height: 1.1; color: var(--gcr-strong); letter-spacing: -.5px; }
.gcr-based { font-size: 16px; color: #333; }
.gcr-btn {
	appearance: none;
	margin-top: 10px;
	padding: 10px 22px;
	font: inherit; font-weight: 600; font-size: 16px; line-height: 1.4;
	color: var(--gcr-accent-text);
	background: var(--gcr-accent);
	border: 1px solid #bdbdbd;
	border-radius: 4px;
	cursor: pointer;
	transition: filter .15s, box-shadow .15s;
	text-transform: none;
	min-height: 0;
}
.gcr-btn:hover { filter: brightness(.95); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.gcr-btn:focus-visible { outline: 2px solid var(--gcr-star); outline-offset: 2px; }

.gcr-hist { display: flex; flex-direction: column; gap: 6px; max-width: 420px; width: 100%; }
.gcr-hist-row {
	appearance: none; background: none; border: 0; padding: 2px 4px; margin: 0;
	display: grid; grid-template-columns: 44px 1fr 48px; align-items: center; gap: 8px;
	font: inherit; font-size: 15px; color: #444; cursor: pointer; border-radius: 4px; text-align: left;
	min-height: 0; line-height: 1.4; text-transform: none; letter-spacing: normal;
}
.gcr-hist-row:hover:not(:disabled), .gcr-hist-row.is-active { background: rgba(0,0,0,.05); }
.gcr-hist-row:disabled { cursor: default; opacity: .9; }
.gcr-hist-label { white-space: nowrap; text-align: right; }
.gcr-hist-bar {
	height: 24px; background: #fff; border: 1px solid #cfcfcf; border-radius: 3px; overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
.gcr-hist-bar > span {
	display: block; height: 100%;
	background: linear-gradient(180deg, color-mix(in srgb, var(--gcr-star) 80%, #fff), var(--gcr-star));
	transition: width .4s ease;
}
.gcr-hist-pct { color: #666; }

/* Review form */
.gcr-form { background: var(--gcr-soft); padding: 24px 32px; margin: -12px 0 28px; border-radius: 2px; }
.gcr-form .comment-reply-title { display: block; font-size: 18px; font-weight: 600; margin-bottom: 12px; color: var(--gcr-strong); }

/* Photo strip */
.gcr-gallery { margin-bottom: 28px; }
.gcr-gallery-title { font-size: 17px; margin-bottom: 10px; color: #666; }
.gcr-gallery-wrap { position: relative; }
.gcr-gallery-track {
	display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; padding-bottom: 2px;
}
.gcr-gallery-track::-webkit-scrollbar { display: none; }
.gcr-gallery-item { flex: 0 0 auto; width: 184px; height: 184px; scroll-snap-align: start; }
.gcr-gallery-nav {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 38px; height: 38px; border-radius: 50%; border: 0; padding: 0; min-height: 0;
	background: rgba(255,255,255,.92); box-shadow: 0 2px 8px rgba(0,0,0,.18); cursor: pointer;
	opacity: 0; pointer-events: none; transition: opacity .2s;
}
.gcr-gallery-nav::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px;
	border: solid #333; border-width: 0 2px 2px 0; transform: translateX(-2px) rotate(-45deg);
}
.gcr-prev { left: -12px; }
.gcr-prev::before { transform: translateX(2px) rotate(135deg); }
.gcr-next { right: -12px; }
.gcr-gallery-wrap.can-prev .gcr-prev, .gcr-gallery-wrap.can-next .gcr-next { opacity: 1; pointer-events: auto; }

/* Thumbnails (shared) */
.gcr-thumb {
	position: relative; display: block; padding: 0; margin: 0; border: 1px solid var(--gcr-line); border-radius: var(--gcr-radius);
	overflow: hidden; cursor: zoom-in; background: #eee; min-height: 0; line-height: 0;
}
.gcr-thumb img, .gcr-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; pointer-events: none; }
.gcr-thumb:hover img, .gcr-thumb:hover video { transform: scale(1.04); }
.gcr-thumb:focus-visible { outline: 2px solid var(--gcr-star); outline-offset: 2px; }
.gcr-thumb.is-video::after {
	content: ""; position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%;
	background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* Toolbar */
.gcr-toolbar { margin-bottom: 18px; }
.gcr-search { position: relative; display: block; }
.gcr-search::before {
	content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%);
	background: #777;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gcr .gcr-search input {
	width: 100%; height: 50px; padding: 0 16px 0 44px; margin: 0;
	border: 1px solid #cfcfcf; border-radius: 4px; background: #fff; font: inherit; font-size: 16px; color: #333;
	box-shadow: none;
}
.gcr .gcr-search input:focus { border-color: #999; outline: none; }
.gcr-toolbar-row {
	display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
	background: var(--gcr-soft); padding: 10px 16px; margin-top: 0; border-radius: 2px; min-height: 52px;
}
.gcr-status { font-size: 14px; color: #666; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.gcr-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px 3px 12px; border-radius: 20px;
	background: #fff; border: 1px solid #d5d5d5; font-size: 13px; color: #333;
}
.gcr-chip button {
	appearance: none; border: 0; background: #e8e8e8; width: 20px; height: 20px; border-radius: 50%; padding: 0; min-height: 0;
	cursor: pointer; line-height: 20px; font-size: 13px; color: #333;
}
.gcr .gcr-sort select {
	appearance: none; -webkit-appearance: none; border: 0; background: transparent; font: inherit; font-size: 14px; color: #333;
	padding: 4px 24px 4px 6px; cursor: pointer; height: auto; margin: 0; box-shadow: none; width: auto;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 2px center; background-size: 14px;
}

/* Review cards — grid fallback, JS turns it into masonry */
.gcr-list { display: grid; grid-template-columns: repeat(var(--gcr-cols, 3), minmax(0, 1fr)); gap: 0 20px; align-items: start; }
.gcr-list.is-masonry { display: flex; gap: 20px; align-items: flex-start; }
.gcr-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.gcr-card { padding: 22px 0 26px; border-bottom: 1px solid var(--gcr-line); min-width: 0; }
.gcr-card.is-hidden { display: none; }
.gcr-card.is-new { animation: gcr-in .35s ease both; }
@keyframes gcr-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.gcr-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.gcr-author { font-size: 18px; font-weight: 500; color: var(--gcr-strong); line-height: 1.4; word-break: break-word; }
.gcr-flag { font-size: 16px; margin-left: 4px; vertical-align: 1px; cursor: default; }
.gcr-flag.is-code {
	font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 1px 4px; border: 1px solid #ccc; border-radius: 3px; color: #666; vertical-align: 3px;
}
.gcr-badge { font-size: 14px; color: #4d5d64; }
.gcr-badge.is-verified::before {
	content: ""; display: inline-block; width: 13px; height: 13px; margin-right: 5px; vertical-align: -1px; background: #2e7d32;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.5 14.5l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.5 14.5l-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.gcr-date { font-size: 14px; color: var(--gcr-muted); white-space: nowrap; line-height: 1.8; }
.gcr-card .gcr-stars { --gcr-size: 22px; margin-bottom: 12px; }
.gcr .gcr-title { font-size: 19px; font-weight: 600; color: #6b6b6b; margin: 0 0 10px; line-height: 1.45; text-transform: none; letter-spacing: normal; }
.gcr-text { font-size: 16px; line-height: 1.8; color: var(--gcr-text); word-break: break-word; }
.gcr-text p { margin: 0 0 10px; }
.gcr-text p:last-child { margin-bottom: 0; }
.gcr-media { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.gcr-media-item { width: var(--gcr-thumb); height: var(--gcr-thumb); }
.gcr-reply {
	margin-top: 16px; padding: 12px 16px; background: var(--gcr-soft); border-left: 3px solid var(--gcr-star);
	font-size: 14px; line-height: 1.6; border-radius: 0 4px 4px 0;
}
.gcr-reply p { margin: 0 0 6px; }
.gcr-reply p:last-child { margin: 0; }
.gcr-reply-head { font-weight: 600; color: #444; margin-bottom: 4px; }
.gcr-product-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; text-decoration: none; }

.gcr-empty { text-align: center; padding: 30px 0; color: var(--gcr-muted); }
.gcr-more-wrap { text-align: center; margin-top: 26px; }
.gcr-more-wrap .gcr-btn { margin-top: 0; }

/* Lightbox */
.gcr-lb {
	position: fixed; inset: 0; z-index: 999999; background: rgba(12,14,16,.9);
	display: flex; align-items: center; justify-content: center; padding: 30px;
	opacity: 0; transition: opacity .2s; font-family: inherit;
}
.gcr-lb.is-open { opacity: 1; }
.gcr-lb-box {
	position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; width: min(1180px, 100%); height: min(760px, 100%);
	background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4);
}
.gcr-lb-stage { position: relative; background: #111; display: flex; align-items: center; justify-content: center; min-height: 0; }
.gcr-lb-stage img, .gcr-lb-stage video { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.gcr-lb-side { padding: 28px 26px; overflow-y: auto; color: #555; font-size: 15px; line-height: 1.7; }
.gcr-lb-side .gcr-author { margin-bottom: 2px; color: #222; }
.gcr-lb-side .gcr-stars { --gcr-size: 20px; margin: 10px 0; }
.gcr-lb-side .gcr-title { font-size: 17px; font-weight: 600; margin: 0 0 8px; color: #555; }
.gcr-lb-side .gcr-text { font-size: 15px; line-height: 1.7; }
.gcr-lb-count { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 13px; background: rgba(0,0,0,.5); padding: 2px 10px; border-radius: 12px; }
.gcr-lb button {
	appearance: none; position: absolute; border: 0; cursor: pointer; padding: 0; min-height: 0;
	width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.gcr-lb-close { top: 12px; right: 12px; z-index: 3; }
.gcr-lb-close::before, .gcr-lb-close::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; background: #222; transform: translate(-50%,-50%) rotate(45deg);
}
.gcr-lb-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
.gcr-lb-prev, .gcr-lb-next { top: 50%; transform: translateY(-50%); z-index: 2; }
.gcr-lb-prev { left: 14px; }
.gcr-lb-next { right: 14px; }
.gcr-lb-prev::before, .gcr-lb-next::before {
	content: ""; position: absolute; inset: 0; margin: auto; width: 11px; height: 11px; border: solid #222; border-width: 0 2px 2px 0;
}
.gcr-lb-prev::before { transform: translateX(2px) rotate(135deg); }
.gcr-lb-next::before { transform: translateX(-2px) rotate(-45deg); }
html.gcr-lb-lock, html.gcr-lb-lock body { overflow: hidden; }

/* Responsive */
@media (max-width: 900px) {
	.gcr-lb { padding: 0; }
	.gcr-lb-box { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: 100%; border-radius: 0; }
	.gcr-lb-side { max-height: 38vh; padding: 18px 20px; }
}
@media (max-width: 767px) {
	.gcr-summary { grid-template-columns: 1fr; padding: 22px 18px; }
	.gcr-hist { margin: 0 auto; }
	.gcr-form { padding: 20px 18px; }
	.gcr-gallery-item { width: 132px; height: 132px; }
	.gcr-list { grid-template-columns: 1fr; }
	.gcr-author { font-size: 17px; }
	.gcr-toolbar-row { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.gcr *, .gcr-lb { transition: none !important; animation: none !important; }
}

.gcr .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.gcr-lb-side .gcr-card-head { padding-right: 48px; flex-wrap: wrap; }
