/*
 * CookieYes banner, preference center and revisit button in the site's design.
 * The markup and its stylesheet come from CookieYes' script (cdn-cookieyes.com),
 * which adds its <style> after ours and sets colors in style attributes — hence
 * the "html body" prefix and !important on the colors. The banner sits outside
 * .pma-ui, so the tokens are repeated here.
 */

html body :is(.cky-consent-container, .cky-modal, .cky-btn-revisit-wrapper) {
	--pma-purple: #7141cc;
	--pma-ink: #282337;
	--pma-muted: #756d83;
	--pma-line: #eae5f0;
	--pma-soft: #f7f4fc;
	font-family: Arial, Helvetica, sans-serif;
}

/* Banner */
html body .cky-consent-container { width: 400px; border-radius: 13px; }
html body .cky-box-bottom-left { bottom: 24px; left: 24px; }
html body .cky-box-bottom-right { bottom: 24px; right: 24px; }
html body .cky-consent-container .cky-consent-bar {
	padding: 22px 24px;
	border: 1px solid var(--pma-line) !important;
	border-radius: 13px;
	background: #fff !important;
	box-shadow: 0 18px 48px rgba(40, 35, 55, .16);
}
html body .cky-notice .cky-title {
	margin: 0 0 8px;
	color: var(--pma-ink) !important;
	font-size: 17px; font-weight: 700; line-height: 1.3;
}
html body .cky-notice-des,
html body .cky-notice-des * {
	color: var(--pma-muted) !important;
	font-size: 13px; line-height: 1.6;
}
html body .cky-notice-des a.cky-policy { color: var(--pma-purple) !important; border: 0; }
html body .cky-notice-btn-wrapper { gap: 8px; margin-top: 16px; }

/* Buttons: accept is the site's primary button, the others its secondary one. */
html body :is(.cky-consent-container, .cky-modal) .cky-btn {
	min-height: 42px; margin: 0; padding: 10px 14px;
	border: 1px solid var(--pma-line) !important;
	border-radius: 7px;
	background: #fff !important;
	color: var(--pma-ink) !important;
	font-family: inherit; font-size: 13px; font-weight: 400; line-height: 1.2;
	opacity: 1;
	transition: border-color .15s, color .15s, filter .15s;
}
html body :is(.cky-consent-container, .cky-modal) .cky-btn:hover { border-color: var(--pma-purple) !important; color: var(--pma-purple) !important; opacity: 1; }
html body :is(.cky-consent-container, .cky-modal) .cky-btn.cky-btn-accept {
	border-color: var(--pma-purple) !important;
	background: var(--pma-purple) !important;
	color: #fff !important;
	font-weight: 700;
}
html body :is(.cky-consent-container, .cky-modal) .cky-btn.cky-btn-accept:hover { color: #fff !important; filter: brightness(.93); }
html body :is(.cky-consent-container, .cky-modal) :is(.cky-btn, .cky-btn-close, .cky-accordion-btn, .cky-switch input):focus-visible {
	outline: 3px solid var(--pma-purple); outline-offset: 2px;
}

/* Preference center */
html body .cky-overlay { background: var(--pma-ink, #282337); opacity: .45; }
html body .cky-modal { border-radius: 13px; box-shadow: 0 24px 64px rgba(40, 35, 55, .28); color: var(--pma-ink); }
html body .cky-preference-center {
	width: 720px;
	border-color: var(--pma-line) !important;
	border-radius: 13px;
	color: var(--pma-ink) !important;
}
html body .cky-preference-header { padding: 20px 24px; border-color: var(--pma-line); }
html body .cky-preference-header .cky-preference-title { color: var(--pma-ink) !important; font-size: 17px; font-weight: 700; }
html body .cky-preference-header .cky-btn-close {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%;
}
html body .cky-preference-header .cky-btn-close:hover { background: var(--pma-soft); }
html body .cky-preference-content-wrapper,
html body .cky-preference-content-wrapper *,
html body .cky-accordion-header-des,
html body .cky-accordion-header-des * {
	color: var(--pma-muted) !important;
	font-size: 13px; line-height: 1.6;
}
html body .cky-preference-body-wrapper .cky-horizontal-separator,
html body .cky-accordion-wrapper,
html body .cky-accordion { border-color: var(--pma-line); }
html body .cky-accordion-header .cky-accordion-btn { color: var(--pma-ink) !important; font-size: 14px; font-weight: 700; }
html body .cky-accordion-chevron { color: var(--pma-muted); border-color: var(--pma-muted); }
html body .cky-accordion-header .cky-always-active {
	padding: 3px 9px; border-radius: 99px;
	background: var(--pma-soft);
	color: var(--pma-purple);
	font-size: 12px; font-weight: 700; line-height: 18px;
}
html body .cky-audit-table {
	border-color: var(--pma-line) !important;
	border-radius: 7px;
	background: var(--pma-soft) !important;
	color: var(--pma-ink) !important;
}
html body .cky-switch input[type="checkbox"] { background: #d9d3e2; }
html body .cky-switch input[type="checkbox"]:checked { background: var(--pma-purple); }
html body .cky-prefrence-btn-wrapper { gap: 8px; padding: 18px 24px; border-color: var(--pma-line); }
/* "Powered by CookieYes" (kept: the free plan requires it), on the site's soft background. */
html body .cky-footer-wrapper > div:last-child { background: var(--pma-soft) !important; border-radius: 0 0 13px 13px; }

/* Revisit consent button */
html body .cky-btn-revisit-wrapper {
	width: 42px; height: 42px;
	background: var(--pma-purple) !important;
	box-shadow: 0 6px 18px rgba(113, 65, 204, .35);
}
html body .cky-btn-revisit-wrapper .cky-btn-revisit img { width: 24px; height: 24px; }
html body .cky-btn-revisit-wrapper:is(.cky-revisit-bottom-left, .cky-revisit-bottom-right):hover::before {
	padding: 5px 9px; border-radius: 6px;
	background: var(--pma-ink);
	font-family: Arial, Helvetica, sans-serif;
}
html body .cky-revisit-bottom-left:hover::after { border-right-color: var(--pma-ink); }
html body .cky-revisit-bottom-right:hover::after { border-left-color: var(--pma-ink); }

/* Phones: a card above the bottom edge instead of a full-width bar. */
@media (max-width: 576px) {
	html body .cky-consent-container,
	html body :is(.cky-box-bottom-left, .cky-box-bottom-right) { left: 12px; right: 12px; bottom: 12px; width: auto; max-width: none; }
	html body .cky-consent-container .cky-consent-bar { padding: 20px 0; }
	html body .cky-notice-des { max-height: 34vh; overflow-y: auto; }
	html body .cky-modal { width: calc(100% - 24px); max-width: calc(100% - 24px); }
	html body .cky-preference-center { width: 100%; max-height: 86vh; }
}
