/* RITG Recently Viewed — product cards use the theme's own shop styling;
   this only adds spacing, the empty message and the badge. */
.ritg-rv[hidden],
.ritg-rv__empty[hidden] { display: none !important; }
.ritg-rv { clear: both; margin: 2.5em 0 1em; }
.ritg-rv__title { margin-bottom: 0.8em; }
.ritg-rv__items ul.products { margin-bottom: 0; }

/* Dedicated Recently Viewed page */
.ritg-rv--page { margin-top: 1em; min-height: 12em; }
.ritg-rv--page.ritg-rv--loading { opacity: 0.5; }
.ritg-rv__empty { text-align: center; padding: 3em 1em; }
.ritg-rv__empty p { margin: 0 0 1em; font-size: 1.1em; }

/* "Recently viewed" badge on shop / category pages.
   Sits top-left so it doesn't collide with the Sale badge (top-right). */
.ritg-rv-badge-host { position: relative; display: block; }
.ritg-rv-badge {
	position: absolute;
	top: 0.5em;
	left: 0.5em;
	z-index: 2;
	padding: 0.25em 0.6em;
	border-radius: 3px;
	background: var(--global-palette1, #1f2a44); /* Kadence accent colour, if set */
	color: #fff;
	font-size: 0.7rem;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: 0.02em;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Hidden card that keeps WP Rocket from dropping the product-grid styles */
.ritg-rv-css-probe { display: none !important; }
