/* ============================================================
   Complianz cookie banner — CalWEP brand, tucked into the lower right.
   Complianz has no saved banner config on this site, so it renders its
   default centered modal; these rules restyle it from the theme.
   Variables are set on the banner itself so they win over Complianz's
   :root values regardless of stylesheet order.
   ============================================================ */

#cmplz-cookiebanner-container .cmplz-cookiebanner {
	--cmplz_banner_width: 380px;
	--cmplz_banner_background_color: #ffffff;
	--cmplz_banner_border_color: #e4eaef;
	--cmplz_banner_border_width: 1px;
	--cmplz_banner_border_radius: 10px;
	--cmplz_text_color: #1b1310;
	--cmplz_hyperlink_color: #19518e;
	--cmplz_text_font_size: 13px;
	--cmplz_link_font_size: 13px;
	--cmplz_title_font_size: 16px;
	--cmplz_button_font_size: 14px;
	--cmplz_button_border_radius: 6px;
	--cmplz_button_accept_background_color: #1b9bc2;
	--cmplz_button_accept_border_color: #1b9bc2;
	--cmplz_button_accept_text_color: #ffffff;
	--cmplz_button_deny_background_color: #ffffff;
	--cmplz_button_deny_border_color: #c8d4dc;
	--cmplz_button_deny_text_color: #063161;
	--cmplz_button_settings_background_color: #ffffff;
	--cmplz_button_settings_border_color: #ffffff;
	--cmplz_button_settings_text_color: #19518e;
	--cmplz_slider_active_color: #1b9bc2;

	top: auto;
	left: auto;
	right: 20px;
	bottom: 20px;
	transform: none;
	-ms-transform: none;
	width: var(--cmplz_banner_width);
	min-width: 0;
	max-width: calc(100vw - 32px);
	padding: 18px 20px;
	font-family: var(--lato-font, 'Lato', sans-serif);
	box-shadow: 0 8px 30px rgba(6, 49, 97, 0.18);
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-categories { width: auto; }

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-header { grid-template-columns: 1fr auto; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-logo { display: none; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-title {
	grid-column-start: 1;
	justify-self: start;
	font-weight: 700;
	color: #063161;
}

#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message p,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-message { line-height: 1.5; }

/* Accept + Deny side by side, "View preferences" as a text link below. */
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons { flex-wrap: wrap; }
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	flex: 1 1 calc(50% - 10px);
	min-height: 40px;
	font-weight: 700;
	font-family: inherit;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences,
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences {
	flex-basis: 100%;
	min-height: 0;
	padding: 2px 0;
	text-decoration: underline;
}
#cmplz-cookiebanner-container .cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover { background: #19518e; border-color: #19518e; }

@media (max-width: 500px) {
	#cmplz-cookiebanner-container .cmplz-cookiebanner { right: 16px; bottom: 16px; }
}
