/* Climanosco Engagement CTA — slide-in corner card */

.clim-cta-card {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 320px;
	max-width: calc(100vw - 40px);
	background: #fff;
	border: 1px solid #d5dee6;
	border-radius: 12px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
	padding: 20px;
	font-family: Arial, Helvetica, sans-serif;
	z-index: 99999;
	transform: translateY(calc(100% + 40px));
	visibility: hidden;
	transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1), visibility 0s linear 0.5s;
}

.clim-cta-card.clim-cta-visible {
	transform: none;
	visibility: visible;
	transition-delay: 0s;
}

.clim-cta-title {
	margin: 0 0 8px;
	font-size: 16px;
	line-height: 1.3;
	color: #664F2F;
}

.clim-cta-text {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #444;
}

.clim-cta-close {
	position: absolute;
	top: 8px;
	right: 10px;
	border: none;
	background: none;
	font-size: 20px;
	line-height: 1;
	color: #999;
	cursor: pointer;
	padding: 4px;
}

.clim-cta-close:hover,
.clim-cta-close:focus {
	color: #333;
}

.clim-cta-buttons {
	display: flex;
	gap: 10px;
}

.clim-cta-btn {
	flex: 1;
	text-align: center;
	text-decoration: none;
	font-size: 14px;
	font-weight: bold;
	padding: 10px 12px;
	border: 1px solid transparent; /* keeps both buttons the same height */
	border-radius: 6px;
	color: #fff;
}

.clim-cta-btn:hover,
.clim-cta-btn:focus {
	color: #fff;
	text-decoration: none;
	filter: brightness(1.08);
}

/* Donate button — same scheme as the site's nav donate button (#msb-donate-button) */
.clim-cta-btn--donate {
	background-color: #227022;
	border: 1px solid #227022;
	color: #fff;
}

.clim-cta-btn--donate:hover,
.clim-cta-btn--donate:focus {
	background-color: transparent;
	color: #227022;
	filter: none;
}

/* Register button — same behavior as Donate, in the #664F2F scheme */
.clim-cta-btn--register {
	background-color: #664F2F;
	border: 1px solid #664F2F;
	color: #fff;
}

.clim-cta-btn--register:hover,
.clim-cta-btn--register:focus {
	background-color: transparent;
	color: #664F2F;
	filter: none;
}

/* Small screens: hug the bottom edge full-width */
@media (max-width: 480px) {
	.clim-cta-card {
		right: 10px;
		left: 10px;
		bottom: 10px;
		width: auto;
		max-width: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.clim-cta-card {
		transition: none;
	}
}
