/* ============================================================
   Cookie consent banner (Complianz) - brand overrides.

   Complianz exposes its colours as --cmplz_* custom properties (they
   default to a blue #3B29FF theme). We remap them to the Littledale
   palette so the banner, its buttons and the blocked-content placeholder
   match the site. The plugin's own stylesheet may load after the theme,
   so the variable overrides carry !important to win regardless of order.
   Custom-property !important is valid and is the reliable way to rebrand
   Complianz without touching plugin files.
   ============================================================ */

.cmplz-cookiebanner,
#cmplz-cookiebanner-container .cmplz-cookiebanner,
#cmplz-manage-consent .cmplz-manage-consent {
	/* Surfaces + text */
	--cmplz_banner_background_color: var(--color-cream-light) !important;
	--cmplz_text_color: var(--color-text) !important;
	--cmplz_banner_border_color: var(--color-input-border) !important;
	--cmplz_hyperlink_color: var(--color-caramel-dark) !important;

	/* Accept = primary action = caramel with cream label (the site's CTA look) */
	--cmplz_button_accept_background_color: var(--color-cta) !important;
	--cmplz_button_accept_border_color: var(--color-cta) !important;
	--cmplz_button_accept_text_color: var(--color-cream-light) !important;

	/* Deny = quiet light button */
	--cmplz_button_deny_background_color: var(--color-light-grey) !important;
	--cmplz_button_deny_text_color: var(--color-text) !important;
	--cmplz_button_deny_border_color: var(--color-input-border) !important;

	/* View preferences = subtle outline in teal */
	--cmplz_button_settings_background_color: transparent !important;
	--cmplz_button_settings_text_color: var(--color-teal) !important;
	--cmplz_button_settings_border_color: var(--color-input-border) !important;

	/* Toggle sliders when active */
	--cmplz_slider_active_color: var(--color-cta) !important;
}

/* Brand hover rule: colour change only, no movement (matches the site buttons).
   Caramel deepens; the light buttons warm to caramel. */
.cmplz-cookiebanner .cmplz-btn {
	transition: background-color var(--transition), border-color var(--transition), color var(--transition) !important;
}

.cmplz-cookiebanner .cmplz-btn:hover {
	transform: none !important;
}

.cmplz-cookiebanner .cmplz-accept:hover {
	background-color: var(--color-caramel-dark) !important;
	border-color: var(--color-caramel-dark) !important;
}

.cmplz-cookiebanner .cmplz-deny:hover,
.cmplz-cookiebanner .cmplz-view-preferences:hover,
.cmplz-cookiebanner .cmplz-save-preferences:hover {
	background-color: var(--color-cta) !important;
	border-color: var(--color-cta) !important;
	color: var(--color-cream-light) !important;
}

/* Blocked-content placeholder (e.g. the Google Map on Get Help Today):
   tint its accept button + link to brand caramel. */
.cmplz-blocked-content-notice,
.cmplz-placeholder {
	--cmplz_hyperlink_color: var(--color-caramel-dark) !important;
}
