/* RootJunky site support notice. Uses the RootJunky theme's colours when present, with fallbacks. */
.rjss-lock, .rjss-lock body { overflow: hidden !important; }

.rjss-layer {
	position: fixed; inset: 0; z-index: 2147483000;
	display: flex; align-items: center; justify-content: center;
	padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
	background: rgba(8, 9, 11, .62);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .25s ease;
	font-family: "Roboto Flex", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
.rjss-layer.is-wall { background: rgba(8, 9, 11, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.rjss-layer.is-on { opacity: 1; }

.rjss-box {
	position: relative; width: min(520px, 100%); max-height: 100%; overflow-y: auto;
	padding: 30px 28px 24px; border-radius: 28px; text-align: center;
	background: var(--surface, #1a1d21); color: var(--text, #e9ebee);
	border: 1px solid var(--line, #30353c);
	box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
	transform: translateY(12px) scale(.98); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.rjss-layer.is-on .rjss-box { transform: none; }

.rjss-icon {
	display: grid; place-items: center; width: 68px; height: 68px; margin: 0 auto 16px;
	border-radius: 22px; color: var(--brand, #ff4b4b);
	background: var(--brand-soft, rgba(255, 75, 75, .14));
}
.rjss-title { margin: 0 0 12px; font-size: clamp(22px, 4vw, 27px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: inherit; }
.rjss-body p { margin: 0 0 12px; font-size: 16px; line-height: 1.6; color: var(--text-2, #a9b0b8); }
.rjss-body .rjss-sig { color: var(--text, #e9ebee); font-weight: 600; }

.rjss-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.rjss-btn {
	display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 20px;
	border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-size: 16px; font-weight: 700;
	transition: filter .15s, background .15s;
}
.rjss-btn--main { background: var(--brand, #ff4b4b); color: #fff; }
.rjss-btn--main:hover { filter: brightness(1.08); }
.rjss-btn--ghost { background: var(--surface-3, #2b3036); color: var(--text, #e9ebee); font-weight: 600; }
.rjss-btn--ghost:hover { background: var(--line, #30353c); }
.rjss-btn:focus-visible, .rjss-link:focus-visible { outline: 3px solid var(--droid, #3ddc84); outline-offset: 2px; }

.rjss-steps {
	margin: 16px 0 0; padding: 16px 18px 16px 38px; text-align: left; border-radius: 16px;
	background: var(--surface-2, #22262b); color: var(--text-2, #a9b0b8); font-size: 14.5px; line-height: 1.55;
}
.rjss-steps li + li { margin-top: 6px; }
.rjss-steps[hidden] { display: none !important; }

.rjss-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 18px; }
.rjss-link {
	background: none; border: 0; padding: 4px 2px; cursor: pointer; font: inherit; font-size: 14px;
	color: var(--text-3, #7d858e); text-decoration: underline; text-underline-offset: 3px;
}
.rjss-link:hover { color: var(--text, #e9ebee); }
a.rjss-link { color: var(--droid, #3ddc84); }

[data-scheme="light"] .rjss-layer { background: rgba(20, 24, 28, .45); }
[data-scheme="light"] .rjss-layer.is-wall { background: rgba(245, 246, 248, .82); }

@media (max-width: 480px) {
	.rjss-box { padding: 24px 18px 18px; border-radius: 24px; }
	.rjss-body p { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
	.rjss-layer, .rjss-box { transition: none; }
}

/* Donor pass: code box + thank-you toast */
.rjss-code { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.rjss-code[hidden] { display: none !important; }
.rjss-code__in {
	flex: 1 1 180px; min-height: 46px; padding: 0 16px; border-radius: 999px; font: inherit; font-size: 15px;
	background: var(--surface-2, #22262b); color: var(--text, #e9ebee); border: 1px solid var(--line, #30353c);
}
.rjss-code__in:focus { outline: 3px solid var(--droid, #3ddc84); outline-offset: 1px; }
.rjss-code__go { min-height: 46px; flex: 0 0 auto; }
.rjss-code__err { flex-basis: 100%; margin: 2px 0 0; font-size: 14px; color: var(--brand, #ff4b4b); }

.rjss-toast {
	position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 2147483001;
	display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: start;
	width: min(460px, calc(100% - 32px)); padding: 16px 16px 16px 20px; border-radius: 20px;
	background: var(--surface, #1a1d21); color: var(--text, #e9ebee);
	border: 1px solid var(--droid, #3ddc84); box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
	font-family: "Roboto Flex", Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	transform: translate(-50%, 30px); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.rjss-toast.is-on { transform: translate(-50%, 0); opacity: 1; }
.rjss-toast strong { grid-column: 1; font-size: 16px; color: var(--droid, #3ddc84); }
.rjss-toast span { grid-column: 1; font-size: 14.5px; line-height: 1.5; color: var(--text-2, #a9b0b8); }
.rjss-toast__x { grid-column: 2; grid-row: 1 / span 2; background: none; border: 0; color: var(--text-3, #7d858e); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (prefers-reduced-motion: reduce) { .rjss-toast { transition: none; } }
