/* Canada cookie consent banner — DS2 light surface */
.rwl-cookie {
	position: fixed;
	inset: auto 0 0 0;
	z-index: 9999;
	padding: 1rem;
	pointer-events: none;
}

.rwl-cookie[hidden] {
	display: none !important;
}

/* Keep footer quote/copyright clear while the fixed banner is open */
html[data-rwl-cookie-banner="open"] {
	--rwl-cookie-banner-space: 8.5rem;
}

html[data-rwl-cookie-banner="open"] .footer,
html[data-rwl-cookie-banner="open"] .platform-page .footer,
html[data-rwl-cookie-banner="open"] .renewal-landing--platform .footer {
	padding-bottom: calc(
		max(2rem, env(safe-area-inset-bottom, 0px)) + var(--rwl-cookie-banner-space, 0px)
	) !important;
}

@media (max-width: 640px) {
	html[data-rwl-cookie-banner="open"] {
		--rwl-cookie-banner-space: 12.5rem;
	}

	html[data-rwl-cookie-banner="open"] .footer,
	html[data-rwl-cookie-banner="open"] .platform-page .footer,
	html[data-rwl-cookie-banner="open"] .renewal-landing--platform .footer {
		padding-bottom: calc(
			max(1.5rem, env(safe-area-inset-bottom, 0px)) + var(--rwl-cookie-banner-space, 0px)
		) !important;
	}
}

.rwl-cookie__inner {
	pointer-events: auto;
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	padding: 1.1rem 1.35rem;
	border: 1px solid rgb(30 80 140 / 0.14);
	border-radius: 1rem;
	background: linear-gradient(165deg, #ffffff 0%, #f7fbff 55%, #eef6ff 100%);
	color: #1e2f34;
}

.rwl-cookie__copy {
	flex: 1 1 18rem;
	min-width: 0;
}

.rwl-cookie__title {
	margin: 0 0 0.35rem;
	font-size: 1rem;
	font-weight: 600;
	color: #1e3a5f;
}

.rwl-cookie__desc {
	margin: 0;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #3a4f58;
}

.rwl-cookie__link {
	margin-left: 0.35rem;
	color: var(--renewal-blue, #0073ff);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.rwl-cookie__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
}

.rwl-cookie__btn {
	appearance: none;
	border: 1px solid transparent;
	border-radius: 999px;
	padding: 0.65rem 1.15rem;
	font: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.rwl-cookie__btn--primary {
	background: var(--renewal-blue, #0073ff);
	color: #fff;
}

.rwl-cookie__btn--primary:hover {
	filter: brightness(0.96);
}

.rwl-cookie__btn--ghost {
	background: #fff;
	border-color: rgb(30 80 140 / 0.22);
	color: #1e3a5f;
}

.rwl-cookie__btn--ghost:hover {
	background: #f3f8fc;
}

.rwl-cookie__btn:focus-visible {
	outline: 2px solid var(--renewal-blue, #0073ff);
	outline-offset: 2px;
}

@media (max-width: 640px) {
	.rwl-cookie__inner {
		border-radius: 0.85rem;
	}

	.rwl-cookie__actions {
		width: 100%;
	}

	.rwl-cookie__btn {
		flex: 1 1 auto;
		text-align: center;
	}
}
