/* fix161 (2026-11-21): "Back to <range>" on the product (virtual room) pages, made by js/rc-backlist.js from the range name
   above the product name, and the product lit up on the list when the visitor comes back. Colours follow the website
   colour (--rcl-ac / --rcd-accent), else RIC blue. */
#wrapper .header-product .cat-abstract h1 > a.rcbk {
	--rcbk-acc: var(--rcl-ac, var(--rcd-accent, #2B518F));
	display: -webkit-inline-flex;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	width: auto;
	max-width: 100%;
	margin: 0 0 10px;
	padding: 4px 16px 4px 4px;
	box-sizing: border-box;
	border: 1px solid rgba(15, 30, 60, .12);
	border-radius: 999px;
	background: rgba(255, 255, 255, .78);
	box-shadow: 0 1px 2px rgba(15, 30, 60, .06);
	color: var(--rcbk-acc);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
	vertical-align: middle;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .3s ease, transform .3s cubic-bezier(.16,1,.3,1);
	animation: rcbkIn .6s cubic-bezier(.16,1,.3,1) both;
}
#wrapper .header-product .cat-abstract h1 > a.rcbk:hover {
	background: #fff;
	border-color: rgba(15, 30, 60, .2);
	box-shadow: 0 2px 4px rgba(15, 30, 60, .07), 0 10px 22px -12px rgba(15, 30, 60, .35);
}
#wrapper .header-product .cat-abstract h1 > a.rcbk:active { transform: scale(.98); }
#wrapper .header-product .cat-abstract h1 > a.rcbk:focus { outline: none; }
#wrapper .header-product .cat-abstract h1 > a.rcbk:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rcbk-acc); }
.rcbk .rcbk-i {
	display: -webkit-inline-flex;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--rcbk-acc);
	box-shadow: 0 2px 6px -2px rgba(15, 30, 60, .45);
	transition: transform .35s cubic-bezier(.16,1,.3,1);
}
.rcbk .rcbk-i svg { width: 14px; height: 14px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rcbk:hover .rcbk-i { transform: translateX(-3px); }
.rcbk .rcbk-b::before { content: "Back to"; }
.rcbk .rcbk-b { color: #5c6777; font-weight: 500; letter-spacing: .02em; }
.rcbk .rcbk-t { overflow: hidden; text-overflow: ellipsis; letter-spacing: .2em; text-transform: uppercase; }
@keyframes rcbkIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

/* the list: the product just seen, a ring round its card for a moment (its own layer, made by the script) */
.rcbk-ring {
	--rcbk-acc: var(--rcl-ac, var(--rcd-accent, #2B518F));
	position: fixed;
	z-index: 40;
	box-sizing: border-box;
	border: 2.5px solid var(--rcbk-acc);
	border-radius: 18px;
	box-shadow: 0 0 0 5px rgba(43, 81, 143, .14), 0 12px 30px -12px rgba(15, 30, 60, .35);
	box-shadow: 0 0 0 5px color-mix(in srgb, var(--rcbk-acc) 20%, transparent), 0 12px 30px -12px rgba(15, 30, 60, .35);
	pointer-events: none;
	animation: rcbkRing 1.3s cubic-bezier(.2,.7,.3,1) 2 both;
}
@keyframes rcbkRing {	/* settles round the card, holds, then widens and fades - twice */
	0% { opacity: 0; transform: scale(1.06); }
	25% { opacity: 1; transform: scale(1); }
	70% { opacity: 1; transform: scale(1); }
	100% { opacity: 0; transform: scale(1.04); }
}
@media (max-width: 420px) {
	.rcbk .rcbk-b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	#wrapper .header-product .cat-abstract h1 > a.rcbk, .rcbk .rcbk-i, .rcbk-ring { animation: none; transition: none; }
}
