/* "Premium Quality · Refurbished" badge (Figma 2229:187, inc/gm-refurb-badge.php), product page only: top-right corner
   of the gallery photo and of the "Your choice" photo, where the Black Friday tag was (owner 2026-11-28).
   Figma: 103 x 107 on the 270 x 320 phone photo card. Selectors are doubled so the gallery's own "photo img" rules
   (size, fit, padding, opacity) never apply to the badge. */
img.gm-rb.gm-rb {
	position: absolute; top: 16px; right: 16px; left: auto; bottom: auto; z-index: 3;
	display: block; width: 150px; height: auto; /* Desktop gallery photo: a little larger (owner 2026-11-28). */ max-width: none; max-height: none; aspect-ratio: 107 / 113;
	margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
	object-fit: contain; opacity: 1; transform: none; filter: none; pointer-events: none;
}
@media (max-width: 1100px) {
	.gm-pdp-main > img.gm-rb.gm-rb { top: 0; right: 0; width: 110px; }
}
@media (max-width: 767px) {
	.gm-pdp-main > img.gm-rb.gm-rb { width: 103px; } /* Figma: 103 x 107 on the 270 x 320 photo card. */
}
/* Lower buy box photo ("Your choice"). */
.gm-pdp-recap__frame > img.gm-rb.gm-rb { top: 0; right: 6px; width: 112px; }
@media (max-width: 1100px) {
	.gm-pdp-recap__frame > img.gm-rb.gm-rb { width: 96px; }
}
@media (max-width: 767px) {
	.gm-pdp-recap__frame > img.gm-rb.gm-rb { width: 88px; }
}

/* When the chosen condition is Brand New (planned grade), the photo is not a refurbished unit. */
.gm-pdp:has(input[name="condition"][value="new"]:checked) img.gm-rb { display: none; }
