/* Cookie consent banner (views/partials/cookie-consent.ejs). NumbersRing style: Poppins,
   a rounded white card with a soft blue shadow, the #467EFE -> #61CAFD gradient button and
   outline pill buttons like the rest of the site. Bottom-left card on desktop, a bottom
   sheet on phones. */

.nr-cc {
	position: fixed;
	left: 24px;
	bottom: 24px;
	z-index: 100000;
	width: 480px;
	max-width: calc(100vw - 32px);
	font-family: 'Poppins', sans-serif;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .3s ease, transform .3s ease;
}
.nr-cc.is-open { opacity: 1; transform: none; }
.nr-cc[hidden] { display: none; }

.nr-cc__card {
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 26px 26px 22px;
	border: 1px solid #e9edf7;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(34, 55, 120, .22);
}

.nr-cc__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.nr-cc__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 14px;
	background: #fff4e8;
}
.nr-cc__title { margin: 0; font-size: 21px; line-height: 28px; font-weight: 700; color: #222328; }
.nr-cc__text { margin: 0; font-size: 14px; line-height: 23px; color: #646b86; }
.nr-cc__text strong { color: #222328; font-weight: 600; }
.nr-cc__text a { color: #4260cb; font-weight: 500; }

/* Customize: one row per category */
.nr-cc__prefs { margin-top: 18px; border-top: 1px solid #eef1f8; }
.nr-cc__prefs[hidden] { display: none; }
.nr-cc__pref {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0;
	padding: 14px 0;
	border-bottom: 1px solid #eef1f8;
	cursor: pointer;
}
.nr-cc__pref:first-child { cursor: default; }
.nr-cc__pref strong { display: block; font-size: 15px; font-weight: 600; color: #222328; }
.nr-cc__pref span:not(.nr-cc__switch):not(.nr-cc__always) { display: block; margin-top: 2px; font-size: 13px; line-height: 19px; color: #8c94b0; }
.nr-cc__always { flex: none; font-size: 12px; font-weight: 600; color: #18b26b; white-space: nowrap; }

/* Switch */
.nr-cc__switch { position: relative; flex: none; width: 46px; height: 26px; }
.nr-cc__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.nr-cc__switch i {
	position: absolute;
	inset: 0;
	border-radius: 50px;
	background: #d7ddeb;
	transition: background .2s;
	pointer-events: none;
}
.nr-cc__switch i::after {
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
	transition: transform .2s;
}
.nr-cc__switch input:checked + i { background: linear-gradient(260deg, #61cafd 0%, #467efe 100%); }
.nr-cc__switch input:checked + i::after { transform: translateX(20px); }
.nr-cc__switch input:focus-visible + i { outline: 2px solid #467efe; outline-offset: 2px; }

/* Buttons */
.nr-cc__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.nr-cc__btn {
	padding: 11px 22px;
	border-radius: 50px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .15s, box-shadow .15s, background .15s;
}
.nr-cc__btn[hidden] { display: none; }
.nr-cc__btn--fill {
	border: 0;
	background: linear-gradient(260deg, #61cafd 0%, #467efe 100%);
	color: #fff;
	box-shadow: 0 10px 22px rgba(70, 126, 254, .3);
}
.nr-cc__btn--fill:hover { transform: translateY(-1px); box-shadow: 0 14px 26px rgba(70, 126, 254, .36); }
.nr-cc__btn--outline { border: 1px solid #c9d8ff; background: #fff; color: #4260cb; }
.nr-cc__btn--outline:hover { background: #f2f6ff; }
.nr-cc__btn--link { border: 0; background: none; padding: 11px 6px; color: #4260cb; text-decoration: underline; }
.nr-cc__btn:focus-visible { outline: 2px solid #467efe; outline-offset: 2px; }

/* Phone: a sheet across the bottom of the screen */
@media (max-width: 575.98px) {
	.nr-cc { left: 10px; right: 10px; bottom: 10px; width: auto; max-width: none; }
	.nr-cc__card { padding: 20px 18px 18px; border-radius: 20px; max-height: calc(100vh - 20px); }
	.nr-cc__icon { width: 44px; height: 44px; }
	.nr-cc__icon svg { width: 28px; height: 28px; }
	.nr-cc__title { font-size: 18px; }
	.nr-cc__text { font-size: 13px; line-height: 21px; }
	.nr-cc__btns { gap: 8px; }
	.nr-cc__btn--fill, .nr-cc__btn--outline { flex: 1 1 calc(50% - 4px); padding: 11px 12px; font-size: 14px; }
	.nr-cc__btn--link { width: 100%; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
	.nr-cc { transition: none; }
}
