/* GT Merch – product reviews with customer photos & videos */
.gtm-rev {
	--gtm-ink: #12303a; --gtm-teal: #1f8a78; --gtm-teal-d: #146b5d; --gtm-teal-soft: #dcf1ec; --gtm-sun: #fcc55e;
	--gtm-coral: #f7845c; --gtm-coral-d: #d4553a; --gtm-cream: #fff7ea; --gtm-line: #f0dcc0; --gtm-muted: #5c6e72;
	--gtm-pixel: "Press Start 2P", ui-monospace, monospace;
	clear: both; margin: 44px 0 0; color: var(--gtm-ink);
}
.gtm-rev *, .gtm-rev *::before, .gtm-rev *::after { box-sizing: border-box; }
.gtm-rev__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; flex-wrap: wrap; }
.gtm-rev__n { font-family: inherit; font-size: 12px; color: var(--gtm-muted); }
.gtm-rev__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
	background: var(--gtm-sun); color: var(--gtm-ink); border: 2px solid var(--gtm-ink); border-radius: 12px; box-shadow: 0 3px 0 var(--gtm-ink);
	font: inherit; font-size: 15px; font-weight: 800; line-height: 1; cursor: pointer; transition: transform .1s, box-shadow .1s;
}
.gtm-rev__btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--gtm-ink); background: #ffd57e; color: var(--gtm-ink); }
.gtm-rev__btn:active { transform: translateY(3px); box-shadow: none; }
.gtm-rev__btn:focus-visible { outline: 3px solid var(--gtm-teal); outline-offset: 2px; }
.gtm-rev__btn--ghost { background: #fff; }
.gtm-rev__btn[disabled] { opacity: .6; cursor: wait; transform: none; }

/* stars: one element, filled by --r */
.gtm-stars { --r: 0%; display: inline-block; position: relative; font-size: 15px; line-height: 1; letter-spacing: 2px; vertical-align: -1px; font-family: Arial, sans-serif; }
.gtm-stars::before { content: "★★★★★"; color: #e6dccb; }
.gtm-stars::after { content: "★★★★★"; position: absolute; left: 0; top: 0; width: var(--r); overflow: hidden; color: #f5a623; white-space: nowrap; }
.gtm-stars--lg { font-size: 22px; }

/* summary */
.gtm-rev__sum { display: grid; grid-template-columns: auto 1fr; gap: 18px 32px; align-items: center; padding: 18px 20px; background: var(--gtm-cream); border: 2px solid var(--gtm-line); border-radius: 16px; }
.gtm-rev__avg { display: grid; justify-items: start; gap: 6px; }
.gtm-rev__avg b { font-size: 40px; line-height: 1; font-weight: 800; }
.gtm-rev__avg span:last-child { font-size: 13px; color: var(--gtm-muted); }
.gtm-rev__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 420px; width: 100%; }
.gtm-rev__bars li { display: grid; grid-template-columns: 34px 1fr 26px; align-items: center; gap: 10px; margin: 0; font-size: 13px; }
.gtm-rev__bars li span:last-child { text-align: right; color: var(--gtm-muted); }
.gtm-rev__bars i { display: block; height: 9px; border-radius: 9px; background: #fff; border: 1px solid var(--gtm-line); overflow: hidden; }
.gtm-rev__bars em { display: block; height: 100%; background: #f5a623; border-radius: 9px; }
.gtm-rev__empty { display: flex; gap: 14px; align-items: center; padding: 16px 18px; background: var(--gtm-cream); border: 2px dashed var(--gtm-line); border-radius: 16px; font-size: 15px; line-height: 1.5; }
.gtm-rev__empty-i { font-size: 30px; line-height: 1; }

/* gallery */
.gtm-rev__gal { margin: 22px 0 0; }
.gtm-rev__gal h3, .gtm-rev__form legend, .gtm-rev__f > span { font-size: 15px; font-weight: 800; margin: 0 0 10px; color: var(--gtm-ink); }
.gtm-rev__grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.gtm-rev__tile {
	position: relative; display: block; width: 100%; aspect-ratio: 1 / 1; padding: 0; margin: 0; overflow: hidden; cursor: zoom-in;
	border: 2px solid var(--gtm-ink); border-radius: 12px; background: #1d2b30 linear-gradient(135deg, #24414a, #12303a); box-shadow: 0 3px 0 var(--gtm-ink);
	transition: transform .12s;
}
.gtm-rev__tile:hover { transform: translateY(-2px); }
.gtm-rev__tile:focus-visible { outline: 3px solid var(--gtm-teal); outline-offset: 2px; }
.gtm-rev__tile img, .gtm-rev__tile video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; pointer-events: none; }
.gtm-rev__tile.is-video { cursor: pointer; }
.gtm-rev__tile.is-video::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%;
	background: rgba(18, 48, 58, .78) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7v10l8-5z' fill='%23fff'/%3E%3C/svg%3E") center / 24px no-repeat;
	border: 2px solid #fff;
}
.gtm-rev__tile.is-extra { display: none; }
.gtm-rev__more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(18, 48, 58, .62); color: #fff; font-family: var(--gtm-pixel); font-size: 13px; }
.gtm-rev__tile--sm { width: 76px; border-radius: 10px; box-shadow: 0 2px 0 var(--gtm-ink); }

/* list */
.gtm-rev__list { list-style: none; margin: 22px 0 0; padding: 0; }
.gtm-rev__item { margin: 0; padding: 18px 0; border-top: 2px solid var(--gtm-line); }
.gtm-rev__item[hidden] { display: none; }
.gtm-rev__meta { display: flex; gap: 12px; align-items: center; font-size: 14px; line-height: 1.6; }
.gtm-rev__meta time { color: var(--gtm-muted); font-size: 13px; margin-left: 6px; }
.gtm-rev__av { flex: 0 0 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gtm-teal-soft); border: 2px solid var(--gtm-ink); font-weight: 800; }
.gtm-rev__ver { display: inline-block; padding: 1px 8px; border-radius: 20px; background: var(--gtm-teal-soft); color: var(--gtm-teal-d); font-size: 12px; font-weight: 700; }
.gtm-rev__text { margin: 10px 0 0 52px; font-size: 15px; line-height: 1.65; }
.gtm-rev__text p { margin: 0 0 8px; }
.gtm-rev__media { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0 52px; }
.gtm-rev__reply { margin: 10px 0 0 52px; padding: 10px 14px; border-left: 3px solid var(--gtm-sun); background: var(--gtm-cream); border-radius: 0 10px 10px 0; font-size: 14px; }
.gtm-rev__reply p { margin: 4px 0 0; }
.gtm-rev__all { margin: 4px 0 0; text-align: center; }

/* form */
.gtm-rev__form { margin: 22px 0 0; padding: 20px; background: #fff; border: 2px solid var(--gtm-ink); border-radius: 16px; box-shadow: 0 5px 0 var(--gtm-ink); }
.gtm-rev__form[hidden] { display: none; }
.gtm-rev__form form { display: grid; gap: 16px; margin: 0; }
.gtm-rev__rate { border: 0; margin: 0; padding: 0; min-width: 0; }
.gtm-rev__rate legend { padding: 0; }
.gtm-rev__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.gtm-rev__rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gtm-rev__rate label { cursor: pointer; font-size: 34px; line-height: 1; color: #e6dccb; padding: 0 2px; transition: transform .1s; }
.gtm-rev__rate label::before { content: "★"; }
.gtm-rev__rate label:hover, .gtm-rev__rate label:hover ~ label, .gtm-rev__rate input:checked ~ label { color: #f5a623; }
.gtm-rev__rate label:hover { transform: scale(1.12); }
.gtm-rev__rate input:focus-visible + label { outline: 3px solid var(--gtm-teal); outline-offset: 2px; border-radius: 6px; }
.gtm-rev__req { color: var(--gtm-coral-d); }
.gtm-rev__opt { font-weight: 400; color: var(--gtm-muted); font-size: 13px; }
.gtm-rev__f { display: grid; gap: 6px; margin: 0; }
.gtm-rev__f > span { margin: 0; }
.gtm-rev__f small { color: var(--gtm-muted); font-size: 12.5px; }
.gtm-rev__f input[type=text], .gtm-rev__f input[type=email], .gtm-rev__f textarea {
	width: 100%; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--gtm-ink); background: #fff;
	border: 2px solid var(--gtm-line); border-radius: 12px; box-shadow: none;
}
.gtm-rev__f textarea { min-height: 110px; resize: vertical; }
.gtm-rev__f input:focus, .gtm-rev__f textarea:focus { border-color: var(--gtm-ink); outline: 0; box-shadow: 0 0 0 3px var(--gtm-teal-soft); }
.gtm-rev__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.gtm-rev__drop { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; border: 2px dashed var(--gtm-line); border-radius: 14px; background: var(--gtm-cream); }
.gtm-rev__drop.is-over { border-color: var(--gtm-teal); background: var(--gtm-teal-soft); }
.gtm-rev__picks { display: contents; list-style: none; margin: 0; padding: 0; }
.gtm-rev__pick { position: relative; width: 86px; height: 86px; margin: 0; border-radius: 12px; overflow: hidden; border: 2px solid var(--gtm-ink); background: #1d2b30; }
.gtm-rev__pick img, .gtm-rev__pick video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gtm-rev__pick.is-video::before { content: "▶ video"; position: absolute; left: 4px; bottom: 4px; z-index: 1; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 10px; }
.gtm-rev__pick button { position: absolute; right: 3px; top: 3px; z-index: 2; width: 24px; height: 24px; padding: 0; border-radius: 50%; border: 0; background: rgba(18, 48, 58, .85); color: #fff; font-size: 15px; line-height: 24px; cursor: pointer; }
.gtm-rev__pick.is-bad { outline: 3px solid var(--gtm-coral-d); }
.gtm-rev__add { position: relative; width: 86px; height: 86px; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border-radius: 12px; border: 2px solid var(--gtm-ink); background: #fff; cursor: pointer; text-align: center; box-shadow: 0 3px 0 var(--gtm-ink); }
.gtm-rev__add span { font-size: 22px; line-height: 1; }
.gtm-rev__add b { font-size: 11px; line-height: 1.2; padding: 0 4px; }
.gtm-rev__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.gtm-rev__add:focus-within { outline: 3px solid var(--gtm-teal); outline-offset: 2px; }
.gtm-rev__add[hidden] { display: none; }
.gtm-rev__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gtm-rev__msg:empty { display: none; }
.gtm-rev__msg { padding: 10px 14px; border-radius: 10px; font-size: 14px; background: #fdecea; color: #8a2a17; }
.gtm-rev__msg.is-ok { background: var(--gtm-teal-soft); color: var(--gtm-teal-d); font-weight: 700; }
.gtm-rev__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0; }
.gtm-rev__actions small { color: var(--gtm-muted); }
.gtm-rev__bar { height: 6px; border-radius: 6px; background: var(--gtm-line); overflow: hidden; }
.gtm-rev__bar i { display: block; height: 100%; width: 0; background: var(--gtm-teal); transition: width .2s; }

/* lightbox */
.gtm-lb { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 22, 27, .92); }
.gtm-lb[hidden] { display: none; }
.gtm-lb__box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; max-width: 1100px; width: 100%; max-height: calc(100vh - 40px); background: #fff; border-radius: 16px; overflow: hidden; color: #12303a; }
.gtm-lb__stage { position: relative; display: flex; align-items: center; justify-content: center; background: #0b1519; min-height: 300px; max-height: calc(100vh - 40px); }
.gtm-lb__stage img, .gtm-lb__stage video { max-width: 100%; max-height: calc(100vh - 40px); display: block; object-fit: contain; }
.gtm-lb__side { padding: 22px 20px; overflow: auto; font-size: 15px; line-height: 1.6; }
.gtm-lb__side strong { display: block; font-size: 16px; }
.gtm-lb__side p { margin: 10px 0 0; }
.gtm-lb__side a { font-weight: 700; color: #146b5d; }
.gtm-lb__x, .gtm-lb__nav { position: absolute; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 2px solid #12303a; background: #fff; color: #12303a; font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.gtm-lb__x { right: 12px; top: 12px; }
.gtm-lb__nav { top: 50%; margin-top: -22px; }
.gtm-lb__nav--p { left: 12px; }
.gtm-lb__nav--n { right: calc(300px + 12px); }
.gtm-lb__nav[hidden] { display: none; }
.gtm-lb__count { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 3px 10px; border-radius: 20px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 13px; }
html.gtm-lb-open { overflow: hidden; }

@media (max-width: 900px) {
	.gtm-rev__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.gtm-lb { padding: 0; }
	.gtm-lb__box { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; height: 100%; max-height: none; border-radius: 0; }
	.gtm-lb__stage { max-height: none; min-height: 0; }
	.gtm-lb__stage img, .gtm-lb__stage video { max-height: 70vh; }
	.gtm-lb__side { max-height: 30vh; padding: 14px 16px 20px; }
	.gtm-lb__nav--n { right: 12px; }
}
@media (max-width: 600px) {
	.gtm-rev__sum { grid-template-columns: 1fr; padding: 16px; }
	.gtm-rev__row { grid-template-columns: 1fr; }
	.gtm-rev__text, .gtm-rev__media, .gtm-rev__reply { margin-left: 0; }
	.gtm-rev__form { padding: 16px; }
	.gtm-rev__head .gtm-rev__btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.gtm-rev__tile, .gtm-rev__btn, .gtm-rev__rate label { transition: none; }
}
/* themes style buttons (uppercase, coloured focus) – keep ours as designed */
.gtm-rev__btn, .gtm-rev__tile, .gtm-lb button { text-transform: none; letter-spacing: 0; }
.gtm-lb__x:hover, .gtm-lb__x:focus, .gtm-lb__nav:hover, .gtm-lb__nav:focus { background: #fcc55e !important; color: #12303a !important; }
