/* Rasid Campaign Bar — one slim sticky bar docked at the very top of the
 * page, above the sticky chrome. While it is active (body.rcbar-on) the
 * theme's sticky chrome offsets by the bar height so the two stick as one
 * unit and never overlap. Bottom stack (bottomnav / buy bar / WhatsApp
 * floater / toasts) is untouched: the bar lives at the top only.
 *
 * v1.1.0 visual rebuild (owner's pinned item, 2026-11-25): the code chip
 * and the copy button are ONE unit — a single quiet pocket pill (the
 * store's pocket language: #1E1F24 ground, #3F4149 border) of fixed
 * 36px height whose own 999px radius clips both segments
 * (overflow: hidden), so the unit's outer corners are one radius on
 * every surface. The copy button is a full-height end segment of the
 * pill — transparent ground, one hairline divider, cyan text, fixed
 * 66px width — so the «تم النسخ» state changes colors only and the
 * geometry never shifts. Unit rules carry raised specificity plus
 * explicit resets: a foreign button rule on the homepage surface
 * previously repainted the button light (#F3F3F3 on #3E3E3E, 42px
 * tall, square corners) and inflated the chip to 52px, bursting out
 * of the 48px bar — measured live before this rebuild. */
.rcbar {
	--rcbar-h: 48px;
	position: sticky; top: 0; z-index: 70;
	height: var(--rcbar-h);
	display: flex; align-items: center; justify-content: center; gap: 10px;
	padding-inline: 12px;
	background: var(--bg-deep, #101114);
	border-block-end: 1px solid var(--line, #3F4149);
	color: var(--ink, #EDEEF1);
	font-size: 13.5px; line-height: 1.2;
}
body.rcbar-on .rn7-chrome { top: 48px; }
body.rcbar-on .rn5-header { top: 48px; }
/* The stage/pgallery offset below applies ONLY where those elements are
 * actually sticky - rasid.css makes them sticky inside
 * @media (min-width: 1024px) only. Below 1024px .rn7-stage is
 * position:relative, and the unscoped top value pushed the whole stage
 * 120px down so the decision card buried the lower 99px of the product
 * image (owner report 2026-11-25; FORENSICS.md in the card-unify record).
 * Scoped 2026-11-25 by the prodimg lane; desktop behavior unchanged. */
@media (min-width: 1024px) {
	body.rcbar-on .rn7-stage,
	body.rcbar-on .rn5-pgallery,
	body.rcbar-on .rn6-stage { top: calc(var(--header-h, 60px) + 64px); }
}

.rcbar-label {
	color: var(--ink, #EDEEF1); font-weight: 700; text-decoration: none;
	white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
a.rcbar-label:hover { text-decoration: underline; }

.rcbar .rcbar-chip {
	box-sizing: border-box;
	display: inline-flex; align-items: stretch; flex: none;
	height: 36px; min-height: 0; padding: 0;
	background: #1E1F24; border: 1px solid #3F4149; border-radius: 999px;
	overflow: hidden;
	cursor: pointer;
}
.rcbar .rcbar-code {
	display: inline-flex; align-items: center;
	padding-inline-start: 12px; padding-inline-end: 10px;
	font-size: 13.5px; font-weight: 800; letter-spacing: .5px; line-height: 1;
	color: #00C8FF;
	direction: ltr; unicode-bidi: isolate;
	-webkit-user-select: all; user-select: all;
}
.rcbar .rcbar-chip .rcbar-copy {
	-webkit-appearance: none; appearance: none;
	box-sizing: border-box;
	display: inline-flex; align-items: center; justify-content: center; flex: none;
	width: 66px; height: 100%; min-height: 0; margin: 0; padding: 0;
	background: transparent; border: 0; border-radius: 0;
	border-inline-start: 1px solid #3F4149;
	box-shadow: none; cursor: pointer;
	color: #00C8FF; font: inherit; font-size: 12.5px; font-weight: 700;
	line-height: 1; letter-spacing: 0; text-transform: none; text-decoration: none;
}
.rcbar .rcbar-chip.is-copied { border-color: #4ADE80; }
.rcbar .rcbar-chip.is-copied .rcbar-code,
.rcbar .rcbar-chip.is-copied .rcbar-copy { color: #4ADE80; }
.rcbar-live {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip-path: inset(50%); white-space: nowrap;
}
@media (max-width: 359px) {
	.rcbar { font-size: 12.5px; gap: 8px; }
	.rcbar .rcbar-chip .rcbar-copy { width: 60px; }
}
