/* fix160 (2026-11-21): the Current / Previous Collection switch above the products of the PRODUCT tab (Tile Modular and
   Broadloom product pages), made by js/rc-colswitch.js. A soft track with a white pill that slides to the chosen
   collection; the colour of the chosen words follows the website colour (--rcd-accent), else RIC blue. */
.rccs {
	--rccs-acc: var(--rcs-ring, var(--rcd-accent, #2B518F));
	container-type: inline-size;
	position: -webkit-sticky;
	position: sticky;	/* stays at the top of the product box while the products scroll under it */
	top: 0;
	z-index: 6;
	margin: 0 0 8px;
	padding: 4px 0 6px;
	background: var(--rccs-bg, #fff);
	opacity: 0;
	transform: translateY(-4px);
	transition: opacity .45s ease, transform .45s cubic-bezier(.16,1,.3,1);
}
.rccs.rccs-ready { opacity: 1; transform: none; }
.rccs::after {	/* a soft edge over the products scrolling under it */
	content: "";
	position: absolute;
	left: 0; right: 0; top: 100%;
	height: 14px;
	background: linear-gradient(var(--rccs-bg, #fff), transparent);
	opacity: 0;
	transition: opacity .25s ease;
	pointer-events: none;
}
.rccs.rccs-stuck::after { opacity: 1; }
.rccs-track {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	max-width: 460px;
	padding: 4px;
	box-sizing: border-box;
	border-radius: 999px;
	background: #edf1f6;
	background: linear-gradient(180deg, #e8edf4, #f1f4f8);
	box-shadow: inset 0 1px 2px rgba(15, 30, 60, .10), 0 0 0 1px rgba(15, 30, 60, .05);
}
.rccs-pill {
	position: absolute;
	top: 4px; bottom: 4px; left: 4px;
	width: calc((100% - 8px) / 2);
	border-radius: 999px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 30, 60, .14), 0 4px 12px -3px rgba(15, 30, 60, .18);
	transition: transform .5s cubic-bezier(.65, .05, .2, 1), box-shadow .3s ease;
	pointer-events: none;
}
.rccs-track[data-on="prev"] .rccs-pill { transform: translateX(100%); }
.rccs-pill::after {	/* a fine line in the website colour under the chosen words */
	content: "";
	position: absolute;
	left: 50%; bottom: 3px;
	width: 26px; height: 2px;
	margin-left: -13px;
	border-radius: 2px;
	background: var(--rccs-acc);
	opacity: .75;
}
.rccs-b {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	min-width: 0;
	margin: 0;
	padding: 9px 10px 10px;
	border: 0;
	border-radius: 999px;
	background: none;
	color: #5a6677;
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: .02em;
	white-space: nowrap;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: color .35s ease;
}
.rccs-b:hover { color: #263445; }
.rccs-b.rccs-on { color: var(--rccs-acc); cursor: default; }
.rccs-b:focus { outline: none; }
.rccs-b:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--rccs-acc); }
.rccs-i { display: inline-flex; width: 14px; height: 14px; flex: none; }
.rccs-i svg { width: 14px; height: 14px; fill: currentColor; transition: transform .5s cubic-bezier(.16,1,.3,1); }
.rccs-i svg[fill="none"] { fill: none; }
.rccs-b.rccs-on .rccs-i svg { transform: rotate(-12deg) scale(1.12); }
.rccs-b[data-col="prev"].rccs-on .rccs-i svg { transform: rotate(-30deg) scale(1.06); }
.rccs-l { overflow: hidden; text-overflow: ellipsis; }
.rccs-n {
	flex: none;
	min-width: 20px;
	padding: 2px 6px;
	box-sizing: border-box;
	border-radius: 999px;
	background: rgba(15, 30, 60, .07);
	color: #5a6677;
	font-size: 11px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	transition: background-color .35s ease, color .35s ease;
}
.rccs-b.rccs-on .rccs-n { background: var(--rccs-acc); color: #fff; }
.rccs-note {
	margin: 8px 0 0 !important;
	padding: 0 0 0 14px !important;
	color: #6b7686;
	font-size: 11.5px;
	line-height: 1.3;
	letter-spacing: .02em;
	text-align: left;
}
#produk ul.rccs-list > li.rccs-off { display: none !important; }
@container (max-width: 430px) {	/* narrow PRODUCT tab (phones, tablets): no icons, a little smaller */
	.rccs-i { display: none; }
	.rccs-b { gap: 6px; padding: 8px 6px 9px; font-size: 12px; letter-spacing: .01em; }
}
.rccs-short .rccs-w { display: none; }	/* still too narrow (js): "Current" / "Previous" */
@media (prefers-reduced-motion: reduce) {
	.rccs, .rccs-pill, .rccs-b, .rccs-n, .rccs-i svg { transition: none; }
}
