/**
 * CookieConsent's dialog in the MotOrg Design System (Front\Consent): the library's own
 * variables set from the theme's tokens (theme.json presets). Accept and reject are the
 * same primary button (equalWeightButtons), so refusing is as easy as accepting (C2);
 * "Valitse evästeet" is the secondary button.
 */
#cc-main {
	--cc-font-family: var(--wp--preset--font-family--body, inherit);
	--cc-modal-border-radius: 8px;
	--cc-btn-border-radius: 4px;
	--cc-bg: var(--wp--preset--color--surface);
	--cc-primary-color: var(--wp--preset--color--contrast);
	--cc-secondary-color: var(--wp--preset--color--body);
	--cc-link-color: var(--wp--preset--color--link);

	--cc-btn-primary-bg: var(--wp--preset--color--accent);
	--cc-btn-primary-color: var(--wp--preset--color--contrast);
	--cc-btn-primary-border-color: var(--wp--preset--color--accent);
	--cc-btn-primary-hover-bg: var(--wp--preset--color--accent-hover);
	--cc-btn-primary-hover-color: var(--wp--preset--color--contrast);
	--cc-btn-primary-hover-border-color: var(--wp--preset--color--accent-hover);

	--cc-btn-secondary-bg: transparent;
	--cc-btn-secondary-color: var(--wp--preset--color--contrast);
	--cc-btn-secondary-border-color: var(--wp--preset--color--inverse);
	--cc-btn-secondary-hover-bg: var(--wp--preset--color--surface-sunken);
	--cc-btn-secondary-hover-color: var(--wp--preset--color--contrast);
	--cc-btn-secondary-hover-border-color: var(--wp--preset--color--inverse);

	--cc-separator-border-color: var(--wp--preset--color--border);
	--cc-toggle-on-bg: var(--wp--preset--color--accent-hover);
	--cc-toggle-off-bg: var(--wp--preset--color--muted);
	--cc-toggle-readonly-bg: var(--wp--preset--color--border-strong);
	--cc-cookie-category-block-bg: var(--wp--preset--color--base);
	--cc-cookie-category-block-border: var(--wp--preset--color--border);
	--cc-cookie-category-block-hover-bg: var(--wp--preset--color--surface-sunken);
	--cc-cookie-category-block-hover-border: var(--wp--preset--color--border-strong);
	--cc-footer-bg: var(--wp--preset--color--base);
	--cc-footer-color: var(--wp--preset--color--body);
	--cc-footer-border-color: var(--wp--preset--color--border);
}

/* Buttons as the design system's: 2px border, 700 uppercase (source text in sentence case). */
#cc-main .cm__btn,
#cc-main .pm__btn {
	border-width: 2px;
	font-weight: 700;
	text-transform: uppercase;
}

#cc-main .cm__btn:focus-visible,
#cc-main .pm__btn:focus-visible {
	outline: 3px solid var(--wp--preset--color--accent);
	outline-offset: 2px;
}
