/* RR Checkout side cart. Inherits the theme's font; colors via --rr-sc-* tokens. */
:root {
	--rr-sc-accent: #1a1a1a;
	--rr-sc-bg: #fff;
	--rr-sc-text: #1d1f23;
	--rr-sc-muted: #646a73;
	--rr-sc-line: #e4e6ea;
	--rr-sc-soft: #f5f6f8;
}
.rr-sc-locked { overflow: hidden; }
.rr-sc-overlay {
	position: fixed; inset: 0; z-index: 99998; background: rgba(15, 18, 24, .45);
	opacity: 0; transition: opacity .25s ease;
}
.rr-sc-overlay.is-open { opacity: 1; }
.rr-sc {
	position: fixed; top: 0; right: 0; bottom: 0; z-index: 99999;
	width: min(420px, 100vw); display: flex; flex-direction: column;
	background: var(--rr-sc-bg); color: var(--rr-sc-text);
	box-shadow: -8px 0 32px rgba(15, 18, 24, .18);
	transform: translateX(100%); transition: transform .25s ease;
	padding-top: env(safe-area-inset-top, 0px);
}
.rr-sc.is-open { transform: none; }
.rr-sc[hidden], .rr-sc-overlay[hidden] { display: none; } /* closed = truly hidden, not just off-screen (keyboard/screen readers) */
.rr-sc-head {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	padding: 18px 20px; border-bottom: 1px solid var(--rr-sc-line);
}
.rr-sc-head h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.rr-sc-close {
	border: 0; background: none; color: inherit; font-size: 28px; line-height: 1; cursor: pointer;
	width: 40px; height: 40px; border-radius: 50%;
}
.rr-sc-close:hover { background: var(--rr-sc-soft); }
.rr-sc-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.rr-sc-items { list-style: none; margin: 0; padding: 0 20px; overflow-y: auto; flex: 1; }
.rr-sc-item {
	display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: start;
	padding: 16px 0; border-bottom: 1px solid var(--rr-sc-line);
}
.rr-sc-item.is-busy { opacity: .5; pointer-events: none; }
.rr-sc-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--rr-sc-soft); display: block; }
.rr-sc-name { margin: 0 0 4px; font-weight: 600; line-height: 1.35; }
.rr-sc-name a { color: inherit; text-decoration: none; }
.rr-sc-name a:hover { text-decoration: underline; }
.rr-sc-info dl { margin: 0 0 6px; font-size: .85em; color: var(--rr-sc-muted); }
.rr-sc-info dl dt, .rr-sc-info dl dd { display: inline; margin: 0; }
.rr-sc-info dl dd p { display: inline; margin: 0; }
.rr-sc-qty { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.rr-sc-step {
	width: 30px; height: 30px; border: 1px solid var(--rr-sc-line); border-radius: 6px;
	background: var(--rr-sc-bg); color: inherit; cursor: pointer; font-size: 16px; line-height: 1;
}
.rr-sc-step:disabled { opacity: .4; cursor: not-allowed; }
.rr-sc-qty-val { min-width: 24px; text-align: center; font-variant-numeric: tabular-nums; }
.rr-sc-remove {
	border: 0; background: none; color: var(--rr-sc-muted); text-decoration: underline;
	cursor: pointer; font-size: .85em; margin-left: 6px; padding: 4px;
}
.rr-sc-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rr-sc-foot { padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--rr-sc-line); display: grid; gap: 10px; }
.rr-sc-subtotal { display: flex; justify-content: space-between; margin: 0; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.rr-sc-note { margin: 0; color: var(--rr-sc-muted); font-size: .85em; }
.rr-sc-btn {
	display: block; text-align: center; padding: 14px 16px; border-radius: 6px; font-weight: 600;
	background: var(--rr-sc-accent); color: #fff; text-decoration: none; border: 1px solid var(--rr-sc-accent);
}
.rr-sc-btn:hover { filter: brightness(1.1); color: #fff; }
.rr-sc-btn-alt { background: transparent; color: var(--rr-sc-text); border-color: var(--rr-sc-line); }
.rr-sc-btn-alt:hover { background: var(--rr-sc-soft); color: var(--rr-sc-text); filter: none; }
.rr-sc-empty { padding: 32px 20px; display: grid; gap: 16px; text-align: center; color: var(--rr-sc-muted); }
.rr-sc-empty p { margin: 0; }
.rr-sc-fab {
	position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 99990;
	width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--rr-sc-accent); color: #fff; box-shadow: 0 6px 20px rgba(15, 18, 24, .25);
	display: grid; place-items: center;
}
.rr-sc-fab[hidden] { display: none; }
.rr-sc-fab .rr-sc-count {
	position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 11px; background: #d93025; color: #fff; font-size: 12px; font-weight: 700;
	line-height: 22px; text-align: center; font-variant-numeric: tabular-nums;
}
.rr-sc :focus-visible, .rr-sc-fab:focus-visible { outline: 2px solid var(--rr-sc-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	.rr-sc, .rr-sc-overlay { transition: none; }
}
